/* Shopify-Style Checkout CSS */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.ssc-checkout-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Hide WP admin bar */
body.ssc-checkout-body #wpadminbar {
    display: none !important;
}

.ssc-checkout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ==================== LEFT SIDE - Form ==================== */
.ssc-main {
    flex: 1;
    max-width: 660px;
    margin-left: auto;
    padding: 40px 60px 40px 40px;
}

.ssc-logo {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.ssc-logo-img {
    max-height: 40px;
    width: auto;
    display: block;
}

/* Breadcrumb */
.ssc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #737373;
    margin-bottom: 28px;
}

.ssc-breadcrumb a {
    color: #1773b0;
    text-decoration: none;
}

.ssc-breadcrumb a:hover {
    text-decoration: underline;
}

.ssc-breadcrumb .ssc-breadcrumb-sep {
    color: #b3b3b3;
    font-size: 11px;
}

.ssc-breadcrumb .ssc-breadcrumb-active {
    color: #333;
    font-weight: 500;
}

/* Section headings */
.ssc-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

/* Form */
.ssc-form-group {
    margin-bottom: 14px;
    position: relative;
}

.ssc-form-row {
    display: flex;
    gap: 12px;
}

.ssc-form-row .ssc-form-group {
    flex: 1;
}

.ssc-form-group label {
    display: block;
    font-size: 13px;
    color: #737373;
    margin-bottom: 4px;
    font-weight: 400;
}

.ssc-form-group input,
.ssc-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
    box-sizing: border-box;
    height: 46px;
    line-height: 20px;
    margin: 0;
    box-shadow: none;
}

.ssc-form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: #fff;
    background-size: 12px;
    padding-right: 36px;
    cursor: pointer;
}

.ssc-form-group input:focus,
.ssc-form-group select:focus {
    border-color: #1773b0;
    box-shadow: 0 0 0 2px rgba(23, 115, 176, 0.15);
}

.ssc-form-group input.ssc-error {
    border-color: #e32c2b;
}

.ssc-form-group .ssc-error-msg {
    color: #e32c2b;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.ssc-form-group input.ssc-error + .ssc-error-msg {
    display: block;
}

/* Sections */
.ssc-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e6e6e6;
}

.ssc-section:last-child {
    border-bottom: none;
}

/* ==================== PAYMENT METHODS ==================== */
.ssc-payment-subtitle {
    font-size: 13px;
    color: #737373;
    margin-bottom: 14px;
}

.ssc-payment-options {
    display: flex;
    flex-direction: column;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    overflow: hidden;
}

.ssc-payment-option {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #d9d9d9;
}

.ssc-payment-option:last-child {
    border-bottom: none;
}

.ssc-payment-option:hover {
    background: #fafafa;
}

.ssc-payment-option.ssc-selected {
    background: #f0faf0;
}

.ssc-payment-input {
    display: none;
}

.ssc-payment-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s ease;
}

.ssc-payment-option.ssc-selected .ssc-payment-radio {
    border-color: #2e7d32;
}

.ssc-payment-radio-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.15s ease;
}

.ssc-payment-option.ssc-selected .ssc-payment-radio-inner {
    background: #2e7d32;
}

.ssc-payment-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ssc-payment-name {
    font-size: 15px;
    font-weight: 400;
    color: #333;
}

.ssc-payment-option.ssc-selected .ssc-payment-name {
    font-weight: 600;
}

.ssc-payment-logo {
    height: 24px;
    width: auto;
}

/* Disabled / unavailable payment method */
.ssc-payment-option.ssc-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f9f9f9;
}

.ssc-payment-option.ssc-disabled:hover {
    background: #f9f9f9;
}

.ssc-payment-unavailable {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #e32c2b;
    margin-top: 2px;
}

.ssc-payment-error {
    color: #e32c2b;
    font-size: 13px;
    margin-bottom: 10px;
    display: none;
}

.ssc-payment-error.ssc-visible {
    display: block;
}

/* ==================== CREDIT CARD LOGOS & FORM ==================== */
.ssc-cc-logos {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ssc-cc-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e6e6e6;
    color: #737373;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    padding: 2px 6px;
    height: 24px;
    line-height: 1;
}

.ssc-cc-form {
    display: none;
    padding: 16px;
    background: #f0faf0;
    border-bottom: 1px solid #d9d9d9;
}

.ssc-cc-form.ssc-visible {
    display: block;
}

.ssc-cc-fields {
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    overflow: hidden;
}

.ssc-cc-row {
    position: relative;
    display: flex;
}

.ssc-cc-row + .ssc-cc-row {
    border-top: 1px solid #d9d9d9;
}

.ssc-cc-input {
    width: 100%;
    padding: 14px 40px 14px 14px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    height: auto;
    box-sizing: border-box;
    box-shadow: none;
}

.ssc-cc-input::placeholder {
    color: #b0b0b0;
    opacity: 1;
}

.ssc-cc-field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.ssc-cc-row-half {
    display: flex;
}

.ssc-cc-half {
    flex: 1;
    position: relative;
}

.ssc-cc-half + .ssc-cc-half {
    border-left: 1px solid #d9d9d9;
}

.ssc-cc-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    margin-top: 14px;
    cursor: default;
}

.ssc-cc-check-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ssc-cc-check-box.ssc-checked {
    background: #2e7d32;
}

/* ==================== SUBMIT BUTTON ==================== */
.ssc-submit-btn {
    width: 100%;
    padding: 18px 24px;
    background: #1773b0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.ssc-submit-btn:hover {
    background: #145f91;
}

