/* Gift cards, public composer, account, print and admin. Version 202610111713. */

.gifts-page {
    position: relative;
}

.gifts-page .gifts-hero {
    padding: 140px 0 80px;
}

.gifts-hero > .container > .row {
    display: flex;
    align-items: center;
}

.gifts-hero h1 {
    margin-top: 0;
}

.gifts-page section[id] {
    scroll-margin-top: 100px;
}

.gifts-page .gifts-composer,
.gifts-page .gifts-steps,
.gifts-page .gifts-faq {
    padding-bottom: 60px;
}

.gifts-page .gifts-steps .gifts-section-title,
.gifts-page .gifts-faq .gifts-section-title {
    margin-bottom: 28px;
}

.gifts-page .gifts-claim {
    padding: 50px 0;
    color: #fff;
}

.gifts-claim-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    max-width: 840px;
    margin-top: 24px;
}

.gifts-claim-form .form-group {
    flex: 1;
    margin-bottom: 0;
}

.gifts-page .gifts-claim-actions {
    margin-top: 0;
}

.gifts-page .form-control {
    min-height: 46px;
    border-radius: 8px;
}

.gifts-page .btp-icon-select-menu {
    border-color: #5ccdde;
    border-radius: 8px;
}

.gifts-page .btp-icon-select-toggle:focus {
    border-color: #5ccdde;
    outline: 2px solid rgba(92, 205, 222, 0.45);
    outline-offset: 2px;
}

.gifts-page .btp-icon-select-option {
    min-height: 42px;
}

.gifts-page .btp-icon-select-option.is-active,
.gifts-page .btp-icon-select-option:hover {
    background: #e9f8fb;
    color: #174355;
}

.gifts-page .btp-icon-select-current .fa,
.gifts-page .btp-icon-select-option .fa {
    color: #3ba5b5;
}

.gifts-page .help-block,
.gifts-page .gifts-char-count {
    color: inherit;
    opacity: 0.76;
}

.gifts-composer-row {
    display: flex;
    align-items: stretch;
    margin-top: 28px;
}

.gifts-page .gifts-form-panel,
.gifts-page .gifts-composer-summary {
    height: auto;
    padding: 24px;
    transform: none;
}

.gifts-composer-summary {
    position: sticky;
    top: 110px;
}

.gifts-composer-summary .gifts-quote {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(92, 205, 222, 0.2);
    font-family: Inter, "Open Sans", Arial, sans-serif;
}

.gifts-quote-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.gifts-composer-summary .gifts-quote h3 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.gifts-composer-summary .gifts-quote h3::after {
    content: none;
}

.gifts-composer-summary .gifts-quote .gifts-quote-total {
    margin: 0;
    font-family: inherit;
    font-size: 24px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.gifts-quote-lines {
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
}

.gifts-quote-lines:empty {
    display: none;
}

.gifts-quote-line {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid rgba(92, 205, 222, 0.16);
    font-size: 14px;
    line-height: 1.4;
}

.gifts-quote-line:first-child {
    border-top: 0;
}

.gifts-quote-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(92, 205, 222, 0.1);
    color: #3ba5b5;
    font-size: 20px;
}

.gifts-quote-symbol .btp-icon-select-image {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
}

.gifts-quote-line-details {
    min-width: 0;
    overflow-wrap: anywhere;
}

.gifts-quote-line-name {
    display: block;
    font-weight: 600;
}

.gifts-quote-line-description {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    opacity: 0.75;
}

.gifts-quote-line-amount {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.gifts-composer-actions .cta-btn {
    width: 100%;
}

.gifts-page button.cta-btn {
    appearance: none;
    border: 0;
}

.gifts-page button.cta-btn:focus-visible {
    outline: 2px solid #5ccdde !important;
    outline-offset: 3px;
}

.gifts-kind {
    padding: 0;
    margin: 0 0 24px;
    border: 0;
}

.gifts-kind legend {
    color: inherit;
    font-size: 15px;
    font-weight: 600;
    border: 0;
    margin-bottom: 12px;
}

.gifts-page .gifts-kind-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
    height: 100%;
    box-shadow: none;
}

.gifts-page .gifts-kind-option input:checked + span {
    border-color: #5ccdde;
    outline: 1px solid #5ccdde;
    transform: none;
}

.gifts-page .gifts-card-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gifts-page .gifts-card-option-visual {
    width: 100%;
    height: auto;
    aspect-ratio: 148 / 105;
}

.gifts-hero-kicker,
.gifts-section-title {
    display: block;
}

.gifts-hero-kicker {
    margin-bottom: 12px;
    color: #5ccdde;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gifts-hero .hero-subtitle {
    max-width: 40em;
}

.gifts-hero-actions,
.gifts-claim-actions,
.gifts-composer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.gifts-hero-actions .cta-btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.34);
    color: #fff;
    box-shadow: none;
}

.gifts-hero-actions .cta-btn-outline:hover,
.gifts-hero-actions .cta-btn-outline:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.gifts-claim,
.gifts-composer,
.gifts-quote {
    margin-top: 0;
}

