:root {
    --ui-color: #4361ee;
    --ui-color-light: #eef1fd;
}

/* Inline-SVG icon contract for the DLK-hosted pages (the embed gets the same from
   dlk-components.css). Icons inherit color and scale with font-size, like the old Font Awesome. */
.dlk-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    stroke: none;
    vertical-align: -.125em;
    flex-shrink: 0;
}
.dlk-icon-spin { animation: dlk-icon-spin 1.2s linear infinite; }
@keyframes dlk-icon-spin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

html {
    background-color: #f5f8fa;
}

body {
    background-color: transparent;
    --bs-body-bg: #fff;
}

#product-page, #order-status-page {
    font-family: 'Source Sans Pro', sans-serif;
    margin: 90px auto 0 auto;
}

#product-page {
    padding-bottom: 60px!important;
}

/* Layout toggle: narrow = mobile-first single column, wide = 960px two-col with
   single-column fallback below the lg breakpoint (handled by Bootstrap's col-lg-*). */
#product-page.dlk-layout-narrow,
#order-status-page.dlk-layout-narrow {
    max-width: 560px;
}
#product-page.dlk-layout-wide,
#order-status-page.dlk-layout-wide {
    max-width: 980px;
}

/* Sticky pay-side on Shop.Checkout — only above the lg breakpoint where the
   two-column grid is active. Below lg the column collapses to single column
   and sticky is meaningless. */
@media (min-width: 992px) {
    .dlk-layout-wide .dlk-pay-side {
        position: sticky;
        top: 1rem;
    }
}

#product-page .container {
    max-width: 560px!important;
    padding-top: 100px!important;
    padding-bottom: 60px!important;
}

.program-image {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 0px 19px rgba(0,0,0,.4);
    margin-bottom: 2em;
}

/* Section card */
.order-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.order-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 1rem;
}

/* Two-card horizontal toggle (Person/Company, Send all/One per card) */
/* Dev/test info popups (Roaring sandbox, Stripe test card) — amber-dashed chip pinned top-right
   of the section, with a floating popup body that overlays content (like the Dev Prefill panel). */
