/* ===== Flatsome Theme Override ===== */
#lnh-qb-modal .lnh-qb-modal-content input[type="text"],
#lnh-qb-modal .lnh-qb-modal-content input[type="tel"],
#lnh-qb-modal .lnh-qb-modal-content input[type="number"],
#lnh-qb-modal .lnh-qb-modal-content input[type="email"],
#lnh-qb-modal .lnh-qb-modal-content input[type="search"],
#lnh-qb-modal .lnh-qb-modal-content input[type="url"],
#lnh-qb-modal .lnh-qb-modal-content textarea {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    padding: 10px 10px 10px 0 !important;
    font-size: 14px !important;
    color: #333 !important;
    width: 100% !important;
    max-width: 100% !important;
    outline: none !important;
    margin: 0 !important;
    vertical-align: middle !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    line-height: normal !important;
}

#lnh-qb-modal .lnh-qb-qty-controls input[type="number"] {
    width: 40px !important;
    text-align: center !important;
    border: none !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    height: 100% !important;
    padding: 0 !important;
    -moz-appearance: textfield !important;
    background-color: #fff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#lnh-qb-modal .lnh-qb-modal-content textarea {
    resize: vertical !important;
    min-height: 60px !important;
}

#lnh-qb-modal .lnh-qb-submit-btn,
#lnh-qb-modal .lnh-qb-qty-btn {
    box-shadow: none !important;
}

#lnh-qb-modal .lnh-qb-qty-btn {
    border: none !important;
}

#lnh-qb-modal .lnh-qb-modal-content button,
#lnh-qb-modal .lnh-qb-modal-content input,
#lnh-qb-modal .lnh-qb-modal-content select,
#lnh-qb-modal .lnh-qb-modal-content textarea,
#lnh-qb-modal .lnh-qb-modal-content fieldset {
    margin-bottom: 0 !important;
    margin-right: 0 !important;
}

#lnh-qb-modal .lnh-qb-modal-content button {
    border-radius: 6px !important;
    font-size: inherit !important;
    letter-spacing: normal !important;
    line-height: normal !important;
    min-height: auto !important;
    min-width: auto !important;
    text-transform: none !important;
    text-shadow: none !important;
}

/* ===== Quick Buy Button ===== */
/* Quick Buy Button */
.lnh-qb-btn {
    display: inline-block;
    background-color: #e2252d;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px !important;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
}

.lnh-qb-btn:hover {
    background-color: var(--fs-color-primary);
    opacity: 0.85;
    color: #fff;
}

/* Modal Overlay */
.lnh-qb-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    overflow: auto;
    font-family: 'Inter', 'Roboto', sans-serif;
}

.lnh-qb-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Content */
.lnh-qb-modal-content {
    background-color: #fff;
    margin: 20px auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: lnhFadeIn 0.3s ease;
}

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

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

/* Close Button */
.lnh-qb-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.lnh-qb-close:hover {
    color: #333;
}

/* Layout */
.lnh-qb-col-right {
    padding: 30px;
}

/* Product Name Bar */
.lnh-qb-product-name-bar {
    background-color: #fff5f5;
    border-left: 3px solid #e53935;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.lnh-qb-product-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}

.lnh-qb-product-price {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #e53935;
    margin-top: 4px;
}

.lnh-qb-product-price del {
    color: #999;
    font-size: 13px;
    font-weight: 400;
    margin-left: 6px;
}

/* Form Header */
.lnh-qb-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.lnh-qb-icon {
    width: 40px;
    height: 40px;
    background-color: #ffebee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.lnh-qb-icon svg {
    width: 20px;
    height: 20px;
}

.lnh-qb-title-wrap h2 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 3px;
    text-transform: uppercase;
}

.lnh-qb-title-wrap p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* Form Styles */
.lnh-qb-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.lnh-qb-form-group {
    margin-bottom: 15px;
    flex: 1;
}

.lnh-qb-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.lnh-qb-form-group label span {
    font-weight: 400;
    color: #888;
    font-size: 12px;
}

.lnh-qb-form-group label span.required {
    color: #e53935;
}

.lnh-qb-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.3s;
}

.lnh-qb-input-wrap:focus-within {
    border-color: #e53935;
}

.lnh-qb-input-icon {
    width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a0a0;
}

.lnh-qb-input-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.lnh-qb-input-wrap:focus-within .lnh-qb-input-icon {
    color: #e53935;
}

.lnh-qb-input-wrap input,
.lnh-qb-input-wrap textarea {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 10px 10px 0;
    font-size: 14px;
    color: #333;
    width: 100%;
    outline: none;
    box-shadow: none;
}

.lnh-qb-input-wrap textarea {
    resize: vertical;
}

.lnh-qb-textarea-wrap {
    align-items: flex-start;
}

.lnh-qb-textarea-wrap .lnh-qb-input-icon {
    padding-top: 10px;
}

/* Qty Control */
.lnh-qb-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    height: 40px;
}

.lnh-qb-qty-btn {
    width: 35px;
    height: 100%;
    background: #f9f9f9;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    transition: background 0.2s;
}

.lnh-qb-qty-btn:hover {
    background: #eee;
}

.lnh-qb-qty-controls input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 14px;
    font-weight: 600;
    height: 100%;
    padding: 0;
    -moz-appearance: textfield;
}

.lnh-qb-qty-controls input::-webkit-outer-spin-button,
.lnh-qb-qty-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lnh-qb-qty-group {
    flex: 0 0 110px;
}

/* Submit Button */
.lnh-qb-submit-btn {
    width: 100%;
    background-color: #e53935;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.lnh-qb-submit-btn .dashicons {
    margin-right: 8px;
}

.lnh-qb-submit-btn:hover {
    background-color: #d32f2f;
}

.lnh-qb-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.lnh-qb-security-note {
    text-align: center;
    font-size: 11px;
    color: #888;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lnh-qb-security-note .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
    margin-right: 4px;
}

/* Loader */
.lnh-qb-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .lnh-qb-col-right {
        padding: 20px;
    }

    .lnh-qb-form-row {
        flex-direction: column;
        gap: 0;
    }

    .lnh-qb-qty-group {
        flex: 1;
        margin-bottom: 15px;
    }

    .lnh-qb-modal-content {
        width: 95%;
        margin: 10px auto;
        max-height: 90vh;
        overflow-y: auto;
    }
}