/* New Design Matching index.html - Keep existing width - All classes prefixed with wpc- to avoid theme conflicts */

/* Button and Input Reset - Fix quantity button design */
.button, button, input[type=button], input[type=reset], input[type=submit] {
    margin-right: 0em !important;
    min-height: 1.5em !important;
}

.button, button, fieldset, input, select, textarea {
    margin-bottom: 0em !important;
}

/* Modal Structure */
#wpc-quick-order-popup .wpc-quick-order-popup-content {
    background: #ffffff !important;
    margin: 1% auto !important;
    padding: 0 !important;
    width: 90% !important;
    max-width: 550px !important;
    border-radius: 10px !important;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35) !important;
    position: relative !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

@media (min-width: 768px) {
    #wpc-quick-order-popup .wpc-quick-order-popup-content {
        max-width: 580px !important;
    }
}

@media (min-width: 1024px) {
    #wpc-quick-order-popup .wpc-quick-order-popup-content {
        max-width: 600px !important;
    }
}

/* Modal Header */
.wpc-modal-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    padding: 14px 50px 8px 14px !important;
    gap: 10px !important;
    position: relative !important;
}

.wpc-modal-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    flex: 1 !important;
}

.wpc-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
    border: none !important;
    background: #e5e5e5 !important;
    color: #333 !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    z-index: 10 !important;
    transition: background 0.2s ease !important;
}

.wpc-close:hover {
    background: #d4d4d4 !important;
}

.wpc-close i {
    font-size: 14px !important;
    line-height: 1 !important;
}

.wpc-modal-body {
    padding: 0 14px 10px 14px !important;
}

/* Input Fields - htbazar style */
.wpc-field {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e6e6e6 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    height: 44px !important;
    margin-bottom: 10px !important;
    background: #fff !important;
    transition: border-color 0.2s ease !important;
}

.wpc-field:focus-within {
    border-color: #0080ff !important;
}

.wpc-field .wpc-icon {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f3f3f3 !important;
    color: #555 !important;
    border-right: 1px solid #e6e6e6 !important;
    flex: 0 0 44px !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
}

.wpc-field input {
    flex: 1 !important;
    width: 100% !important;
    border: none !important;
    outline: none !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    font-family: "Hind Siliguri", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
    background: #ffffff !important;
}

.wpc-field input::placeholder {
    color: #9a9a9a !important;
}

.wpc-divider {
    height: 1px !important;
    background: #e6e6e6 !important;
    margin: 10px 0 !important;
}

/* Cart Items */
.wpc-cart-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #efefef !important;
    position: relative !important;
}

.wpc-cart-item:last-child {
    border-bottom: none !important;
}

.wpc-thumb {
    width: 80px !important;
    height: 80px !important;
    border-radius: 8px !important;
    border: 1px solid #e6e6e6 !important;
    background: #fff !important;
    position: relative !important;
    overflow: hidden !important;
    flex: 0 0 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wpc-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.wpc-item-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 0 !important;
}

.wpc-item-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #7c3aed !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wpc-price {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #10b981 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wpc-price .woocommerce-Price-amount {
    color: #10b981 !important;
    font-weight: 600 !important;
}

.wpc-quantity-controls {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    flex-shrink: 0 !important;
    width: fit-content !important;
    margin-top: 2px !important;
}

.wpc-qty-btn {
    width: 28px !important;
    height: 28px !important;
    border: 1px solid #e6e6e6 !important;
    background: #ffffff !important;
    color: #333 !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
}

.wpc-qty-btn:first-child {
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
}

