
/* Quote Buttons - New Layout with Quantity */
.wc-quote-buttons-wrapper {
    max-width: 500px;
    margin: 20px 0;
}

.wc-quote-quantity-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.wc-quote-quantity-label {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    margin: 0;
}

.wc-quote-quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    gap: 3px;
    max-width: 200px;
}

.wc-quote-qty-btn {
    background: #fff !important;
    width: 35px;
    height: 35px;
    border: none !important;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #000 !important;
}

.wc-quote-qty-input {
    width: 50px !important;
    height: 35px;
    border: none !important;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    padding: 0;
    -moz-appearance: textfield;
}

.wc-quote-qty-input::-webkit-outer-spin-button,
.wc-quote-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wc-quote-buttons {
    display: flex;
    gap: 12px;
}

.wc-quote-btn-inquire {
    flex: 1;
    padding: 10px !important;
    background-color: #eef4fb !important;
    border: 1px solid #097ac8 !important;
    color: #0589e3 !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.wc-quote-btn-inquire:hover {
    background-color: #d9e8f7;
    border-color: #0868a6;
    color: #0474c4;
}

.wc-quote-btn-add {
    flex: 1;
    padding: 10px !important;
    background-color: #0589e3 !important;
    border: none !important;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wc-quote-btn-add:hover {
    background-color: #0474c4;
}

.wc-quote-icon-cart-plus {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Floating Button - Always visible (Original Round Design) */
.wc-quote-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #6b6b6b;
    color: #fff;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
}

.wc-quote-floating-btn:hover {
    background-color: #555;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.wc-quote-floating-btn .wc-quote-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3232;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #fff;
    z-index: 10000;
    min-width: 24px;
    box-sizing: border-box;
}

.wc-quote-floating-btn .wc-quote-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

/* Popup */
.wc-quote-popup {
    position: fixed;
    bottom: 0;
    right: 0;
    max-width: 280px;
    max-height: 280px;
    background-color: #fff;
    border-radius: 0;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.wc-quote-popup.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

.wc-quote-popup.closing {
    display: flex !important;
    animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wc-quote-popup-header {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc-quote-popup-header-chevron {
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #666;
    transition: color 0.2s;
}

.wc-quote-popup-header-chevron:hover {
    color: #333;
}

.wc-quote-popup-header-chevron svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.wc-quote-popup.active .wc-quote-popup-header-chevron svg {
    transform: rotate(180deg);
}

.wc-quote-popup-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.wc-quote-popup-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 0;
}

/* .wc-quote-popup-items {
    padding: 0 10px;
} */

.wc-quote-popup-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid #f0f0f0;
}

.wc-quote-popup-item:last-child {
    border-bottom: none;
}

.wc-quote-popup-item-image {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.wc-quote-popup-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wc-quote-popup-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
}

.wc-quote-popup-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wc-quote-popup-item-info h4 {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wc-quote-popup-item-actions {
    flex-shrink: 0;
}

.wc-quote-popup-delete {
    color: #dc3232;
    text-decoration: none;
    font-size: 12px !important;
    transition: color 0.2s;
    display: inline-block;
}

.wc-quote-popup-delete:hover {
    color: #a00;
    text-decoration: underline;
}

.wc-quote-popup-footer {
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}



.wc-quote-popup-empty:hover {
    background-color: #e0e0e0;
}

button.wc-quote-popup-empty {
    line-height: 16px;
    padding: 4px 10px !important;
    font-size: 12px !important;
    color: #e64545;
    border: 0;
    background-color: #f1f1f1;
    border-radius: 0px !important;
}
.wc-quote-popup-inquire {
    padding: 10px 20px;
    background-color: #dc3232;
    color: #fff;
    border: none;
    border-radius: 0px !important;
    text-decoration: none;
    font-size: 12px !important;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    flex: 1;
    line-height: 16px;
    padding: 4px 10px !important;
    font-size: 12px;
    color: #fff !important;
    border: 0;
    background-color: #e64545;
    border-radius: 3px;
    width: fit-content;
    display: flex;
    max-width: 70px;
    align-items: center;
    justify-content: center;
}

.wc-quote-popup-inquire:hover {
    background-color: #a00;
    color: #fff;
}

.wc-quote-popup-empty-text {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Quote Page */
.wc-quote-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wc-quote-page h1 {
    margin-bottom: 30px;
    font-size: 32px;
}

.wc-quote-items-section {
    margin-bottom: 40px;
}

.wc-quote-items-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.wc-quote-items {
    display: grid;
    gap: 20px;
}

.wc-quote-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
}

.wc-quote-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.wc-quote-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.wc-quote-item-info {
    flex: 1;
}

.wc-quote-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.wc-quote-item-info h4 a {
    color: #333;
    text-decoration: none;
}

.wc-quote-item-info h4 a:hover {
    color: #0073aa;
}

.wc-quote-item-actions {
    flex-shrink: 0;
}

.wc-quote-remove-item,
.wc-quote-remove-all {
    padding: 8px 16px;
    background-color: #dc3232;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wc-quote-remove-item:hover,
.wc-quote-remove-all:hover {
    background-color: #a00;
}

.wc-quote-remove-all {
    margin-bottom: 20px;
}

.wc-quote-empty {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Quote Form */
.wc-quote-form-section {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.wc-quote-form-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.wc-quote-form {
    display: grid;
    gap: 20px;
}

.wc-quote-form-group {
    display: flex;
    flex-direction: column;
}

.wc-quote-form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.wc-quote-form-group input,
.wc-quote-form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.wc-quote-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.wc-quote-form-group input:focus,
.wc-quote-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.wc-quote-form-submit {
    padding: 14px 28px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wc-quote-form-submit:hover {
    background-color: #005a87;
}

.wc-quote-form-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Messages */
.wc-quote-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

.wc-quote-message-success {
    background-color: #00a32a;
}

.wc-quote-message-error {
    background-color: #dc3232;
}

.wc-quote-message-info {
    background-color: #0073aa;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
/* Inline Quote Button - For Elementor Loop */
.wc-quote-inline-button-wrapper {
    display: flex;
    gap: 0;
    align-items: center;
    margin-top: 20px;
    border-radius: 4px;
    overflow: hidden;
    justify-content: space-between;
    background: #e8e8e8;
    max-width: 194px;
    width: 100%;
}
.wc-quote-inline-inquire {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background-color: #e8e8e8;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

.wc-quote-inline-add-cart {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background-color: #c8c8c8;
    color: #333;
    cursor: pointer;
    overflow: hidden;
    width: 35px;
    height: 41px;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    justify-content: center;
}
.wc-quote-inline-add-cart:hover {
    width: 84%;
    background-color: #b8b8b8;
    position: absolute;
    right: 0px;
}
.wc-quote-inline-icon-envelope {
    display: flex;
    align-items: center;
}

.wc-quote-inline-icon-envelope svg {
    color: #666;
}

.wc-quote-inline-text {
    font-size: 14px;
    white-space: nowrap;
    color: #333;
    font-weight: 400;
}


.wc-quote-inline-add-cart svg {
    flex-shrink: 0;
    min-width: 16px;
    color: #666;
}

.wc-quote-inline-add-cart-text {
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    width: auto;
    transition: opacity 0.3s ease, width 0.3s ease;
    overflow: hidden;
}
.wc-quote-inline-add-cart:hover .wc-quote-inline-add-cart-text {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .wc-quote-buttons {
        flex-direction: column;
    }
    
    .wc-quote-btn-add,
    .wc-quote-btn-now {
        width: 100%;
        text-align: center;
    }
    
    .wc-quote-item {
        flex-direction: column;
        text-align: center;
    }
    
    .wc-quote-item-image {
        margin: 0 auto;
    }
    
    .wc-quote-buttons-wrapper {
        max-width: 100%;
    }
    
    .wc-quote-quantity-section {
        flex-wrap: wrap;
    }
    
    .wc-quote-buttons {
        flex-direction: column;
    }
    
    .wc-quote-btn-inquire,
    .wc-quote-btn-add {
        width: 100%;
    }
    
    .wc-quote-icon-cart-plus {
        width: 18px;
        height: 18px;
    }
    
    .wc-quote-floating-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .wc-quote-floating-btn .wc-quote-icon {
        width: 20px;
        height: 20px;
    }
    
}




/* Quote Request Form - Scoped styles */
.wc-quote-request-form-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    font-family: inherit;
}

.wc-quote-request-content {
    width: 100%;
}

.wc-quote-request-products {
    margin-bottom: 40px;
}

.wc-quote-request-products-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 0 20px;
}

.wc-quote-request-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wc-quote-request-table thead {
    background-color: #f5f5f5;
}

.wc-quote-request-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.wc-quote-request-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.wc-quote-request-table tbody tr:last-child td {
    border-bottom: none;
}

.wc-quote-request-image {
    width: 100px;
}

.wc-quote-request-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
}

.wc-quote-request-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.wc-quote-request-qty {
    width: 120px;
}

.wc-quote-request-qty-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.wc-quote-request-action {
    width: 120px;
}

.wc-quote-request-remove {
    padding: 8px 16px;
    background-color: #dc3232;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.wc-quote-request-remove:hover {
    background-color: #a00;
}

.wc-quote-request-contact {
    margin-top: 40px;
}

.wc-quote-request-form {
    display: block;
}

.wc-quote-request-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.wc-quote-request-form-group {
    display: flex;
    flex-direction: column;
}

.wc-quote-request-form-group-full {
    grid-column: 1 / -1;
}

.wc-quote-request-form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.wc-quote-request-form-group .required {
    color: #dc3232;
}

.wc-quote-request-form-group input,
.wc-quote-request-form-group textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.wc-quote-request-form-group input:focus,
.wc-quote-request-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.wc-quote-request-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.wc-quote-request-form-submit-wrapper {
    margin-top: 30px;
}

.wc-quote-request-submit {
    padding: 12px 30px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wc-quote-request-submit:hover {
    background-color: #005a87;
}

.wc-quote-request-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.wc-quote-request-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.5;
    display: none;
}

.wc-quote-request-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wc-quote-request-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


@media (max-width: 768px) {
    .wc-quote-inline-add-cart{
        padding: 10px;
    }
    .wc-quote-inline-add-cart:hover {
        position: relative;
        width: 35px;
    }
    .wc-quote-inline-add-cart-text {
        display: none;    }
    .wc-quote-inline-add-cart:hover .wc-quote-inline-add-cart-text {
        opacity: 0 !important;
        width: 0;
    }
    .wc-quote-request-form-wrapper {
        padding: 15px;
    }
    
    .wc-quote-request-content {
        padding: 0;
    }
    
    .wc-quote-request-products {
        margin-bottom: 30px;
    }
    
    .wc-quote-request-products-table-wrapper {
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .wc-quote-request-table {
        font-size: 12px;
        min-width: 580px;
    }
    
    .wc-quote-request-table th {
        padding: 10px 8px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .wc-quote-request-table td {
        padding: 12px 8px;
    }
    
    .wc-quote-request-image {
        width: 60px;
        min-width: 60px;
    }
    
    .wc-quote-request-image img {
        width: 50px;
        height: 50px;
    }
    
    .wc-quote-request-name {
        font-size: 12px;
        line-height: 1.4;
        min-width: 200px;
    }
    
    .wc-quote-request-qty {
        width: 100px;
        min-width: 100px;
    }
    
    .wc-quote-request-qty-input {
        width: 70px;
        padding: 6px;
        font-size: 13px;
    }
    
    .wc-quote-request-action {
        width: 100px;
        min-width: 100px;
    }
    
    .wc-quote-request-remove {
        padding: 8px 12px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    .wc-quote-request-contact {
        margin-top: 30px;
    }
    
    .wc-quote-request-form-row {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 18px;
    }
    
    .wc-quote-request-form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .wc-quote-request-form-group input,
    .wc-quote-request-form-group textarea {
        padding: 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .wc-quote-request-form-submit-wrapper {
        margin-top: 25px;
    }
    
    .wc-quote-request-submit {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }
    
    .wc-quote-request-empty {
        padding: 30px 15px;
        font-size: 15px;
        text-align: center;
    }
}

