#remate-floating-cart {
    /* Styles moved to end of file to override specificity issues */
}

.remate-cart-icon {
    background-color: #051c45; /* Azul solicitado */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    transition: transform 0.3s;
}

.remate-cart-icon:hover {
    transform: scale(1.1);
}

.remate-cart-icon span.dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

.remate-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ac0403; /* Rojo solicitado para notificaciones/botones */
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.remate-cart-content {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 600px; /* Más ancho solicitado */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 15px;
}

.remate-cart-content.open {
    display: block;
}

.remate-cart-content h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 18px;
    color: #051c45;
}

.remate-quote-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    max-height: 400px; /* Un poco más de altura */
    overflow-y: auto;
}

.remate-quote-list li {
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    font-size: 14px;
    justify-content: space-between;
}

.remate-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.remate-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-right: 15px;
    justify-content: center; /* Centrar verticalmente el contenido de texto */
}

.remate-item-name {
    font-weight: bold;
    color: #333;
    font-size: 15px;
    margin-bottom: 2px;
    display: block;
    line-height: 1.2;
}

.remate-item-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 0;
}

.remate-qty-controls {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border-radius: 4px;
    padding: 2px;
    margin-right: 15px; /* Separar del botón de eliminar */
    flex-shrink: 0; /* Evitar que se encoja */
}

.qty-btn {
    background: #fff;
    border: 1px solid #ddd;
    width: 28px;
    height: 28px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
    color: #555;
    border-radius: 4px;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #eee;
    color: #000;
}

.qty-input {
    width: 45px !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: bold;
    color: #333;
    -moz-appearance: textfield; /* Remove spinner firefox */
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-quote {
    color: #ac0403;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
    font-size: 18px;
}

.remate-quote-form input,
.remate-quote-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.remate-quote-form button {
    width: 100%;
    background-color: #ac0403; /* Rojo solicitado */
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

.remate-quote-form button:hover {
    background-color: #8a0302;
}

/* Add to Quote Button Styles */
.remate-add-to-quote {
    margin-top: 15px; /* Separación superior */
    margin-bottom: 15px; /* Separación inferior */
    margin-left: 0;
    background-color: #ac0403 !important; /* Rojo solicitado */
    color: #fff !important;
    font-size: 1.1em !important; /* Más grande */
    padding: 15px 25px !important; /* Más grande */
    border-radius: 5px !important;
    transition: opacity 0.3s;
    width: 100%; /* Ocupar ancho disponible para destacar */
    max-width: 100%; /* Asegurar que no desborde */
    display: block; /* Asegurar salto de línea */
    text-align: center;
}

.remate-add-to-quote:hover {
    background-color: #8a0302 !important;
}

.remate-add-to-quote.disabled,
.remate-add-to-quote:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

#quote-response {
    margin-top: 10px;
    font-size: 13px;
    color: green;
}

/* Overlay & Close Button */
#remate-cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2147483647; /* Max Z-index */
    opacity: 0;
    transition: opacity 0.3s ease;
}

#remate-cart-overlay.open {
    display: block;
    opacity: 1;
}

#remate-floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2147483648; /* Max Z-index + 1 */
    font-family: sans-serif;
}

.remate-close-cart {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 20px;
    line-height: 36px;
    color: #ac0403; /* Rojo solicitado */
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-weight: bold;
    border: 2px solid #ac0403;
}

.remate-close-cart:hover {
    background-color: #ac0403;
    color: #fff;
    transform: scale(1.1);
}
