/**
 * CWBS Book Order - Clean Design (Cents Style)
 * Colors: Pink #FC5FC9, Purple #9455CD (used sparingly)
 */

/* ==============================================
   STEP VISIBILITY CONTROL
   ============================================== */
.cwbs-step {
    display: none;
}

#cwbs-step-1 {
    display: block;
}

/* ==============================================
   BASE & WRAPPER
   ============================================== */
.cwbs-book-order-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==============================================
   PROGRESS BAR
   ============================================== */
.cwbs-progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 500px;
    margin: 0 auto 40px;
}

.cwbs-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 0 12px;
}

.cwbs-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    transition: all 0.2s;
}

.cwbs-progress-step.active .cwbs-step-number {
    border-color: #9455CD;
    color: #9455CD;
    background: #faf5ff;
}

.cwbs-progress-step.completed .cwbs-step-number {
    border-color: #10b981;
    background: #10b981;
    color: #fff;
}

.cwbs-step-label {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 500;
    text-align: center;
}

.cwbs-progress-step.active .cwbs-step-label {
    color: #374151;
    font-weight: 600;
}

.cwbs-progress-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    min-width: 20px;
    margin-top: -20px;
}

@media (max-width: 500px) {
    .cwbs-step-label {
        font-size: 9px;
    }
    
    .cwbs-step-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .cwbs-progress-step {
        padding: 0 6px;
    }
}

/* ==============================================
   STEP HEADER - LEFT ALIGNED
   ============================================== */
.cwbs-step-header {
    text-align: left;
    margin-bottom: 24px;
}

.cwbs-step-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.cwbs-step-subtitle {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
}

/* ==============================================
   BACK BUTTON
   ============================================== */
.cwbs-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    background: transparent;
    color: #6b7280;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.cwbs-back-btn:hover {
    color: #111827;
}

/* ==============================================
   SERVICE SELECTION - CENTS STYLE WITH DETAILS
   ============================================== */
.cwbs-services-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cwbs-service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.cwbs-service-card:hover {
    border-color: #d1d5db;
    background: #fafafa;
}

.cwbs-service-card.selected {
    border-color: #9455CD;
    background: #faf5ff;
    box-shadow: 0 0 0 3px rgba(148, 85, 205, 0.08);
}

.cwbs-service-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.cwbs-service-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 10px;
}

.cwbs-service-card.selected .cwbs-service-icon {
    background: #ede9fe;
}

.cwbs-service-details {
    flex: 1;
    min-width: 0;
}

.cwbs-service-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    display: block;
    margin-bottom: 4px;
}

.cwbs-service-specs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.cwbs-spec-item {
    font-size: 12px;
    color: #6b7280;
}

.cwbs-spec-divider {
    font-size: 10px;
    color: #d1d5db;
}

.cwbs-service-right {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-shrink: 0;
    padding-left: 16px;
}