.order-section:has(.dlk-dev-collapse),
.dlk-pay-details:has(.dlk-dev-collapse) { position: relative; }
.dlk-dev-collapse { position: absolute; top: .9rem; right: .9rem; z-index: 30; }
.dlk-dev-collapse-head {
    all: unset;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #b45309;
    padding: .25rem .5rem;
    border: 1px dashed #f59e0b;
    border-radius: 6px;
    background: #fffbeb;
    opacity: .55;
}
.dlk-dev-collapse-head:hover,
.dlk-dev-collapse.is-open .dlk-dev-collapse-head { opacity: 1; }
.dlk-dev-collapse-head .dlk-dev-arrow { font-size: .62rem; margin-left: .15rem; }
.dlk-dev-collapse-body {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1050;
    min-width: 180px;
    border: 1.5px dashed #f59e0b;
    border-radius: 8px;
    background: #fffbeb;
    padding: .55rem .85rem;
    margin-top: 2px;
    font-size: .75rem;
    line-height: 1.9;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
/* Vertical layout — one item per line. */
.dlk-dev-collapse-body .dlk-dev-row { display: block; white-space: nowrap; }
/* Consistent link styling across both popups. */
.dlk-dev-collapse-body a { color: #b45309; text-decoration: underline; }

.dlk-toggle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.dlk-toggle-card {
    border: 1.5px solid #e8e8e6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    transition: border-color .15s, background .15s;
    user-select: none;
}
.dlk-toggle-card.selected {
    border-color: var(--ui-color);
    background-color: var(--ui-color-light);
}
.dlk-toggle-card .dlk-toggle-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #222;
}
.dlk-toggle-card .dlk-icon {
    color: var(--ui-color);
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* Amount grid + actions row. The wrapper has no gutter padding to absorb the .row
   negative margins, so expand the row by the full g-2 gutter (0.5rem) — this pulls the
   outer tile/button edges flush with the section content box, matching the
   delivery/shipping/payment cards. */
.dlk-amount-row {
    width: calc(100% + 0.5rem);
}

/* Amount grid tile */
.dlk-amount-tile {
    border: 1.5px solid #e8e8e6;
    border-radius: 8px;
    padding: 0.75rem 0.5rem 0.6rem;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, background .15s;
    user-select: none;
}
.dlk-amount-tile.selected {
    border-color: var(--ui-color);
    background-color: var(--ui-color-light);
}
.dlk-amount-tile .dlk-amount-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
}
.dlk-amount-tile .dlk-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
}
.dlk-stepper-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--ui-color-light);
    color: var(--ui-color);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.dlk-stepper-btn:hover {
    background: #d6dcfb;
}
.dlk-stepper-qty {
    min-width: 18px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    position: relative;
}
/* Hovering a set count reveals a red ✕ — clicking it removes the line. */
.dlk-amount-tile.selected .dlk-stepper-qty:hover { color: transparent; }
.dlk-amount-tile.selected .dlk-stepper-qty:hover::after {
    content: '\00d7';
    color: #dc3545;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
/* Packaging at 0: hovering the count shows a "+" — clicking matches the remaining cards. */
.dlk-amount-tile[data-addon]:not(.selected) .dlk-stepper-qty:hover { color: transparent; }
.dlk-amount-tile[data-addon]:not(.selected) .dlk-stepper-qty:hover::after {
    content: '+';
    color: var(--ui-color);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
/* Zero state: hide minus button, grey out the 0 */
.dlk-amount-tile:not(.selected) .dlk-stepper-btn--minus {
    visibility: hidden;
}
.dlk-amount-tile:not(.selected) .dlk-stepper-qty {
    color: #ccc;
    font-weight: 400;
}

/* Custom-amount adder — single line: "Show all amounts" (left), the input (grows),
   then "+ Add". Input is bottom-line + centered like a tile. */
.dlk-amount-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dlk-amount-actions .dlk-show-all-btn { flex: 0 0 auto; }
.dlk-amount-actions .dlk-custom-amount-input { flex: 1 1 auto; min-width: 0; }
.dlk-amount-actions .dlk-custom-add-btn { flex: 0 0 auto; }
.dlk-custom-amount-input {
    border: none;
    border-bottom: 1px solid #d8d8d8;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    font-size: 0.875rem;
    text-align: center;
    background: #fff;
    color: #222;
}
.dlk-custom-amount-input:focus {
    border-bottom-color: var(--ui-color);
    box-shadow: none;
    outline: none;
}
.dlk-custom-amount-input::placeholder {
    color: #aaa;
}
/* Styled to match the amount tiles: grey border, white box, dark text, same radius. */
.dlk-custom-add-btn {
    border: 1.5px solid #e8e8e6;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-weight: 600;
    font-size: 0.875rem;   /* match other buttons */
    padding: .25rem .75rem;  /* lesser height */
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.dlk-custom-add-btn:hover:not(:disabled) {
    border-color: var(--ui-color);
    color: var(--ui-color);
    background: var(--ui-color-light);
}
.dlk-custom-add-btn:disabled {
    color: #c4c4c4;
    cursor: not-allowed;
}

/* Delivery method card */
.dlk-delivery-card {
    border: 1.5px solid #e8e8e6;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    transition: border-color .15s;
}
.dlk-delivery-card.selected {
    border-color: var(--ui-color);
    background-color: var(--ui-color-light);
}
.dlk-delivery-card .dlk-delivery-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
}
.dlk-delivery-card.selected .dlk-delivery-radio {
    border-color: var(--ui-color);
    background: var(--ui-color);
}
.dlk-delivery-card.selected .dlk-delivery-radio::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
}
.dlk-delivery-card .dlk-delivery-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #222;
}
.dlk-delivery-card .dlk-delivery-desc {
    font-size: 0.8rem;
    color: #888;
}

/* Ensure all form inputs have white background (overrides Bootstrap's --bs-body-bg) */
.form-control,
.form-control:focus {
    background-color: #fff;
}

