.dsc-checkout {
    margin: 24px 0;
}

.dsc-form {
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 24px;
    background: #fff;
    position: relative;
}

.dsc-product-tabs__heading {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.dsc-product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px;
    background: #f8fafc;
    margin-bottom: 20px;
}

.dsc-product-tab {
    flex: 1 1 220px;
    min-width: 160px;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    background: transparent;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.dsc-product-tab__label {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.dsc-product-tab.is-active {
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.dsc-price-card {
    border: 1px solid #dadcec;
    border-radius: 12px;
    padding: 16px;
    background: #f9fafc;
    margin-bottom: 20px;
}

.dsc-price-card__final {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    display: block;
    margin: 4px 0 0 0;
}

.dsc-price-card__original {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
    display: none;
    margin-top: 4px;
}

.dsc-price-card__savings {
    font-size: 13px;
    color: #059669;
    margin-top: 6px;
    display: none;
}

.dsc-price-card.is-discounted .dsc-price-card__final {
    color: #0ea5e9;
}

.dsc-price-card.is-discounted .dsc-price-card__original,
.dsc-price-card.is-discounted .dsc-price-card__savings {
    display: block;
}

.dsc-price-card__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    color: #6b7280;
    display: block;
}

.dsc-price-card__headline {
    font-size: 20px;
    margin: 6px 0 0 0;
    color: #0f172a;
}

.dsc-price-card__subline {
    margin: 6px 0 0 0;
    color: #4b5563;
    font-size: 13px;
}

    .dsc-price-card__term-label {
        font-size: 15px;
        color: #4b5563;
        margin: 3px 0 0 0;
        display: block;
    }

.dsc-price-card__subscription,
.dsc-price-card__one-time {
    min-height: 64px;
}

.dsc-form__title {
    margin-top: 0;
}

.dsc-row {
    margin-bottom: 16px;
}

.dsc-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.dsc-field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.dsc-row input {
    width: 100%;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    padding: 10px;
    margin-top: 6px;
}

.dsc-row select {
    width: 100%;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    padding: 10px;
    margin-top: 6px;
    background-color: #fff;
}

.dsc-row--coupon input {
    flex: 1;
    width: 100%;
    min-width: 0;
}

.dsc-row--coupon label {
    width: 100%;
}

.dsc-coupon-field {
    margin-top: 6px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.dsc-button {
    border: 1px solid #111d4a;
    background: #111d4a;
    color: #fff;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.dsc-button:hover:not(:disabled) {
    background: #0c1533;
}

.dsc-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.dsc-button--subtle {
    background: #ecf1ff;
    color: #111d4a;
    border-color: #c7d2fe;
}

.dsc-coupon-feedback {
    font-size: 13px;
    margin-top: 6px;
    color: #059669;
}

.dsc-coupon-feedback.is-error {
    color: #c0392b;
}

.dsc-free-note {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    margin: 12px 0 18px 0;
    display: none;
}

.dsc-form--free .dsc-free-note {
    display: block;
}

.dsc-form--free [data-card-row] {
    display: none;
}

.dsc-form__description {
    margin-bottom: 20px;
}

.dsc-row--split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.dsc-card-element {
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    padding: 12px;
    margin-top: 6px;
}

.dsc-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dsc-payment-method {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 10px 14px;
    background: #f8fafc;
    cursor: pointer;
}

.dsc-payment-method.is-active {
    border-color: #111d4a;
    background: #eef2ff;
}

.dsc-payment-method input {
    width: auto;
    margin: 0;
}

.dsc-ach-note {
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    padding: 14px 16px;
}

.dsc-ach-note p {
    margin: 6px 0 0 0;
    color: #334155;
    font-size: 14px;
}


.dsc-submit {
    background: #111d4a;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.dsc-submit__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: dsc-spin 1s linear infinite;
}

.dsc-form.is-processing .dsc-submit__spinner {
    display: inline-block;
}

@keyframes dsc-spin {
    to { transform: rotate(360deg); }
}

.dsc-feedback {
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 16px;
}

.dsc-feedback--error {
    background: #fdecea;
    color: #c0392b;
}

.dsc-feedback--success {
    background: #e3fcec;
    color: #1b5e20;
}

.dsc-form.is-finished .dsc-row,
.dsc-form.is-finished .dsc-price-card,
.dsc-form.is-finished .dsc-submit {
    display: none;
}

.dsc-form.is-finished .dsc-feedback {
    display: block;
}

.dsc-trigger-button {
    background: #111d4a;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
}

.dsc-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2147483000;
}

.dsc-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.dsc-modal__body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 960px;
    width: calc(100% - 48px);
}

.dsc-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: rgba(15, 23, 42, 0.9);
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 9;
}

.dsc-modal__close:hover,
.dsc-modal__close:focus {
    transform: scale(1.05);
    background: rgba(15, 23, 42, 1);
}

.dsc-modal__layout {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 65px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: row;
}

.dsc-modal__panel {
    flex: 1;
    padding: 32px;
}

.dsc-modal__panel--content {
    background: linear-gradient(135deg, #0f172a, #1d2671);
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.dsc-modal__content-title {
    margin: 0;
    font-size: 28px;
}

.dsc-modal__content-body {
    font-size: 16px;
}

.dsc-modal__content-body a {
    color: #a5b4fc;
}

.dsc-modal__panel--form {
    background: #fff;
}

.dsc-modal__panel--form .dsc-form {
    border: none;
    padding: 0;
    box-shadow: none;
}

.dsc-modal__panel--form .dsc-price-card {
    margin-top: 0;
}

@media (max-width: 768px) {
    .dsc-modal__body {
        max-width: 640px;
    }

    .dsc-modal__layout {
        flex-direction: column;
    }

    .dsc-modal__panel {
        padding: 24px;
    }
}

.dsc-checkout.dsc-modal-open .dsc-modal {
    display: block;
}

.dsc-checkout-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}
