/* Login Buttons */
.lce-login-buttons {
    margin-bottom: 20px;
}

.lce-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
}

.lce-phone-btn {
    background-color: #28a745;
}

.lce-google-btn {
    background-color: #dd4b39;
}

.lce-fb-btn {
    background-color: #3b5998;
}

/* Phone Login Area */
#lce-phone-login-area {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}

/* Buy Now Trigger Button */
.lce-buy-now-btn {
    display: block !important;
    width: 100% !important;
    background-color: #ff9f00 !important;
    /* Bright Orange */
    color: #000 !important;
    /* Black text for contrast */
    border: none !important;
    padding: 15px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-align: center;
    border-radius: 6px !important;
    /* Modern rounded corners */
    margin-top: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lce-buy-now-btn:hover {
    background-color: #f39c12 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* --- Buy Now Modal Redesign --- */

.lce-modal {
    position: fixed;
    z-index: 99999;
    /* High z-index */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent body scroll if possible, simpler to hide overflow */
    background-color: rgba(0, 0, 0, 0.6);
    /* Darker backdrop */
    backdrop-filter: blur(5px);
    /* Glassmorphism effect */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align top for long forms, but centered vertically if fits */
    padding: 20px;
    overflow-y: auto;
    /* Scrollable modal */
}

/* Scroll wrapper for flex centering if needed, but basic auto margin works */
.lce-modal-content {
    background-color: #fff;
    margin: 40px auto;
    padding: 0;
    border: none;
    width: 100%;
    max-width: 500px;
    /* Mobile width */
    border-radius: 12px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    font-family: 'Open Sans', sans-serif;
    /* Cleaner font */
    animation: lce-slide-down 0.3s ease-out;
}

@keyframes lce-slide-down {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.lce-modal-header {
    padding: 20px 20px 10px;
    text-align: center;
    position: relative;
}

.lce-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

.lce-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #888;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.lce-close:hover {
    color: #333;
}

/* Body */
.lce-modal-body {
    padding: 10px 25px 25px;
}

/* Fields */
.lce-field-group {
    margin-bottom: 12px;
}

.lce-field-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.lce-field-group label .required {
    color: red;
}

.lce-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.lce-input-wrapper:focus-within {
    border-color: #f39c12;
    /* Orange accent */
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.2);
}

.lce-input-icon {
    background: #eee;
    padding: 10px;
    color: #555;
    border-right: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
}

.lce-input-wrapper input,
.lce-input-wrapper textarea {
    border: none;
    width: 100%;
    padding: 10px;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.lce-input-wrapper textarea {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

/* Shipping Methods */
.lce-section-title {
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
}

.lce-shipping-methods {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.lce-radio-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
    background: #fff;
    transition: background 0.2s;
}

.lce-radio-label:last-child {
    border-bottom: none;
}

.lce-radio-label:hover {
    background: #f9f9f9;
}

.lce-radio-label input[type="radio"] {
    margin-right: 10px;
}

.lce-radio-text {
    flex-grow: 1;
    font-size: 0.95rem;
}

.lce-radio-price {
    font-weight: bold;
    color: #333;
}

/* Coupon */
.lce-coupon-section {
    display: flex;
    margin-top: 15px;
    gap: 10px;
}

.lce-coupon-section input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 10px;
}

.lce-coupon-section button {
    background-color: #f39c12;
    /* Orange */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 20px;
    font-weight: bold;
    cursor: pointer;
}

.lce-coupon-section button:hover {
    background-color: #e67e22;
}


/* Order Summary - UPDATED */
.lce-order-items {
    margin-top: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.lce-item {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
}

.lce-item-thumb {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.lce-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.lce-item-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #7f8c8d;
    /* Grey */
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lce-item-info {
    flex-grow: 1;
    padding-left: 10px;
}

.lce-item-name {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    line-height: 1.3;
}

.lce-item-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lce-item-price {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

.lce-remove-item {
    color: #999;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.lce-remove-item:hover {
    color: #e74c3c;
}

/* Totals */
.lce-totals {
    background: #f1f1f1;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.lce-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
}

.lce-final-total {
    border-top: 1px solid #ddd;
    padding-top: 8px;
    margin-top: 8px;
    margin-bottom: 0;
    font-weight: bold;
    color: #000;
    font-size: 1.1rem;
}

/* Order Note */
textarea#lce_order_note {
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    padding: 10px;
    margin-top: 15px;
}

/* Actions - UPDATED */
.lce-actions-column {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lce-submit-btn {
    background: #ff9f00 !important;
    /* Specific Orange */
    border: none !important;
    color: #000 !important;
    width: 100%;
    padding: 14px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: 5px !important;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s;
}

.lce-submit-btn:hover {
    transform: translateY(-1px);
    background: #f39c12 !important;
}

.lce-confirm-note {
    text-align: center;
    color: #27ae60;
    /* Green */
    font-size: 1rem;
    /* Larger */
    font-weight: 600;
    margin: 5px 0 10px;
    display: block;
    line-height: 1.4;
}

.lce-pay-online-btn {
    background: #ffeb3b !important;
    /* Bright Yellow */
    color: #000 !important;
    width: 100%;
    padding: 14px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.lce-pay-online-btn:hover {
    background: #fdd835 !important;
}

/* --- Restored FB Styles --- */

/* Facebook Express Checkout Wrapper - Theme Neutral */
.lce-fb-wrapper {
    background: var(--lce-bg-color, #fff);
    border: 1px solid var(--lce-border-color, #e1e1e1);
    border-radius: 6px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    clear: both;
}

.lce-fb-header h3 {
    margin-top: 0;
    font-size: 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--lce-border-color, #eee);
    padding-bottom: 15px;
    margin-bottom: 20px;
    /* Inherit color from theme */
}

.lce-fb-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.lce-fb-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.lce-fb-col {
    flex: 1;
}

.lce-fb-full {
    width: 100%;
}

.lce-fb-form input[type="text"],
.lce-fb-form input[type="tel"],
.lce-fb-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
}

/* Payment Methods (FB) */
.lce-payment-methods {
    flex-direction: column;
}

/* Inherit theme button styles where possible */
.lce-fb-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lce-fb-submit:not([class*="theme-btn"]) {
    margin-top: 10px;
}


/* Contact Buttons */
.lce-contact-buttons-wrapper {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
    clear: both;
}

.lce-contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: bold;
    color: white !important;
    font-size: 14px;
    transition: opacity 0.3s;
}

.lce-contact-btn:hover {
    opacity: 0.9;
    color: white !important;
}

.lce-whatsapp-btn {
    background-color: #25D366;
    /* WhatsApp Green */
}

.lce-messenger-btn {
    background-color: #0084FF;
    /* Messenger Blue */
}

.lce-icon {
    margin-right: 8px;
    font-size: 16px;
}

@media (max-width: 480px) {
    .lce-contact-buttons-wrapper {
        flex-direction: column;
    }
}

/* --- NEW MYNTRA STYLE LOGIN CARD --- */

/* Reset for internal area if inside card */
.lce-login-card #lce-phone-login-area {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
}

.lce-login-container {
    background-color: #fceeea;
    /* Light Pinkish */
    display: flex;
    justify-content: center;
    padding: 40px 10px;
    min-height: 80vh;
    align-items: flex-start;
}

.lce-login-card {
    background: #fff;
    width: 100%;
    max-width: 400px;
    /* Box Shadow */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: 'Assistant', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.lce-card-banner {
    width: 100%;
    background-color: #ffe7e7;
    /* Fallback */
}

.lce-card-banner img {
    width: 100%;
    display: block;
}

.lce-card-body {
    padding: 30px 30px 40px;
}

.lce-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #282c3f;
    margin: 0 0 25px 0;
    line-height: 1.2;
}

.lce-lighter {
    font-weight: 400;
    color: #535766;
    margin: 0 4px;
}

.lce-input-group {
    border: 1px solid #d4d5d9;
    border-radius: 0;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 20px;
    background: #fff;
}

.lce-input-group:focus-within {
    border-color: #111;
}

.lce-prefix {
    color: #282c3f;
    font-size: 14px;
    font-weight: 600;
}

.lce-divider {
    color: #d4d5d9;
    margin: 0 10px;
    font-weight: 300;
}

.lce-phone-input {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px;
    color: #282c3f;
    width: 100%;
}

.lce-phone-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.lce-terms {
    margin-bottom: 25px;
    font-size: 12px;
    color: #94969f;
    text-align: left;
    display: block;
}

.lce-terms label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.lce-terms input {
    margin-top: 2px;
}

.lce-link {
    color: #ff3f6c;
    text-decoration: none;
    font-weight: 700;
}

.lce-continue-btn {
    width: 100%;
    background-color: #ff3f6c;
    /* Pink */
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    padding: 12px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.lce-continue-btn:hover {
    background-color: #eb3b65;
}

.lce-help {
    font-size: 12px;
    color: #282c3f;
    margin-bottom: 30px;
    text-align: left;
}

.lce-link-red {
    color: #ff3f6c;
    font-weight: 700;
    text-decoration: none;
}

/* Social Login Section */
.lce-social-login-section {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lce-social-btn {
    display: block;
    width: 100%;
    text-align: center;
    border: 1px solid #eaeaec;
    background: #fff;
    color: #282c3f;
    font-size: 13px;
    font-weight: 600;
    padding: 10px;
    border-radius: 2px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.lce-social-btn:hover {
    background: #fdfdfd;
    border-color: #d4d5d9;
    color: #000;
}

.lce-icon-google {
    color: #ea4335;
    margin-right: 8px;
    font-weight: bold;
}

.lce-icon-fb {
    color: #1877f2;
    margin-right: 8px;
    font-weight: bold;
}


/* Reset Woo Form container to avoiding double boxing */
.woocommerce-form-login {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}