/* Form inputs: bottom-border only style */
.form-control-line {
    border: none;
    border-bottom: 1px solid #d8d8d8;
    border-radius: 0;
    background: #fff;
    padding-left: 0;
    padding-right: 0;
    font-size: 0.875rem;
}
.form-control-line:focus {
    box-shadow: none;
    border-bottom-color: var(--ui-color);
    background: #fff;
    outline: none;
}
.form-control-line::placeholder {
    color: #bbb;
}
/* Validity feedback: the underline stays neutral (Bootstrap's green/red on
   .is-valid/.is-invalid looked noisy). The check/cross icon still shows; the
   underline only reacts to focus. */
.form-control-line.is-valid,
.form-control-line.is-invalid {
    border-bottom-color: #d8d8d8;
    /* Push the check/cross to the right edge so it lines up with the row ✕ / clear-all. */
    background-position: right center;
    padding-right: 0;
}
.form-control-line.is-valid:focus,
.form-control-line.is-invalid:focus {
    border-bottom-color: var(--ui-color);
}
/* Lookup fields sit beside a search button — drop the validation icon so it doesn't float
   between the input and the button; the red underline + the message below convey the state. */
.form-control-line[data-dlk-lookup].is-valid,
.form-control-line[data-dlk-lookup].is-invalid {
    background-image: none;
    padding-right: 0;
}
/* Top-align rows that hold a lookup field, so a wrapped lookup error (which makes that column
   taller) doesn't drop the neighbouring field's underline out of alignment. */
.order-section .d-flex.gap-3:has([data-dlk-lookup]) { align-items: flex-start; }

/* CSV upload drop zone */
.dlk-dropzone {
    border: 1.5px dashed #c8c8c8;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    color: var(--ui-color);
    font-size: 0.875rem;
    font-weight: 600;
    transition: border-color .15s, color .15s;
}
.dlk-dropzone:hover,
.dlk-dropzone--over {
    border-color: var(--ui-color);
    color: var(--ui-color);
}
.dlk-dropzone--over {
    background: var(--ui-color-light);
}

/* Upload recipient flow */
.recip-step-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ui-color-light);
    color: var(--ui-color);
    font-size: .75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.recip-preview-table {
    border: 1px solid #e8e8e6;
    border-radius: 8px;
    overflow: hidden;
    font-size: .8rem;
}
.recip-preview-table th {
    background: #f5f5f3;
    font-weight: 600;
    color: #666;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.recip-preview-table td.recip-amount-cell {
    color: var(--ui-color);
    font-weight: 600;
    text-align: right;
}

/* Recipient rows (Shop.Checkout per-card entry) — separated by a single divider
   line, no box; on mobile the first/last-name fields stack full-width. */
