/**
 * Quick Order Solutions Styles - Modern Purple Theme
 */

/* Color Variables */
:root {
    --qos-main-color: #8b5cf6;
    --qos-secondary-color: #7c3aed;
    --qos-tertiary-color: #6d28d9;
    --qos-accent-color: #fbbf24;
    --qos-success-color: #10b981;
    --qos-danger-color: #ef4444;
    --qos-gray-50: #f9fafb;
    --qos-gray-100: #f3f4f6;
    --qos-gray-200: #e5e7eb;
    --qos-gray-300: #d1d5db;
    --qos-gray-400: #9ca3af;
    --qos-gray-500: #6b7280;
    --qos-gray-600: #4b5563;
    --qos-gray-700: #374151;
    --qos-gray-800: #1f2937;
    --qos-gray-900: #111827;
}
svg{
  height: 1em;
  width: 1em;
}
/* Global styles */
.qos-quick-order-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

@keyframes qos-zoom-in {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  50% { transform: translate(-50%, -50%) rotate(180deg); }
}

@keyframes bounce { 
  0%,20%,50%,80%,100% { transform: translateY(-50%);} 
  40% { transform: translateY(-60%);} 
  60% { transform: translateY(-55%);} 
}

@keyframes sparkle { 
  0%,100% { opacity: 1; transform: translateY(-50%) scale(1);} 
  50% { opacity: .7; transform: translateY(-50%) scale(1.2);} 
}

