/* Google Fonts should be enqueued via PHP */

.bluepiquote-body * {
    box-sizing: border-box;
}

.bluepiquote-body {
    font-family: 'Inter', sans-serif;
    background: #f9fafa;
    color: #1a1a1a;
    line-height: 1.5;
    max-width: 100% !important;
}

@media (max-width: 767px) {
    .bluepiquote-actions {
        flex-direction: column !important;
    }
}

.bluepiquote-container {
    display: flex;
    min-height: 500px;
    max-width: 100%;
    margin: 10px auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    background: #fff;
}

/* left Panel */
.bluepiquote-left-panel {
    flex: 1.5;
    background: #fff;
    padding: 30px;
    overflow-y: auto;
}

.bluepiquote-panel-title {
    font-size: 15px;
    margin: 0 0 20px 0;
}

.bluepiquote-search {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 20px;
}

.bluepiquote-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.bluepiquote-tab {
    padding: 7px 15px;
    border: none;
    border-radius: 30px;
    background: #eef2f6;
    color: #555;
    font-size: 12px;
    cursor: pointer;
}

.bluepiquote-tab-active {
    background: #0066cc;
    color: white;
}

.bluepiquote-price-range {
    margin-bottom: 25px;
    width: 50%;
}

.bluepiquote-price-range span {
    font-size: 14px;
}

.bluepiquote-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.bluepiquote-slider {
    flex: 1;
    height: 5px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    appearance: none;
}

.bluepiquote-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0066cc;
    cursor: pointer;
}

.bluepiquote-range-value {
    font-size: 13px !important;
    color: #0066cc;
    font-weight: 600;
    min-width: 100px;
}

/* Product Cards */
.bluepiquote-product-list {
    display: grid;
    gap: 16px;
}

.bluepiquote-product-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.2s;
}

.bluepiquote-product-card:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.bluepiquote-product-info h3 {
    margin: 0 0 6px 0;
    font-size: 14px;
}

.bluepiquote-product-info p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 12px;
}

.bluepiquote-category {
    background: #e6f0ff;
    color: #0066cc;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    margin-right: 8px;
}

.bluepiquote-code {
    color: #999;
    font-size: 10px;
}

.bluepiquote-product-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bluepiquote-product-price strong {
    display: block;
    font-size: 13px;
    margin-bottom: 0;
}

.bluepiquote-add-btn {
    background: #0066cc;
    color: white;
    border: none;
    padding: 6px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Right Panel */
.bluepiquote-right-panel {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-right: 1px solid #eee;
}

.bluepiquote-title {
    font-size: 15px;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.bluepiquote-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 12px;
}

.bluepiquote-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.bluepiquote-card {
    background: #f0f7ff;
    padding: 5px 15px;
    border-radius: 12px;
    text-align: center;
    font-size: 13px;
    color: #555;
    border: 1.5px dashed #0066cc;
}

.bluepiquote-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 6px;
}

.bluepiquote-total-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.bluepiquote-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 12px;
}

.bluepiquote-discount-row {
    color: #16a34a;
    font-weight: 600;
}

.bluepiquote-discount-amount {
    color: #16a34a !important;
    font-weight: 700;
}

.bluepiquote-shipping {
    position: relative;
}

.bluepiquote-edit-link {
    color: #0066cc;
    font-size: 12px;
    text-decoration: none;
}

.bluepiquote-edit-link:hover {
    text-decoration: underline;
}

.bluepiquote-total-row {
    font-size: 15px;
    font-weight: 600;
    padding-top: 12px;
    border-top: 1px solid #ddd;
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
}

.bluepiquote-total-price {
    color: #0066cc;
    font-size: 15px;
}

.bluepiquote-actions {
    display: flex;
    gap: 15px;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 1rem;
}

.bluepiquote-actions button {
    min-width: 240px;
}

