/* Dark Theme Checkout Styles */
.mws-checkout-wrapper {
    background: #ffffff;
    color: #0f172a;
}

.mws-checkout-hero {
    padding-bottom: 140px;
}
.mws-checkout-header h2.mws-checkout-title{
color: #37474F;
text-align: center;
font-family: "Figtree", sans-serif;
font-size: 48px;
font-style: normal;
font-weight: 600;
line-height: normal;
letter-spacing: -1px;
}
.mws-checkout-header h2.mws-checkout-title span{
    background: linear-gradient(90deg, #7D35F1 0%, #0857C6 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-family: Figtree;
font-size: 48px;
font-style: normal;
font-weight: 600;
line-height: normal;
letter-spacing: -1px;
}
.mws-checkout-header p.mws-checkout-desc {
color: #6B7280;
text-align: center;
font-family: "Reddit Sans";
font-size: 18px;
font-style: normal;
font-weight: 400;
line-height: normal;
}
.mws-checkout-main-content {
    padding: 80px 0px;
    margin-top: 0px;
}

.mws-checkout-header {
    text-align: center;
    margin: 0 auto 80px;
}

.mws-checkout-title {
    margin: 0 0 10px;
    font-size: 44px;
    font-weight: 800;
    color: #0f172a;
}

.mws-checkout-desc {
    margin: 0;
    font-size: 18px;
    color: #64748b;
}

/* Stepper */
.mws-checkout-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto 60px;
    position: relative;
}

.mws-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
    width: 80px;
}

.mws-step-number {
    font-family: "Reddit Sans", sans-serif;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: #37474F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid #E9EAEB;
    transition: all 0.3s ease;
}

.mws-step.active .mws-step-number {
    color: #0f172a;
}
.mws-step.completed .mws-step-label {
  color: #0f172a;
  text-decoration: underline;
}

.mws-step.completed svg {
    display: inline;
}
.mws-step.completed .mws-step-number {
    display: none;
}
.mws-step svg,
.mws-step.active svg {
    display: none;
}
.mws-step .mws-step-number,
.mws-step.active .mws-step-number {
    display: flex;
}

.mws-step-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.mws-step.active .mws-step-label {
    color: #0f172a;
}

.mws-step-divider {
    flex-grow: 1;
    height: 2px;
    background: transparent;
    border-top: 2px dotted #D5D7DA;
    margin-top: -13px;
    margin-left: -40px;
    margin-right: -40px;
    z-index: 1;
}

/* Flex Container */
.mws-checkout-flex-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.mws-checkout-sidebar {
    width: 350px;
    flex-shrink: 0;
}

.mws-checkout-form-container {
    flex-grow: 1;
    padding: 20px 25px;
    position: relative;
    border-radius: 24px;
border: 1px solid rgba(255, 255, 255, 0.10);
background: linear-gradient(180deg, rgba(223, 224, 255, 0.06) 0%, rgba(223, 224, 255, 0.13) 50%, rgba(223, 224, 255, 0.06) 100%), linear-gradient(180deg, rgba(17, 18, 20, 0.50) 0%, rgba(11, 12, 17, 0.50) 100%), #000;
box-shadow: 5px 15px 20px 0 rgba(126, 105, 238, 0.10);
}

.mws-plan-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 25px 0;
}