.qos-zoom-in-animate {
  animation: qos-zoom-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.qos-quick-order-popup-content {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    margin: 2% auto;
    padding: 24px;
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.qos-quick-order-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 18px;
    font-weight: bold;
    color: var(--qos-gray-500);
    cursor: pointer;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.qos-quick-order-popup-close:hover,
.qos-quick-order-popup-close:focus {
    background: rgba(239, 68, 68, 0.1);
    color: var(--qos-danger-color);
    text-decoration: none;
}

/* Header section */
.qos-quick-order-header {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, var(--qos-main-color) 0%, var(--qos-secondary-color) 100%);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.qos-quick-order-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

.qos-quick-order-header h2 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.qos-instruction-text {
    font-size: 17px;
    color: #fff;
    margin: 0;
    font-weight: 600;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.qos-instruction-text .highlight {
    color: var(--qos-accent-color);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,.2);
}

/* Loading animation */
.qos-quick-order-loading {
    text-align: center;
    padding: 30px 0;
}

.qos-quick-order-loading:after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border-radius: 50%;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--qos-main-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading overlay for modal */
.qos-modal-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(1px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qos-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--qos-main-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Customer information section */
.qos-customer-info-section {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

    .qos-quick-order-popup .qos-input-group,
    .qos-quick-order-popup .form-group {
    width: 100%;
    border: 2px solid var(--qos-gray-200);
    border-radius: 12px;
    background: #ffffff;
    padding: 0 16px;
    height: 52px;
    transition: all .3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,.02);
}

    /* Removed focus styles to avoid visual pop when inputs are focused in popup */

.qos-input-icon,
.input-icon {
    position: relative;
    display: flex;
    align-items: center;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    height: 100%;
    transition: none;
    box-shadow: none;
}

.qos-input-icon .icon,
.input-icon .icon {
    font-size: 20px;
    margin-right: 14px;
    color: var(--qos-main-color);
    transition: color .3s ease;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

    .qos-quick-order-popup .form-group:focus-within .icon,
    .qos-quick-order-popup .qos-input-group:focus-within .icon {
    color: var(--qos-secondary-color);
}

    .qos-quick-order-popup .qos-input-group input,
    .qos-quick-order-popup .form-group input,
    .qos-quick-order-popup .input-icon input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--qos-gray-800);
    background: transparent;
    font-weight: 500;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

    .qos-quick-order-popup .qos-input-group input::placeholder,
    .qos-quick-order-popup .form-group input::placeholder,
    .qos-quick-order-popup .input-icon input::placeholder {
    color: var(--qos-gray-400);
    font-weight: 400;
}

/* Icons */
.icon-user:before {
    content: "👤";
}

.icon-location:before {
    content: "📍";
}

.icon-phone:before {
    content: "📱";
}

.icon-coupon:before {
    content: "🏷️";
}

.icon-trash:before {
    content: "🗑️";
}

/* Product list section */
.qos-product-list-section {
    margin-bottom: 24px;
    border: 2px solid var(--qos-gray-200);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.qos-product-list-header {
    display: grid;
    grid-template-columns: 80px 1fr 60px;
    background: linear-gradient(135deg, var(--qos-gray-50) 0%, #f1f5f9 100%);
    padding: 16px;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.qos-product-item {
    display: grid;
    grid-template-columns: 80px 1fr 60px;
    padding: 0px 7px;
    border-bottom: 1px solid var(--qos-gray-100);
    align-items: center;
    transition: all .3s ease;
    background: #ffffff;
}
.qos-product-details.product-name {
  font-size: 14px;
  font-weight: 600;
  color: #8b5cf6;
  margin: 0 0 4px 0;
}
.qos-price{
  font-size: 13px;
  color: #10b981;
  margin: 0 0 8px 0;
}
.qos-product-item:hover {
    background: var(--qos-gray-50);
    transform: translateX(2px);
}

.qos-product-item:last-child {
    border-bottom: none;
}

.qos-product-col {
    padding: 0 5px;
    color: var(--qos-main-color) !important;
}

.qos-image-col {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--qos-gray-200);
}

.qos-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qos-info-col {
    padding-left: 15px;
}

.qos-action-col {
    display: flex;
    justify-content: center;
}

.qos-product-details h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--qos-main-color);
    margin: 0 0 4px 0;
}

.qos-price {
    font-size: 13px;
    color: var(--qos-success-color);
    margin: 0 0 8px 0;
    font-weight: 600;
}

/* Quantity selector modern design */
.qos-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
}
.qos-quantity-controls .qty-minus{
    margin-right: 0;
}

.qos-quantity-selector {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid var(--qos-gray-200);
    padding: 0;
    width: fit-content;
    min-width: 110px;
    height: 34px !important;
    overflow: hidden;
}

.qos-quantity-btn,
.qty-btn {
    width: 24px!important;
    height: 24px!important;
    border: 1px solid var(--qos-gray-200)!important;
    border-radius: 4px!important;
    background: var(--qos-gray-50)!important;
    color: var(--qos-gray-700) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.qos-quantity-btn:hover,
.qty-btn:hover {
    background: var(--qos-gray-100);
    border-color: var(--qos-gray-300);
}

.qos-quantity-btn.qos-minus{
    border-right: 1px solid var(--qos-gray-200);
    border-radius: 6px 0 0 6px;
}
.qos-quantity-btn.qos-plus{
    border-left: 1px solid var(--qos-gray-200);
    border-radius: 0 6px 6px 0;
}

.qos-quantity-btn span {
    font-size: inherit !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
}

.qty-display {
    font-size: 14px;
    font-weight: 600;
    color: var(--qos-gray-700);
    min-width: 20px;
    text-align: center;
    /* margin-bottom: 11px; */
}

.qos-quantity-selector input[type="number"] {
    width: 60px;
    height: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--qos-gray-700);
    outline: none;
    margin: 0 2px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qos-quantity-selector input[type="number"]::-webkit-outer-spin-button,
.qos-quantity-selector input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qos-remove-item,
.remove-btn {
    width: 32px!important;
    height: 32px!important;
    border: none!important;
    background: #fee2e2!important;
    color: var(--qos-danger-color)!important;
    border-radius: 6px!important;
    cursor: pointer!important;
    font-size: 14px!important;
    display: flex!important;
    align-items: center!important;
    justify-content: center!important;
    transition: all 0.2s ease!important;
}

.qos-remove-item:hover,
.remove-btn:hover {
    background: #fecaca;
}

/* Icon for trash */
.qos-icon-trash {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23e74c3c' d='M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.variations-container {
    padding: 10px;
    background-color: #f0f0f0;
}

/* Free Shipping Banner */
.qos-free-shipping-banner {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
    text-align: center;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 2px solid #86efac;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
    position: relative;
    overflow: hidden;
}

.qos-free-shipping-banner::before {
    content: "🚚";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    animation: bounce 2s infinite;
}

.qos-free-shipping-banner::after {
    content: "✨";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    animation: sparkle 1.5s infinite;
}

/* Shipping section */
.shipping-section,
.delivery-section {
    margin-bottom: 20px;
}

.shipping-section h3,
.section-title {
    font-size: 16px;
    margin: 0 0 12px;
    font-weight: 700;
    color: var(--qos-main-color);
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delivery-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid var(--qos-gray-200);
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: all .2s ease;
}

.delivery-option:hover {
    border-color: var(--qos-main-color);
}

.delivery-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--qos-gray-300);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    background: #fff;
}

.delivery-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--qos-main-color);
    background: var(--qos-main-color);
}

