/* Single Checkout Namespaced Styles - No collision with core WHMCS */

:root {
    --sc-primary: #2563eb;
    --sc-primary-hover: #1d4ed8;
    --sc-success: #10b981;
    --sc-danger: #ef4444;
    --sc-bg: #f8fafc;
    --sc-card-bg: #ffffff;
    --sc-border: #e2e8f0;
    --sc-text: #1e293b;
    --sc-text-muted: #64748b;
    --sc-radius: 10px;
    --sc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.sc-checkout-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--sc-text);
    padding: 0 15px;
}

.sc-header {
    margin-bottom: 25px;
}
.sc-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #0f172a;
}
.sc-header p {
    color: var(--sc-text-muted);
    font-size: 15px;
    margin: 0;
}

.sc-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: flex-start;
}

.sc-main-col {
    flex: 1 1 65%;
    min-width: 320px;
}

.sc-side-col {
    flex: 1 1 30%;
    min-width: 300px;
    position: sticky;
    top: 20px;
}

.sc-card {
    background: var(--sc-card-bg);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--sc-shadow);
}

.sc-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--sc-border);
    padding-bottom: 10px;
}

.sc-card-title .sc-badge {
    background: var(--sc-primary);
    color: #ffffff;
    font-size: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Product & Cycle Selection Grid */
.sc-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.sc-option-item {
    border: 2px solid var(--sc-border);
    border-radius: var(--sc-radius);
    padding: 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease-in-out;
    background: #fff;
}

.sc-option-item:hover {
    border-color: #93c5fd;
}

.sc-option-item.selected {
    border-color: var(--sc-primary);
    background-color: #eff6ff;
}

.sc-option-item .name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.sc-option-item .price {
    font-size: 13px;
    color: var(--sc-text-muted);
}

.sc-cycle-original-price {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-right: 4px;
}

.sc-cycle-promo-badge {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #15803d;
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.3;
}

/* Domain Section */
.sc-domain-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.sc-domain-tab {
    padding: 8px 14px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
}

.sc-domain-tab.active {
    background: var(--sc-primary);
    color: #fff;
}

.sc-input-group {
    display: flex;
    gap: 10px;
}

.sc-input {
    flex: 1;
    height: 42px;
    border: 1px solid var(--sc-border);
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}

.sc-input:focus {
    border-color: var(--sc-primary);
}

.sc-btn {
    height: 42px;
    padding: 0 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.sc-btn-primary {
    background: var(--sc-primary);
    color: #fff;
}
.sc-btn-primary:hover {
    background: var(--sc-primary-hover);
}

.sc-domain-result {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}
.sc-domain-result.available {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.sc-domain-result.unavailable {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Order Summary Box */
.sc-summary-box {
    background: #ffffff;
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    padding: 22px;
    box-shadow: var(--sc-shadow);
}

.sc-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.sc-summary-row.discount-row {
    color: var(--sc-success);
    font-weight: 600;
}

.sc-summary-divider {
    height: 1px;
    background: var(--sc-border);
    margin: 15px 0;
}

.sc-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.sc-btn-checkout {
    width: 100%;
    height: 48px;
    background: var(--sc-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.sc-btn-checkout:hover {
    background: var(--sc-primary-hover);
}

.sc-discount-badge {
    background: #dcfce7;
    color: #15803d;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
    margin-top: 4px;
}
