/* Slideout Cart Styles */

/* Header Icon */
.supportmarkt-quote-icon-wrapper {
    display: inline-block;
    position: relative;
}

.supportmarkt-quote-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    height: 40px;
    color: #1f1f1f;
    text-decoration: none;
    cursor: pointer;
}

.supportmarkt-quote-icon svg {
    width: 24px;
    height: 24px;
}

.supportmarkt-quote-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #1f1f1f;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

/* Slideout Container */
.supportmarkt-quote-slideout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s ease;
}

.supportmarkt-quote-slideout.active {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s linear 0s, opacity 0.3s ease;
}

.supportmarkt-quote-slideout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.supportmarkt-quote-slideout.active .supportmarkt-quote-slideout-overlay {
    opacity: 1;
}

.supportmarkt-quote-slideout-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.supportmarkt-quote-slideout.active .supportmarkt-quote-slideout-content {
    transform: translateX(0);
}

/* Header */
.supportmarkt-quote-slideout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #efefef;
    background: #fdfdfd;
}

.supportmarkt-quote-slideout-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f1f1f;
}

.supportmarkt-quote-close {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #1f1f1f;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.supportmarkt-quote-close:hover {
    color: #666;
}

.supportmarkt-quote-close svg {
    width: 24px;
    height: 24px;
}

/* Body */
.supportmarkt-quote-slideout-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

/* Date Selection */
.supportmarkt-quote-dates {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #efefef;
    display: none;
}

.supportmarkt-quote-dates h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f1f1f;
}

.supportmarkt-quote-date-fields {
    display: grid;
    display: none !important;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.supportmarkt-quote-date-field {
    display: flex;
    flex-direction: column;
}

.supportmarkt-quote-date-field label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.supportmarkt-quote-date-field input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.supportmarkt-update-dates-btn {
    width: 100%;
    padding: 12px;
    background: #1f1f1f;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.supportmarkt-update-dates-btn:hover {
    background: #333;
}

.supportmarkt-update-dates-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Products */
.supportmarkt-quote-products h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f1f1f;
}

.supportmarkt-quote-products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.supportmarkt-quote-product {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    border: 1px solid #efefef;
    border-radius: 8px;
    background: #fdfdfd;
}

.supportmarkt-quote-product__header {
    display: flex;
    gap: 15px;
    text-align: left;
}

.supportmarkt-quote-product-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.supportmarkt-quote-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supportmarkt-quote-product-details {
    flex: 1;
    min-width: 0;
}

.supportmarkt-quote-product-details h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
    line-height: 1.4;
}

.supportmarkt-quote-product-price {
    font-size: 18px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 5px;
}

.supportmarkt-quote-product-rental {
    font-size: 12px;
    color: #666;
}

.supportmarkt-quote-product-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.supportmarkt-quote-product-quantity {
    display: flex;
    align-items: center;
    gap: 5px;

    max-width: 150px;
}

.supportmarkt-quote-product-quantity button {
    display: flex;
    align-items: center ;
    justify-content: center;
}

.supportmarkt-quote-product-quantity input {
    width: 100%;
    /* Remove spinner arrows */
    -moz-appearance: textfield;
}

.supportmarkt-quote-product-quantity input::-webkit-outer-spin-button,
.supportmarkt-quote-product-quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.supportmarkt-qty-btn {
    background: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #1f1f1f;
    transition: background 0.2s;
}

.supportmarkt-qty-btn:hover {
    background: #e0e0e0;
}

.supportmarkt-qty-input {
    width: 40px;
    height: 30px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
}

.supportmarkt-remove-item {
    background: none;
    border: none;
    padding: 5px !important;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.supportmarkt-remove-item:hover {
    color: #d32f2f;
}

.supportmarkt-remove-item svg {
    width: 18px;
    height: 18px;
}

/* Empty State */
.supportmarkt-quote-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.supportmarkt-quote-empty p {
    margin: 0;
    font-size: 16px;
}

/* Subtotal */
.supportmarkt-quote-subtotal {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #efefef;
}

.supportmarkt-quote-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.supportmarkt-quote-subtotal-row strong {
    font-size: 20px;
    color: #1f1f1f;
}

/* Actions */
.supportmarkt-quote-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #efefef;
}

.supportmarkt-quote-btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
}

.supportmarkt-quote-btn-primary {
    background: #1f1f1f;
    color: #fff;
    color: white !important;
}

.supportmarkt-quote-btn-primary:hover {
    background: #333;
    color: #fff;
}

/* Loading State */
.supportmarkt-quote-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .supportmarkt-quote-slideout-content {
        max-width: 100%;
    }

    .supportmarkt-quote-date-fields {
        grid-template-columns: 1fr;
    }

    .supportmarkt-quote-product {
        flex-wrap: wrap;
    }

    .supportmarkt-quote-product-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 10px;
    }
}