.delivery-option input[type="radio"]:checked + .radio-custom::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.option-text {
    flex: 1;
    font-weight: 600;
    color: var(--qos-gray-700);
}

.option-price {
    font-weight: 700;
    color: var(--qos-gray-700);
}

.qos-delivery-gateway-area{
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qos-delivery-gateway-area li{
    list-style: none;
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid var(--qos-gray-200);
    border-radius: 8px;
    background: #fff;
    transition: all .2s ease;
}

.qos-delivery-gateway-area li:hover{
    border-color: var(--qos-main-color);
}

.qos-delivery-gateway-area li input{
    display: none;
    margin: 0 !important;
}

.qos-delivery-gateway-area li .radio-input{
    width: 20px;
    height: 20px;
    border: 2px solid var(--qos-gray-300);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    background: #fff;
}

.qos-delivery-gateway-area li input:checked + .radio-input {
    border-color: var(--qos-main-color);
    background: var(--qos-main-color);
}

.qos-delivery-gateway-area li input:checked + .radio-input::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.qos-delivery-gateway-area li .gateway-name{
    flex: 1;
    font-weight: 600;
    color: var(--qos-gray-700);
}

.qos-delivery-gateway-area .delivery-charge{
    font-weight: 700;
    color: var(--qos-gray-700);
}

@media screen and (max-width: 768px ) {
    .qos-delivery-gateway-area li .gateway-name{
        font-size: 14px;
    }
}

.shipping-name {
    flex: 1;
}

.shipping-cost {
    font-weight: 600;
    color: var(--qos-gray-700);
}

/* Payment section */
.payment-section {
    margin-bottom: 20px;
}

.payment-section h3 {
    font-size: 16px;
    margin: 0 0 12px;
    font-weight: 700;
    color: var(--qos-main-color);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid var(--qos-gray-200);
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: all .2s ease;
}

.payment-option:hover {
    border-color: var(--qos-main-color);
}

.payment-option.selected {
    border-color: var(--qos-main-color);
    background: #f3f0ff;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option .radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--qos-gray-300);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    background: #fff;
}

/* Checked state: when input is checked or label has .selected */
.payment-option input[type="radio"]:checked + .radio-custom,
.payment-option.selected .radio-custom {
    border-color: var(--qos-main-color);
    background: var(--qos-main-color);
}

.payment-option input[type="radio"]:checked + .radio-custom::after,
.payment-option.selected .radio-custom::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.payment-note {
    color: var(--qos-danger-color);
    font-size: 14px;
    margin-left: 8px;
}

.payment-instruction {
    padding: 5px 0 5px 25px;
    color: var(--qos-gray-500);
    font-size: 14px;
    margin-bottom: 10px;
}

/* Coupon section */
.coupon-section {
    margin-bottom: 20px;
}

    .qos-quick-order-popup .coupon-section .form-group {
    border: 2px solid var(--qos-gray-200);
    border-radius: 12px;
    background: #ffffff;
    padding: 0 16px;
    height: 52px;
    transition: all .3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,.02);
}

    /* Removed coupon focus styles to avoid visual pop when inputs are focused in popup */

/* --- REPLACE broad neutral override with scoped rules --- */

