/* TDW Gavekort — premium landing page */

.tdw-gavekort {
    --tdw-blue:        #11519b;
    --tdw-blue-dark:   #0d4280;
    --tdw-blue-light:  #1d6cc7;
    --tdw-blue-bg:     #eaf1fa;
    --tdw-gold:        #c8a35d;
    --tdw-ink:         #0e1320;
    --tdw-muted:       #5d6373;
    --tdw-line:        #e6e9ee;
    background:#fff;
    color:var(--tdw-ink);
}
.tdw-gavekort *,
.tdw-gavekort *::before,
.tdw-gavekort *::after { box-sizing:border-box; }

/* ─── HERO ─────────────────────────────────────────────────────── */
.tdw-gc-hero {
    position:relative;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(29,108,199,.18), transparent 60%),
        radial-gradient(900px 500px at 0% 110%,   rgba(13,66,128,.18), transparent 60%),
        linear-gradient(180deg, #0a1d36 0%, #0d2a4d 60%, #11519b 100%);
    color:#fff;
    overflow:hidden;
    padding:72px 24px 96px;
}
.tdw-gc-hero::before {
    content:"";
    position:absolute; inset:0;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px);
    pointer-events:none;
}
.tdw-gc-hero-inner {
    max-width:1200px; margin:0 auto;
    display:grid; grid-template-columns:1fr 1fr; gap:64px;
    align-items:center;
    position:relative;
}
.tdw-gc-eyebrow {
    font-size:11px; letter-spacing:2px; text-transform:uppercase;
    color:rgba(255,255,255,.7); font-weight:600;
    margin-bottom:20px;
}
.tdw-gc-title {
    font-size:clamp(34px, 5vw, 56px);
    line-height:1.05;
    margin:0 0 22px;
    font-weight:700;
    color:#fff;
    letter-spacing:-0.5px;
}
.tdw-gc-subtitle {
    font-size:17px; line-height:1.6;
    color:rgba(255,255,255,.85);
    max-width:520px; margin:0 0 32px;
}
.tdw-gc-hero-cta { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.tdw-gc-btn-primary {
    display:inline-block; padding:14px 32px;
    background:#fff; color:var(--tdw-blue);
    border-radius:8px; font-weight:700; font-size:15px;
    text-decoration:none;
    transition:transform .15s ease, box-shadow .15s ease;
    box-shadow:0 8px 24px rgba(0,0,0,.18);
}
.tdw-gc-btn-primary:hover { transform:translateY(-2px); box-shadow:0 12px 32px rgba(0,0,0,.25); color:var(--tdw-blue-dark); }
.tdw-gc-from { font-size:14px; color:rgba(255,255,255,.85); }
.tdw-gc-from strong,
.tdw-gc-from strong * { color:#fff !important; font-weight:700; }
.tdw-gc-from .woocommerce-Price-amount,
.tdw-gc-from .woocommerce-Price-amount *,
.tdw-gc-from bdi,
.tdw-gc-from .woocommerce-Price-currencySymbol { color:#fff !important; }

/* Gift card mockup */
.tdw-gc-hero-card { display:flex; justify-content:center; align-items:center; }
.tdw-gc-card-mockup {
    width:100%; max-width:440px;
    aspect-ratio:1.6/1;
    border-radius:18px;
    overflow:hidden;
    position:relative;
    transform:perspective(1200px) rotateY(-8deg) rotateX(4deg);
    box-shadow:
        0 30px 60px -12px rgba(0,0,0,.55),
        0 0 0 1px rgba(255,255,255,.08) inset;
    transition:transform .4s ease;
}
.tdw-gc-card-mockup:hover { transform:perspective(1200px) rotateY(-4deg) rotateX(2deg); }
.tdw-gc-card-mockup img { width:100%; height:100%; object-fit:cover; display:block; }
.tdw-gc-card-fallback {
    width:100%; height:100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.08), transparent 50%),
        linear-gradient(135deg, #1a3a6b 0%, #11519b 50%, #0d4280 100%);
    display:flex; flex-direction:column; justify-content:space-between;
    padding:32px;
    position:relative;
}
.tdw-gc-card-brand {
    color:rgba(255,255,255,.85); font-size:11px; letter-spacing:3px; font-weight:700;
}
.tdw-gc-card-label {
    color:#fff; font-size:42px; font-weight:700; letter-spacing:-1px;
}
.tdw-gc-card-shine {
    position:absolute; top:0; left:-50%; width:50%; height:100%;
    background:linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transform:skewX(-20deg);
    animation:tdw-gc-shine 4s infinite;
}
@keyframes tdw-gc-shine {
    0%   { left:-50%; }
    50%  { left:120%; }
    100% { left:120%; }
}

/* ─── BENEFITS ─────────────────────────────────────────────────── */
.tdw-gc-benefits {
    background:#fff;
    border-bottom:1px solid var(--tdw-line);
    padding:48px 24px;
}
.tdw-gc-benefits-inner {
    max-width:1200px; margin:0 auto;
    display:grid; grid-template-columns:repeat(4, 1fr); gap:28px;
}
.tdw-gc-benefit {
    display:flex; gap:14px; align-items:flex-start;
}
.tdw-gc-benefit-icon {
    flex-shrink:0;
    width:48px; height:48px; border-radius:10px;
    background:var(--tdw-blue-bg); color:var(--tdw-blue);
    display:flex; align-items:center; justify-content:center;
}
.tdw-gc-benefit h3 {
    margin:0 0 4px; font-size:14px; font-weight:700; color:var(--tdw-ink);
}
.tdw-gc-benefit p {
    margin:0; font-size:13px; line-height:1.5; color:var(--tdw-muted);
}

/* ─── FORM SECTION ─────────────────────────────────────────────── */
.tdw-gc-form-section {
    background:linear-gradient(180deg, #f7f9fc 0%, #fff 100%);
    padding:72px 24px 80px;
}
.tdw-gc-form-inner {
    max-width:920px; margin:0 auto;
}
.tdw-gc-form-header { text-align:center; margin-bottom:40px; }
.tdw-gc-form-header h2 {
    font-size:clamp(26px, 3.5vw, 38px);
    margin:0 0 10px; font-weight:700; color:var(--tdw-ink);
    letter-spacing:-0.3px;
    position:relative; display:inline-block; padding-bottom:10px;
}
.tdw-gc-form-header h2::after {
    content:""; position:absolute; left:50%; bottom:0;
    width:60px; height:3px; background:var(--tdw-blue);
    border-radius:2px; transform:translateX(-50%);
}
.tdw-gc-form-header p { margin:0; color:var(--tdw-muted); font-size:16px; }

.tdw-gc-form-wrap {
    background:#fff;
    border:1px solid var(--tdw-line);
    border-radius:14px;
    padding:32px;
    box-shadow:0 12px 40px rgba(14, 19, 32, .06);
}

/* Style YITH form internals to match brand */
.tdw-gc-form-wrap .gift-cards_form { margin:0; }
.tdw-gc-form-wrap h3,
.tdw-gc-form-wrap .ywgc_choose_design_title {
    font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:1px;
    color:var(--tdw-ink); margin:0 0 14px;
}
.tdw-gc-form-wrap label {
    font-size:13px; font-weight:600; color:var(--tdw-ink);
    display:block; margin-bottom:6px;
}
.tdw-gc-form-wrap input[type="text"],
.tdw-gc-form-wrap input[type="email"],
.tdw-gc-form-wrap input[type="number"],
.tdw-gc-form-wrap input[type="date"],
.tdw-gc-form-wrap textarea,
.tdw-gc-form-wrap select {
    width:100%;
    padding:12px 14px;
    background:#fff;
    border:1.5px solid var(--tdw-line);
    border-radius:8px;
    font-size:14px;
    font-family:inherit;
    color:var(--tdw-ink);
    transition:border-color .15s ease, box-shadow .15s ease;
}
.tdw-gc-form-wrap input:focus,
.tdw-gc-form-wrap textarea:focus,
.tdw-gc-form-wrap select:focus {
    outline:none;
    border-color:var(--tdw-blue);
    box-shadow:0 0 0 3px rgba(17,81,155,.12);
}
.tdw-gc-form-wrap textarea { min-height:90px; resize:vertical; }

/* Amount selector buttons */
/* Hide the hidden inputs that YITH duplicates next to each button */
.tdw-gc-form-wrap input.ywgc-predefined-amount-button[type="hidden"] { display:none !important; }

/* Layout the amount buttons in a flex row */
.tdw-gc-form-wrap .ywgc-predefined-amount-buttons-container,
.tdw-gc-form-wrap .gift-card-amounts,
.tdw-gc-form-wrap .step-amount-options {
    display:flex; flex-wrap:wrap; gap:10px;
    margin:0 0 14px;
}

/* The actual clickable amount buttons */
.tdw-gc-form-wrap button.ywgc-predefined-amount-button,
.tdw-gc-form-wrap .ywgc-predefined-amount-button:not([type="hidden"]) {
    display:inline-flex; align-items:center; justify-content:center;
    min-width:110px; padding:12px 22px;
    background:#fff;
    border:1.5px solid var(--tdw-line);
    border-radius:10px;
    font-weight:700; font-size:15px;
    color:var(--tdw-ink);
    cursor:pointer;
    font-family:inherit;
    transition:all .15s ease;
    line-height:1;
}
.tdw-gc-form-wrap button.ywgc-predefined-amount-button:hover {
    border-color:var(--tdw-blue-light);
    color:var(--tdw-blue);
    background:var(--tdw-blue-bg);
}
.tdw-gc-form-wrap button.ywgc-predefined-amount-button.selected_button,
.tdw-gc-form-wrap button.ywgc-predefined-amount-button.selected_button * {
    background:var(--tdw-blue) !important;
    color:#fff !important;
    border-color:var(--tdw-blue) !important;
}
.tdw-gc-form-wrap button.ywgc-predefined-amount-button.selected_button {
    box-shadow:0 4px 12px rgba(17,81,155,.25);
}
.tdw-gc-form-wrap button.ywgc-predefined-amount-button.selected_button .woocommerce-Price-amount,
.tdw-gc-form-wrap button.ywgc-predefined-amount-button.selected_button bdi,
.tdw-gc-form-wrap button.ywgc-predefined-amount-button.selected_button .woocommerce-Price-currencySymbol {
    background:transparent !important;
    color:#fff !important;
}

/* Manual amount input — make it tighter and inline-feeling */
.tdw-gc-form-wrap .ywgc-manual-amount-container,
.tdw-gc-form-wrap .ywgc_manual_amount_container {
    display:inline-flex; align-items:center; gap:8px;
    margin-top:6px;
}
.tdw-gc-form-wrap input.ywgc-manual-amount-input,
.tdw-gc-form-wrap input[name="ywgc_manual_amount"] {
    max-width:200px;
}
.tdw-gc-form-wrap .ywgc-manual-currency-symbol {
    color:var(--tdw-muted); font-weight:600;
}

/* Add-to-cart button */
.tdw-gc-form-wrap button[type="submit"],
.tdw-gc-form-wrap .single_add_to_cart_button,
.tdw-gc-form-wrap input.single_add_to_cart_button {
    display:block; width:100%;
    padding:16px 24px;
    background:var(--tdw-blue);
    color:#fff; border:none; border-radius:10px;
    font-size:16px; font-weight:700;
    letter-spacing:.3px;
    cursor:pointer;
    transition:background .15s ease, transform .15s ease;
    margin-top:18px;
    text-transform:none;
}
.tdw-gc-form-wrap button[type="submit"]:hover,
.tdw-gc-form-wrap .single_add_to_cart_button:hover {
    background:var(--tdw-blue-dark);
    transform:translateY(-1px);
}

/* YITH preview area */
.tdw-gc-form-wrap .ywgc-choose-design-preview,
.tdw-gc-form-wrap .gift-card-content-editor {
    background:#fafbfd;
    border:1px solid var(--tdw-line);
    border-radius:10px;
    padding:18px;
    margin-bottom:18px;
}

/* Step containers */
.tdw-gc-form-wrap .step-appearance,
.tdw-gc-form-wrap .step-recipient,
.tdw-gc-form-wrap .step-amount,
.tdw-gc-form-wrap .step-message,
.tdw-gc-form-wrap .step-delivery {
    margin-bottom:24px;
    padding-bottom:24px;
    border-bottom:1px solid var(--tdw-line);
}
.tdw-gc-form-wrap .step-appearance:last-child,
.tdw-gc-form-wrap > *:last-child { border-bottom:none; padding-bottom:0; }

/* ─── FAQ ──────────────────────────────────────────────────────── */
.tdw-gc-faq {
    padding:64px 24px 96px;
    background:#fff;
}
.tdw-gc-faq-inner { max-width:780px; margin:0 auto; }
.tdw-gc-faq h2 {
    text-align:center;
    font-size:clamp(24px, 3vw, 32px);
    margin:0 0 32px; font-weight:700;
    color:var(--tdw-ink); letter-spacing:-0.3px;
}
.tdw-gc-faq-item {
    border:1px solid var(--tdw-line);
    border-radius:10px;
    margin-bottom:10px;
    overflow:hidden;
    background:#fff;
    transition:border-color .15s ease, box-shadow .15s ease;
}
.tdw-gc-faq-item[open] { border-color:var(--tdw-blue-light); box-shadow:0 4px 16px rgba(17,81,155,.08); }
.tdw-gc-faq-item summary {
    list-style:none;
    padding:18px 22px;
    font-weight:600; font-size:15px;
    color:var(--tdw-ink);
    cursor:pointer;
    display:flex; align-items:center; justify-content:space-between;
    user-select:none;
}
.tdw-gc-faq-item summary::-webkit-details-marker { display:none; }
.tdw-gc-faq-item summary::after {
    content:""; width:10px; height:10px;
    border-right:2px solid var(--tdw-muted);
    border-bottom:2px solid var(--tdw-muted);
    transform:rotate(45deg);
    margin-right:6px;
    transition:transform .2s ease, border-color .2s ease;
}
.tdw-gc-faq-item[open] summary::after { transform:rotate(-135deg); border-color:var(--tdw-blue); }
.tdw-gc-faq-item p {
    margin:0; padding:0 22px 18px;
    color:var(--tdw-muted); font-size:14px; line-height:1.65;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width:1024px) {
    .tdw-gc-benefits-inner { grid-template-columns:repeat(2, 1fr); gap:24px; }
}
@media (max-width:768px) {
    .tdw-gc-hero { padding:48px 18px 64px; }
    .tdw-gc-hero-inner { grid-template-columns:1fr; gap:36px; }
    .tdw-gc-hero-card { order:-1; }
    .tdw-gc-card-mockup { transform:none; max-width:340px; }
    .tdw-gc-card-mockup:hover { transform:none; }
    .tdw-gc-form-section { padding:48px 16px 56px; }
    .tdw-gc-form-wrap { padding:20px; border-radius:12px; }
    .tdw-gc-faq { padding:48px 16px 64px; }
}
@media (max-width:480px) {
    .tdw-gc-benefits { padding:36px 18px; }
    .tdw-gc-benefits-inner { grid-template-columns:1fr; gap:18px; }
}


/* ─── QTY input visibility (Flatsome's ux-quantity) ────────────── */
.tdw-gc-form-wrap .ux-quantity {
    display:inline-flex; align-items:center;
    border:1.5px solid var(--tdw-line);
    border-radius:8px;
    overflow:hidden;
    background:#fff;
}
.tdw-gc-form-wrap .ux-quantity input[type="number"],
.tdw-gc-form-wrap .ux-quantity .qty,
.tdw-gc-form-wrap input.qty {
    width:54px !important;
    height:42px;
    padding:0 6px !important;
    border:none !important;
    border-radius:0 !important;
    text-align:center;
    font-size:15px !important;
    font-weight:600;
    color:var(--tdw-ink) !important;
    background:#fff !important;
    box-shadow:none !important;
    -moz-appearance:textfield;
}
.tdw-gc-form-wrap .ux-quantity input[type="number"]::-webkit-outer-spin-button,
.tdw-gc-form-wrap .ux-quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance:none; margin:0;
}
.tdw-gc-form-wrap .ux-quantity__button {
    width:42px; height:42px;
    background:#fafbfd !important;
    border:none !important;
    color:var(--tdw-ink) !important;
    font-weight:700; font-size:18px;
    cursor:pointer;
    line-height:1;
    transition:background .12s ease;
}
.tdw-gc-form-wrap .ux-quantity__button:hover { background:var(--tdw-blue-bg) !important; color:var(--tdw-blue) !important; }

/* ─── Manual amount input — ensure it's typeable (input is nested in <button>) ──── */
.tdw-gc-form-wrap button.ywgc-manual-amount-container {
    /* This is YITH's <button> wrapper around the manual-amount input.
       Keep it visually consistent with the predefined buttons but make sure
       the input INSIDE it is clickable + typeable. */
    padding:0 !important;
    overflow:visible;
    background:#fff !important;
    border:1.5px solid var(--tdw-line) !important;
}
.tdw-gc-form-wrap button.ywgc-manual-amount-container.selected_button {
    border-color:var(--tdw-blue) !important;
    box-shadow:0 4px 12px rgba(17,81,155,.2);
}
.tdw-gc-form-wrap #ywgc-manual-amount-div-wrapper {
    display:flex; align-items:center; gap:6px;
    padding:0 14px;
    width:100%; height:100%;
    min-height:44px;
}
.tdw-gc-form-wrap input#ywgc-manual-amount,
.tdw-gc-form-wrap input.ywgc-manual-amount {
    flex:1;
    border:none !important;
    background:transparent !important;
    padding:8px 0 !important;
    font-size:15px !important;
    font-weight:600 !important;
    color:var(--tdw-ink) !important;
    outline:none !important;
    box-shadow:none !important;
    min-width:140px;
}
.tdw-gc-form-wrap input#ywgc-manual-amount::placeholder {
    color:var(--tdw-muted); font-weight:400;
}