.wpc-qty-btn:last-child {
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

.wpc-qty-btn:hover {
    background: #f3f3f3 !important;
    border-color: #d1d5db !important;
}

.wpc-qty-display {
    width: 28px !important;
    height: 28px !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #111 !important;
    padding: 0 !important;
    border: 1px solid #e6e6e6 !important;
    border-left: none !important;
    border-right: none !important;
    background: #ffffff !important;
    outline: none !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

.wpc-qty-display::-webkit-outer-spin-button,
.wpc-qty-display::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.wpc-remove {
    position: absolute !important;
    top: 12px !important;
    right: 0 !important;
    width: 30px !important;
    height: 30px !important;
    border: none !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.wpc-remove:hover {
    background: #dc2626 !important;
}

.wpc-remove i {
    font-size: 14px !important;
    color: #ffffff !important;
}

/* Delivery Section */
.wpc-section-title {
    font-weight: 800 !important;
    margin: 10px 0 8px !important;
    font-size: 14px !important;
    color: #111 !important;
}

.wpc-radio-box {
    border: 1px solid #e6e6e6 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.wpc-radio-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 12px !important;
    background: #fff !important;
    border-bottom: 1px solid #efefef !important;
    gap: 10px !important;
    font-size: 14px !important;
    cursor: pointer !important;
}

.wpc-radio-row:last-child {
    border-bottom: none !important;
}

.wpc-radio-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #111 !important;
    font-weight: 600 !important;
}

.wpc-radio-row input[type="radio"] {
    accent-color: #0b6b3a !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.wpc-radio-price {
    font-weight: 800 !important;
    color: #111 !important;
    font-size: 13.5px !important;
    white-space: nowrap !important;
}

/* Summary */
.wpc-summary {
    border-top: 1px solid #e6e6e6 !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
}

.wpc-sum-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 4px 0 !important;
    font-size: 13.5px !important;
    color: #111 !important;
}

.wpc-sum-row .wpc-label {
    color: #111 !important;
    font-weight: 600 !important;
}

.wpc-sum-row .wpc-val {
    font-weight: 800 !important;
}

.wpc-sum-row.wpc-total {
    margin-top: 6px !important;
    font-size: 15px !important;
}

.wpc-sum-row.wpc-total .wpc-label {
    font-weight: 900 !important;
}

.wpc-sum-row.wpc-total .wpc-val {
    font-weight: 900 !important;
}

/* Textarea - htbazar style */
.wpc-field.wpc-textarea {
    height: auto !important;
    align-items: stretch !important;
    min-height: 80px !important;
}

.wpc-field.wpc-textarea:focus-within {
    border-color: #0080ff !important;
}

.wpc-field.wpc-textarea .wpc-icon {
    align-items: flex-start !important;
    padding-top: 12px !important;
}

.wpc-field textarea {
    flex: 1 !important;
    width: 100% !important;
    border: none !important;
    outline: none !important;
    resize: vertical !important;
    padding: 10px 12px !important;
    min-height: 60px !important;
    font-family: "Hind Siliguri", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
    font-size: 14px !important;
    background: #ffffff !important;
}

.wpc-field textarea::placeholder {
    color: #9a9a9a !important;
}

/* Buttons */
.wpc-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.wpc-btn {
    width: 100% !important;
    height: 46px !important;
    border-radius: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: #0b6b3a !important;
    color: #fff !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    font-family: "Hind Siliguri", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
}

.wpc-btn:hover {
    background: #085a31 !important;
}

.wpc-btn.secondary {
    background: #0b6b3a !important;
}

.wpc-btn i {
    font-size: 14px !important;
}

/* Buy Now Button Styles - Avoid theme conflicts */
.wpc-button {
    display: inline-block !important;
    padding: 10px 20px !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 15px !important; /* Default - will be overridden by inline style */
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    vertical-align: middle !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
}

.wpc-button-primary {
    /* Background color will be set via inline styles from admin */
}

.wpc-button-primary:hover {
    /* Hover color handled by JavaScript */
}

/* Responsive */
@media (max-width: 420px) {
    .wpc-modal-title {
        font-size: 14px !important;
    }
    .wpc-item-name {
        font-size: 13px !important;
    }
    .wpc-thumb {
        width: 70px !important;
        height: 70px !important;
        flex: 0 0 70px !important;
    }
    .wpc-remove {
        width: 32px !important;
        height: 32px !important;
    }
    .wpc-qty-btn {
        width: 26px !important;
        height: 26px !important;
        font-size: 13px !important;
    }
    .wpc-qty-display {
        width: 26px !important;
        height: 26px !important;
        font-size: 12px !important;
    }
    .wpc-cart-item {
        padding: 6px 0 !important;
    }
    .wpc-item-content {
        gap: 3px !important;
    }
}

@media (max-width: 640px) {
    #wpc-quick-order-popup .wpc-quick-order-popup-content {
        width: 95% !important;
        margin: 5% auto !important;
        max-height: 85vh !important;
    }
    .wpc-cart-item {
        gap: 10px !important;
        padding: 8px 0 !important;
    }
    .wpc-thumb {
        width: 75px !important;
        height: 75px !important;
        flex: 0 0 75px !important;
    }
    .wpc-item-content {
        gap: 4px !important;
    }
    .wpc-item-name {
        font-size: 13.5px !important;
    }
    .wpc-price {
        font-size: 13px !important;
    }
    .wpc-remove {
        width: 34px !important;
        height: 34px !important;
        top: 8px !important;
    }
    .wpc-qty-btn {
        width: 27px !important;
        height: 27px !important;
        font-size: 13px !important;
    }
    .wpc-qty-display {
        width: 27px !important;
        height: 27px !important;
        font-size: 12px !important;
    }
}