/* Neutralize Flatsome input styling only for the popup's input-group / form-group controls */
.qos-quick-order-popup .qos-input-group input,
.qos-quick-order-popup .qos-input-group textarea,
.qos-quick-order-popup .qos-input-group select,
.qos-quick-order-popup .form-group input,
.qos-quick-order-popup .form-group textarea,
.qos-quick-order-popup .form-group select,
.qos-quick-order-popup .qos-input-group .select2-selection,
.qos-quick-order-popup .form-group .select2-selection {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
    color: inherit !important;
    font-size: inherit !important;
}

/* Keep form-group container visible with subtle border */
.qos-quick-order-popup .form-group {
    border: 1px solid var(--qos-gray-200) !important;
    border-radius: 10px !important;
    padding: 0 12px !important;
    height: 48px !important;
    background: #fff !important;
}

/* Focused container styling */
.qos-quick-order-popup .qos-input-group:focus-within,
.qos-quick-order-popup .form-group:focus-within {
    border: 1px solid var(--qos-main-color) !important;
    box-shadow: 0 4px 12px rgba(109,40,217,0.08) !important;
    background: #fff !important;
}

/* --- EXCEPTIONS: restore normal form control styles for variation selector and other internal components --- */
/* Variation selector selects/inputs must keep native border */
.qos-quick-order-popup .qos-variation-selector select,
.qos-quick-order-popup .qos-variation-selector input,
.qos-quick-order-popup .qos-attribute-field select,
.qos-quick-order-popup .qos-attribute-field input {
    background: #fff !important;
    border: 2px solid #ddd !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    box-shadow: none !important;
    height: auto !important;
    box-sizing: border-box !important;
    color: var(--qos-gray-800) !important;
    font-size: 14px !important;
}

/* Variation select focus */
.qos-quick-order-popup .qos-variation-selector select:focus,
.qos-quick-order-popup .qos-attribute-field select:focus {
    outline: none !important;
    border-color: var(--qos-main-color) !important;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.06) !important;
}

/* Payment fields (bKash/Nagad etc.) use their own boxed style; restore it if neutral rules hit */
.qos-quick-order-popup .payment-fields-box input,
.qos-quick-order-popup .payment-fields-box textarea,
.qos-quick-order-popup .payment-fields-box select {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    box-shadow: none !important;
    height: auto !important;
}

/* Ensure select2 inside variation selector keeps its dropdown appearance */
.qos-quick-order-popup .qos-variation-selector .select2-selection,
.qos-quick-order-popup .qos-attribute-field .select2-selection {
    background: #fff !important;
    border: 2px solid #ddd !important;
}

/* Total Section */
.qos-order-summary,
.total-section {
    background: var(--qos-gray-50);
    border: 1px solid var(--qos-gray-200);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.qos-order-summary h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--qos-gray-800);
    border-bottom: 1px solid var(--qos-gray-300);
    padding-bottom: 10px;
}

.qos-summary-row,
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--qos-gray-500);
}

.qos-summary-row.total,
.total-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--qos-main-color);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--qos-gray-200);
}

/* WooCommerce price styling */
.woocommerce-Price-amount {
    font-weight: 600;
}

.includes_tax {
    font-size: 12px;
    color: #777;
    display: block;
}

/* Place order button */
.form-actions {
    margin-top: 20px;
    text-align: center;
}

