/**
 * Public Styles
 */


/******Mini Quote***************/

.wcqcm-mini-quote-title {
    position: relative;
    display: inline-block;
}

.wcqcm-icon-cart {
    position: relative;
    display: inline-block;
}

/* Count badge */
.wcqcm-mini-quote-count {
    position: absolute;
    top: 12px;
    right: -18px;
    background: #ed1c24;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 50%;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    z-index: 10;
}


a.wcqcm-view-quotes-btn:focus {
    outline: none !important;
}






/* Quote Button */
.wcqcm-add-to-quote-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.wcqcm-add-to-quote-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
    color: #ffffff !important;
}

.wcqcm-add-to-quote-btn:active {
    transform: translateY(0);
}

.wcqcm-add-to-quote-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.wcqcm-add-to-quote-btn.loading::after {
    content: "...";
    animation: wcqcm-dots 1.5s infinite;
}

@keyframes wcqcm-dots {

    0%,
    20% {
        content: ".";
    }

    40% {
        content: "..";
    }

    60%,
    100% {
        content: "...";
    }
}

/* Mini Quote Widget */
.wcqcm-mini-quote-widget {
    position: relative;
    display: inline-block;
}

.wcqcm-mini-quote-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wcqcm-mini-quote-title {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wcqcm-mini-quote-count {
    background: #0073aa;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.wcqcm-mini-quote-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 20px;
}

.wcqcm-mini-quote-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 350px;
    max-width: 400px;
    z-index: 9999;
}

.wcqcm-mini-quote-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.wcqcm-mini-quote-items {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.wcqcm-mini-quote-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.wcqcm-mini-quote-item:last-child {
    border-bottom: none;
}

.wcqcm-mini-quote-item-image {
    flex-shrink: 0;
}

.wcqcm-mini-quote-item-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}

.wcqcm-mini-quote-item-details {
    flex: 1;
}

.wcqcm-mini-quote-item-name {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.wcqcm-mini-quote-item-name a {
    color: #333;
    text-decoration: none;
}

.wcqcm-mini-quote-item-name a:hover {
    color: #0073aa;
}

.wcqcm-mini-quote-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

.wcqcm-mini-quote-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
}

.wcqcm-mini-quote-item-remove:hover {
    color: #dc3232;
}

.wcqcm-mini-quote-footer {
    padding: 15px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
}

.wcqcm-mini-quote-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}

.wcqcm-view-quote-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: #0073aa;
    color: #fff !important;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    transition: background 0.3s;
}

.wcqcm-view-quote-btn:hover {
    background: #005a87;
}

/* Quote Cart Page */
.wcqcm-quote-cart-page {
    padding: 20px 0;
}

.wcqcm-page-title {
    margin-bottom: 30px;
}

.wcqcm-empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.wcqcm-empty-cart p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.wcqcm-quote-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wcqcm-quote-table thead {
    background: #f5f5f5;
}

.wcqcm-quote-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.wcqcm-quote-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.wcqcm-quote-table tbody tr:hover {
    background: #f9f9f9;
}

.wcqcm-product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 3px;
}

.wcqcm-product-name a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.wcqcm-product-name a:hover {
    color: #0073aa;
}

.wcqcm-quantity-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
}

.wcqcm-remove-item {
    background: red !important;
    border: 1px solid red !important;
    font-size: 28px;
    color: #ffffff !important;
    cursor: pointer;
    line-height: 1;
    padding: 2px !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s;
}

.wcqcm-remove-item:hover {
    background: #dc3232;
    color: #fff;
}

.wcqcm-quote-table tfoot {
    background: #f5f5f5;
}

.wcqcm-quote-table tfoot td {
    padding: 20px 15px;
    font-size: 18px;
    border-bottom: none;
}

/* Quote Form Section */
.wcqcm-quote-form-section {
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wcqcm-quote-form-section h2 {
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
    color: #0073aa;
}

.wcqcm-form-messages {
    margin-bottom: 20px;
}

.wcqcm-form-messages.success {
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 3px;
}

.wcqcm-form-messages.error {
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 3px;
}

.wcqcm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.wcqcm-form-field {
    margin-bottom: 20px;
}

.wcqcm-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.wcqcm-form-field .required {
    color: #dc3232;
}

.wcqcm-form-field input[type="text"],
.wcqcm-form-field input[type="email"],
.wcqcm-form-field input[type="tel"],
.wcqcm-form-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.wcqcm-form-field input:focus,
.wcqcm-form-field textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.wcqcm-form-field textarea {
    resize: vertical;
    font-family: inherit;
}

.wcqcm-form-actions {
    margin-top: 30px;
    text-align: right;
}

.wcqcm-submit-quote {
    padding: 14px 32px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.wcqcm-submit-quote:hover {
    background: #005a87;
    transform: translateY(-2px);
    /*box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);*/
    color: #ffffff !important;
}

.wcqcm-submit-quote:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.wcqcm-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.wcqcm-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: wcqcm-spin 1s linear infinite;
}

@keyframes wcqcm-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .wcqcm-mini-quote-dropdown {
        min-width: 300px;
        max-width: calc(100vw - 40px);
    }

    .wcqcm-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .wcqcm-quote-table {
        font-size: 14px;
    }

    .wcqcm-quote-table th,
    .wcqcm-quote-table td {
        padding: 10px 8px;
    }

    .wcqcm-product-thumbnail img {
        width: 60px;
        height: 60px;
    }
}