/*
 * gsfinancing front styles. Uses the puentecolor theme tokens (--pc-*) with
 * fallbacks, so the block also works on other Bootstrap 5 themes.
 * --gsf-color is the payment method brand color, set per line.
 */
.gsf {
  --gsf-text: var(--pc-text, #1f2530);
  --gsf-muted: var(--pc-text-muted, #5a6270);
  --gsf-border: var(--pc-border, #dde1e6);
  --gsf-accent: var(--pc-navy, #24245c);
  --gsf-radius: var(--pc-radius, 5px);
  color: var(--gsf-text);
  font-size: var(--pc-fs-sm, 0.875rem);
  line-height: 1.35;
}

.gsf-lines,
.gsf-plans {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gsf-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.125rem 0;
}

.gsf-line__amount {
  color: var(--gsf-accent);
  font-weight: 700;
  white-space: nowrap;
}

.gsf-line__label {
  color: var(--gsf-color, var(--gsf-accent));
  font-weight: 700;
}

.gsf-line__note {
  color: #1b7f3b;
  font-weight: 600;
}

.gsf-line__text,
.gsf-line__with {
  color: var(--gsf-muted);
}

/* Single payment with a discount: the highlighted cash/transfer price. */
.gsf-line--highlight {
  background: #e8f3fc;
  background: color-mix(in srgb, var(--gsf-color, #1e88e5) 12%, #fff);
  border-radius: var(--gsf-radius);
  margin-bottom: 0.25rem;
  padding: 0.375rem 0.5rem;
}

.gsf-line--highlight .gsf-line__amount {
  font-size: 1.05em;
}

.gsf-line--highlight .gsf-line__text {
  color: var(--gsf-text);
  font-weight: 600;
}

.gsf-logos {
  align-items: center;
  display: inline-flex;
  gap: 0.25rem;
}

.gsf-logo {
  height: 1.125rem;
  max-width: 4.5rem;
  object-fit: contain;
  width: auto;
}

.gsf-footnote {
  color: var(--gsf-muted);
  font-size: 0.8125rem;
  margin: 0.25rem 0 0;
}

/* Miniature: full row below price and old price (the parent is a wrapping flex row). */
.gsf--mini {
  flex: 0 0 100%;
  order: 10;
  text-align: left;
}

/* Product page block. */
.gsf--product {
  margin: var(--pc-space-3, 1rem) 0;
}

.gsf-open {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: var(--pc-space-2, 0.5rem);
  width: 100%;
}

.gsf-modal .modal-dialog {
  max-width: 28rem;
}

.gsf-group {
  border-left: 4px solid var(--gsf-color, var(--gsf-accent));
}

.gsf-group__toggle {
  gap: 0.75rem;
}

.gsf-group__toggle .gsf-logo {
  height: 1.75rem;
  max-width: 6rem;
}

.gsf-group__name {
  color: var(--gsf-color, var(--gsf-accent));
  font-weight: 700;
}

.gsf-group__hint {
  color: var(--gsf-muted);
  font-size: var(--pc-fs-sm, 0.875rem);
  margin-left: auto;
  padding-right: 0.5rem;
}

.gsf-plan {
  align-items: center;
  border-bottom: 1px dashed var(--gsf-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: space-between;
  padding: 0.625rem 0;
}

.gsf-plan:last-child {
  border-bottom: 0;
}

.gsf-plan__main {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.gsf-plan__label {
  color: var(--gsf-color, var(--gsf-accent));
  flex-basis: 100%;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.gsf-plan__total {
  color: var(--gsf-muted);
  white-space: nowrap;
}

.gsf-badge {
  background: color-mix(in srgb, var(--gsf-color, #1b7f3b) 14%, #fff);
  border-radius: 999px;
  color: var(--gsf-text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.0625rem 0.5rem;
}

.gsf-modal .gsf-footnote {
  margin-top: var(--pc-space-3, 1rem);
}