.gifts-card-picker,
.gifts-family-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gifts-card-option,
.gifts-kind-option {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.gifts-card-option input,
.gifts-kind-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gifts-card-option-visual {
    position: relative;
    display: block;
    width: 148px;
    height: 105px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.gifts-card-option-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gifts-card-option-label,
.gifts-kind-option span {
    display: block;
    margin-top: 8px;
    font-weight: 600;
    text-align: center;
}

.gifts-card-option-visual .gifts-card-option-logo {
    position: absolute;
    top: 5%;
    left: 50%;
    width: 78%;
    height: 26%;
    object-fit: contain;
    transform: translateX(-50%);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

.gifts-card-option.is-featured .gifts-card-option-visual,
.gifts-card-option input:focus-visible + .gifts-card-option-visual,
.gifts-card-option input:checked + .gifts-card-option-visual {
    border-color: #5ccdde;
    box-shadow: 0 10px 28px rgba(92, 205, 222, 0.28);
}

.gifts-card-option input:checked + .gifts-card-option-visual {
    transform: translateY(-4px);
}

.gifts-card-featured {
    position: absolute;
    bottom: 6px;
    right: 6px;
    z-index: 1;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(26, 26, 46, 0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    pointer-events: none;
}

.gifts-kind-option {
    flex: 1 1 240px;
}

.gifts-kind-option span {
    padding: 18px 20px;
    border: 1px solid rgba(92, 205, 222, 0.18);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.gifts-kind-option input:checked + span,
.gifts-kind-option input:focus-visible + span {
    border-color: rgba(92, 205, 222, 0.55);
    box-shadow: 0 16px 40px rgba(92, 205, 222, 0.18);
    transform: translateY(-4px);
}

.gifts-preview-col {
    display: flex;
    justify-content: center;
}

.gift-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 148 / 105;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    color: #fff;
}

.gift-card-art,
.gift-card-logo {
    display: block;
}

.gift-card-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gift-card-logo {
    position: absolute;
    top: 5%;
    left: 50%;
    z-index: 2;
    width: 78%;
    max-width: 78%;
    height: 26%;
    object-fit: contain;
    transform: translateX(-50%);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

.gift-card-copy {
    position: absolute;
    top: 34%;
    right: 22%;
    bottom: 12%;
    left: 22%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

.gift-card-kicker,
.gift-card-fromto,
.gift-card-message,
.gift-card-services,
.gift-card-amount,
.gift-card-code,
.gift-card-expiry {
    margin: 0;
    max-width: 100%;
}

.gift-card-fromto:empty,
.gift-card-message:empty,
.gift-card-services:empty,
.gift-card-amount:empty {
    display: none;
}

.gift-card-kicker {
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.88;
}

.gift-card-fromto {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

.gift-card-message {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.35;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.gift-card-amount {
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 700;
}

.gift-card-services {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.gift-print-services {
    max-width: 640px;
    margin: 28px auto;
}

.gift-print-services ul {
    padding-left: 20px;
}

.gift-print-services li {
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.gift-card-code {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #49c5d8;
    border-radius: 8px;
    background: rgba(7, 24, 43, 0.94);
    color: #fff;
    font-family: Consolas, "Courier New", monospace;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
    text-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.gift-card-expiry {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.gifts-line-row {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(92, 205, 222, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
}

.gifts-line-row .form-group {
    margin-bottom: 8px;
}

.gifts-quote-total {
    margin-top: 12px;
    font-size: 1.25em;
    font-weight: 700;
}

.gifts-char-count {
    margin-top: 4px;
    color: #666;
    font-size: 12px;
}

.gifts-hidden {
    display: none !important;
}

.gift-account-page .gift-card,
.gift-admin-page .gift-card {
    max-width: 360px;
}

.gift-account-toolbar,
.gift-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.gift-code-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.gift-code-value {
    font-family: Consolas, "Courier New", monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.backend-modern-page .gift-details-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}

.backend-modern-page .gift-details-overview .gift-card {
    width: 100%;
    max-width: none;
}

.gift-details-preview-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.gift-details-information {
    min-width: 0;
}

.backend-modern-page .gift-details-type {
    margin: 0 0 4px;
    color: var(--multibox-muted);
    font-size: 14px;
}

.backend-modern-page .gift-details-amount {
    margin: 0 0 20px;
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.gift-details-facts {
    display: grid;
    grid-template-columns: minmax(100px, 170px) minmax(0, 1fr);
    gap: 10px 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.backend-modern-page .gift-details-facts dt {
    text-align: left;
    color: var(--multibox-muted);
    font-weight: 500;
}

.gift-details-facts dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.backend-modern-page .gift-details-overview .gift-code-box {
    display: block;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--multibox-border);
    border-radius: 10px;
    background: var(--multibox-surface);
}

.gift-details-code-heading,
.gift-details-code-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gift-details-code-heading {
    margin-bottom: 14px;
}

.backend-modern-page .gift-details-code-heading strong > i {
    margin-right: 5px;
    color: var(--multibox-accent);
}

.backend-modern-page .gift-details-overview .gift-code-value {
    flex: 1 1 240px;
    padding: 0;
    background: transparent;
    color: var(--multibox-text);
    font-size: 18px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    user-select: text;
}

.backend-modern-page .gift-details-overview .gift-code-box .help-block {
    margin: 12px 0 0;
    color: var(--multibox-muted);
}

@media (max-width: 991px) {
    .backend-modern-page .gift-details-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .backend-modern-page .gift-details-preview {
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .gift-details-facts {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .gift-details-facts dd {
        margin-bottom: 10px;
    }

    .gift-details-code-row .btn {
        width: 100%;
    }
}

.gift-send-form .form-group {
    max-width: 420px;
}

.backend-modern-page .gift-print-workspace {
    max-width: 1000px;
    margin-right: auto;
    margin-left: auto;
}

.backend-modern-page .gift-print-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.backend-modern-page .gift-print-heading h2 {
    margin: 0 0 6px;
    padding: 0;
}

.backend-modern-page .gift-print-heading p {
    max-width: 42em;
    margin: 0;
    color: var(--multibox-muted);
    font-size: 13px;
    line-height: 1.5;
}

.gift-print-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.backend-modern-page .gift-print-sheet {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 28px 0;
}

.backend-modern-page .gift-print-sheet .gift-card {
    width: 100%;
    max-width: 640px;
    container-type: inline-size;
}

.gift-print-card .gift-card-kicker,
.gift-print-card .gift-card-expiry {
    font-size: clamp(10px, 2.86cqw, 18px);
}

.gift-print-card .gift-card-fromto,
.gift-print-card .gift-card-services,
.gift-print-card .gift-card-code {
    font-size: clamp(12px, 3.57cqw, 23px);
}

.gift-print-card .gift-card-message {
    font-size: clamp(12px, 3.33cqw, 22px);
}

.gift-print-card .gift-card-amount {
    font-size: clamp(20px, 5.24cqw, 34px);
}

.gift-print-services[hidden] {
    display: none !important;
}

@media screen and (max-width: 575px) {
    .gift-print-actions,
    .gift-print-actions .btn {
        width: 100%;
    }

    .backend-modern-page .gift-print-sheet {
        padding: 12px 0;
    }
}

@media (max-width: 991px) {
    .gifts-page .gifts-hero {
        padding: 120px 0 60px;
    }

    .gifts-hero > .container > .row,
    .gifts-composer-row {
        display: block;
    }

    .gifts-hero .gifts-preview-col {
        margin-top: 32px;
    }

    .gifts-composer-summary {
        position: static;
        margin-top: 24px;
    }
}

@media (max-width: 767px) {
    .gifts-page .gifts-hero {
        padding: 110px 0 50px;
    }

    .gifts-page .gifts-form-panel,
    .gifts-page .gifts-composer-summary {
        padding: 18px;
    }

    .gifts-page .gifts-card-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gifts-claim-form {
        display: block;
    }

    .gifts-page .gifts-claim-actions {
        margin-top: 16px;
    }

    .gifts-hero-actions .cta-btn,
    .gifts-claim-actions,
    .gifts-claim-actions .cta-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .gifts-card-option-visual {
        width: 120px;
        height: 85px;
    }

    .gift-card {
        max-width: 100%;
    }

}

@page gift-card-print {
    size: A4 portrait;
    margin: 0;
}

@media print {
    /* Keep only the gift content. Fixed widgets outside the layout must not print. */
    body:has(.gift-print-page) > :not(#page-wrapper),
    body:has(.gift-print-page) #page-wrapper > :not(#page-container),
    body:has(.gift-print-page) #page-container > :not(#main-container),
    body:has(.gift-print-page) #main-container > :not(#page-content),
    .gift-print-page > :not(#gifts-root),
    .gift-print-page #gifts-root > :not(.gift-print-sheet):not(.gift-print-services) {
        display: none !important;
    }

    html:has(.gift-print-page),
    body:has(.gift-print-page),
    body:has(.gift-print-page) :is(#page-wrapper, #page-container, #main-container, #page-content, #gifts-root) {
        position: static !important;
        float: none !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: visible !important;
        background: #fff !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .gift-print-page {
        page: gift-card-print;
    }

    .gift-print-page .gift-print-sheet {
        display: flex;
        width: 100%;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 28mm 0;
        break-inside: avoid;
    }

    .gift-print-page .gift-print-sheet .gift-card {
        flex: none;
        width: 148mm;
        height: 105mm;
        max-width: 148mm;
        border-radius: 0;
        box-shadow: none;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Bootstrap print rules otherwise turn the overlay black and remove its code box. */
    .gift-print-page .gift-card,
    .gift-print-page .gift-card * {
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .gift-print-page .gift-card-code {
        background: #07182b !important;
        border-color: #49c5d8 !important;
    }

    .gift-print-page .gift-print-services {
        max-width: 148mm;
        margin: 0 auto;
        padding: 28mm 0 16mm;
        break-before: page;
        background: #fff !important;
        color: #000 !important;
    }

    .gift-print-page .gift-print-services h2 {
        color: #000 !important;
    }

    .gift-print-page .gift-print-services li {
        break-inside: avoid;
    }
}
