.ld-checkout {
    max-width: 480px;
    margin: 40px auto;
    background: #0f1521;
    border-radius: 16px;
    padding: 40px 36px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
    border: 1px solid rgba(255, 255, 255, .08);
    box-sizing: border-box;
}

.ld-checkout *,
.ld-checkout *::before,
.ld-checkout *::after {
    box-sizing: border-box;
}

.ld-checkout__header {
    text-align: center;
    margin-bottom: 28px;
}

.ld-checkout__header h2 {
    color: #f0f4f8;
    font-size: 1.4rem;
    margin: 0 0 4px;
    font-weight: 700;
}

.ld-checkout__header p {
    color: #8a9bb0;
    font-size: .9rem;
    margin: 0;
}

.ld-checkout__plan {
    text-align: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.ld-checkout__plan-name {
    color: #8a9bb0;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}

.ld-checkout__plan-amount {
    color: #f0f4f8;
    font-size: 2rem;
    font-weight: 800;
}

.ld-checkout__plan-interval {
    color: #8a9bb0;
    font-size: .95rem;
}

.ld-checkout__includes {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.ld-checkout__includes li {
    color: #c0cdd8;
    font-size: .9rem;
    padding: 6px 0 6px 28px;
    position: relative;
    line-height: 1.4;
}

.ld-checkout__includes li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
    font-size: .95rem;
}

.ld-checkout__success {
    text-align: center;
    padding: 20px 0;
}

.ld-checkout__success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(34, 197, 94, .15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    font-size: 32px;
    line-height: 64px;
}

.ld-checkout__success h3 {
    color: #f0f4f8;
    font-size: 1.3rem;
    margin: 0 0 12px;
}

.ld-checkout__success p {
    color: #c0cdd8;
    font-size: .95rem;
    margin: 0 0 8px;
    line-height: 1.5;
}

.ld-checkout__success-redirect {
    color: #8a9bb0 !important;
    font-size: .85rem !important;
    margin-top: 16px !important;
}

.ld-checkout__error {
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #f87171;
    font-size: .9rem;
    text-align: center;
}

.ld-checkout__row {
    display: flex;
    gap: 12px;
}

.ld-checkout__row .ld-checkout__field {
    flex: 1;
}

.ld-checkout__row .ld-checkout__field--small {
    flex: 0 0 70px;
}

.ld-checkout__field {
    margin-bottom: 18px;
}

.ld-checkout__field label {
    display: block;
    color: #8a9bb0;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}

.ld-checkout__field input[type="text"],
.ld-checkout__field input[type="email"],
.ld-checkout__field input[type="tel"] {
    width: 100%;
    padding: 13px 16px;
    background: #161e2e;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    color: #f0f4f8;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.ld-checkout__field input:focus {
    border-color: var(--ld-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .25);
}

.ld-checkout__card {
    background: #161e2e;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    padding: 13px 16px;
    min-height: 48px;
    transition: border-color .2s, box-shadow .2s;
}

.ld-checkout__card.ld-checkout__card--focus {
    border-color: var(--ld-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .25);
}

/* Accepted card brand logos (payment-processor requirement) */
.ld-checkout__cards {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.ld-checkout__cards-label {
    font-size: 12px;
    color: var(--ld-text-muted, #8a9bb0);
}
.ld-checkout__card-logos {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ld-checkout__card-logos .ld-card-logo {
    width: 36px;
    height: auto;
    display: block;
    border-radius: 4px;
}

.ld-checkout__btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 24px;
    background: var(--ld-primary, #2563eb);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
    letter-spacing: .02em;
    text-align: center;
    text-decoration: none;
}

.ld-checkout__btn:hover {
    background: var(--ld-primary-dk, #1d4ed8);
    box-shadow: 0 4px 16px rgba(37, 99, 235, .3);
}

.ld-checkout__btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.ld-checkout__optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #6b7685;
}

.ld-checkout__coupon-row {
    display: flex;
    gap: 10px;
}

.ld-checkout__coupon-row input {
    flex: 1;
}

.ld-checkout__coupon-btn {
    flex: 0 0 auto;
    padding: 0 20px;
    background: #161e2e;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    color: #c0cdd8;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.ld-checkout__coupon-btn:hover {
    border-color: var(--ld-primary, #2563eb);
    color: #f0f4f8;
}

.ld-checkout__coupon-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.ld-checkout__coupon-status {
    font-size: .85rem;
    margin-top: 6px;
    min-height: 1em;
}

.ld-checkout__coupon-status.is-valid {
    color: #22c55e;
}

.ld-checkout__coupon-status.is-error {
    color: #f87171;
}

.ld-checkout__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #6b7685;
    font-size: .85rem;
}

.ld-checkout__divider::before,
.ld-checkout__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, .1);
}

.ld-checkout__paypal-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #ffc439;
    color: #003087;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
    text-align: center;
}

.ld-checkout__paypal-btn:hover {
    background: #f0b429;
    box-shadow: 0 4px 16px rgba(255, 196, 57, .25);
}

.ld-checkout__paypal-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.ld-checkout--subscribed {
    text-align: center;
}

.ld-checkout--subscribed .ld-checkout__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: rgba(34, 197, 94, .15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    font-size: 28px;
    line-height: 56px;
}

.ld-checkout--subscribed p {
    color: #f0f4f8;
    font-size: 1.05rem;
    margin: 0 0 24px;
}

.ld-checkout--subscribed .ld-checkout__btn {
    display: inline-block;
    width: auto;
    padding: 12px 28px;
}
