/* =========================================================
   KOOKA GIFT CARDS 1.0.4
   Compact two-column purchase + live gift-card preview
   ========================================================= */

.kgc {
    width: 100%;
    margin: 0;
    padding: 34px 0 38px;
    background: #f6f2ed;
    color: #211e1b;
    overflow: hidden;
}

.kgc,
.kgc *,
.kgc *::before,
.kgc *::after {
    box-sizing: border-box;
    min-width: 0;
}

.kgc__inner {
    width: calc(100% - 70px);
    max-width: 1380px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 38px;

    align-items: start;
}


/* =========================================================
   LEFT — VISUAL AREA
   ========================================================= */

.kgc__visual {
    position: sticky;
    top: 24px;

    display: flex;
    flex-direction: column;
    gap: 0;
}


/* IMAGE */

.kgc__image-wrap {
    position: relative;
    height: 285px;

    overflow: hidden;
    background: #eae4dd;
}

.kgc__image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}

.kgc__image-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(18,16,14,.02) 30%,
            rgba(18,16,14,.42) 100%
        );
}

.kgc__image-copy {
    position: absolute;
    left: 26px;
    right: 160px;
    bottom: 22px;

    color: #fff;
}

.kgc__image-copy span {
    display: block;

    margin-bottom: 6px;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .18em;
}

.kgc__image-copy strong {
    display: block;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(28px, 2.2vw, 36px);
    font-weight: 400;
    line-height: .98;
}

.kgc__image-value {
    position: absolute;
    right: 20px;
    bottom: 20px;

    width: 112px;
    padding: 12px 13px;

    background: rgba(255,255,255,.94);
    backdrop-filter: blur(7px);
}

.kgc__image-value small {
    display: block;

    margin-bottom: 4px;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .15em;

    color: #756e68;
}

.kgc__image-value b {
    display: block;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1;

    color: #211e1b;
}


/* =========================================================
   LIVE CARD PREVIEW
   ========================================================= */