.bluepiquote-btn-secondary,
.bluepiquote-btn-primary {
    padding: 9px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bluepiquote-btn-secondary {
    background: #f0f7ff;
    color: #333;
    border: 1.5px dashed #0066cc;
}

.bluepiquote-btn-primary {
    background: #0066cc;
    color: white;
}

/* Quantity Input with Plus/Minus - Quotation Maker Style */
.bluepiquote-quantity-input {
    display: flex;
    align-items: center;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    background: #fff;
    font-family: inherit;
}

.bluepiquote-qty-btn {
    width: 20px;
    height: 20px;
    border: none;
    background: #f8f9fa;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bluepiquote-qty-btn:hover {
    background: #0066cc;
    color: white;
}

.bluepiquote-qty-btn:active {
    background: #0052a3;
}

.bluepiquote-qty-minus {
    border-right: 1px solid #ddd;
}

.bluepiquote-qty-plus {
    border-left: 1px solid #ddd;
}

.bluepiquote-qty-input {
    width: 60px;
    height: 20px;
    text-align: center;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    background: transparent;
    appearance: textfield;
}

/* Hide arrows in number input */
.bluepiquote-qty-input::-webkit-outer-spin-button,
.bluepiquote-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bluepiquote-qty-input:focus {
    outline: none;
}


/* Responsive Design */
@media (max-width: 992px) {
    .bluepiquote-container {
        flex-direction: column;
    }

    .bluepiquote-left-panel,
    .bluepiquote-right-panel {
        flex: none;
    }

    .bluepiquote-summary-cards {
        grid-template-columns: 1fr;
    }

    .bluepiquote-actions {
        flex-direction: row;
    }

    .bluepiquote-btn-secondary,
    .bluepiquote-btn-primary {
        flex: 1;
    }
}

@media (max-width: 600px) {

    .bluepiquote-left-panel,
    .bluepiquote-right-panel {
        padding: 20px;
    }

    .bluepiquote-product-card {
        flex-direction: column;
        text-align: center;
    }

    .bluepiquote-product-price {
        margin-top: 15px;
    }

    .bluepiquote-category-tabs {
        justify-content: center;
    }
}


/* Clean Added Products List - Quantity as Text Only */
.bluepiquote-added-products {
    margin: 30px 0;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    max-height: 420px;
    overflow-y: auto;
}

.bluepiquote-added-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 18px 0;
    color: #1a1a1a;
}

.bluepiquote-added-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.bluepiquote-added-item:last-child {
    border-bottom: none;
}