.ssc-submit-btn:disabled {
    background: #93c5e4;
    cursor: not-allowed;
}

.ssc-submit-btn .ssc-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ssc-spin 0.6s linear infinite;
}

.ssc-submit-btn.ssc-loading .ssc-spinner {
    display: block;
}

.ssc-submit-btn.ssc-loading .ssc-btn-text {
    display: none;
}

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

/* Lock icon */
.ssc-lock-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    margin-right: 4px;
}

/* ==================== RIGHT SIDE - Order Summary ==================== */
.ssc-sidebar {
    width: 440px;
    background: #fafafa;
    border-left: 1px solid #e6e6e6;
    padding: 40px 40px 40px 60px;
    min-height: 100vh;
}

/* Cart items */
.ssc-cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e6e6e6;
}

.ssc-cart-item:last-child {
    margin-bottom: 20px;
}

.ssc-cart-item-img-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.ssc-cart-item-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    background: #f5f5f5;
}

.ssc-cart-item-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #737373;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssc-cart-item-details {
    flex: 1;
    min-width: 0;
}

.ssc-cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ssc-cart-item-variant {
    font-size: 13px;
    color: #737373;
}

.ssc-cart-item-price {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    margin-left: auto;
}

/* Totals */
.ssc-totals {
    padding-top: 4px;
}

.ssc-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #737373;
}

.ssc-totals-row span:last-child {
    color: #333;
    font-weight: 400;
}

.ssc-totals-divider {
    border: none;
    border-top: 1px solid #e6e6e6;
    margin: 16px 0;
}

.ssc-totals-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.ssc-totals-total-amount {
    font-size: 22px;
    font-weight: 600;
}

.ssc-totals-currency {
    font-size: 13px;
    color: #737373;
    font-weight: 400;
    margin-right: 6px;
}

/* ==================== ERROR MESSAGE ==================== */
.ssc-error-banner {
    background: #fef2f2;
    border: 1px solid #e32c2b;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
    color: #e32c2b;
    font-size: 14px;
    display: none;
}

.ssc-error-banner.ssc-visible {
    display: block;
}

/* ==================== WAITING SCREEN ==================== */
.ssc-waiting-screen,
.ssc-meeting-ready {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.ssc-waiting-screen.ssc-visible,
.ssc-meeting-ready.ssc-visible {
    display: block;
}

.ssc-waiting-icon,
.ssc-meeting-icon {
    margin-bottom: 24px;
}

.ssc-waiting-text {
    font-size: 15px;
    color: #737373;
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto 32px;
}

/* Animated dots */
.ssc-waiting-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.ssc-waiting-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1773b0;
    animation: ssc-bounce 1.4s ease-in-out infinite;
}

.ssc-waiting-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.ssc-waiting-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes ssc-bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Meeting ready button */
.ssc-meeting-btn {
    display: inline-flex !important;
    width: auto !important;
    padding: 18px 48px !important;
    background: #2e7d32 !important;
    text-decoration: none;
    margin-top: 0;
}

.ssc-meeting-btn:hover {
    background: #256428 !important;
}

/* ==================== CC POPUP ==================== */
.ssc-cc-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ssc-cc-popup-overlay.ssc-visible {
    display: flex;
}

.ssc-cc-popup-box {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    width: 320px;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    animation: ssc-popup-in 0.25s ease;
}

@keyframes ssc-popup-in {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ssc-cc-popup-logo {
    margin-bottom: 16px;
}

.ssc-cc-popup-logo img {
    max-height: 40px;
    width: auto;
}

.ssc-cc-popup-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 16px;
}

.ssc-cc-popup-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    outline: none;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 2px;
}

.ssc-cc-popup-input:focus {
    border-color: #1773b0;
    box-shadow: 0 0 0 2px rgba(23,115,176,0.15);
}

.ssc-cc-popup-submit {
    width: 100%;
    margin-top: 12px;
    padding: 12px 24px;
    font-size: 15px;
}

.ssc-cc-popup-result-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    padding: 8px 0;
}

.ssc-cc-popup-result-text.ssc-success {
    color: #2e7d32;
}

.ssc-cc-popup-result-text.ssc-fail {
    color: #e32c2b;
}

.ssc-cc-popup-error {
    background: #e32c2b;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    text-align: center;
}

/* ==================== FOOTER ==================== */
.ssc-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #e6e6e6;
    font-size: 12px;
    color: #999;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 999px) {
    .ssc-checkout-wrapper {
        flex-direction: column-reverse;
    }

    .ssc-main {
        max-width: 100%;
        margin: 0;
        padding: 24px 20px;
    }

    .ssc-sidebar {
        width: 100%;
        min-height: auto;
        padding: 24px 20px;
        border-left: none;
        border-bottom: 1px solid #e6e6e6;
    }

    /* Collapsible order summary on mobile */
    .ssc-sidebar-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 16px 20px;
        background: #fafafa;
        border-bottom: 1px solid #e6e6e6;
        font-size: 15px;
        color: #1773b0;
    }

    .ssc-sidebar-toggle-icon {
        transition: transform 0.2s;
    }

    .ssc-sidebar-toggle.ssc-open .ssc-sidebar-toggle-icon {
        transform: rotate(180deg);
    }

    .ssc-sidebar-content {
        display: none;
    }

    .ssc-sidebar-content.ssc-open {
        display: block;
    }
}

@media (min-width: 1000px) {
    .ssc-sidebar-toggle {
        display: none !important;
    }

    .ssc-sidebar-content {
        display: block !important;
    }
}
