/* Gåvokort: detaljsida (gavokort-info.php) och utbud (gavokort-utbud.php).
 B ygger på produkt.css (galleri, Tillbaka, förstoring). */                                                                                                                                                                                                    *

 .gki-info h1 { text-transform: uppercase; }
 .gki-besk { text-align: left; }
 .gki-besk a { text-decoration: underline; }
 .gki-besk ul, .gki-besk ol { margin: 0 0 10px; padding-left: 20px; }
 .gki-pris { font-size: 18px; font-weight: 600; color: #000; margin: 0 0 16px; }
 .gki-anpassa { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 500; margin: 0 0 12px; cursor: pointer; width: fit-content; }
 .gki-anpassa input { width: 18px; height: 18px; margin: 0; accent-color: #000; cursor: pointer; }
 .gki-anpassa.liten { font-size: 15px; margin: 0 0 6px; }
 .gki-anp { border: 1px solid #e5e7eb; background: #fafafa; padding: 14px 16px; margin: -2px 0 14px; }
 .gki-anp p { margin: 0 0 12px; color: #4b5563; font-size: 14px; line-height: 1.55; }
 .gki-anp label { display: block; font-size: 14px; font-weight: 500; color: #374151; margin: 0 0 4px; }
 .gki-anp label span { color: #9ca3af; font-weight: 400; }
 .gki-anp textarea { width: 100%; border: 1px solid #d1d5db; padding: 10px 12px; font: inherit; font-size: 15px; resize: vertical; margin-bottom: 12px; background: #fff; }
 .gki-anp textarea:focus { outline: none; border-color: #000; box-shadow: 0 0 0 1px #000; }
 .gki-anp-fil { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
 .gki-anp-fil input { max-width: 100%; }
 .gki-anp-bort, .gki-lank { background: none; border: none; padding: 0; color: #2563eb; text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
 .gki-anp .pd-fel { margin: 8px 0 0; }
 .gki-anp-sammanf { background: #fafafa; border: 1px solid #e5e7eb; padding: 10px 12px; }
 .gki-anp-sammanf p { margin: 2px 0 4px; font-size: 14px; color: #1f2937; white-space: pre-line; }
 .gki-etikett { font-size: 14px; color: #374151; font-weight: 500; }
 .gki-anp-sammanf .gki-lank { align-self: flex-start; }
 .gki-utbud { display: inline-block; color: #2563eb; }
 .gki-utbud:hover { text-decoration: underline; }
 .gki-utbud span { color: #6b7280; }
 .gki-kop { display: block; width: 100%; margin-top: 16px; background: #000; color: #fff; border: 1px solid #000; padding: 10px 24px; font-size: 16px;
   text-align: center; cursor: pointer; transition: background 0.3s, color 0.3s; font-family: inherit; }
   .gki-kop:hover:not(:disabled) { background: #fff; color: #000; }
   .gki-kop:disabled { background: #9ca3af; border-color: #9ca3af; cursor: default; }
   .gki-tom { display: flex; align-items: center; justify-content: center; width: min(100%, 380px); aspect-ratio: 3 / 4; padding: 24px; color: #fff;
     font-size: 28px; font-weight: 300; text-transform: uppercase; letter-spacing: 0.08em; text-align: center; line-height: 1.3; }

     /* Relaterade kort (som originalet: små kort centrerade i en rad) */
     .gki-rel { margin-top: 64px; }
     .gki-rel h2 { text-align: center; text-transform: none; letter-spacing: 0; font-size: 24px; }
     .gki-rel-rad { display: flex; gap: 24px; justify-content: center; overflow-x: auto; padding: 4px 8px 16px; scrollbar-width: none; }
     .gki-rel-rad::-webkit-scrollbar { display: none; }
     .gki-rel-kort { flex: 0 0 auto; width: 200px; padding: 16px; text-align: center; background: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
       transition: box-shadow 0.3s; }
       .gki-rel-kort:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.12), 0 4px 6px -4px rgba(0,0,0,0.1); }
       .gki-rel-kort img, .gki-rel-kort .ph { display: block; width: 100%; height: 160px; object-fit: cover; margin-bottom: 16px; }
       .gki-rel-kort h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
       .gki-rel-kort p { font-size: 12px; color: #6b7280; text-align: justify; margin: 0; }

       /* Beställningsrutan */
       .gki-dlg { width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: none; background: #fff; color: #1f2937; }
       .gki-dlg::backdrop { background: rgba(0,0,0,0.55); }
       .gki-dlg form, .gki-tack { padding: 32px; }
       .gki-dlg h2 { font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 40px 8px 0; line-height: 1.3; }
       .gki-ingress { color: #6b7280; margin: 0 0 20px; font-size: 15px; }
       .gki-stang { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: none; background: #f3f4f6; cursor: pointer; font-size: 16px; }
       .gki-stang:hover { background: #e5e7eb; }
       .gki-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
       .gki-falt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
       .gki-falt.hel { grid-column: 1 / -1; }
       .gki-falt > label { font-size: 14px; color: #374151; font-weight: 500; }
       .gki-falt > label span { color: #9ca3af; font-weight: 400; }
       .gki-falt input:not([type=checkbox]), .gki-falt textarea { width: 100%; border: 1px solid #d1d5db; padding: 10px 12px; font: inherit; font-size: 15px; background: #fff; }
       .gki-falt textarea { resize: vertical; }
       .gki-falt input:focus, .gki-falt textarea:focus { outline: none; border-color: #000; box-shadow: 0 0 0 1px #000; }
       .gki-falt [aria-invalid="true"] { border-color: #b91c1c !important; }
       .gki-antal { margin-bottom: 14px; }
       .gki-antal-rad { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
       .gki-antal-rad input { max-width: 120px; }
       .gki-summa { color: #1f2937; font-variant-numeric: tabular-nums; }
       .gki-hint { display: block; font-size: 13px; color: #6b7280; margin: 0 0 6px; }
       .gki-dlg .pd-fel { margin: 14px 0 0; }
       .gki-dlg .gki-kop { margin-top: 18px; padding: 13px 24px; text-transform: uppercase; letter-spacing: 0.08em; }
       .gki-tack p { color: #4b5563; margin: 0 0 10px; }
       .gki-ref strong { font-family: ui-monospace, monospace; letter-spacing: 0.04em; color: #000; }

       /* Utbud */
       .gku-topp { text-align: center; margin: 8px 0 32px; }
       .gku-topp h1 { font-size: 28px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 8px; }
       .gku-topp p { color: #6b7280; margin: 0 auto 18px; max-width: 40em; }
       .gku-sok input { width: min(100%, 420px); height: 44px; border: 1px solid #d1d5db; padding: 0 16px; font: inherit; font-size: 15px; }
       .gku-sok input:focus { outline: none; border-color: #000; }
       .gku-galler { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
       .gku-gava { margin: 0; background: #fff; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); display: flex; flex-direction: column; }
       .gku-gava[hidden] { display: none; }
       .gku-gava .bild { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; overflow: hidden; }
       .gku-gava .bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
       .gku-gava .bild span { font-size: 48px; color: #d1d5db; font-weight: 600; }
       .gku-gava figcaption { display: flex; flex-direction: column; gap: 4px; text-align: center; font-size: 15px; }
       .gku-gava .pris { color: #6b7280; font-size: 14px; }
       .gku-tom { text-align: center; color: #6b7280; padding: 32px 0; }
       .gku-kop { max-width: 420px; margin: 40px auto 0; }
       .gku-kop .gki-kop { text-transform: uppercase; letter-spacing: 0.08em; padding: 13px 24px; }

       @media (max-width: 1023px) { .gku-galler { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
       @media (max-width: 639px) {
         .gki-rel-rad { justify-content: flex-start; }
         .gki-rel-kort { width: 170px; }
         .gki-dlg form, .gki-tack { padding: 24px 18px; }
         .gki-grid { grid-template-columns: 1fr; }
         .gku-galler { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
         .gku-gava { padding: 10px; }
         .gku-topp h1 { font-size: 22px; }
       }

       /* ── Anpassa kort och låda: helskärmsruta med förhandsvisning ── */
       .gki-anp-chip { display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; padding: 8px 12px; border: 1px solid #e5e7eb; background: #fafafa; font-size: 14px; }
       .gki-anp-chip .tumme { width: 36px; height: 36px; flex-shrink: 0; background: #fff center / contain no-repeat; border: 1px solid #e5e7eb; }
       .gki-anp-chip[hidden], .gki-anp-chip .tumme[hidden] { display: none; }
       .gki-anp-chip .text { flex: 1; min-width: 0; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

       .ak { width: calc(100vw - 48px); max-width: 1400px; height: calc(100dvh - 48px); max-height: 900px; padding: 0; border: none; background: #fff; color: #1f2937; overflow: hidden; }
       .ak::backdrop { background: rgba(0,0,0,0.6); }
       .ak-ram { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); height: 100%; }

       .ak-forhands { position: relative; background: radial-gradient(ellipse at 50% 40%, #f6f2ec 0%, #e7e0d5 70%, #ddd4c6 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; min-height: 0; overflow: hidden; }
       .ak-scen { position: relative; width: min(100%, 640px, calc((100dvh - 230px) * 1.15)); aspect-ratio: 1.15 / 1; transition: transform 0.35s ease; }
       .ak-lada { position: absolute; left: 4%; top: 2%; width: 66%; aspect-ratio: 1 / 1; transition: all 0.35s ease; }
       .ak-lock { position: absolute; inset: 0; background: linear-gradient(145deg, #fbf9f5 0%, #f1ece4 55%, #e6dfd3 100%); border-radius: 3px;
         box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 -1px 0 rgba(0,0,0,0.04) inset, 0 30px 50px -18px rgba(60,40,20,0.45), 0 6px 14px rgba(60,40,20,0.12);
         display: flex; align-items: center; justify-content: center; }
         .ak-lock::before { content: ''; position: absolute; inset: 5%; border: 1px solid rgba(160,140,110,0.18); border-radius: 2px; pointer-events: none; }
         .ak-lock::after { content: ''; position: absolute; left: 50%; bottom: -2px; width: 14%; height: 5%; transform: translateX(-50%); border-radius: 50% 50% 0 0; background: rgba(120,100,80,0.12); }
         .ak-lada-logo { position: relative; width: 55%; height: auto; max-height: 72%; object-fit: contain; mix-blend-mode: multiply; }
         .ak-lock { overflow: hidden; }
         .ak-lock-bg { position: absolute; inset: 0; background: center / cover no-repeat; }
         .ak-lock.egen .ak-lada-logo { mix-blend-mode: normal; }
         .ak-lock.egen::before { border-color: rgba(255,255,255,0.25); }
         .ak-lock.mork .ak-lada-std { filter: grayscale(1) invert(1); mix-blend-mode: screen; opacity: 0.35; }
         .ak-lock.mork .ak-lada-ph { border-color: rgba(255,255,255,0.5); color: rgba(255,255,255,0.75); }
         .ak-lada-std, .ak-lada-ph { position: relative; }
         .ak-lada-std { width: 34%; opacity: 0.22; filter: grayscale(1); mix-blend-mode: multiply; }
         .ak-lada-ph, .ak-kort-ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 2.4 / 1; border: 1.5px dashed rgba(31,41,55,0.4); color: rgba(31,41,55,0.6);
           font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; }
           .ak-kort { position: absolute; right: 2%; bottom: 4%; width: 54%; aspect-ratio: 85.6 / 54; background: #fff; border-radius: 3.5% / 5.5%; transform: rotate(-6deg);
             box-shadow: 0 22px 36px -14px rgba(40,25,10,0.5), 0 3px 8px rgba(40,25,10,0.15); display: flex; flex-direction: column; overflow: hidden; container-type: inline-size;
             transition: all 0.35s ease; }
             .ak-kort-topp { height: 34%; display: flex; align-items: flex-end; justify-content: center; padding-top: 6%; }
             .ak-kort-logo { width: 40%; height: auto; max-height: 100%; object-fit: contain; }
             .ak-kort-std { width: 30%; opacity: 0.85; }
             .ak-kort-ph { height: 80%; aspect-ratio: auto; font-size: 3.2cqw; }
             .ak-halsning { flex: 1; margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2% 9%; line-height: 1.25; color: #1f2937;
               font-size: 1.2em; font-size: 5.2cqw; overflow: hidden; word-break: break-word; }
               .ak-halsning.tom { color: #b6b0a6 !important; font-style: italic; }
               .ak-kort-fot { display: flex; justify-content: space-between; align-items: center; gap: 4%; padding: 3.2% 6%; background: var(--kortfarg, #6b2527); color: #fff;
                 font-size: 3.1cqw; letter-spacing: 0.08em; text-transform: uppercase; }
                 .ak-kort-fot span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
                 .ak-kort-fot .kod { font-family: ui-monospace, Menlo, monospace; letter-spacing: 0.04em; flex-shrink: 0; opacity: 0.9; }
                 .f-klassisk { font-family: Georgia, 'Times New Roman', serif; }
                 .f-modern { font-family: 'Helvetica Neue', Arial, sans-serif; letter-spacing: 0.01em; }
                 .f-handskrift { font-family: 'Brush Script MT', 'Segoe Script', 'Snell Roundhand', 'Apple Chancery', cursive; }
                 .ak-scen [hidden] { display: none !important; }

                 /* Vyer: bara lådan / bara kortet förstorat */
                 .ak-scen[data-vy="lada"] .ak-lada { left: 11%; top: 4%; width: 78%; }
                 .ak-scen[data-vy="lada"] .ak-kort { opacity: 0; transform: rotate(-6deg) translateY(30%); pointer-events: none; }
                 .ak-scen[data-vy="kort"] .ak-lada { opacity: 0; transform: translateY(-10%); }
                 .ak-scen[data-vy="kort"] .ak-kort { right: 5%; bottom: 22%; width: 90%; transform: rotate(0); }

                 .ak-vy { display: flex; gap: 4px; margin-top: 18px; background: rgba(255,255,255,0.6); padding: 4px; border-radius: 999px; }
                 .ak-vy button { border: none; background: none; padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 13px; color: #4b5563; cursor: pointer; }
                 .ak-vy button[aria-pressed="true"] { background: #000; color: #fff; }
                 .ak-not { margin: 12px 0 0; font-size: 12px; color: #6b5f50; }

                 .ak-panel { position: relative; overflow-y: auto; padding: 32px 32px 0; display: flex; flex-direction: column; border-left: 1px solid #e5e7eb; }
                 .ak-panel h2 { font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 44px 6px 0; }
                 .ak-ingress { color: #6b7280; font-size: 14px; margin: 0 0 18px; }
                 .ak-sekt { padding: 16px 0; border-top: 1px solid #f0f0f0; display: flex; flex-direction: column; gap: 8px; }
                 .ak-sekt.av { opacity: 0.45; pointer-events: none; }
                 .ak-etikett { font-size: 14px; font-weight: 600; color: #1f2937; display: flex; justify-content: space-between; }
                 .ak-etikett span { font-weight: 400; color: #9ca3af; }
                 .ak-ladda { position: relative; display: flex; align-items: center; justify-content: center; min-height: 92px; padding: 14px; border: 1.5px dashed #c7c2b9; background: #faf8f5;
                   text-align: center; color: #4b5563; font-size: 14px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
                   .ak-ladda:hover, .ak-ladda.over { border-color: #000; background: #f3efe8; }
                   .ak-ladda input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
                   .ak-ladda small { color: #9ca3af; font-size: 12px; }
                   .ak-ladda[hidden], .ak-fil[hidden], .ak-info[hidden] { display: none; }
                   .ak-fil { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e5e7eb; }
                   .ak-fil .tumme { width: 52px; height: 52px; flex-shrink: 0; background: #faf8f5 center / contain no-repeat; border: 1px solid #eee; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #6b7280; }
                   .ak-fil .namn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
                   .ak-info { margin: 0; font-size: 13px; color: #6b7280; }
                   .ak-val { display: flex; gap: 18px; margin-bottom: 6px; }
                   .ak-val label { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; cursor: pointer; }
                   .ak-val input { width: 17px; height: 17px; accent-color: #000; margin: 0; }
                   .ak input[type=range] { width: 100%; accent-color: #000; }
                   .ak-panel textarea { width: 100%; border: 1px solid #d1d5db; padding: 10px 12px; font: inherit; font-size: 15px; resize: vertical; }
                   .ak-panel textarea:focus { outline: none; border-color: #000; box-shadow: 0 0 0 1px #000; }
                   .ak-rakna { align-self: flex-end; font-size: 12px; color: #9ca3af; margin-top: -4px; }
                   .ak-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
                   .ak-seg label { position: relative; cursor: pointer; }
                   .ak-seg input { position: absolute; opacity: 0; pointer-events: none; }
                   .ak-seg span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid #d1d5db; font-size: 15px; background: #fff; }
                   .ak-seg span i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
                   .ak-seg input:checked + span { border-color: #000; box-shadow: 0 0 0 1px #000; }
                   .ak-seg input:focus-visible + span { outline: 2px solid #000; outline-offset: 2px; }
                   .ak-fot { position: sticky; bottom: 0; z-index: 2; margin: auto -32px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 32px 24px; background: #fff; border-top: 1px solid #f0f0f0; }
                   .ak-fot .pd-fel { flex-basis: 100%; margin: 0; text-align: right; }
                   .ak-avbryt { background: none; border: 1px solid #d1d5db; padding: 10px 20px; font: inherit; font-size: 15px; cursor: pointer; }
                   .ak-avbryt:hover { border-color: #000; }
                   .ak-fot .ak-spara { width: auto; margin: 0; padding: 11px 26px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; }

                   @media (max-width: 860px) {
                     .ak { width: 100vw; height: 100dvh; max-width: none; max-height: none; }
                     .ak-ram { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
                     .ak-forhands { padding: 16px 16px 10px; }
                     .ak-scen { width: min(100%, 360px, 38dvh); }
                     .ak-vy { margin-top: 8px; }
                     .ak-vy button { padding: 5px 11px; font-size: 12px; }
                     .ak-not { display: none; }
                     .ak-panel { border-left: none; padding: 18px 18px 0; }
                     .ak-panel h2 { font-size: 18px; }
                     .ak-ingress { display: none; }
                     .ak-fot { margin: auto -18px 0; padding: 14px 18px 16px; }
                   }

                   /* Lådans bakgrund */
                   .ak-farger { display: flex; flex-wrap: wrap; gap: 6px; }
                   .ak-farger label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 6px 4px; min-width: 58px; border: 1px solid #e5e7eb; cursor: pointer; font-size: 12px; color: #4b5563; }
                   .ak-farger input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
                   .ak-farger i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); display: block; }
                   .ak-farger label:has(input[type=radio]:checked) { border-color: #000; box-shadow: 0 0 0 1px #000; color: #000; }
                   .ak-farger label:has(input[type=radio]:focus-visible) { outline: 2px solid #000; outline-offset: 2px; }
                   .ak-farger .egen input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
                   .ak-ladda.liten { min-height: 64px; padding: 10px; font-size: 13px; }

                   /* Egen logga på kortet + varningar för logga som inte syns */
                   .ak-kortlogo[hidden], .ak-lagg-kortlogo[hidden], .ak-varning[hidden] { display: none; }
                   .ak-kortlogo { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
                   .ak-lagg-kortlogo { position: relative; align-self: flex-start; font-size: 14px; color: #2563eb; text-decoration: underline; cursor: pointer; }
                   .ak-lagg-kortlogo span { color: #6b7280; text-decoration: none; }
                   .ak-lagg-kortlogo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
                   .ak-fil .namn small { color: #6b7280; font-size: 12px; }
                   .ak-varning { margin: 0; padding: 9px 12px 9px 34px; background: #fff7e6 no-repeat 10px 10px; border: 1px solid #f5d48f; color: #7a4b00; font-size: 13px; line-height: 1.45; position: relative; }
                   .ak-varning::before { content: '!'; position: absolute; left: 11px; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: #d97706; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