.cwbs-price-value {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.cwbs-price-unit {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .cwbs-service-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }
    
    .cwbs-service-left {
        width: 100%;
    }
    
    .cwbs-service-right {
        padding-left: 58px;
    }
    
    .cwbs-service-specs {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .cwbs-spec-divider {
        display: none;
    }
}

/* Hide old button - cards are clickable */
.cwbs-select-service-btn {
    display: none !important;
}
/* ==============================================
   SELECTED SERVICE BANNER
   ============================================== */
.cwbs-selected-service-banner {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.cwbs-selected-service-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cwbs-selected-service-icon {
    font-size: 24px;
}

.cwbs-selected-service-details h4 {
    margin: 0 0 2px 0;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}

.cwbs-selected-service-details span {
    color: #6b7280;
    font-size: 13px;
}

/* ==============================================
   PLAN BANNERS
   ============================================== */
.cwbs-plan-banner,
.cwbs-member-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.cwbs-plan-badge {
    display: inline-block;
    background: #10b981;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cwbs-plan-banner h4,
.cwbs-member-banner h4 {
    margin: 0 0 10px 0;
    color: #065f46;
    font-size: 14px;
    font-weight: 600;
}

.cwbs-plan-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cwbs-stat {
    text-align: left;
}

.cwbs-stat-label {
    display: block;
    font-size: 10px;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.cwbs-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #065f46;
}

.cwbs-payperuse-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.cwbs-payperuse-badge {
    display: inline-block;
    background: #3b82f6;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cwbs-payperuse-banner p {
    margin: 0;
    color: #1e40af;
    font-size: 13px;
}

/* ==============================================
   FORM SECTIONS
   ============================================== */
.cwbs-form-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.cwbs-form-section {
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.cwbs-form-section:last-of-type {
    border-bottom: none;
}

.cwbs-form-section h3 {
    margin: 0 0 14px 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.cwbs-section-note {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 14px 0;
}

.cwbs-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 500px) {
    .cwbs-form-grid {
        grid-template-columns: 1fr;
    }
}

.cwbs-form-row {
    margin-bottom: 14px;
}

.cwbs-form-row:last-child {
    margin-bottom: 0;
}

.cwbs-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 5px;
}

.cwbs-form-row label span {
    color: #ef4444;
}

.cwbs-form-row input[type="text"],
.cwbs-form-row input[type="email"],
.cwbs-form-row input[type="tel"],
.cwbs-form-row input[type="number"],
.cwbs-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.15s;
    box-sizing: border-box;
    font-family: inherit;
}

.cwbs-form-row input:focus,
.cwbs-form-row textarea:focus {
    outline: none;
    border-color: #9455CD;
    box-shadow: 0 0 0 3px rgba(148, 85, 205, 0.1);
}

/* ==============================================
   BAG SELECTOR
   ============================================== */
.cwbs-bags-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.cwbs-bag-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #6b7280;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cwbs-bag-btn:hover:not(:disabled) {
    border-color: #9455CD;
    color: #9455CD;
    background: #faf5ff;
}

.cwbs-bag-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cwbs-bag-display {
    text-align: center;
    min-width: 80px;
}

.cwbs-bag-count {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    display: block;
}

.cwbs-bag-label {
    font-size: 12px;
    color: #6b7280;
    display: block;
    margin-top: 2px;
}

.cwbs-bag-info {
    display: flex;
    justify-content: space-around;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.cwbs-bag-info-item {
    text-align: center;
}

.cwbs-info-label {
    font-size: 10px;
    color: #6b7280;
    display: block;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cwbs-info-value {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    display: block;
}

.cwbs-price-highlight {
    color: #9455CD;
}

.cwbs-member-note {
    margin-top: 14px;
    padding: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    font-size: 12px;
    color: #065f46;
}

/* ==============================================
   ADDRESS OPTIONS
   ============================================== */
.cwbs-addresses {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cwbs-address-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.cwbs-address-option:hover {
    border-color: #d1d5db;
}

.cwbs-address-option input[type="radio"] {
    margin-top: 2px;
    accent-color: #9455CD;
}

.cwbs-address-option:has(input:checked),
.cwbs-address-default:has(input:checked) {
    border-color: #9455CD;
    background: #faf5ff;
}

.cwbs-address-text {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.cwbs-address-text strong {
    color: #111827;
    display: block;
    margin-bottom: 2px;
}

.cwbs-no-address {
    text-align: center;
    padding: 24px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
}

.cwbs-no-address p {
    margin: 0 0 10px 0;
    color: #6b7280;
    font-size: 13px;
}

.cwbs-add-address-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #9455CD;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    transition: background 0.15s;
}

.cwbs-add-address-btn:hover {
    background: #7c3aed;
}

.cwbs-manage-addresses-link {
    display: inline-block;
    margin-top: 10px;
    color: #9455CD;
    font-size: 12px;
}

/* ==============================================
   ADDONS SECTION
   ============================================== */
.cwbs-addons-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.cwbs-addons-section h3 {
    margin: 0 0 14px 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.cwbs-addon-items-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cwbs-addon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    transition: all 0.15s;
}

.cwbs-addon-item.selected {
    border-color: #9455CD;
    background: #faf5ff;
}

.cwbs-addon-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.cwbs-addon-info {
    flex: 1;
}

.cwbs-addon-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    display: block;
}

.cwbs-addon-price {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    display: block;
}

.cwbs-addon-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cwbs-addon-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #6b7280;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cwbs-addon-qty-btn:hover:not(:disabled) {
    border-color: #9455CD;
    color: #9455CD;
    background: #faf5ff;
}

.cwbs-addon-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cwbs-addon-qty-value {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    min-width: 20px;
    text-align: center;
}

/* ==============================================
   PACKAGES
   ============================================== */
.cwbs-packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 600px) {
    .cwbs-packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cwbs-package-card {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
}

.cwbs-package-card:hover {
    border-color: #d1d5db;
}

.cwbs-package-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.cwbs-package-card:has(input:checked) {
    border-color: #9455CD;
    background: #faf5ff;
}

.cwbs-best-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #FC5FC9;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.cwbs-package-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cwbs-package-count {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.cwbs-package-price {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.cwbs-no-package .cwbs-package-price {
    color: #9ca3af;
}

/* ==============================================
   PREFERENCES
   ============================================== */
.cwbs-preferences-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
}