.bluepiquote-added-thumb {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.bluepiquote-added-details {
    flex: 1;
    min-width: 0;
}

.bluepiquote-added-name {
    font-weight: 600;
    font-size: 12px;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bluepiquote-added-code {
    font-size: 10px;
    color: #888;
}

.bluepiquote-added-quantity {
    font-size: 12px;
    color: #555;
    min-width: 40px;
    text-align: center;
}

.bluepiquote-added-quantity strong {
    font-size: 12px;
    color: #1a1a1a;
    font-weight: 700;
}

.bluepiquote-added-price {
    font-weight: 600;
    color: #0066cc;
    font-size: 12px;
    min-width: 60px;
    text-align: right;
}

.bluepiquote-remove-item {
    width: 26px;
    height: 26px;
    border: none;
    background: #fdf2f2;
    color: #e63946;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.bluepiquote-remove-item:hover {
    background: #e63946 !important;
    color: white !important;
}

.bluepiquote-empty-state {
    text-align: center;
    color: #999;
    font-size: 15px;
    padding: 40px 0;
    display: none;
}

.bluepiquote-empty-state.show {
    display: block;
}

/* Responsive Adjustment */
@media (max-width: 768px) {
    .bluepiquote-added-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .bluepiquote-added-price,
    .bluepiquote-added-quantity {
        flex: 1;
        text-align: left;
    }

    .bluepiquote-remove-item {
        order: -1;
    }
}

.bluepiquote-added-thumb-letter {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: #0066cc;
    color: white;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #ddd;
}

/* Product Card Thumbnail */
.bluepiquote-product-thumb {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #eee;
    background: #f9fafa;
}

.bluepiquote-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Make the card flex (important!) */
.bluepiquote-product-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Optional: better spacing on mobile */
@media (max-width: 480px) {
    .bluepiquote-product-thumb {
        width: 70px;
        height: 70px;
    }
}

/* Pagination - Quotation Maker Style */
.bluepiquote-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    padding: 20px 0;
    user-select: none;
}

.bluepiquote-page-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #f8f9fa;
    color: #666;
    border-radius: 10px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.bluepiquote-page-btn:hover:not(:disabled) {
    background: #0066cc;
    color: white;
}

.bluepiquote-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bluepiquote-page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bluepiquote-page-num {
    width: 30px;
    height: 30px;
    border: none;
    background: #f1f3f5;
    color: #555;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.bluepiquote-page-num.active,
.bluepiquote-page-num:hover {
    background: #0066cc;
    color: white;
}

.bluepiquote-pagination i,
.bluepiquote-remove-item i {
    font-size: 14px;
}

.bluepiquote-page-dots {
    color: #999;
    font-weight: bold;
    padding: 0 4px;
}

/* Responsive */
@media (max-width: 600px) {
    .bluepiquote-pagination {
        gap: 8px;
    }

    .bluepiquote-page-numbers {
        gap: 6px;
    }

    .bluepiquote-page-num,
    .bluepiquote-page-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Coupon Section - Quotation Maker Pro Look */
.bluepiquote-coupon-section {
    margin: 24px 0 24px 0;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 12px;
    border: 1.5px dashed #0066cc;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.bluepiquote-coupon-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.bluepiquote-coupon-input {
    flex: 1;
    padding: 10px 10px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    background: white;
    transition: all 0.2s;
}

.bluepiquote-coupon-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.bluepiquote-coupon-btn {
    padding: 10px 12px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.bluepiquote-coupon-btn:hover {
    background: #0052a3;
}

.bluepiquote-coupon-btn:active {
    transform: translateY(1px);
}

.bluepiquote-coupon-message {
    font-size: 14px;
    font-weight: 500;
    min-height: 0;
}

/* Success & Error States (JS will add these classes) */
.bluepiquote-coupon-success {
    color: #0d8b3a;
}

.bluepiquote-coupon-error {
    color: #e63946;
}

/* Responsive */
@media (max-width: 480px) {
    .bluepiquote-coupon-input-wrapper {
        flex-direction: column;
    }

    .bluepiquote-coupon-btn {
        width: 100%;
    }
}

/* Add to Cart Button - Full Width & Prominent */
.bluepiquote-cart-action {
    margin: 28px 0 20px 0;
    text-align: center;
}

.bluepiquote-btn-cart {
    width: 100%;
    padding: 10px 11px;
    background: #0052a3;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 82, 163, 0.25);
    transition: all 0.2s;
}

.bluepiquote-btn-cart:hover {
    background-color: rgba(0, 82, 163, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 82, 163, 0.35);
}

.bluepiquote-btn-cart:active {
    transform: translateY(0);
}

/* "or" Separator */
.bluepiquote-or-separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

.bluepiquote-or-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: 1;
}

.bluepiquote-or-separator span {
    background: #fff;
    padding: 0 16px;
    position: relative;
    z-index: 2;
    text-transform: lowercase;
}

.bluepiquote-or-separator span::first-letter {
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 480px) {
    .bluepiquote-btn-cart {
        font-size: 16px;
        padding: 14px 18px;
    }
}

/* Customer Form - Quotation Maker Style */
.bluepiquote-customer-form {
    margin: 32px 0;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 14px;
    border: 1px solid #e9ecef;
}

.bluepiquote-form-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bluepiquote-form-title::before {
    content: "ℹ️";
    font-size: 15px;
}

.bluepiquote-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.bluepiquote-full-width {
    grid-column: 1 / -1;
}

.bluepiquote-form-group {
    display: flex;
    flex-direction: column;
}

.bluepiquote-label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.bluepiquote-required {
    color: #e63946;
}

.bluepiquote-input,
.bluepiquote-textarea {
    padding: 8px 8px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 12px;
    font-family: inherit;
    background: white;
    transition: all 0.2s;
}

.bluepiquote-input:focus,
.bluepiquote-textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.12);
}

.bluepiquote-textarea {
    resize: vertical;
    min-height: 100px;
}

/* WooCommerce-style Country Dropdown */
.bluepiquote-country-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath fill='%23666' d='M1 0L7 7L13 0H1Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 44px !important;
    cursor: pointer;
}

/* Optional: Slight style improvement */
.bluepiquote-country-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath fill='%230066cc' d='M1 0L7 7L13 0H1Z'/%3E%3C/svg%3E");
}

/* Responsive */
@media (max-width: 768px) {
    .bluepiquote-form-grid {
        grid-template-columns: 1fr;
    }

    .bluepiquote-customer-form {
        padding: 20px;
    }
}

/* Admin Discount */
.bluepiquote-admin-discount {
    margin: 28px 0;
    padding: 15px;
    background: #fffbeb;
    border: 2px solid #f59e0b;
    border-radius: 12px;
}

.bluepiquote-admin-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 14px;
}

.bluepiquote-admin-header i {
    font-size: 12px;
    color: #f59e0b;
}

