/* WooCommerce Custom Login & Signup Styles */

/* Form Wrapper */
.wc-cls-form-wrapper {
    max-width: 500px;
    margin: 40px auto;
    padding: 0;
}

.wc-cls-form-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Form Title */
.wc-cls-form-title {
    margin: 0 0 25px;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

/* Messages */
.wc-cls-messages {
    margin-bottom: 20px;
}

.wc-cls-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.wc-cls-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wc-cls-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.wc-cls-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Form Elements */
.wc-cls-form {
    width: 100%;
}

.wc-cls-form-row {
    margin-bottom: 20px;
}

.wc-cls-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.wc-cls-form-row .required {
    color: #ff0000;
}

.wc-cls-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.wc-cls-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.wc-cls-input.error {
    border-color: #dc3545;
}

/* Half Width Rows */
.wc-cls-row-half {
    display: flex;
    gap: 15px;
}

.wc-cls-row-half .wc-cls-col {
    flex: 1;
}

/* Password Wrapper */
.wc-cls-password-wrapper {
    position: relative;
}

.wc-cls-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.wc-cls-toggle-password:hover {
    color: #2271b1;
}

.wc-cls-toggle-password .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* Password Strength */
.wc-cls-password-strength {
    margin-top: 8px;
}

.wc-cls-strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.wc-cls-strength-bar::before {
    content: '';
    position: absolute;
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    width: 0;
}

.wc-cls-strength-bar.weak::before {
    width: 33%;
    background: #dc3545;
}

.wc-cls-strength-bar.medium::before {
    width: 66%;
    background: #ffc107;
}

.wc-cls-strength-bar.strong::before {
    width: 100%;
    background: #28a745;
}

.wc-cls-strength-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Checkbox Row */
.wc-cls-checkbox-row label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin: 0;
}

.wc-cls-checkbox-row input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* Field Description */
.wc-cls-field-description {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Button */
.wc-cls-button {
    width: 100%;
    padding: 14px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}

.wc-cls-button:hover {
    background: #135e96;
}

.wc-cls-button:active {
    transform: scale(0.98);
}

.wc-cls-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.wc-cls-button.loading {
    position: relative;
    color: transparent;
}

.wc-cls-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: wc-cls-spinner 0.6s linear infinite;
}

@keyframes wc-cls-spinner {
    to { transform: rotate(360deg); }
}

/* Form Footer */
.wc-cls-form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.wc-cls-form-footer a {
    color: #2271b1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wc-cls-form-footer a:hover {
    color: #135e96;
    text-decoration: underline;
}

.wc-cls-separator {
    margin: 0 10px;
    color: #ddd;
}

/* Tabs */
.wc-cls-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 30px;
}

.wc-cls-tab-button {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.wc-cls-tab-button:hover {
    color: #2271b1;
}

.wc-cls-tab-button.active {
    color: #2271b1;
}

.wc-cls-tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2271b1;
}

.wc-cls-tab-content {
    display: none;
}

.wc-cls-tab-content.active {
    display: block;
    animation: wc-cls-fade-in 0.3s ease;
}

@keyframes wc-cls-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Login */
.wc-cls-social-login {
    margin-top: 30px;
}

.wc-cls-separator-text {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.wc-cls-separator-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.wc-cls-separator-text span {
    position: relative;
    background: #fff;
    padding: 0 15px;
    font-size: 14px;
    color: #666;
}

.wc-cls-social-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wc-cls-social-button {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.wc-cls-social-button:hover {
    border-color: #2271b1;
    color: #2271b1;
}

/* Responsive */
@media (max-width: 768px) {
    .wc-cls-form-container {
        padding: 30px 20px;
    }
    
    .wc-cls-row-half {
        flex-direction: column;
        gap: 0;
    }
    
    .wc-cls-form-wrapper {
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .wc-cls-form-container {
        padding: 20px 15px;
    }
    
    .wc-cls-form-title {
        font-size: 24px;
    }
    
    .wc-cls-social-buttons {
        flex-direction: column;
    }
    
    .wc-cls-social-button {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .wc-cls-form-wrapper {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   Cart Sidebar / Mini-Cart — Brand Color Overrides (#C0392B)
   ═══════════════════════════════════════════════════════════ */

/* ── Proceed to Checkout button ── */
.wc-custom-auth-cart .proceed-to-checkout a,
.wc-custom-auth-cart .checkout-button,
a.checkout-button,
.widget_shopping_cart .checkout,
.woocommerce-mini-cart__buttons a.checkout,
div.woocommerce-cart-form ~ .cart-collaterals .checkout-button,
.cart_totals .wc-proceed-to-checkout a.checkout-button {
    background-color: #C0392B !important;
    border-color: #C0392B !important;
    color: #fff !important;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.wc-custom-auth-cart .proceed-to-checkout a:hover,
.wc-custom-auth-cart .checkout-button:hover,
a.checkout-button:hover,
.widget_shopping_cart .checkout:hover,
.woocommerce-mini-cart__buttons a.checkout:hover,
.cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #9B2335 !important;
    border-color: #9B2335 !important;
    color: #fff !important;
}

/* ── Cart item product title / links (green → brand red) ── */
.woocommerce-mini-cart-item a,
.woocommerce-mini-cart__total .amount,
.widget_shopping_cart_content .mini_cart_item a:not(.remove),
.wc-block-mini-cart__items .wc-block-cart-item__product-name a,
.wc-block-components-product-name,
/* CartFlows / slide-in cart item title */
.wc-custom-auth-cart .cart-item-title,
.wc-custom-auth-cart .product-name a {
    color: #C0392B !important;
}

/* ── "You Saved X%" badge ── */
.wc-custom-auth-cart .you-saved,
.wc-custom-auth-cart .savings-label,
[class*="saved"],
[class*="saving"] {
    color: #C0392B !important;
}

/* ── Discount / Coupon code section ── */
.wc-custom-auth-cart .coupon-section,
.wc-block-cart__totals-coupon,
.wc-block-components-totals-coupon__button,
/* "Got a Discount Code?" toggle arrow */
.wc-custom-auth-cart details summary,
.wc-custom-auth-cart .coupon-toggle {
    color: #C0392B !important;
    border-color: #C0392B !important;
}

/* Coupon apply button */
.wc-block-components-totals-coupon__button,
.wc-custom-auth-cart .coupon-apply-btn,
.wc-block-components-button:not(.is-link) {
    background-color: #C0392B !important;
    border-color: #C0392B !important;
    color: #fff !important;
}

.wc-block-components-totals-coupon__button:hover,
.wc-custom-auth-cart .coupon-apply-btn:hover {
    background-color: #9B2335 !important;
}

/* ── Subtotal / Total rows ── */
.wc-custom-auth-cart .cart-totals .total,
.wc-custom-auth-cart .cart-totals .subtotal,
.wc-block-cart__totals-title,
.wc-block-components-totals-item__value,
.wc-block-components-order-meta .wc-block-components-totals-item--total .wc-block-components-totals-item__value {
    color: #C0392B !important;
    font-weight: 700;
}

/* Total row label */
.wc-custom-auth-cart .total th,
.wc-block-components-totals-item--total .wc-block-components-totals-item__label {
    color: #C0392B !important;
}

/* ── Remove item (×) link ── */
.woocommerce-mini-cart-item .remove,
.wc-custom-auth-cart .remove-item,
.wc-block-cart-item__remove-link {
    color: #C0392B !important;
}

.woocommerce-mini-cart-item .remove:hover,
.wc-block-cart-item__remove-link:hover {
    color: #9B2335 !important;
}
