/* Checkout sheet: pixel values from Currency switcher.dc.html Turn 4.
   Own CSS so it does not depend on unbuilt Tailwind arbitrary classes. */

#tekla-checkout-modal.tekla-checkout-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 32px 16px 48px;
    box-sizing: border-box;
}

#tekla-checkout-modal.tekla-checkout-overlay.hidden {
    display: none !important;
}

#tekla-checkout-modal.tekla-checkout-overlay.flex {
    display: flex !important;
}

.tekla-checkout-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
}

.tekla-checkout-sheet {
    position: relative;
    z-index: 10;
    width: 390px;
    max-width: calc(100vw - 32px);
    margin: 0 auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    padding-bottom: 20px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #0f172a;
}

.tekla-checkout-kicker,
.tekla-checkout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 48px 0 20px;
}

.tekla-checkout-title {
    font-weight: 800;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: #0f172a;
    margin: 0;
}

.tekla-checkout-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.tekla-checkout-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 12;
    border: 0;
    background: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    font-family: inherit;
}

.tekla-checkout-close:hover {
    color: #0f172a;
}

.tekla-checkout-sheet .tekla-gel-chip {
    background: #f1f4f7;
    border: 1px solid #e6ebf0;
}

.tekla-checkout-sheet .tekla-gel-chip button[data-gel-set="GEL"][aria-pressed="true"] {
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.16);
}