.cwbs-preference-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.cwbs-preference-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cwbs-preference-section h3 {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.cwbs-preference-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cwbs-pref-inline {
    flex-direction: row;
    flex-wrap: wrap;
}

.cwbs-pref-inline .cwbs-preference-option {
    flex: 1;
    min-width: 100px;
}

.cwbs-preference-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
}

.cwbs-preference-option:hover {
    border-color: #d1d5db;
}

.cwbs-preference-option:has(input:checked) {
    border-color: #9455CD;
    background: #faf5ff;
}

.cwbs-preference-option input[type="radio"] {
    accent-color: #9455CD;
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin-right: 8px;
}

.cwbs-pref-content {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.cwbs-pref-icon {
    font-size: 16px;
}

.cwbs-pref-text {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}

.cwbs-specific-directions {
    margin-top: 10px;
}

.cwbs-specific-directions label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 5px;
}

.cwbs-specific-directions textarea,
.cwbs-preference-section textarea {
    width: 100%;
    min-height: 70px;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.cwbs-specific-directions textarea:focus,
.cwbs-preference-section textarea:focus {
    outline: none;
    border-color: #9455CD;
    box-shadow: 0 0 0 3px rgba(148, 85, 205, 0.1);
}

/* ==============================================
   HANG DRY SECTION
   ============================================== */
.cwbs-hang-dry-section {
    background: #fffbeb !important;
    border: 1px solid #fcd34d !important;
    border-radius: 8px;
}

.cwbs-hang-dry-notice {
    margin-bottom: 12px;
}

.cwbs-hang-dry-notice p {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: #78350f;
}

.cwbs-extra-charge {
    font-weight: 600;
    color: #92400e;
}

.cwbs-hang-dry-input {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cwbs-hang-dry-input label {
    font-size: 12px;
    font-weight: 500;
    color: #78350f;
}

.cwbs-qty-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 6px;
    border-radius: 6px;
}

.cwbs-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #6b7280;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cwbs-qty-btn:hover:not(:disabled) {
    border-color: #f59e0b;
    color: #f59e0b;
}

.cwbs-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cwbs-qty-selector input {
    width: 50px;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 5px;
    font-size: 14px;
    font-weight: 600;
}

.cwbs-hang-dry-total {
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
}

/* ==============================================
   CHECKOUT
   ============================================== */
.cwbs-checkout-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cwbs-order-summary,
.cwbs-preferences-summary,
.cwbs-address-summary,
.cwbs-payment-section,
.cwbs-checkout-actions {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px;
}

.cwbs-order-summary h3,
.cwbs-preferences-summary h3,
.cwbs-address-summary h3,
.cwbs-payment-section h3 {
    margin: 0 0 14px 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.cwbs-summary-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.cwbs-summary-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cwbs-summary-section h4 {
    margin: 0 0 8px 0;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cwbs-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
}

.cwbs-summary-row span:first-child {
    color: #6b7280;
}

.cwbs-summary-row span:last-child {
    font-weight: 600;
    color: #111827;
}

.cwbs-summary-detail {
    font-size: 11px;
    color: #9ca3af;
}

.cwbs-summary-total-section {
    border-top: 2px solid #f3f4f6;
    padding-top: 14px;
    margin-top: 14px;
}

.cwbs-summary-subtotal,
.cwbs-summary-buffer,
.cwbs-summary-total {
    font-weight: 600;
}

.cwbs-summary-total span:last-child {
    font-size: 18px;
    color: #111827;
}

.cwbs-pref-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 500px) {
    .cwbs-pref-summary-grid {
        grid-template-columns: 1fr;
    }
}

