.dl-checkout {
    min-height: 100vh;
    padding: clamp(18px, 4vw, 44px);
    background:
        radial-gradient(circle at 14% 10%, rgba(79, 195, 255, 0.28), transparent 24%),
        radial-gradient(circle at 86% 82%, rgba(255, 214, 224, 0.68), transparent 24%),
        linear-gradient(180deg, #f5fbff 0%, #ffffff 46%, #f7fafe 100%);
    color: #1a1d2e;
    font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dl-checkout-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 520px);
    gap: clamp(22px, 5vw, 64px);
    align-items: center;
    width: min(1120px, 100%);
    min-height: calc(100vh - 88px);
    margin: 0 auto;
}

.dl-checkout-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 42px;
    color: #1a1d2e;
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
}

.dl-checkout-logo {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background:
        radial-gradient(circle at 82% 78%, #00c2b8 0 18%, transparent 19%),
        linear-gradient(135deg, #5b5fc7, #4950d8 52%, #4fc3ff);
    box-shadow: 0 14px 28px rgba(91, 95, 199, 0.28);
}

.dl-checkout-logo-image {
    display: block;
    width: 210px;
    max-width: min(64vw, 100%);
    height: auto;
}

.dl-checkout-eyebrow {
    margin: 0 0 12px;
    color: #5b5fc7;
    font-weight: 900;
}

.dl-checkout h1 {
    max-width: 680px;
    margin: 0 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.dl-checkout-copy > p:last-of-type {
    max-width: 620px;
    color: #424656;
    font-size: 18px;
}

.dl-checkout-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.dl-checkout-trust span {
    display: inline-flex;
    border-radius: 999px;
    background: #ffffff;
    color: #424656;
    padding: 9px 12px;
    box-shadow: 0 8px 24px rgba(26, 29, 46, 0.08);
    font-size: 13px;
    font-weight: 900;
}

.dl-checkout-card {
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 80px rgba(26, 29, 46, 0.14);
    overflow: hidden;
}

.dl-checkout-plan {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    background:
        radial-gradient(circle at 92% 80%, #00c2b8 0 16%, transparent 17%),
        linear-gradient(135deg, #5b5fc7, #444bd3);
    color: #ffffff;
}

.dl-checkout-plan p,
.dl-checkout-plan h2 {
    margin: 0;
}

.dl-checkout-plan p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 800;
}

.dl-checkout-plan h2,
.dl-checkout-plan strong {
    font-size: 26px;
    line-height: 1.1;
}

.dl-checkout-form {
    display: grid;
    gap: 15px;
    padding: 24px;
}

.dl-upgrade-note {
    margin: 0;
    border-radius: 16px;
    background: #eeeefa;
    color: #5b5fc7;
    padding: 13px 14px;
    font-size: 13px;
    font-weight: 900;
}

.dl-checkout-grid,
.dl-discount-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dl-discount-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.dl-checkout label {
    display: grid;
    gap: 7px;
    color: #8e94a6;
    font-size: 13px;
    font-weight: 900;
}

.dl-checkout input {
    min-height: 48px;
    border: 1px solid #e7eaf2;
    border-radius: 14px;
    background: #ffffff;
    color: #1a1d2e;
    padding: 10px 13px;
}

.dl-checkout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #5b5fc7, #444bd3);
    color: #ffffff;
    padding: 10px 18px;
    font-weight: 900;
    text-decoration: none;
}

.dl-checkout-button-light {
    border: 1px solid rgba(91, 95, 199, 0.24);
    background: #ffffff;
    color: #5b5fc7;
}

.dl-checkout-message {
    min-height: 20px;
    margin: 0;
    color: #5b5fc7;
    font-size: 13px;
    font-weight: 800;
}

.dl-checkout-summary {
    display: grid;
    gap: 10px;
    padding: 15px;
    border-radius: 18px;
    background: #f7fafe;
}

.dl-checkout-summary div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.dl-checkout-summary div:last-child {
    padding-top: 10px;
    border-top: 1px solid #e7eaf2;
    font-size: 18px;
}

@media (max-width: 860px) {
    .dl-checkout-shell,
    .dl-checkout-grid,
    .dl-discount-row {
        grid-template-columns: 1fr;
    }

    .dl-checkout-shell {
        min-height: auto;
    }
}

/* Duitlabs v0.3.17: branded pre-payment confirmation modal */
.dl-payment-modal[hidden] {
    display: none !important;
}

.dl-payment-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
}

.dl-payment-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 31, 0.62);
    backdrop-filter: blur(12px);
}

.dl-payment-modal-card {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    max-height: min(92vh, 760px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    background:
        radial-gradient(circle at 92% 4%, rgba(79, 195, 255, 0.22), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.98));
    box-shadow: 0 28px 90px rgba(10, 14, 31, 0.28);
    padding: 24px;
    color: #1a1d2e;
}

.dl-payment-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 14px;
    background: rgba(91, 95, 199, 0.1);
    color: #1a1d2e;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.dl-payment-modal-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 48px 18px 0;
    color: #5b5fc7;
    font-size: 13px;
    font-weight: 900;
}