.tekla-checkout-product {
    padding: 14px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tekla-checkout-product [data-checkout-product] {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
    color: #0f172a;
}

.tekla-checkout-product [data-checkout-option] {
    font-size: 12.5px;
    line-height: 1.25;
    color: #7b8899;
}

.tekla-checkout-hero {
    padding: 10px 20px 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.tekla-checkout-hero [data-checkout-price] {
    font-weight: 800;
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #22a9dc;
}

.tekla-checkout-hero [data-checkout-price-suffix] {
    font-size: 13px;
    color: #7b8899;
    padding-bottom: 4px;
}

.tekla-checkout-hero [data-checkout-was] {
    font-size: 16px;
    line-height: 1;
    color: #d94848;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    padding-bottom: 6px;
}

.tekla-checkout-hero [data-checkout-was].hidden {
    display: none !important;
}

.tekla-checkout-ribbon {
    margin-top: 14px;
    padding: 10px 20px;
    background: #e8f5fc;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tekla-checkout-ribbon.flex {
    display: flex !important;
}

.tekla-checkout-ribbon.hidden {
    display: none !important;
}

.tekla-checkout-ribbon [data-checkout-ribbon-label] {
    font-weight: 700;
    font-size: 12.5px;
    color: #1b7fae;
}

.tekla-checkout-ribbon [data-checkout-ribbon-save] {
    font-weight: 800;
    font-size: 12.5px;
    color: #1b7fae;
}

.tekla-checkout-rows {
    padding: 14px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tekla-checkout-row {
    display: none;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
}

.tekla-checkout-row.flex {
    display: flex !important;
}

.tekla-checkout-row.hidden {
    display: none !important;
}

.tekla-checkout-row [data-checkout-later-amount] {
    font-weight: 600;
    color: #334155;
}

.tekla-checkout-row [data-checkout-total] {
    font-weight: 700;
    color: #22a9dc;
}

.tekla-checkout-row [data-checkout-was-total] {
    color: #d94848;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.tekla-checkout-row [data-checkout-was-total].hidden {
    display: none !important;
}

.tekla-checkout-total-pair {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.tekla-checkout-inclusions {
    display: none;
}

.tekla-checkout-sheet [data-checkout-gel-note] {
    display: none;
    align-items: flex-start;
    gap: 7px;
    padding: 9px 10px;
    border-radius: 9px;
    background: #f4f8fb;
    font-size: 11.5px;
    line-height: 1.45;
    color: #64748b;
}

.tekla-checkout-sheet [data-checkout-gel-note].is-on {
    display: flex !important;
}

.tekla-checkout-sheet [data-checkout-gel-note].hidden {
    display: none !important;
}

.tekla-checkout-sheet [data-checkout-gel-note] strong {
    color: #0f172a;
}

.tekla-checkout-blurb {
    padding: 14px 20px 0;
    font-size: 11.5px;
    line-height: 1.45;
    color: #7b8899;
}

.tekla-checkout-blurb.hidden {
    display: none !important;
}

.tekla-checkout-fields {
    padding: 16px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tekla-checkout-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tekla-checkout-field > span:not(.tekla-checkout-coupon-ok),
.tekla-checkout-field > label {
    font-weight: 600;
    font-size: 13px;
    color: #334155;
}

.tekla-checkout-optional {
    font-weight: 400;
    color: #94a3b8;
}

.tekla-checkout-sheet input[type="text"],
.tekla-checkout-sheet input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #dde4ec;
    border-radius: 11px;
    font-size: 14.5px;
    color: #0f172a;
    background: #fff;
    outline: none;
    font-family: inherit;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.tekla-checkout-sheet input::placeholder {
    color: #a8b3c0;
}

.tekla-checkout-sheet input:focus {
    border-color: #35c0ea;
    box-shadow: 0 0 0 3px rgba(53, 192, 234, 0.16);
}

.tekla-checkout-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: -2px;
}

.tekla-checkout-cohorts.hidden,
.tekla-checkout-field[data-pin-field].hidden {
    display: none !important;
}

.tekla-checkout-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tekla-checkout-date {
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 11px 18px;
    border: 1px solid #dde4ec;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    box-shadow: none;
}

.tekla-checkout-date.is-on {
    border: 1px solid #35c0ea;
    background: #f4fbfe;
    box-shadow: 0 0 0 3px rgba(53, 192, 234, 0.12);
}

.tekla-checkout-date-day {
    font-weight: 700;
    font-size: 13.5px;
    color: #0f172a;
}

.tekla-checkout-date-time {
    font-size: 13px;
    color: #475569;
}

.tekla-checkout-empty {
    font-size: 12.5px;
    color: #b45309;
}

.tekla-checkout-empty.hidden {
    display: none !important;
}

.tekla-checkout-coupon-ok {
    display: none;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    font-size: 12.5px;
    line-height: 1.2;
    color: #12855a;
    font-weight: 600;
    white-space: nowrap;
}

.tekla-checkout-coupon-ok:not(.hidden) {
    display: flex;
}

.tekla-checkout-coupon-check {
    font-size: 11px;
    flex: none;
    color: inherit;
}

.tekla-checkout-status {
    font-size: 13px;
    min-height: 0;
}

.tekla-checkout-paywrap {
    padding: 20px 20px 0;
}

.tekla-checkout-pay {
    width: 100%;
    padding: 16px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #2fc0ec, #3ba7e6);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 12px 24px -12px rgb(47, 192, 236);
}

.tekla-checkout-pay:disabled {
    opacity: 0.7;
    cursor: default;
}

.tekla-checkout-pay-note {
    text-align: center;
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 10px;
}

/* Narrow: phone + iPad portrait. Keep the compact 390px sheet. */
@media (max-width: 1023px) {
    .tekla-checkout-field:not(.tekla-checkout-cohorts) > span:not(.tekla-checkout-coupon-ok) {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .tekla-checkout-sheet {
        padding-bottom: 12px;
    }

    .tekla-checkout-kicker {
        padding-top: 16px;
    }

    .tekla-checkout-product {
        padding-top: 10px;
    }

    .tekla-checkout-hero {
        padding-top: 8px;
    }

    .tekla-checkout-rows {
        padding-top: 10px;
    }

    .tekla-checkout-fields {
        position: relative;
        padding-top: 8px;
        gap: 6px;
    }

    .tekla-checkout-field:not(.tekla-checkout-cohorts) {
        position: relative;
        gap: 0;
    }

    .tekla-checkout-status:empty {
        display: none;
    }

    .tekla-checkout-paywrap {
        padding-top: 6px;
    }

    .tekla-checkout-pay-note {
        margin-top: 6px;
    }

    .tekla-checkout-coupon-field input {
        padding-right: 36px;
    }

    .tekla-checkout-coupon-ok {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        gap: 0;
        margin-top: 0;
        color: #12855a;
        pointer-events: none;
        z-index: 1;
    }

    .tekla-checkout-coupon-copy {
        display: none;
    }

    .tekla-checkout-coupon-check {
        font-size: 16px;
        line-height: 1;
        font-weight: 700;
        color: #12855a;
    }
}

/* Laptop / desktop two-column card. iPad portrait stays on the 390px sheet. */
@media (min-width: 1024px) {
    #tekla-checkout-modal.tekla-checkout-overlay {
        align-items: center;
        padding: 40px 24px;
    }

    .tekla-checkout-sheet {
        display: flex;
        align-items: stretch;
        width: min(1080px, calc(100vw - 48px));
        max-width: calc(100vw - 48px);
        border-radius: 26px;
        padding-bottom: 0;
        box-shadow: 0 40px 90px rgba(6, 22, 32, 0.35);
        overflow: hidden;
    }

    .tekla-checkout-close {
        top: 20px;
        right: 24px;
        font-size: 24px;
        color: #a3adb4;
    }

    .tekla-checkout-summary {
        width: 424px;
        flex: none;
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 34px 34px 30px;
        background: #fff;
        border-right: 1px solid #e6ecf0;
        box-sizing: border-box;
    }

    .tekla-checkout-kicker {
        padding: 0;
    }

    .tekla-checkout-title {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: #8a959d;
        line-height: 1;
    }

    .tekla-checkout-product {
        padding: 0;
        gap: 3px;
    }

    .tekla-checkout-product [data-checkout-product] {
        font-size: 25px;
        font-weight: 700;
        letter-spacing: -0.01em;
        color: #10222c;
    }

    .tekla-checkout-product [data-checkout-option] {
        font-size: 14px;
        color: #6a767e;
    }

    .tekla-checkout-hero {
        padding: 0;
        gap: 12px;
    }

    .tekla-checkout-hero [data-checkout-price] {
        font-size: clamp(48px, 5vw, 76px);
        font-weight: 700;
        letter-spacing: -0.03em;
        color: #2ba3e0;
        line-height: 0.95;
    }

    .tekla-checkout-hero [data-checkout-price-suffix] {
        font-size: 20px;
        color: #6a767e;
        padding-bottom: 0;
    }

    .tekla-checkout-hero [data-checkout-was] {
        font-size: 24px;
        color: #e02b2b;
        padding-bottom: 0;
        text-decoration-thickness: 2px;
    }

    .tekla-checkout-ribbon {
        margin: 0 -34px;
        padding: 13px 34px;
        background: #e8f5fc;
    }

    .tekla-checkout-ribbon [data-checkout-ribbon-label],
    .tekla-checkout-ribbon [data-checkout-ribbon-save] {
        font-size: 14px;
        font-weight: 600;
        color: #1b7fae;
    }

    .tekla-checkout-rows {
        padding: 0;
        gap: 12px;
        font-size: 14.5px;
    }

    .tekla-checkout-row {
        font-size: 14.5px;
        color: #55636d;
    }

    .tekla-checkout-row [data-checkout-later-amount] {
        color: #10222c;
        font-weight: 500;
    }

    [data-checkout-total-row].flex {
        padding-top: 12px;
        border-top: 1px solid #eaeff2;
    }

    [data-checkout-total-row] > span:first-child {
        font-weight: 600;
        color: #10222c;
    }

    .tekla-checkout-row [data-checkout-total] {
        font-size: 17px;
    }

    .tekla-checkout-sheet [data-checkout-gel-note] {
        padding: 11px 13px;
        border-radius: 11px;
        background: #f1f6fa;
        font-size: 12.5px;
        color: #5d6b74;
    }

    .tekla-checkout-inclusions:not(.hidden) {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px 14px;
        padding-top: 2px;
        margin: 0;
        list-style: none;
    }

    .tekla-checkout-inc {
        display: flex;
        gap: 7px;
        align-items: flex-start;
        font-size: 11px;
        line-height: 1.35;
        color: #7d8a94;
    }

    .tekla-checkout-inc-mark {
        flex: none;
        width: 13px;
        height: 13px;
        margin-top: 1px;
        border-radius: 999px;
        font-size: 8px;
        font-weight: 600;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tekla-checkout-inc-blue .tekla-checkout-inc-mark {
        border: 1px solid #2ba3e0;
        color: #2ba3e0;
    }

    .tekla-checkout-inc-green .tekla-checkout-inc-mark {
        border: 1px solid #2fb573;
        color: #2fb573;
    }

    .tekla-checkout-form {
        flex: 1;
        min-width: 0;
        background: #f4f6f8;
        padding: 34px 38px 30px;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    .tekla-checkout-fields {
        flex: 1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
        align-content: center;
        margin: 0;
        padding: 0 0 12px;
        gap: 22px;
    }

    .tekla-checkout-field:not(.tekla-checkout-cohorts) > span:not(.tekla-checkout-coupon-ok) {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .tekla-checkout-field:not(.tekla-checkout-cohorts) {
        position: relative;
        gap: 8px;
    }

    .tekla-checkout-cohorts,
    .tekla-checkout-coupon-field,
    .tekla-checkout-status,
    .tekla-checkout-field[data-pin-field]:not(.hidden) {
        grid-column: 1 / -1;
    }

    .tekla-checkout-field.tekla-checkout-cohorts {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 10px;
        row-gap: 10px;
        align-items: baseline;
    }

    .tekla-checkout-field.tekla-checkout-cohorts > span:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .tekla-checkout-field.tekla-checkout-cohorts .tekla-checkout-hint {
        grid-column: 2;
        grid-row: 1;
    }

    .tekla-checkout-field.tekla-checkout-cohorts .tekla-checkout-dates,
    .tekla-checkout-field.tekla-checkout-cohorts .tekla-checkout-empty {
        grid-column: 1 / -1;
    }

    .tekla-checkout-hint {
        font-size: 12.5px;
        color: #8a959d;
        margin: 0;
    }

    .tekla-checkout-cohorts > span:first-child {
        font-size: 14px;
        font-weight: 600;
        color: #22323c;
    }

    .tekla-checkout-dates {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .tekla-checkout-date {
        width: 100%;
        padding: 12px 14px;
        border-radius: 12px;
        box-sizing: border-box;
    }

    .tekla-checkout-sheet input[type="text"],
    .tekla-checkout-sheet input[type="email"] {
        height: 48px;
        padding: 0 14px;
        border-radius: 12px;
        font-size: 15px;
    }

    .tekla-checkout-paywrap {
        margin-top: auto;
        padding: 28px 0 0;
    }

    .tekla-checkout-pay {
        height: 58px;
        padding: 0;
        border-radius: 999px;
        font-size: 18px;
        font-weight: 600;
        background: linear-gradient(180deg, #4bc0ef 0%, #2ba3e0 100%);
        box-shadow: 0 10px 24px rgba(43, 163, 224, 0.3);
    }

    .tekla-checkout-pay-note {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
        font-size: 12.5px;
        color: #8a959d;
    }

    .tekla-checkout-pay-note::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #2fb573;
        flex: none;
    }

    .tekla-checkout-sheet .tekla-gel-chip button {
        padding: 5px 12px;
        font-size: 14px;
    }
}