.recip-card {
    padding: .6rem 0 1.15rem;
}
.recip-card__head {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .35rem;
}
.recip-card__num {
    font-size: .72rem;
    font-weight: 700;
    color: #888;
    background: #efeeec;
    border-radius: 6px;
    padding: .1rem .45rem;
}
/* Amount sits beside the order number on the left; the ✕ is pushed to the right edge. */
.recip-card__amount {
    font-size: .9rem;
    font-weight: 700;
    color: #222;
}
.recip-card__clear {
    margin-left: auto;
    border: none;
    background: none;
    color: #c4c4c4;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}
.recip-card__clear:hover { color: #888; }
.recip-card__names {
    display: flex;
    gap: .9rem;
}
.recip-card__names .form-control { flex: 1 1 0; min-width: 0; }
@media (max-width: 575.98px) {
    .recip-card__names { flex-direction: column; gap: .35rem; }
}
/* Read-only upload preview row text (mirrors the manual card layout). */
.recip-upload__email { font-size: .9rem; color: #222; word-break: break-all; }
.recip-upload__name  { font-size: .8rem; color: #888; margin-top: .15rem; }

/* Checkout recipient cards (two-column): #N pill stacked over the bold amount on the
   left, email + names on the right. Scoped to --col so Order.View cards are untouched. */
.recip-card--col {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    border: 1px solid #e8e8e6;
    border-radius: 12px;
    padding: .9rem 1rem;
    margin-bottom: .6rem;
}
.recip-card--col:last-child { margin-bottom: 0; }
.recip-card--col .recip-card__aside {
    flex: 0 0 auto;
    min-width: 4.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: .3rem;
}
/* #N pill + validity tick on one line, amount below. */
.recip-card--col .recip-card__topline {
    display: flex;
    align-items: center;
    gap: .4rem;
}
.recip-card--col .recip-card__num {
    border: 1px solid var(--ui-color);
    background: var(--ui-color-light);
    color: var(--ui-color);
    border-radius: 8px;
    padding: .05rem .5rem;
    font-size: .72rem;
    font-weight: 700;
}
.recip-card--col .recip-card__amount {
    font-size: 0.95rem;   /* match the amount-tile label */
    font-weight: 600;
    color: #222;
}
.recip-card--col .recip-card__fields { flex: 1 1 auto; min-width: 0; }
.recip-card--col .recip-card__clear {
    position: absolute;
    top: .5rem;
    right: .30rem;
    margin-left: 0;
}
/* The validity tick is moved into the left aside (below #N + amount), so suppress the
   default Bootstrap is-valid/is-invalid background icon on the email line itself. */
.recip-card--col .recip-card__fields .form-control-line.is-valid,
.recip-card--col .recip-card__fields .form-control-line.is-invalid {
    background-image: none;
    padding-right: 0;
}
/* Per-recipient validity indicator in the aside: green ✓ when the email is valid,
   muted ✕ when invalid, nothing while empty. */
.recip-card--col .recip-card__status {
    font-size: .9rem;
    line-height: 1;
}
.recip-card--col .recip-card__status.is-valid { color: #2e7d32; }
.recip-card--col .recip-card__status.is-invalid { color: #dc3545; }

/* Recipient row — amount + card label */
.recip-row-label {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .45rem;
}
.recip-amount-badge {
    display: inline-block;
    background: var(--ui-color-light);
    color: var(--ui-color);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: .18em .6em;
    border-radius: 20px;
}
.recip-card-label {
    font-size: .72rem;
    color: #aaa;
    font-weight: 500;
}

/* Payment sub-field inputs — bottom-line style, matching the other form inputs. */
.dlk-field-label {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 0.2rem;
    display: block;
}
.dlk-pay-input {
    border: none;
    border-bottom: 1px solid #d8d8d8;
    border-radius: 0;
    font-size: 0.875rem;
    background: #fff;
    color: #333;
    padding-left: 0;
    padding-right: 0;
}
.dlk-pay-input:focus {
    border-bottom-color: var(--ui-color);
    box-shadow: none;
    outline: none;
}
.dlk-pay-input::placeholder {
    color: #bbb;
}
/* Select on its empty option reads light-grey like an input placeholder. */
select.dlk-pay-input:has(option[value=""]:checked) { color: #bbb; }
select.dlk-pay-input option[value=""] { color: #bbb; }
select.dlk-pay-input option:not([value=""]) { color: #333; }
/* Restore a dropdown caret — the bottom-line .dlk-pay-input style (background:#fff, padding-right:0)
   strips Bootstrap's form-select arrow, leaving selects looking like plain text inputs. */
select.dlk-pay-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 1.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23888' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.1rem center;
    background-size: 12px 9px;
    cursor: pointer;
}
/* Combined Stripe card element mount — bottom-line like the other inputs, with the
   vertical room the card iframe needs. */
/* DO NOT add a full border/border-radius here or bump the Stripe element fontSize
   above 14px — a bordered, taller mount breaks BitWarden's autofill of the split
   expiry/CVC iframes. Keep it borderless (bottom-line via .dlk-pay-input) + 14px. */
.dlk-stripe-mount {
    padding-top: .4rem;
    padding-bottom: .4rem;
    min-height: 2.1rem;
}
.dlk-stripe-mount:focus-within {
    border-bottom-color: var(--ui-color);
}

/* Invoice references — each row is [ input ][ button ]: the PO row's button is the
   "+" add control (opens a <details> menu of remaining types), added rows get a trash
   button in the same right-hand column, so Add/Delete stack vertically. */
.dlk-ref-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
}
.dlk-ref-line {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.dlk-ref-line .form-control {
    flex: 1 1 auto;
    min-width: 0;
}
/* Reference delete — borderless neutral ✕ (consistent with the recipient row clear). */
.dlk-ref-remove {
    flex: 0 0 auto;
    align-self: center;
    border: none;
    background: none;
    color: #c4c4c4;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0 0 .35rem;
}
.dlk-ref-remove:hover { color: #888; }
/* "+ Add reference" — a text link inline with the reference label. */
.dlk-ref-add {
    position: relative;
    flex: 0 0 auto;
}
.dlk-ref-add-link {
    list-style: none;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ui-color);
    white-space: nowrap;
    user-select: none;
}
.dlk-ref-add-link::-webkit-details-marker { display: none; }
.dlk-ref-add-link:hover { text-decoration: underline; }
.dlk-ref-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 5;
    min-width: 210px;
    border: 1.5px solid #e8e8e6;
    border-radius: 8px;
    padding: .25rem;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    display: flex;
    flex-direction: column;
}
.dlk-ref-menu-item {
    border: none;
    background: none;
    text-align: left;
    font-size: .85rem;
    color: #333;
    padding: .4rem .6rem;
    border-radius: 6px;
    cursor: pointer;
}
.dlk-ref-menu-item:hover { background: var(--ui-color-light); color: var(--ui-color); }
.dlk-ref-menu-item.d-none { display: none; }

/* "Show all amounts" toggle below the amount grid */
.dlk-show-all-btn {
    border: none;
    background: none;
    color: var(--ui-color);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    padding: .25rem .5rem .25rem 1rem;
    text-align: center;
}
.dlk-show-all-btn:hover { text-decoration: underline; }
.dlk-show-all-btn .dlk-icon { font-size: .7rem; margin-left: .2rem; }
/* In the adder row "Show all amounts" sits on the left at half width; the custom
   input + Add fill the right half. */
.dlk-custom-adder .dlk-show-all-btn {
    flex: 1 1 0;
    align-self: center;
    text-align: left;
    white-space: nowrap;
    padding-left: 0;
}
.dlk-custom-adder .form-control { flex: 1 1 0; }

/* Order review modal — full summary shown when Confirm Order is clicked */
.dlk-review-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 1rem;
    overflow-y: auto;
}
.dlk-review-overlay.d-none { display: none; }
.dlk-review-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .3);
    display: flex;
    flex-direction: column;
    max-height: 100%;
}
/* Mobile: review / DD-confirm dialogs go fullscreen. */
@media (max-width: 575.98px) {
    .dlk-review-overlay { padding: 0; }
    .dlk-review-modal { max-width: none; border-radius: 0; min-height: 100%; }
}
.dlk-review-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    font-weight: 700;
    color: #222;
}
.dlk-review-modal__head button {
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
}
.dlk-review-modal__head button:hover { color: #333; }
.dlk-review-modal__body {
    padding: .5rem 1.25rem;
    overflow-y: auto;
}
.dlk-review-modal__foot {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #eee;
}
/* "I agree" is centered; "Change" is a small link pushed to the right. */
.dlk-review-foot__side { flex: 1 1 0; display: flex; }
.dlk-review-foot__side--right { justify-content: flex-end; }
.dlk-review-foot__agree {
    flex: 0 0 auto;
    padding: .85rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}
.dlk-review-change {
    border: none;
    background: none;
    color: #888;
    font-size: .8rem;
    cursor: pointer;
    padding: .25rem .35rem;
    white-space: nowrap;
}
.dlk-review-change:hover { color: #333; text-decoration: underline; }
/* Each section is its own box, mirroring the form's boxes. */
.dlk-review-sec {
    border: 1px solid #e8e8e6;
    border-radius: 8px;
    padding: .85rem 1rem;
    margin-bottom: .75rem;
}
.dlk-review-sec:last-child { margin-bottom: 0; }
.dlk-review-sec--items .order-section-label { margin-bottom: .5rem; }
.dlk-review-sec__title {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: .3rem;
}
.dlk-review-sec__body {
    font-size: .875rem;
    color: #333;
    line-height: 1.5;
}
/* Recipients can run long — cap at ~10 rows with an inner scroller. */
.dlk-review-sec__body.dlk-review-scroll {
    max-height: 15.5rem;
    overflow-y: auto;
}
/* Recipients table in the review: #, email, name with a sticky header. */
.dlk-review-recip {
    width: 100%;
    border-collapse: collapse;
    font-size: .8rem;
    line-height: 1.3;
}
.dlk-review-recip th,
.dlk-review-recip td {
    text-align: left;
    padding: .2rem .4rem;
    border-bottom: 1px solid #f0f0ee;
    vertical-align: top;
}
.dlk-review-recip thead th {
    position: sticky;
    top: 0;
    background: #fff;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #aaa;
}
.dlk-review-recip__num {
    width: 2rem;
    color: #aaa;
    white-space: nowrap;
}

/* Packaging-wrap thumbnail (replaces the icon; click opens the lightbox) + overlay */
.dlk-pack-thumb {
    display: block;
    width: 100%;
    max-width: 96px;
    height: auto;
    margin: 0 auto .3rem;
    border-radius: 6px;
    cursor: zoom-in;
}
.dlk-pack-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.dlk-pack-overlay.d-none { display: none; }
.dlk-pack-overlay__inner {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    text-align: center;
}
.dlk-pack-overlay__inner img {
    display: block;
    width: min(460px, 82vw);
    max-width: 82vw;
    max-height: 78vh;
    height: auto;
    border-radius: 8px;
    image-rendering: auto;
}
.dlk-pack-overlay__cap {
    margin-top: .6rem;
    font-size: .9rem;
    font-weight: 600;
    color: #333;
}
.dlk-pack-overlay__close {
    position: absolute;
    top: .35rem;
    right: .6rem;
    border: none;
    background: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
}
.dlk-pack-overlay__close:hover { color: #333; }

/* Submit button */
.btn-brand {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    color: #fff;
}
.btn-brand:hover {
    color: #fff;
    background-color: #5660E9;
}
.btn-brand:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--brand-color-rgb), .3);
}

/* Collapsible chevron */
.dlk-collapse-toggle .dlk-icon {
    transition: transform .2s;
}
.dlk-collapse-toggle[aria-expanded="true"] .dlk-icon {
    transform: rotate(180deg);
}

/* Mobile optimisation */
@media (max-width: 576px) {
    #product-page {
        padding: 0!important;
    }

    .order-section {
        padding: 16px;
    }

    #order-form .col-12 {
        padding: 0;
    }

    #btn-pay-wrap {
        padding: 0 16px;
    }

    #section-shipping-address .gap-3 , #purchaser-fields .gap-3 {
        flex-direction: column;
    }

    #order-summary table {
        display: block;
        width: 100%;
        margin-top: -22px;
    }
    #order-summary thead {
        display: block;
        width: 100%;
    }
    #order-summary thead tr {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }
    #order-summary thead th:first-child {
        flex: 1 1 100%;
        top: 23px;
        position: relative;
    }
    #summary-lines {
        display: block;
        width: 100%;
    }
    #summary-lines tr {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }
    #summary-lines td:first-child {
        flex: 1 1 100%;
    }
    #order-summary thead th:nth-child(2),
    #summary-lines td:nth-child(2) {
        flex: 0 0 3rem;
        margin-left: auto;
    }
    #order-summary thead th:nth-child(3),
    #summary-lines td:nth-child(3) {
        flex: 0 0 5rem;
    }
    #order-summary thead th:nth-child(4),
    #summary-lines td:nth-child(4) {
        flex: 0 0 5rem;
    }
}

/* Checkbox / radio styling (ported from dlk-components.css) so form-check controls on the
   DLK-hosted checkout match the themed look the embed already has. Scoped to #product-page. */
#product-page .form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: .125rem;
}
#product-page .form-check .form-check-input { float: left; margin-left: -1.5em; }
#product-page .form-check-input {
    width: 1em;
    height: 1em;
    margin-top: .25em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, .25);
    -webkit-appearance: none;
    appearance: none;
    print-color-adjust: exact;
}
#product-page .form-check-input[type="checkbox"] { border-radius: .25em; }
#product-page .form-check-input[type="radio"] { border-radius: 50%; }
#product-page .form-check-input:checked {
    background-color: var(--brand-color, var(--ui-color));
    border-color: var(--brand-color, var(--ui-color));
}
#product-page .form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}
#product-page .form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}
#product-page .form-check-input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}
#product-page .form-check-label { cursor: pointer; }