.dl-payment-modal-brand img {
    width: 134px;
    height: auto;
}

.dl-payment-modal-eyebrow {
    margin: 0 0 8px;
    color: #0070df;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dl-payment-modal-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.dl-payment-modal-copy {
    margin: 0 0 18px;
    color: #5f6575;
    font-size: 14px;
    line-height: 1.7;
}

.dl-payment-modal-summary {
    display: grid;
    gap: 8px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(26, 29, 46, 0.08);
    padding: 16px;
}

.dl-payment-modal-summary div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    color: #5f6575;
    font-size: 13px;
    font-weight: 800;
}

.dl-payment-modal-summary strong {
    max-width: 58%;
    color: #1a1d2e;
    text-align: right;
}

.dl-payment-modal-total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e7eaf2;
}

.dl-payment-modal-total span,
.dl-payment-modal-total strong {
    color: #5b5fc7;
    font-size: 18px;
    font-weight: 900;
}


.dl-payment-modal-message {
    min-height: 20px;
    margin: 14px 0 0;
    color: #5f6575;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.dl-payment-modal-message:empty {
    display: none;
}

.dl-payment-modal-message[data-state="loading"] {
    color: #5b5fc7;
}

.dl-payment-modal-message[data-state="error"] {
    color: #d94a55;
}

.dl-payment-modal-message[data-state="success"] {
    color: #0b9f8f;
}

.dl-checkout-button[aria-busy="true"] {
    cursor: wait;
    opacity: 0.86;
}

.dl-payment-modal-actions {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 10px;
    margin-top: 16px;
}

.dl-payment-modal-note {
    margin: 14px 0 0;
    color: #8e94a6;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.dl-payment-modal-open {
    overflow: hidden;
}

@media (max-width: 560px) {
    .dl-payment-modal {
        align-items: end;
        padding: 12px;
    }

    .dl-payment-modal-card {
        width: 100%;
        max-height: 88vh;
        border-radius: 26px;
        padding: 20px;
    }

    .dl-payment-modal-brand {
        margin-bottom: 14px;
    }

    .dl-payment-modal-brand img {
        width: 118px;
    }

    .dl-payment-modal-card h2 {
        font-size: 24px;
    }

    .dl-payment-modal-actions {
        grid-template-columns: 1fr;
    }
}

/* Duitlabs v0.3.35: mobile checkout and payment modal readability polish */
@media (max-width: 860px) {
    .dl-checkout {
        padding: 28px 20px 32px;
    }

    .dl-checkout-brand {
        margin-bottom: 30px;
    }

    .dl-checkout h1 {
        font-size: clamp(34px, 10.2vw, 48px);
        line-height: 1.07;
        letter-spacing: -0.055em;
        max-width: 560px;
    }

    .dl-checkout-copy > p:last-of-type {
        font-size: 16px;
        line-height: 1.65;
    }
}

@media (max-width: 560px) {
    .dl-checkout {
        padding: 26px 16px 30px;
    }

    .dl-checkout-logo-image {
        width: 186px;
    }

    .dl-checkout-eyebrow {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .dl-checkout h1 {
        font-size: clamp(32px, 9.6vw, 42px);
        line-height: 1.08;
        margin-bottom: 16px;
    }

    .dl-checkout-copy > p:last-of-type {
        font-size: 15.5px;
        line-height: 1.66;
    }

    .dl-checkout-trust {
        gap: 8px;
        margin-top: 20px;
    }

    .dl-checkout-trust span {
        padding: 8px 11px;
        font-size: 12px;
    }

    .dl-payment-modal-card {
        padding: 18px;
        border-radius: 24px;
    }

    .dl-payment-modal-brand {
        gap: 8px;
        margin-right: 44px;
        font-size: 11.5px;
        line-height: 1.35;
    }

    .dl-payment-modal-brand img {
        width: 104px;
        flex: 0 0 auto;
    }

    .dl-payment-modal-eyebrow {
        font-size: 10.5px;
        margin-bottom: 6px;
    }

    .dl-payment-modal-card h2 {
        font-size: 22px;
        line-height: 1.12;
        letter-spacing: -0.04em;
    }

    .dl-payment-modal-copy {
        font-size: 12.5px;
        line-height: 1.62;
        margin-bottom: 14px;
    }

    .dl-payment-modal-summary {
        padding: 14px;
        gap: 6px;
        border-radius: 18px;
    }

    .dl-payment-modal-summary div {
        gap: 10px;
        font-size: 11.5px;
        line-height: 1.35;
    }

    .dl-payment-modal-summary span {
        flex: 0 0 auto;
    }

    .dl-payment-modal-summary strong {
        max-width: 64%;
        font-size: 11.8px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .dl-payment-modal-total span,
    .dl-payment-modal-total strong {
        font-size: 16px;
    }

    .dl-payment-modal-actions {
        gap: 9px;
        margin-top: 14px;
    }

    .dl-payment-modal-note {
        font-size: 11px;
        line-height: 1.5;
    }
}