.cwbs-pref-summary-item {
    background: #f9fafb;
    padding: 8px 10px;
    border-radius: 6px;
}

.cwbs-pref-label {
    display: block;
    font-size: 10px;
    color: #6b7280;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cwbs-pref-value {
    font-size: 12px;
    color: #111827;
    font-weight: 500;
}

.cwbs-address-summary p {
    margin: 0;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}

/* ==============================================
   STRIPE
   ============================================== */
.cwbs-stripe-container {
    margin-bottom: 14px;
}

.cwbs-stripe-element {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    transition: all 0.15s;
}

.cwbs-stripe-element:focus-within {
    border-color: #9455CD;
    box-shadow: 0 0 0 3px rgba(148, 85, 205, 0.1);
}

.cwbs-stripe-errors {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    min-height: 16px;
}

.cwbs-stripe-note {
    margin: 0;
    padding: 10px;
    background: #eff6ff;
    border-radius: 6px;
    color: #1e40af;
    font-size: 11px;
    line-height: 1.4;
}

/* ==============================================
   TERMS & SUBMIT
   ============================================== */
.cwbs-terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
}

.cwbs-terms-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #9455CD;
    cursor: pointer;
}

.cwbs-terms-checkbox span {
    flex: 1;
    font-size: 12px;
    color: #374151;
    line-height: 1.4;
}

.cwbs-terms-checkbox a {
    color: #9455CD;
    text-decoration: underline;
}

.cwbs-terms-checkbox a:hover {
    color: #7c3aed;
}

.cwbs-submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: #9455CD;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 10px;
}

.cwbs-submit-btn:hover:not(:disabled) {
    background: #7c3aed;
}

.cwbs-submit-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.cwbs-submit-btn.cwbs-loading {
    pointer-events: none;
    opacity: 0.7;
}

.cwbs-submit-note {
    margin: 0;
    font-size: 11px;
    color: #6b7280;
    text-align: center;
}

/* ==============================================
   STEP ACTIONS
   ============================================== */
.cwbs-step-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.cwbs-next-btn {
    padding: 10px 20px;
    background: #9455CD;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.cwbs-next-btn:hover:not(:disabled) {
    background: #7c3aed;
}

.cwbs-next-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* ==============================================
   FORM MESSAGE
   ============================================== */
.cwbs-form-message {
    margin: 14px 0;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
}

.cwbs-message-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.cwbs-message-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ==============================================
   SUCCESS STATE
   ============================================== */
.cwbs-success-container {
    text-align: center;
    padding: 50px 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.cwbs-success-icon {
    width: 56px;
    height: 56px;
    background: #10b981;
    color: #fff;
    font-size: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: successPop 0.4s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cwbs-success-container h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

#cwbs-success-message {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 14px 0;
}

.cwbs-redirect-notice {
    font-size: 11px;
    color: #9ca3af;
}

/* ==============================================
   LIVE TOTAL BAR
   ============================================== */
.cwbs-live-total-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 12px 20px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
    z-index: 999;
    transition: bottom 0.3s ease;
}

.cwbs-live-total-bar.visible {
    bottom: 0;
}

.cwbs-total-bar-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cwbs-total-breakdown {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cwbs-breakdown-item {
    display: flex;
    flex-direction: column;
}

.cwbs-breakdown-label {
    font-size: 9px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 1px;
}

.cwbs-breakdown-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.cwbs-total-main {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cwbs-total-main .cwbs-total-label {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 1px;
}

.cwbs-total-main .cwbs-total-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

@media (max-width: 600px) {
    .cwbs-total-bar-content {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .cwbs-total-breakdown {
        justify-content: space-around;
    }
    
    .cwbs-total-main {
        align-items: center;
        padding-top: 8px;
        border-top: 1px solid #f3f4f6;
    }
}
/* ==============================================
   SECTION HEADERS - LEFT ALIGNED
   ============================================== */
.cwbs-form-section h3,
.cwbs-addons-section h3,
.cwbs-packages-section h3,
.cwbs-preference-section h3,
.cwbs-order-summary h3,
.cwbs-preferences-summary h3,
.cwbs-address-summary h3,
.cwbs-payment-section h3 {
    text-align: left;
}

.cwbs-section-note {
    text-align: left;
}