/* Presentkort – bygger på ../knivskydd/style.css */
[hidden] { display: none !important; }

/* Språkväljare – segmenterad pill */
.top .langs {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  font-size: .78rem; font-weight: 600; letter-spacing: .08em;
}
.top .langs a {
  min-width: 38px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.72); opacity: 1; transition: background .15s, color .15s;
}
.top .langs a:hover { color: #fff; background: rgba(255,255,255,.1); }
.top .langs a.on { background: var(--accent); color: var(--dark); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.top .langs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.top .back { font-size: .88rem; }

/* Kort-illustration överst (samma stil som PDF-presentkortet) */
.gc-hero { background: var(--dark); padding: 28px 16px; margin: 0 0 22px; display: flex; justify-content: center; }
.gc-card {
  position: relative; width: 100%; max-width: 380px; aspect-ratio: 210 / 148; overflow: hidden;
  background: #f0f1f0; color: #2b2420; box-shadow: 0 18px 40px rgba(0,0,0,.35); container-type: inline-size;
}
.gc-card-blob { position: absolute; inset: 0; width: 100%; height: 100%; fill: #bb9d8a; }
.gc-card > span, .gc-card-logo { position: absolute; }
.gc-card-title { left: 5.2%; top: 6.5%; font-family: Lora, Georgia, serif; font-weight: 600; font-size: 6.4cqw; line-height: 1; }
.gc-card-logo { left: 40%; top: 18%; width: 35%; height: auto; }
.gc-card-sum { left: 33.6%; width: 48%; top: 38.5%; text-align: center; font-family: Lora, Georgia, serif; font-weight: 600; font-size: 4.6cqw; }
.gc-card-amount { left: 33.6%; width: 48%; top: 46.5%; text-align: center; font-family: Lora, Georgia, serif; font-weight: 600; font-size: 10.5cqw; line-height: 1.2; }
.gc-card-amount::after { content: ""; display: block; width: 50%; margin: 1.5% auto 0; border-top: 1px solid #2b2420; }
.gc-card-code { right: 5.5%; bottom: 8%; font-family: Poppins, sans-serif; font-weight: 500; font-size: 3.6cqw; background: #fff; border: 1px solid #2b2420; padding: 1.5% 3%; }

/* Val av belopp */
.gc-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gc-opt { position: relative; cursor: pointer; display: block; }
.gc-opt input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.gc-opt-body {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  border: 1px solid var(--line); background: #fff; padding: 14px 14px 12px; transition: border-color .15s, box-shadow .15s;
}
.gc-opt:hover .gc-opt-body { border-color: #cdbf9f; }
.gc-opt input:checked + .gc-opt-body { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #fffdf7; }
.gc-opt input:focus-visible + .gc-opt-body { outline: 2px solid var(--dark); outline-offset: 2px; }
.gc-amount { font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; line-height: 1.15; color: var(--ink); }
.gc-opt strong { font-size: .98rem; }
.gc-opt .desc { font-size: .85rem; line-height: 1.4; }
.gc-badge {
  align-self: flex-start; background: var(--dark); color: var(--accent); font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; margin-bottom: 4px;
}
.gc-opt-custom .gc-amount { font-size: 1.35rem; }
.gc-custom-field { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.gc-custom-field input {
  width: 100%; max-width: 120px; height: 38px; border: 1px solid var(--line); padding: 0 10px; font-size: 1rem; font-family: inherit;
}
.gc-custom-field input:focus { outline: none; border-color: var(--accent); }

/* Personlig hälsning */
.gc-personal { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.gc-personal summary { cursor: pointer; font-weight: 600; font-size: .95rem; }
.gc-personal summary::marker { color: var(--accent); }
.gc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.gc-fields label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.gc-fields .full { grid-column: 1 / -1; }
.gc-fields input, .gc-fields textarea {
  border: 1px solid var(--line); padding: 9px 10px; font-size: 1rem; font-family: inherit; color: var(--ink); resize: vertical;
}
.gc-fields input:focus, .gc-fields textarea:focus { outline: none; border-color: var(--accent); }
.gc-fields p { margin: 0; }

/* Fysiskt kort */
.gc-physical { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid var(--line); margin-top: 14px; padding: 14px 0; cursor: pointer; }
.gc-physical input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--dark); flex-shrink: 0; }
.gc-physical > span { display: flex; flex-direction: column; gap: 2px; }
.gc-physical strong { font-size: .98rem; }

.gc-steps { padding-left: 1.3em; color: #374151; }
.gc-steps li { margin: .3em 0; }
.gc-steps li::marker { color: var(--accent); font-weight: 700; }

/* Leveransadress för fysiskt kort */
.gc-ship { border-left: 3px solid var(--accent); padding: 4px 0 6px 14px; margin: 0 0 14px; }
.gc-ship-h { margin: 0 0 8px; font-weight: 600; font-size: .95rem; }
.gc-ship-to { display: flex; gap: 8px; flex-wrap: wrap; }
.gc-ship-to label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; padding: 9px 12px; cursor: pointer; font-size: .92rem; flex: 1 1 160px; }
.gc-ship-to input { accent-color: var(--dark); width: 18px; height: 18px; margin: 0; }
.gc-ship-to label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #fffdf7; }
.gc-ship .gc-fields { margin-top: 10px; }

.gc-local { margin: 0; background: #eef6ef; border: 1px solid #9cc5a3; color: #1d5b2c; padding: 8px 12px; font-size: .9rem; font-weight: 600; }

.gc-localbox { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 16px 18px; margin: 22px 0 6px; }
.gc-localbox h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--ink); }
.gc-localbox p { margin: 0; color: #374151; line-height: 1.55; }

/* Tack-sidan */
.gc-result { text-align: center; }
.gc-result .gc-code {
  display: inline-block; font-family: "Courier New", monospace; font-weight: 700; font-size: 1.7rem; letter-spacing: .06em;
  background: var(--dark); color: #fff; padding: 12px 20px; margin: 6px 0 4px; border: 1px solid var(--accent); user-select: all;
}
.gc-result .gc-meta { color: var(--muted); margin: 6px 0 18px; }

@media (max-width: 480px) {
  .gc-options, .gc-fields { grid-template-columns: 1fr; }
}

/* Eget belopp över hela raden */
.gc-opt-custom { grid-column: 1 / -1; }

/* Ett presentkort – bara belopp */
.gc-anywhere { margin: 0 0 14px; background: #fffdf7; border: 1px solid var(--accent); padding: 10px 14px; font-weight: 600; font-size: .95rem; }
.gc-opt-price .gc-opt-body { align-items: center; text-align: center; min-height: 64px; justify-content: center; }
.gc-opt-price .gc-amount { font-size: 1.7rem; }
.gc-example { margin: 12px 0 18px; padding: 10px 14px; background: #eef6ef; border-left: 3px solid #4f8a5b; color: #1d3a24; font-size: .95rem; line-height: 1.5; min-height: 1.5em; }

.gc-anywhere strong { display: block; font-size: 1.05rem; margin-bottom: 8px; }
.gc-anywhere ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gc-anywhere li { background: var(--dark); color: #fff; padding: 6px 12px 6px 28px; font-size: .88rem; font-weight: 600; position: relative; }
.gc-anywhere li::before { content: "✓"; position: absolute; left: 10px; color: var(--accent); }

/* Hero-kontext, belopp med förklaring, sticky betalknapp */
.gc-kicker { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); }
.gc-opt-price .gc-opt-body { min-height: 96px; gap: 6px; }
.gc-opt-price .gc-sub { font-size: .84rem; line-height: 1.35; color: #4b5563; font-weight: 500; }
.pay { position: sticky; bottom: 12px; z-index: 20; box-shadow: 0 8px 24px rgba(0,0,0,.28); }

/* Endast eget belopp + förhandsvisning under */
.gc-custom-box { border: 1px solid var(--line); background: #fff; padding: 16px 18px; margin: 0 0 14px; display: grid; gap: 6px; }
.gc-custom-title { font-family: inherit; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.gc-hero-form { margin: 0 0 18px; }

/* Två standardval + förklaring av vad beloppet räcker till */
.gc-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.gc-quick-btn { background: #fff; border: 1px solid var(--line); padding: 12px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; align-items: center; font: inherit; color: var(--ink); }
.gc-quick-btn strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 400; }
.gc-quick-btn span { font-size: .82rem; color: #4b5563; }
.gc-quick-btn.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #fffdf7; }
.gc-covers { margin: 4px 0 0; padding: 10px 12px; background: #eef6ef; border-left: 3px solid #4f8a5b; color: #1d3a24; font-size: .95rem; line-height: 1.45; min-height: 1.4em; }
.gc-covers:empty { display: none; }
@media (max-width: 480px) { .gc-quick { grid-template-columns: 1fr 1fr; } }