.kgc__card-preview {
    position: relative;

    margin-top: 12px;
    padding: 22px 24px 20px;

    min-height: 250px;

    border: 1px solid #d8d0c9;

    background:
        radial-gradient(circle at 12% 16%, rgba(255,255,255,.88), transparent 25%),
        linear-gradient(135deg, #f3eee8 0%, #ebe4dc 55%, #f6f2ed 100%);

    overflow: hidden;
}

.kgc__card-preview::before {
    content: "";

    position: absolute;
    inset: 12px;

    border: 1px solid rgba(139,125,113,.20);

    pointer-events: none;
}

.kgc__card-preview::after {
    content: "YK";

    position: absolute;
    right: 24px;
    bottom: 15px;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 54px;
    font-style: italic;
    line-height: 1;

    color: rgba(213,28,23,.10);

    pointer-events: none;
}

.kgc__card-preview-top,
.kgc__card-preview-bottom {
    position: relative;
    z-index: 1;

    display: flex;
    justify-content: space-between;
    gap: 18px;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 8px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .16em;
    text-transform: uppercase;

    color: #756e68;
}

.kgc__card-preview-main {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;

    align-items: end;

    margin-top: 30px;
}

.kgc__card-preview-for > span,
.kgc__card-preview-amount small {
    display: block;

    margin-bottom: 5px;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .15em;

    color: #756e68;
}

.kgc__card-preview-for strong {
    display: block;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(30px, 2.4vw, 40px);
    font-weight: 400;
    line-height: .98;

    color: #211e1b;
}

.kgc__card-preview-amount {
    min-width: 100px;
    text-align: right;
}

.kgc__card-preview-amount b {
    display: block;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 31px;
    font-weight: 400;
    line-height: 1;

    color: var(--yk-red, #d51c17);
}

.kgc__card-preview-message {
    position: relative;
    z-index: 1;

    display: -webkit-box;

    max-width: 86%;

    margin: 22px 0 24px;

    overflow: hidden;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.42;

    color: #57514c;
}

.kgc__card-preview-bottom b {
    color: #39332f;
}


/* VISUAL NOTES */

.kgc__visual-note {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    border: 1px solid #ddd5ce;
    border-top: 0;

    background: rgba(255,255,255,.48);
}

.kgc__visual-note span {
    padding: 11px 8px;

    text-align: center;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 8px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;

    color: #6e6761;
}

.kgc__visual-note span + span {
    border-left: 1px solid #ddd5ce;
}


/* =========================================================
   RIGHT — PURCHASE
   ========================================================= */

.kgc__purchase {
    padding: 4px 0 0;
}

.kgc__head {
    max-width: 650px;
    margin: 0 0 21px;
}

.kgc__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 0 0 10px;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .19em;
    text-transform: uppercase;

    color: #756e68;
}

.kgc__eyebrow i {
    width: 38px;
    height: 1px;
    flex: 0 0 38px;

    background: var(--yk-red, #d51c17);
}

.kgc__title {
    margin: 0;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(38px, 3.1vw, 48px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.025em;

    color: #211e1b;
}

.kgc__intro {
    max-width: 560px;

    margin: 12px 0 0;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.46;

    color: #57514c;
}


/* =========================================================
   AMOUNTS
   ========================================================= */

.kgc__amounts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}

.kgc__amount {
    min-height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 9px 7px;

    border: 1px solid #d8d0c9;
    background: rgba(255,255,255,.82);

    color: #27221f;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.kgc__amount:hover {
    border-color: var(--yk-red, #d51c17);
    transform: translateY(-1px);
}

.kgc__amount.is-active {
    border-color: var(--yk-red, #d51c17);
    background: var(--yk-red, #d51c17);
    color: #fff;
}

.kgc__amount--custom {
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .10em;
    text-transform: uppercase;
}


/* CUSTOM AMOUNT */

.kgc__custom {
    margin-top: 11px;
    max-width: 290px;
}

.kgc__custom label,
.kgc__field > span {
    display: block;

    margin-bottom: 6px;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;

    color: #6f6862;
}

.kgc__money {
    display: flex;
    align-items: center;

    border: 1px solid #d8d0c9;
    background: #fff;
}

.kgc__money > span {
    padding-left: 13px;
    font-size: 17px;
    color: #4d4742;
}

.kgc__money input {
    width: 100%;

    border: 0;
    background: transparent;

    padding: 10px 12px;

    font-size: 17px;
    outline: 0;
}


/* =========================================================
   SUMMARY / BUTTON
   ========================================================= */

.kgc__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 16px;
    padding-top: 16px;

    border-top: 1px solid #d8d1ca;
}

.kgc__selected,
.kgc__buy-total {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.kgc__selected span,
.kgc__buy-total span {
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .15em;

    color: #7b746e;
}

.kgc__selected strong,
.kgc__buy-total strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 29px;
    font-weight: 400;
    line-height: 1;

    color: #211e1b;
}

.kgc__primary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-width: 185px;

    padding: 11px 13px;

    border: 1px solid var(--yk-red, #d51c17);
    background: transparent;

    color: var(--yk-red, #d51c17);

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;

    cursor: pointer;

    transition: background .2s ease, color .2s ease;
}

.kgc__primary:hover {
    background: var(--yk-red, #d51c17);
    color: #fff;
}

.kgc__primary:disabled {
    opacity: .5;
    cursor: wait;
}


/* =========================================================
   PERSONALISE
   ========================================================= */

.kgc__personalise {
    margin-top: 17px;
    padding-top: 17px;

    border-top: 1px solid #d8d1ca;
}

.kgc__personalise-head {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 14px;
}

.kgc__mini {
    display: block;

    margin-bottom: 4px;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .15em;

    color: #7b746e;
}

.kgc__personalise h3 {
    margin: 0;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 29px;
    font-weight: 400;
    line-height: 1;
}

.kgc__text-button {
    border: 0;
    background: transparent;

    padding: 5px 0;

    color: #6e6660;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 10px;

    cursor: pointer;
}

.kgc__form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.kgc__field--wide {
    grid-column: 1 / -1;
}

.kgc__field input,
.kgc__field select,
.kgc__field textarea {
    width: 100%;

    border: 1px solid #d8d0c9;
    background: #fff;

    padding: 9px 11px;

    font-family: inherit;
    font-size: 16px;

    color: #211e1b;
    outline: 0;
}

.kgc__field textarea {
    resize: vertical;
    min-height: 72px;
}

.kgc__field input:focus,
.kgc__field select:focus,
.kgc__field textarea:focus {
    border-color: var(--yk-red, #d51c17);
}


/* DELIVERY DATE */

.kgc__delivery-time {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 8px;
}

.kgc__radio {
    position: relative;
}

.kgc__radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.kgc__radio > span {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 9px 12px;

    border: 1px solid #d8d0c9;
    background: #fff;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;

    color: #635c56;

    cursor: pointer;
}

.kgc__radio input:checked + span {
    border-color: var(--yk-red, #d51c17);
    color: var(--yk-red, #d51c17);
}


/* =========================================================
   BUY
   ========================================================= */

.kgc__buy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 14px;
    padding-top: 14px;

    border-top: 1px solid #d8d1ca;
}

.kgc__eligible-note {
    margin: 10px 0 0;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;

    color: #716963;
}

.kgc__notice {
    min-height: 18px;

    margin: 7px 0 0;

    font-size: 13px;
    color: #675f59;
}


/* =========================================================
   BALANCE CHECKER
   ========================================================= */

.kgc-balance {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;

    max-width: 700px;
}

.kgc-balance label {
    flex: 1 1 300px;
}

.kgc-balance label span {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
}

.kgc-balance input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d9d2cb;
    font-size: 17px;
}

.kgc-balance button {
    padding: 13px 16px;
    border: 1px solid var(--yk-red, #d51c17);
    background: #fff;
    color: var(--yk-red, #d51c17);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    cursor: pointer;
}

.kgc-balance p {
    flex-basis: 100%;
    margin: 4px 0 0;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .kgc {
        padding: 30px 0 34px;
    }

    .kgc__inner {
        width: calc(100% - 48px);
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
        gap: 28px;
    }

    .kgc__image-wrap {
        height: 250px;
    }

    .kgc__amounts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .kgc__image-copy {
        right: 25px;
    }

    .kgc__image-value {
        top: 17px;
        right: 17px;
        bottom: auto;
    }

    .kgc__card-preview {
        min-height: 238px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .kgc {
        padding: 24px 0 30px;
    }

    .kgc__inner {
        width: calc(100% - 34px);
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .kgc__visual {
        position: static;
    }

    .kgc__image-wrap {
        height: 260px;
    }

    .kgc__image-copy {
        left: 20px;
        right: 20px;
        bottom: 18px;
    }

    .kgc__image-copy strong {
        max-width: 280px;
        font-size: 30px;
    }

    .kgc__image-value {
        top: 16px;
        right: 16px;
        bottom: auto;
        width: 105px;
    }

    .kgc__card-preview {
        min-height: 225px;
        padding: 20px;
    }

    .kgc__card-preview-main {
        margin-top: 25px;
    }

    .kgc__card-preview-for strong {
        font-size: 31px;
    }

    .kgc__card-preview-message {
        max-width: 100%;
        font-size: 17px;
        -webkit-line-clamp: 2;
    }

    .kgc__visual-note span {
        padding: 10px 6px;
        font-size: 8px;
    }

    .kgc__title {
        font-size: 38px;
    }

    .kgc__intro {
        font-size: 17px;
    }

    .kgc__amounts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .kgc__amount {
        min-height: 58px;
    }

    .kgc__summary,
    .kgc__buy-row {
        align-items: stretch;
        flex-direction: column;
        gap: 13px;
    }

    .kgc__selected,
    .kgc__buy-total {
        justify-content: space-between;
    }

    .kgc__primary {
        width: 100%;
        min-width: 0;
    }

    .kgc__form-grid {
        grid-template-columns: 1fr;
    }

    .kgc__field--wide {
        grid-column: auto;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .kgc__inner {
        width: calc(100% - 28px);
    }

    .kgc__image-wrap {
        height: 235px;
    }

    .kgc__card-preview {
        min-height: 220px;
    }

    .kgc__card-preview-main {
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: start;
    }

    .kgc__card-preview-amount {
        text-align: left;
    }

    .kgc__amounts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kgc__title {
        font-size: 35px;
    }

    .kgc__personalise-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .kgc__delivery-time {
        grid-template-columns: 1fr;
    }
}