/* Form Elements */
.mws-form-section-title {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.mws-form-section-title i {
    width: 44px;
}

.mws-form-section-title svg {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -15px;
}
.mws-form-section.mws-confirmation-section .mws-form-section-title svg {
     margin-left: 0px;
}

.mws-form-section-title h3 {
    margin: 0;
    font-size: 20px;
    color: #fff;
    font-family: "Figtree", sans-serif;
}

.mws-form-section-title h3 span {
    font-family: "Figtree", sans-serif;
    background: linear-gradient(90deg, #7D35F1 0%, #0857C6 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 20px;
font-style: normal;
font-weight: 600;
line-height: normal;
letter-spacing: -1px;
}

.mws-form-section-title p {
    color: #9CA3AF;
font-family: "Reddit Sans", sans-serif;
font-style: normal;
font-weight: 400;
line-height: normal;
letter-spacing: -1px;
    margin: 5px 0 0;
    font-size: 14px;
}
.mws-form-section-title p span {
   background: linear-gradient(90deg, #7D35F1 0%, #0857C6 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 16px;
}

.mws-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mws-form-group.full-width {
    grid-column: span 2;
}

.mws-input-dark {
    font-family: "Reddit Sans", sans-serif;
    width: 100%;
    color: #9CA3AF !important;
    padding: 12px 20px;
    font-size: 15px;
    transition: all 0.2s ease;
    border-radius: 40px !important;
border: 0.5px solid rgba(153, 153, 153, 0.40) !important;
background: linear-gradient(180deg, rgba(206, 194, 252, 0.08) 0%, rgba(64, 62, 85, 0.08) 100%);
backdrop-filter: blur(12px);
}

.mws-input-dark:focus {
    border-color: #6366f1 !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.mws-input-dark.is-invalid {
    border-color: #ef4444 !important;
}

.mws-form-message {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
}

.mws-form-message.is-error {
    display: block;
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.mws-form-message.is-success {
    display: block;
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.api-response {
    margin-top: 18px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    max-height: 420px;
    overflow: auto;
}

.mws-api-log {
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.55);
    margin: 0 0 10px;
}

.mws-api-log.is-error {
    border-color: rgba(239, 68, 68, 0.35);
}

.mws-api-log summary {
    cursor: pointer;
    font-weight: 700;
    color: #f8fafc;
}

.mws-api-log pre {
    margin: 10px 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
    color: #fff;
    background-color: transparent;
}
.mws-api-summary {
    border-radius: 14px;
    padding: 12px 14px;
    margin: 0 0 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.45);
}

.mws-api-summary.is-success {
    border-color: rgba(34, 197, 94, 0.35);
}

.mws-api-summary.is-error {
    border-color: rgba(239, 68, 68, 0.35);
}

.mws-api-summary-title {
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 6px;
}

.mws-api-summary-message {
    color: #cbd5e1;
    font-size: 13px;
}

.mws-api-summary pre {
    margin: 10px 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
    color: #fff;
    background-color: transparent;
}


.mws-form-footer {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
}
.mws-btn-continue {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mws-btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Step Transitions */
.mws-checkout-step-content {
    display: none;
}

.mws-checkout-step-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loader */
.mws-form-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
}

.mws-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #1e293b;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Confirmation */
.mws-confirmation-header {
    text-align: center;
    margin-bottom: 40px;
}

.mws-success-icon {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mws-success-icon svg {
    width: 32px;
    height: 32px;
}

.mws-confirmation-details {
    border-radius: 16px;
    border: 0.5px solid rgba(153, 153, 153, 0.40);
    background: linear-gradient(180deg, rgba(223, 224, 255, 0.06) 0%, rgba(223, 224, 255, 0.13) 50%, rgba(223, 224, 255, 0.06) 100%), linear-gradient(180deg, rgba(17, 18, 20, 0.50) 0%, rgba(11, 12, 17, 0.50) 100%), #000;
    box-shadow: 5px 15px 20px 0 rgba(126, 105, 238, 0.10);
    backdrop-filter: blur(12px);
    padding: 24px;
}
.mws-confirmation-details .mws-inline-message {
   color: #fff;
}

.mws-conf-icon-label {
color: #99A1AF;
font-family: "Reddit Sans", sans-serif;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 20px; /* 125% */
}
.mws-conf-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(153, 153, 153, 0.40);
}

.mws-conf-row:last-child {
    border-bottom: none;
}

.mws-conf-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mws-conf-icon {
    display: flex;
    margin-right: 8px;
}
.mws-conf-value {
       color: #FFF;
    font-family: "Reddit Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.mws-conf-method {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.mws-conf-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mws-conf-brand svg {
    width: 34px !important;
    height: 22px !important;
    display: block;
    max-width: none !important;
}

.mws-conf-method-text {
    display: inline-flex;
    align-items: center;
}

/* Responsive */
@media (max-width: 992px) {
    .mws-checkout-flex-container {
        flex-direction: column;
    }
    .mws-checkout-sidebar {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .mws-form-grid {
        grid-template-columns: 1fr;
    }
    .mws-form-group.full-width {
        grid-column: span 1;
    }
}