/* Hide YITH's currency symbols when not relevant */
.tdw-gc-form-wrap .ywgc-manual-currency-symbol.ywgc-hidden { display:none; }
.tdw-gc-form-wrap .ywgc-manual-currency-symbol {
    color:var(--tdw-muted); font-weight:600; font-size:14px;
}

/* Fix kr. suffix alignment in manual amount input */
.tdw-gc-form-wrap .ywgc-manual-currency-symbol {
    display:inline-flex;
    align-items:center;
    height:auto;
    padding:0 4px;
    background:transparent !important;
    color:var(--tdw-muted) !important;
    font-weight:600;
    font-size:14px;
    text-transform:lowercase;
    line-height:1;
}
.tdw-gc-form-wrap .ywgc-manual-currency-symbol.right { margin-left:4px; }
.tdw-gc-form-wrap .ywgc-manual-currency-symbol.left { margin-right:4px; }


/* ─── Manual amount error message ─────────────────────────────── */
.tdw-gc-form-wrap .ywgc-manual-amount-error {
    display:flex; align-items:center; gap:8px;
    margin:8px 0 0;
    padding:10px 14px;
    background:#fef3f2;
    border:1px solid #fda4a0;
    border-radius:8px;
    color:#b42318;
    font-size:13px;
    font-weight:500;
    line-height:1.4;
}
.tdw-gc-form-wrap .ywgc-manual-amount-error::before {
    content:""; flex-shrink:0;
    width:16px; height:16px;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b42318' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>");
    background-repeat:no-repeat;
    background-size:contain;
}