.bluepiquote-admin-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bluepiquote-admin-input {
    width: 80px;
    padding: 10px 10px;
    border: 2px solid #ffd966;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    background: white;
}

.bluepiquote-admin-type {
    padding: 10px 10px;
    border: 2px solid #ffd966;
    border-radius: 10px;
    background: white;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

.bluepiquote-admin-apply {
    padding: 12px 20px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 12px;
}

.bluepiquote-admin-apply:hover {
    background: #d97706;
}

/* Mobile friendly */
@media (max-width: 480px) {
    .bluepiquote-admin-input-wrapper {
        flex-direction: column;
    }

    .bluepiquote-admin-input,
    .bluepiquote-admin-type,
    .bluepiquote-admin-apply {
        width: 100%;
    }
}

/* Sale Price + Discount Badge - Marketing Ready */
.bluepiquote-added-price-wrapper {
    text-align: right;
    position: relative;
}

.bluepiquote-added-price-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    /* space between price and badge */
    min-width: 110px;
}

.bluepiquote-added-prices {
    text-align: right;
}

.bluepiquote-added-original-price {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}

.bluepiquote-added-sale-price {
    font-size: 12px;
    font-weight: 700;
    color: #0066cc;
}

.bluepiquote-added-discount-badge {
    background: #e63946;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
    min-width: 42px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}


/* Popup Overlay */
.bluepiquote-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.bluepiquote-popup-overlay.show {
    display: flex !important;
}

.bluepiquote-popup-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: popupSlide 0.3s ease-out;
}