.place-order-button,
.place-order-btn {
    width: 100% !important;
    height: 56px !important;
    background: linear-gradient(135deg, var(--qos-main-color) 0%, var(--qos-secondary-color) 50%, var(--qos-tertiary-color) 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 16px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all .3s ease !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.place-order-button::before,
.place-order-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    transition: left .5s ease;
}

.place-order-button:hover::before,
.place-order-btn:hover::before {
    left: 100%;
}

.place-order-button:hover,
.place-order-btn:hover {
    background: linear-gradient(135deg, var(--qos-secondary-color) 0%, var(--qos-tertiary-color) 50%, #5b21b6 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

.place-order-button:active,
.place-order-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

/* Responsive styles */
@media (max-width: 768px) {
    .qos-quick-order-popup-content {
        padding: 16px;
        max-height: 90vh;
    }
    
    .qos-quick-order-header {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .qos-quick-order-header h2,
    .qos-instruction-text {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .qos-customer-info-section {
        gap: 14px;
        margin-bottom: 20px;
    }
    
    .qos-input-icon {
        height: 48px;
        padding: 0 14px;
        border-radius: 10px;
    }
    
    .qos-input-icon .icon {
        font-size: 18px;
        margin-right: 12px;
    }
    
    .qos-input-group input {
        font-size: 14px;
    }
    
    .qos-product-list-header,
    .qos-product-item {
        grid-template-columns: 60px 1fr 50px;
        padding: 12px;
    }
    
    .qos-image-col {
        width: 50px;
        height: 50px;
    }
    
    .qos-info-col {
        padding-left: 8px;
    }
    
    .qos-product-details h3 {
        font-size: 13px;
    }
    
    .qos-price {
        font-size: 12px;
    }
    
    .qty-btn {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
    
    .qty-display {
        font-size: 13px;
    }
    
    .remove-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .qos-free-shipping-banner {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 15px;
    }
    
    .delivery-option,
    .payment-option {
        padding: 10px 14px;
    }
    
    .option-text {
        font-size: 14px;
    }
    
    .coupon-input {
        height: 44px;
        padding: 0 12px;
    }
    
    .coupon-input input {
        font-size: 14px;
    }
    
    .total-section,
    .qos-order-summary {
        padding: 14px;
    }
    
    .total-row,
    .qos-summary-row {
        font-size: 13px;
    }
    
    .total-final,
    .qos-summary-row.total {
        font-size: 15px;
    }
    
    .place-order-btn,
    .place-order-button {
        height: 50px;
        font-size: 15px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .qos-quick-order-popup-content {
        padding: 12px;
    }
    
    .qos-quick-order-header {
        padding: 12px;
        border-radius: 10px;
    }
    
    .qos-quick-order-header h2,
    .qos-instruction-text {
        font-size: 14px;
    }
    
    .qos-input-icon {
        height: 44px;
        padding: 0 12px;
    }
    
    .qos-product-list-header,
    .qos-product-item {
        padding: 10px 8px;
    }
    
    .qos-free-shipping-banner {
        padding: 12px;
    }
    
    .qos-free-shipping-banner::before,
    .qos-free-shipping-banner::after {
        display: none;
    }
    
    .image-col {
        width: 60px;
        flex: 0 0 60px;
    }
    
    .qos-quantity-selector {
        max-width: 100px;
    }
    
    .qos-quantity-btn {
        width: 25px;
        height: 25px;
    }
    
    .qos-quantity-selector input {
        width: 30px;
        height: 25px;
    }
}

/* Success message */
.order-success-message {
    text-align: center;
    padding: 30px 0;
}

.order-success-message h2 {
    color: #27ae60;
    margin-bottom: 15px;
}

.order-success-message .button {
    display: inline-block;
    background-color: var(--qos-main-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 20px;
}

/* Form submitting state */
.form-submitting {
    position: relative;
    pointer-events: none;
}

.form-submitting::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-submitting::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--qos-main-color);
    animation: spin 1s linear infinite;
    z-index: 10;
} 

/* Empty cart message */
.qos-empty-cart-message {
    padding: 20px;
    text-align: center;
    background-color: #f8f8f8;
    border-radius: 4px;
    margin: 10px 0;
}

.qos-empty-cart-message p {
    color: #666;
    margin: 0;
    font-size: 14px;
} 

.qos-payment-gateway-area {
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 6px;
    border: 1px solid var(--qos-main-color);
    overflow: hidden;
}
.qos-payment-gateway-area li {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--qos-main-color);
    transition: background 0.15s;
    margin: 0 !important;
}
.qos-payment-gateway-area li input{
    margin: 0 !important;
}
.qos-payment-gateway-area li:last-child {
    border-bottom: none;
}
.qos-payment-gateway-area li.selected,
.qos-payment-gateway-area li:hover {
    cursor: pointer;
}
.qos-payment-gateway-area .radio-input {
    margin-right: 12px;
}
.qos-payment-gateway-area .gateway-name {
    flex: 1;
    font-size: 16px;
    color: #333;
}
.payment-gateway-name {
    font-weight: 600;
} 
.order-note-section{
    margin-top: 10px;
}

/* Make Buy Now button compact and inline */
.qos-inline-buy-now .qos-buy-now-btn {
    font-size: 15px;
    min-width: auto;
    white-space: nowrap;
    margin: 0 !important;
}

/* Ensure the row stays inline and doesn't wrap unless needed */
form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

form.cart > * {
    flex: unset !important;
}

form.cart .quantity {
    margin-bottom: 0;
}

form.cart .single_add_to_cart_button {
    margin-left: 8px;
}

/* Variation Selector Styles */
.qos-variation-selector {
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.qos-variation-selector h3 {
    margin: 0 0 20px 0;
    font-size: 1.4em;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.qos-attribute-field {
    margin-bottom: 15px;
}

.qos-attribute-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    text-transform: capitalize;
}

.qos-attribute-field select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.qos-attribute-field select:focus {
    outline: none;
    border-color: var(--qos-main-color, #7d3c98);
    box-shadow: 0 0 0 3px rgba(125, 60, 152, 0.1);
}

.qos-variation-details {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    min-height: 50px;
}

.qos-variation-info {
    text-align: center;
}

.qos-variation-price {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--qos-main-color, #7d3c98);
    margin-bottom: 10px;
}

.qos-variation-availability {
    color: #666;
    font-size: 0.9em;
}

.qos-variation-error {
    color: #e74c3c;
    text-align: center;
    font-weight: 500;
    font-style: italic;
}

.qos-variation-actions {
    text-align: center;
    margin-top: 20px;
}

.qos-add-to-cart-btn {
    background-color: var(--qos-main-color, #7d3c98);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qos-add-to-cart-btn:hover:not(:disabled) {
    background-color: #6b2c7d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 60, 152, 0.3);
}

.qos-add-to-cart-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.qos-add-to-cart-btn:active:not(:disabled) {
    transform: translateY(0);
}

/* Responsive styles for variation selector */
@media (max-width: 768px) {
    .qos-variation-selector {
        padding: 15px;
    }
    
    .qos-variation-selector h3 {
        font-size: 1.2em;
    }
    
    .qos-attribute-field select {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .qos-add-to-cart-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Bangladeshi Payment Fields Styles */
.qos-payment-fields {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.payment-fields-box {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.payment-fields-box-info {
    background: #e7f3ff;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #007cba;
}

.payment-fields-box-info p {
    margin: 0;
    color: #0073aa;
    font-size: 14px;
}

.payment-fields-box-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.payment-fields-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 4px;
}

.payment-fields-box ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
}

.payment-fields-box ul li:last-child {
    margin-bottom: 0;
}

.payment-fields-box ul li span {
    font-weight: 600;
    color: #333;
}

.payment-fields-box-phone,
.payment-fields-box-trans {
    margin-bottom: 15px;
}

.payment-fields-box-phone label,
.payment-fields-box-trans label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.payment-fields-box-phone input,
.payment-fields-box-trans input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.payment-fields-box-phone input:focus,
.payment-fields-box-trans input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.payment-fields-box-qr {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.payment-fields-box-qr img {
    border: 2px solid #ddd;
    border-radius: 6px;
}

.required {
    color: #d63384;
    font-weight: 600;
}

/* Payment gateway icons in selection */
.qos-payment-gateway-area li {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qos-payment-gateway-area li:hover {
    border-color: #007cba;
    background-color: #f8f9fa;
}

.qos-payment-gateway-area li.selected {
    border-color: #007cba;
    background-color: #e7f3ff;
}

.qos-payment-gateway-area li .gateway-name {
    display: flex;
    align-items: center;
    flex: 1;
    margin-left: 10px;
}

.qos-payment-gateway-area li .gateway-name img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 8px;
}

/* Hide/show payment fields based on selection */
.qos-payment-fields[style*="display: none"] {
    display: none !important;
}

.qos-payment-fields[style*="display: block"],
.qos-payment-fields:not([style*="display: none"]) {
    display: block !important;
}