/* ─── Delivery date input + datepicker popup ──────────────────── */
.tdw-gc-form-wrap input.datepicker,
.tdw-gc-form-wrap input#ywgc-delivery-date {
    width:100%;
    padding:12px 14px;
    background:#fff;
    border:1.5px solid var(--tdw-line);
    border-radius:8px;
    font-size:14px;
    font-family:inherit;
    color:var(--tdw-ink);
    cursor:pointer;
    transition:border-color .15s ease, box-shadow .15s ease;
}
.tdw-gc-form-wrap input.datepicker:focus,
.tdw-gc-form-wrap input#ywgc-delivery-date:focus {
    outline:none;
    border-color:var(--tdw-blue);
    box-shadow:0 0 0 3px rgba(17,81,155,.12);
}
.tdw-gc-form-wrap .ywgc-postdated label {
    margin-bottom:6px;
}

/* jQuery UI datepicker popup styling */
#ui-datepicker-div.ywgc-date-picker {
    background:#fff !important;
    border:1px solid var(--tdw-line) !important;
    border-radius:10px !important;
    box-shadow:0 12px 40px rgba(14,19,32,.14) !important;
    padding:12px !important;
    font-family:inherit !important;
    font-size:13px !important;
}
#ui-datepicker-div.ywgc-date-picker .ui-datepicker-header {
    background:transparent !important;
    border:none !important;
    color:var(--tdw-ink) !important;
    padding:6px 0 !important;
    font-weight:700 !important;
}
#ui-datepicker-div.ywgc-date-picker .ui-datepicker-prev,
#ui-datepicker-div.ywgc-date-picker .ui-datepicker-next {
    cursor:pointer !important;
    color:var(--tdw-blue) !important;
}
#ui-datepicker-div.ywgc-date-picker .ui-datepicker-calendar th {
    color:var(--tdw-muted) !important;
    font-weight:600 !important;
    padding:6px 4px !important;
}
#ui-datepicker-div.ywgc-date-picker .ui-datepicker-calendar td a {
    background:transparent !important;
    border:none !important;
    color:var(--tdw-ink) !important;
    text-align:center !important;
    padding:8px 4px !important;
    border-radius:6px !important;
    transition:background .12s ease !important;
}
#ui-datepicker-div.ywgc-date-picker .ui-datepicker-calendar td a:hover {
    background:var(--tdw-blue-bg) !important;
    color:var(--tdw-blue) !important;
}
#ui-datepicker-div.ywgc-date-picker .ui-datepicker-calendar td a.ui-state-active,
#ui-datepicker-div.ywgc-date-picker .ui-datepicker-calendar td a.ui-state-highlight {
    background:var(--tdw-blue) !important;
    color:#fff !important;
}