@keyframes popupSlide {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bluepiquote-popup-header {
    padding: 20px 24px 16px;
    background: #0066cc;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bluepiquote-popup-header h3 {
    margin: 0;
    font-size: 20px;
}

.bluepiquote-popup-header .bluepiquote-popup-close {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    color: #a30000;
    border-radius: 50%;
    font-size: 18px;
}

.bluepiquote-popup-close {
    background-color: #a30000;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.bluepiquote-popup-close,
.bluepiquote-popup-submit {
    width: 120px;
}


/* Form inside popup */
.bluepiquote-customer-form {
    margin: 0;
    padding: 24px;
    background: white;
    border-radius: 0;
    border: none;
}

.bluepiquote-popup-actions {
    padding: 20px 24px;
    background: #f8f9fa;
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 600px) {
    .bluepiquote-popup-actions {
        flex-direction: column;
    }

    .bluepiquote-popup-actions button {
        width: 100%;
    }
}

/* category selector */

.bluepiquote-cat-price {
    display: flex;
    justify-content: space-between;
}

/* Category Selector - Toggle Dropdown */
.bluepiquote-category-selector {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bluepiquote-category-toggle {
    padding: 10px 18px;
    border-radius: 30px;
    background: #0066cc;
    color: white !important;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bluepiquote-toggle-icon {
    transition: transform 0.3s ease;
}

.bluepiquote-category-toggle.active .bluepiquote-toggle-icon {
    transform: rotate(180deg);
}

/* Dropdown Panel */
.bluepiquote-category-panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    max-height: 400px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.bluepiquote-category-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bluepiquote-category-list {
    padding: 12px 0;
    max-height: 320px;
    overflow-y: auto;
}

.bluepiquote-category-list a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.bluepiquote-category-list a:hover {
    background: #f0f7ff;
    color: #0066cc;
    padding-left: 28px;
}

.bluepiquote-category-list a.active {
    background: #0066cc;
    color: white;
    font-weight: 600;
}

/* View More Button */
.bluepiquote-view-more-wrapper {
    padding: 10px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.bluepiquote-view-more-btn {
    background: none;
    border: none;
    color: #0066cc;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.bluepiquote-view-more-btn:hover {
    background: #f0f7ff;
}

/* responsive */
@media (max-width: 600px) {
    .bluepiquote-category-selector {
        justify-content: flex-start;
    }

    .bluepiquote-cat-price {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .bluepiquote-price-range {
        width: 100%;
        margin-top: 12px;
    }
}

/* Beautiful Loader */
.bluepiquote-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    width: 100%;
    min-height: 300px;
}

.bluepiquote-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    /* Theme color */
    border-radius: 50%;
    animation: bluepiQuoteSpin 0.8s linear infinite;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.1);
}

.bluepiquote-small-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #0066cc;
    border-radius: 50%;
    animation: bluepiQuoteSpin 0.8s linear infinite;
}

.bluepiquote-loader-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: bluepiQuotePulse 1.5s ease-in-out infinite;
}

@keyframes bluepiQuoteSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes bluepiQuotePulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.bluepiquote-rfq-container {
    padding: 60px 20px;
    background: #f9fafa;
    display: flex;
    justify-content: center;
}

.bluepiquote-rfq-card {
    background: #fff;
    max-width: 800px;
    width: 100%;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.bluepiquote-rfq-header {
    text-align: center;
    margin-bottom: 40px;
}

.bluepiquote-rfq-header i {
    font-size: 40px;
    color: #0066cc;
    margin-bottom: 15px;
}

.bluepiquote-rfq-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.bluepiquote-rfq-header p {
    color: #666;
    font-size: 15px;
}

.bluepiquote-rfq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.bluepiquote-rfq-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bluepiquote-rfq-group.full-width {
    grid-column: span 2;
}

.bluepiquote-rfq-group label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.bluepiquote-rfq-group input,
.bluepiquote-rfq-group textarea {
    padding: 12px 16px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.bluepiquote-rfq-group input:focus,
.bluepiquote-rfq-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.bluepiquote-rfq-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.bluepiquote-rfq-submit {
    background: #0066cc;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.bluepiquote-rfq-submit:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.rfq-message {
    text-align: center;
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.rfq-message.success {
    background: #ecfdf5;
    color: #059669;
    display: block;
}

.rfq-message.error {
    background: #fef2f2;
    color: #dc2626;
    display: block;
}

@media (max-width: 600px) {
    .bluepiquote-rfq-grid {
        grid-template-columns: 1fr;
    }

    .bluepiquote-rfq-group.full-width {
        grid-column: span 1;
    }

    .bluepiquote-rfq-card {
        padding: 25px;
    }
}

/* Fix popup layout and scroll */
.bluepiquote-popup-overlay {
    padding: 20px !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.bluepiquote-popup-content {
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    max-width: 600px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    margin: auto !important;
    /* Ensure centered */
}

.bluepiquote-popup-header {
    flex-shrink: 0 !important;
    background: linear-gradient(135deg, #0052a3, #0077ff) !important;
    color: white !important;
    padding: 20px 24px !important;
    border-bottom: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.bluepiquote-popup-header h3 {
    margin: 0 !important;
    color: white !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

.bluepiquote-popup-close {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: 0.3s !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

.bluepiquote-popup-close:hover {
    background: white !important;
    color: #0052a3 !important;
}

.bluepiquote-customer-form {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 24px !important;
    background: #ffffff !important;
    margin: 0 !important;
}

.bluepiquote-popup-actions {
    flex-shrink: 0 !important;
    background: #f8f9fa !important;
    padding: 16px 24px !important;
    border-top: 1px solid #e9ecef !important;
    display: flex !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Button Styles - 50% width */
.bluepiquote-popup-actions button {
    flex: 1 !important;
    width: 100% !important;
    text-align: center !important;
}

.bluepiquote-btn-secondary {
    background-color: #ffffff !important;
    color: #dc3545 !important;
    border: 1px solid #dc3545 !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    min-height: 48px !important;
}

.bluepiquote-btn-secondary:hover {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

.bluepiquote-btn-primary {
    background-color: #0077ff !important;
    color: #ffffff !important;
    border: 1px solid #0077ff !important;
    /* Added border to match height */
    padding: 12px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    box-shadow: 0 4px 6px rgba(0, 119, 255, 0.2) !important;
    box-sizing: border-box !important;
    min-height: 48px !important;
}

.bluepiquote-btn-primary:hover {
    background-color: #005cd1 !important;
    box-shadow: 0 6px 12px rgba(0, 119, 255, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* Bootstrap-like Input Styles */
.bluepiquote-customer-form .bluepiquote-input,
.bluepiquote-customer-form .bluepiquote-textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.bluepiquote-customer-form .bluepiquote-input:focus,
.bluepiquote-customer-form .bluepiquote-textarea:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.bluepiquote-customer-form .bluepiquote-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.bluepiquote-full-width {
    grid-column: 1 / -1;
}

/* Custom Scrollbar for form */
.bluepiquote-customer-form::-webkit-scrollbar {
    width: 6px;
}

.bluepiquote-customer-form::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.bluepiquote-customer-form::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.bluepiquote-customer-form::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@keyframes bluepiPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.bluepiquote-details-popup-close:hover {
    color: #ef4444 !important;
}