/* ─── Design picker ─────────────────────────────────────────── */
/* Higher specificity to beat YITH's .gift-card-content-editor.step-appearance rules */
.tdw-gc-form-wrap .ywgc-choose-design-preview {
    background:#fafbfd;
    border:1px solid var(--tdw-line);
    border-radius:12px;
    padding:18px !important;
    width:100%;
}
.tdw-gc-form-wrap .gift-card-content-editor.step-appearance .ywgc-design-list { display:block !important; width:100%; }
.tdw-gc-form-wrap .gift-card-content-editor.step-appearance .ywgc-design-list ul {
    display:grid !important;
    grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap:12px !important;
    list-style:none !important;
    margin:0 !important; padding:0 !important;
    font-size:14px !important; /* override font-size:0 trick */
}
.tdw-gc-form-wrap .gift-card-content-editor.step-appearance .ywgc-design-list ul li {
    margin:0 !important; padding:0 !important;
    list-style:none !important;
    display:block !important;
    width:100% !important;
}
.tdw-gc-form-wrap .ywgc-preset-image {
    position:relative;
    aspect-ratio:3/2;
    width:100% !important;
    height:auto !important;
    border:2px solid var(--tdw-line);
    border-radius:10px;
    overflow:hidden;
    background:#fff;
    cursor:pointer;
    transition:all .15s ease;
    display:flex !important;
    align-items:center;
    justify-content:center;
    padding:0 !important;
    margin:0 !important;
}
.tdw-gc-form-wrap .ywgc-preset-image:hover {
    border-color:var(--tdw-blue-light);
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(17,81,155,.10);
}
.tdw-gc-form-wrap .ywgc-preset-image.selected_image_parent,
.tdw-gc-form-wrap li.selected .ywgc-preset-image {
    border-color:var(--tdw-blue);
    box-shadow:0 0 0 3px rgba(17,81,155,.18);
}
.tdw-gc-form-wrap .ywgc-preset-image img {
    width:100% !important; height:100% !important;
    object-fit:cover !important; display:block !important;
    max-width:none !important;
}

/* "Upload eget billede"-kort — override YITH's drag-drop chrome */
.tdw-gc-form-wrap li.upload-image-li .ywgc-preset-image.ywgc-custom-picture {
    background:linear-gradient(135deg, #fafbfd, #f0f4fa) !important;
    border:2px dashed var(--tdw-blue-light) !important;
    flex-direction:column;
    gap:6px;
}
.tdw-gc-form-wrap li.upload-image-li .ywgc-preset-image.ywgc-custom-picture::before {
    content:"+";
    font-size:32px; font-weight:300; color:var(--tdw-blue);
    line-height:1;
}
.tdw-gc-form-wrap li.upload-image-li .ywgc-preset-image.ywgc-custom-picture::after {
    content:"Upload eget";
    font-size:11px; font-weight:600; color:var(--tdw-blue);
    letter-spacing:.5px; text-transform:uppercase;
}
/* Hide YITH's internal drag-drop UI inside our compact upload card */
.tdw-gc-form-wrap li.upload-image-li .ywgc_upload_plus_icon,
.tdw-gc-form-wrap li.upload-image-li .yith-plugin-fw-file__message,
.tdw-gc-form-wrap li.upload-image-li .yith-ywgc-drag-drop-icon-modal,
.tdw-gc-form-wrap li.upload-image-li .yith-plugin-fw-file__suggested_size,
.tdw-gc-form-wrap li.upload-image-li .ywgc-custom-upload-label { display:none !important; }
/* Make file input cover the whole card */
.tdw-gc-form-wrap li.upload-image-li input[type="file"] {
    position:absolute !important;
    inset:0 !important;
    opacity:0 !important;
    cursor:pointer !important;
    width:100% !important;
    height:100% !important;
    z-index:2;
}

/* Hide the empty default-image-li that YITH always renders */
.tdw-gc-form-wrap li.default-image-li { display:none !important; }

/* "VIS ALLE"-knap som et kort der matcher resten */
.tdw-gc-form-wrap .ywgc-preset-image.ywgc-preset-image-view-all {
    background:linear-gradient(135deg, var(--tdw-blue), var(--tdw-blue-light)) !important;
    border:none !important;
    cursor:pointer;
}
.tdw-gc-form-wrap .ywgc-preset-image.ywgc-preset-image-view-all input[type="button"] {
    background:transparent !important;
    border:none !important;
    color:#fff !important;
    font-size:13px !important; font-weight:700 !important;
    letter-spacing:1.5px !important;
    cursor:pointer !important;
    width:100%; height:100%;
    padding:0 !important;
}
.tdw-gc-form-wrap .ywgc-preset-image.ywgc-preset-image-view-all:hover {
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(17,81,155,.25);
}


/* ─── Design preview lightbox (hover icon → click to enlarge) ─ */
.tdw-gc-form-wrap .ywgc-preset-image:not(.ywgc-custom-picture) {
    position:relative;
}
.tdw-gc-form-wrap .ywgc-preset-image:not(.ywgc-custom-picture)::after {
    content:"";
    position:absolute;
    top:8px; right:8px;
    width:32px; height:32px;
    border-radius:50%;
    background:rgba(255,255,255,.92) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2311519b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/><line x1='11' y1='8' x2='11' y2='14'/><line x1='8' y1='11' x2='14' y2='11'/></svg>") no-repeat center / 18px;
    opacity:0; pointer-events:none;
    transition:opacity .15s ease, transform .15s ease;
    transform:scale(0.8);
    box-shadow:0 4px 12px rgba(0,0,0,.18);
    z-index:3;
}
.tdw-gc-form-wrap .ywgc-preset-image:not(.ywgc-custom-picture):hover::after {
    opacity:1; pointer-events:auto; transform:scale(1);
    cursor:zoom-in;
}

/* The lightbox itself (created by JS) */
.tdw-gc-lightbox {
    position:fixed; inset:0;
    background:rgba(8, 16, 30, .88);
    z-index:99999;
    display:flex; align-items:center; justify-content:center;
    padding:40px;
    opacity:0; visibility:hidden;
    transition:opacity .2s ease, visibility .2s;
    backdrop-filter:blur(6px);
}
.tdw-gc-lightbox.is-open { opacity:1; visibility:visible; }
.tdw-gc-lightbox img {
    max-width:100%;
    max-height:100%;
    width:auto;
    border-radius:14px;
    box-shadow:0 30px 80px rgba(0,0,0,.5);
}
.tdw-gc-lightbox-close {
    position:absolute; top:24px; right:24px;
    width:48px; height:48px;
    background:rgba(255,255,255,.1);
    border:1px solid rgba(255,255,255,.2);
    border-radius:50%;
    color:#fff; font-size:24px; line-height:1;
    cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    transition:background .15s ease;
}
.tdw-gc-lightbox-close:hover { background:rgba(255,255,255,.2); }

/* ─── Design picker title + subtitle ──────────────────────────── */
.tdw-gc-form-wrap .ywgc_choose_design_title {
    font-size:13px !important;
    font-weight:700 !important;
    text-transform:uppercase !important;
    letter-spacing:1.5px !important;
    color:var(--tdw-ink) !important;
    margin:0 0 4px !important;
    text-align:center;
}
.tdw-gc-form-wrap .tdw-gc-design-subtitle {
    margin:0 0 16px !important;
    font-size:13px;
    color:var(--tdw-muted);
    text-align:center;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    flex-wrap:wrap;
}
.tdw-gc-form-wrap .tdw-gc-zoom-icon {
    display:inline-flex;
    width:18px; height:18px;
    background:var(--tdw-blue-bg);
    border-radius:50%;
    align-items:center; justify-content:center;
    flex-shrink:0;
}
.tdw-gc-form-wrap .tdw-gc-zoom-icon::before {
    content:"";
    width:10px; height:10px;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2311519b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/><line x1='11' y1='8' x2='11' y2='14'/><line x1='8' y1='11' x2='14' y2='11'/></svg>");
    background-size:contain;
    background-repeat:no-repeat;
}

/* ─── FORCE title + subtitle synlige (override inline display:none) ─ */
.tdw-gc-form-wrap h3.ywgc_choose_design_title { display:block !important; }
.tdw-gc-form-wrap p.tdw-gc-design-subtitle { display:flex !important; }

/* ─── Responsivt grid ned til 320px viewport ─────────────────────── */
@media (max-width: 600px) {
    .tdw-gc-form-wrap .gift-card-content-editor.step-appearance .ywgc-design-list ul {
        grid-template-columns:repeat(2, 1fr) !important;
        gap:10px !important;
    }
    .tdw-gc-form-wrap .ywgc_choose_design_title { font-size:12px !important; }
    .tdw-gc-form-wrap .tdw-gc-design-subtitle { font-size:12px; }
}
@media (max-width: 380px) {
    .tdw-gc-form-wrap .gift-card-content-editor.step-appearance .ywgc-design-list ul {
        grid-template-columns:1fr !important;
        gap:10px !important;
    }
}

/* Sørg for at zoom-ikon på kortet selv er stort nok at tappe på mobil */
@media (max-width: 600px) {
    .tdw-gc-form-wrap .ywgc-preset-image:not(.ywgc-custom-picture)::after {
        opacity:1 !important; pointer-events:auto !important;
        transform:scale(1) !important;
        width:28px; height:28px;
        background-size:14px;
        top:6px; right:6px;
    }
}

/* Form-wrap padding på mobil */
@media (max-width: 480px) {
    .tdw-gc-form-wrap { padding:18px !important; }
    .tdw-gc-form-wrap .ywgc-choose-design-preview { padding:12px !important; }
}

/* ─── WC notice som modal (gavekort-koden anvendt) ───────────────── */
.tdw-gc-applied-modal {
    position:fixed; inset:0;
    background:rgba(8, 16, 30, .65);
    z-index:99998;
    display:none;
    align-items:center; justify-content:center;
    padding:20px;
    backdrop-filter:blur(8px);
    opacity:0;
    transition:opacity .25s ease;
}
.tdw-gc-applied-modal.is-open { display:flex; opacity:1; }
.tdw-gc-applied-modal-card {
    background:#fff;
    border-radius:18px;
    box-shadow:0 30px 80px rgba(0,0,0,.3);
    max-width:440px;
    width:100%;
    padding:36px 32px 28px;
    text-align:center;
    position:relative;
    transform:scale(.95);
    transition:transform .25s ease;
}
.tdw-gc-applied-modal.is-open .tdw-gc-applied-modal-card { transform:scale(1); }
.tdw-gc-applied-modal-icon {
    width:64px; height:64px;
    margin:0 auto 16px;
    background:linear-gradient(135deg, #11519b, #1d6cc7);
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 8px 24px rgba(17,81,155,.3);
}
.tdw-gc-applied-modal-icon::before {
    content:"";
    width:30px; height:30px;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-size:contain; background-repeat:no-repeat;
}
.tdw-gc-applied-modal h3 {
    font-size:22px !important;
    font-weight:700;
    color:#11519b !important;
    margin:0 0 10px !important;
    letter-spacing:-0.3px;
}
.tdw-gc-applied-modal p {
    font-size:15px;
    color:#5d6373;
    line-height:1.55;
    margin:0 0 24px !important;
}
.tdw-gc-applied-modal-amount {
    display:inline-block;
    background:linear-gradient(135deg, #f0f4fa, #eaf1fa);
    border:2px dashed #11519b;
    border-radius:10px;
    padding:12px 24px;
    margin:0 auto 24px;
    font-size:24px;
    font-weight:800;
    color:#11519b;
    letter-spacing:1px;
}
.tdw-gc-applied-modal-btn {
    display:inline-block;
    background:#11519b;
    color:#fff !important;
    text-decoration:none;
    padding:14px 36px;
    border-radius:10px;
    font-size:15px;
    font-weight:700;
    border:none;
    cursor:pointer;
    transition:background .15s ease, transform .15s ease;
    box-shadow:0 4px 14px rgba(17,81,155,.25);
}
.tdw-gc-applied-modal-btn:hover { background:#0d4280; transform:translateY(-1px); }
.tdw-gc-applied-modal-close {
    position:absolute; top:14px; right:14px;
    width:32px; height:32px;
    background:transparent;
    border:none;
    color:#999;
    font-size:24px; line-height:1;
    cursor:pointer;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    transition:background .15s ease;
}
.tdw-gc-applied-modal-close:hover { background:#f0f0f0; color:#333; }

/* ─── Balance CTA-bånd ─────────────────────────────────────────── */
.tdw-gc-balance-cta {
    padding:0 24px;
    margin:48px auto;
    max-width:920px;
}
.tdw-gc-balance-cta-inner {
    background:linear-gradient(135deg, #11519b 0%, #1d6cc7 100%);
    border-radius:18px;
    padding:32px 36px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    flex-wrap:wrap;
    box-shadow:0 12px 32px rgba(17,81,155,.18);
    color:#fff;
}
.tdw-gc-balance-cta-text { flex:1 1 320px; }
.tdw-gc-balance-cta-text h2 {
    font-size:24px !important;
    color:#fff !important;
    margin:0 0 6px !important;
    font-weight:700;
    letter-spacing:-0.3px;
}
.tdw-gc-balance-cta-text p {
    font-size:15px;
    color:rgba(255,255,255,.85);
    margin:0;
    line-height:1.5;
}
.tdw-gc-balance-trigger {
    background:#fff;
    color:#11519b !important;
    border:none;
    padding:14px 28px;
    border-radius:10px;
    font-size:15px;
    font-weight:700;
    letter-spacing:0.2px;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    gap:10px;
    transition:transform .15s ease, box-shadow .15s ease;
    box-shadow:0 4px 14px rgba(0,0,0,.12);
    flex-shrink:0;
}
.tdw-gc-balance-trigger:hover { transform:translateY(-1px); box-shadow:0 6px 18px rgba(0,0,0,.18); }
.tdw-gc-balance-trigger-icon {
    width:22px; height:22px;
    background:#eaf1fa;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
.tdw-gc-balance-trigger-icon::before {
    content:"";
    width:13px; height:13px;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311519b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
    background-size:contain; background-repeat:no-repeat;
}

/* ─── Balance modal ────────────────────────────────────────────── */
.tdw-gc-balance-modal {
    position:fixed; inset:0;
    background:rgba(8, 16, 30, .65);
    z-index:99998;
    display:none;
    align-items:center; justify-content:center;
    padding:20px;
    backdrop-filter:blur(8px);
    opacity:0;
    transition:opacity .25s ease;
}
.tdw-gc-balance-modal.is-open { display:flex; opacity:1; }
.tdw-gc-balance-modal-card {
    background:#fff;
    border-radius:18px;
    box-shadow:0 30px 80px rgba(0,0,0,.3);
    max-width:480px;
    width:100%;
    padding:36px 32px 28px;
    text-align:center;
    position:relative;
    transform:scale(.95);
    transition:transform .25s ease;
    max-height:90vh;
    overflow-y:auto;
}
.tdw-gc-balance-modal.is-open .tdw-gc-balance-modal-card { transform:scale(1); }
.tdw-gc-balance-modal-close {
    position:absolute; top:14px; right:14px;
    width:32px; height:32px;
    background:transparent;
    border:none;
    color:#999;
    font-size:24px; line-height:1;
    cursor:pointer;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    transition:background .15s ease;
    z-index:2;
}
.tdw-gc-balance-modal-close:hover { background:#f0f0f0; color:#333; }

/* Steps — only one visible at a time */
.tdw-gc-balance-step { display:none; }
.tdw-gc-balance-step.is-active { display:block; }

/* Step 1: input */
.tdw-gc-balance-modal-icon {
    width:64px; height:64px;
    margin:0 auto 16px;
    background:linear-gradient(135deg, #11519b, #1d6cc7);
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 8px 24px rgba(17,81,155,.3);
}
.tdw-gc-balance-modal-icon::before {
    content:"";
    width:30px; height:30px;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/><line x1='11' y1='8' x2='11' y2='14'/><line x1='8' y1='11' x2='14' y2='11'/></svg>");
    background-size:contain; background-repeat:no-repeat;
}
.tdw-gc-balance-step h3 {
    font-size:22px !important;
    font-weight:700;
    color:#11519b !important;
    margin:0 0 8px !important;
    letter-spacing:-0.3px;
}
.tdw-gc-balance-step > p {
    font-size:14px;
    color:#5d6373;
    line-height:1.55;
    margin:0 0 22px !important;
}
.tdw-gc-balance-form { display:flex; flex-direction:column; gap:12px; text-align:left; }
.tdw-gc-balance-label {
    font-size:11px !important;
    font-weight:700 !important;
    text-transform:uppercase;
    letter-spacing:1.5px;
    color:#888 !important;
    margin:0 !important;
}
.tdw-gc-balance-input {
    width:100% !important;
    padding:14px 16px !important;
    border:2px solid #e6e9ee !important;
    border-radius:10px !important;
    font-size:16px !important;
    font-family:"SF Mono", Menlo, monospace !important;
    letter-spacing:1.5px !important;
    text-transform:uppercase;
    background:#fafbfd !important;
    transition:border-color .15s, background .15s;
}
.tdw-gc-balance-input:focus {
    border-color:#11519b !important;
    background:#fff !important;
    outline:none !important;
    box-shadow:0 0 0 3px rgba(17,81,155,.12);
}
.tdw-gc-balance-submit {
    background:#11519b;
    color:#fff !important;
    border:none;
    padding:14px 28px;
    border-radius:10px;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    transition:background .15s, transform .15s;
    box-shadow:0 4px 14px rgba(17,81,155,.25);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-top:6px;
}
.tdw-gc-balance-submit:hover { background:#0d4280; }
.tdw-gc-balance-submit:disabled { opacity:.7; cursor:not-allowed; }
.tdw-gc-balance-spinner {
    display:none;
    width:16px; height:16px;
    border:2px solid rgba(255,255,255,.4);
    border-top-color:#fff;
    border-radius:50%;
    animation:tdw-gc-spin .7s linear infinite;
}
.tdw-gc-balance-submit.is-loading .tdw-gc-balance-spinner { display:inline-block; }
.tdw-gc-balance-submit.is-loading .tdw-gc-balance-submit-text { opacity:.75; }
@keyframes tdw-gc-spin { to { transform:rotate(360deg); } }
.tdw-gc-balance-error {
    background:#fff0f0 !important;
    color:#c62828 !important;
    border:1px solid #ffcdd2;
    border-radius:8px;
    padding:10px 14px !important;
    font-size:13px !important;
    margin:6px 0 0 !important;
    line-height:1.45;
}

/* Step 2: result */
.tdw-gc-balance-status-badge {
    display:inline-block;
    padding:6px 14px;
    border-radius:20px;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1.5px;
    margin:0 auto 16px;
    background:#e8f5e9; color:#2e7d32;
}
.tdw-gc-balance-status-badge.is-used { background:#fafafa; color:#888; }
.tdw-gc-balance-status-badge.is-expired,
.tdw-gc-balance-status-badge.is-inactive { background:#fff3e0; color:#e65100; }
.tdw-gc-balance-result-label {
    font-size:11px !important;
    font-weight:700 !important;
    text-transform:uppercase;
    letter-spacing:1.5px;
    color:#888 !important;
    margin:0 0 6px !important;
}
.tdw-gc-balance-result-amount {
    font-size:42px;
    font-weight:800;
    color:#11519b;
    margin:0 0 16px;
    letter-spacing:-1px;
    line-height:1;
}
.tdw-gc-balance-result-amount .woocommerce-Price-amount,
.tdw-gc-balance-result-amount bdi,
.tdw-gc-balance-result-amount .woocommerce-Price-currencySymbol {
    color:#11519b !important;
    background:transparent !important;
}
.tdw-gc-balance-progress {
    height:8px;
    background:#eaf1fa;
    border-radius:4px;
    overflow:hidden;
    margin:0 0 20px;
}
.tdw-gc-balance-progress-bar {
    height:100%;
    background:linear-gradient(90deg, #11519b, #1d6cc7);
    border-radius:4px;
    width:0%;
    transition:width .6s cubic-bezier(.4, 0, .2, 1);
}
.tdw-gc-balance-meta {
    background:#fafbfd;
    border-radius:10px;
    padding:14px 18px;
    margin:0 0 20px;
}
.tdw-gc-balance-meta-row {
    display:flex; justify-content:space-between; align-items:center;
    padding:6px 0;
    font-size:14px;
    color:#5d6373;
}
.tdw-gc-balance-meta-row strong {
    color:#2a2f3d !important;
    font-weight:700;
}
.tdw-gc-balance-meta-row strong .woocommerce-Price-amount,
.tdw-gc-balance-meta-row strong bdi,
.tdw-gc-balance-meta-row strong .woocommerce-Price-currencySymbol {
    color:#2a2f3d !important;
    background:transparent !important;
}
.tdw-gc-balance-meta-row + .tdw-gc-balance-meta-row {
    border-top:1px solid #e6e9ee;
}
.tdw-gc-balance-actions {
    display:flex; gap:10px;
    flex-wrap:wrap;
}
.tdw-gc-balance-secondary,
.tdw-gc-balance-primary {
    flex:1 1 140px;
    padding:13px 18px;
    border-radius:10px;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    text-align:center;
    cursor:pointer;
    border:none;
    transition:background .15s, transform .15s;
    line-height:1.2;
}
.tdw-gc-balance-secondary {
    background:#fafbfd;
    color:#5d6373 !important;
    border:1px solid #e6e9ee;
}
.tdw-gc-balance-secondary:hover { background:#f0f4fa; }
.tdw-gc-balance-primary {
    background:#11519b;
    color:#fff !important;
    box-shadow:0 4px 14px rgba(17,81,155,.25);
}
.tdw-gc-balance-primary:hover { background:#0d4280; }

/* Mobile tweaks */
@media (max-width: 600px) {
    .tdw-gc-balance-cta-inner { padding:24px; }
    .tdw-gc-balance-cta-text h2 { font-size:20px !important; }
    .tdw-gc-balance-trigger { width:100%; justify-content:center; }
    .tdw-gc-balance-modal-card { padding:28px 22px 22px; }
    .tdw-gc-balance-result-amount { font-size:34px; }
}

/* Flyt balance-CTA op over formularen visuelt */
main.tdw-gavekort { display:flex; flex-direction:column; }
main.tdw-gavekort .tdw-gc-hero          { order:1; }
main.tdw-gavekort .tdw-gc-benefits      { order:2; }
main.tdw-gavekort .tdw-gc-balance-cta   { order:3; }
main.tdw-gavekort .tdw-gc-form-section  { order:4; }
main.tdw-gavekort .tdw-gc-faq           { order:5; }
