/* * Estilos Core: Mi Carrito Flotante Amazon PRO */

:root {
    --mcf-amazon-blue: #232f3e;
    --mcf-amazon-orange: #f0c14b;
    --mcf-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --mcf-width: 380px;
    /* Default, overridden in mobile */
}

/* 1. Botón Flotante */
#mcf-floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--mcf-amazon-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

#mcf-floating-button:hover {
    transform: scale(1.1);
}

.mcf-cart-icon {
    position: relative;
    color: white;
    font-size: 24px;
}

.mcf-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e47911;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
}

/* 2. Panel Base */
#mcf-side-panel {
    position: fixed;
    top: 0;
    height: 100vh;
    background: #ffffff;
    z-index: 1000000;
    transition: var(--mcf-transition);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

/* 3. Header */
.mcf-panel-header {
    background: var(--mcf-amazon-blue);
    color: white;
    padding: 25px 20px;
}

.mcf-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mcf-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mcf-white-cart {
    width: 28px;
    height: 28px;
}

.mcf-header-title {
    margin: 0 !important;
    color: white !important;
    font-size: 20px !important;
}

.mcf-close-wrapper {
    cursor: pointer;
    width: 44px;
    /* Larger touch target */
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background 0.2s ease;
}

.mcf-close-wrapper:active {
    background: rgba(255, 255, 255, 0.3);
}

.mcf-header-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 15px;
}

.mcf-total-amount {
    color: #f0c14b;
    font-weight: bold;
}

.mcf-checkout-btn {
    display: block;
    background: var(--mcf-amazon-orange);
    color: #111;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

/* 4. Controls */
.mcf-item-qty-control {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 10px !important;
}

.mcf-qty-btn {
    width: 28px !important;
    height: 28px !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: bold !important;
    padding: 0 !important;
}

/* 5. Overlay & Content */
#mcf-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999999;
}

.mcf-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* 6. Custom Notice Area */
.mcf-custom-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.mcf-custom-notice p {
    margin: 0;
    line-height: 1.4;
}

/* 7. Mobile Overrides for Desktop Push */
@media (max-width: 767px) {
    body.mcf-cart-open {
        margin-right: 0 !important;
        overflow: hidden;
        /* Prevent scrolling when cart is open on mobile */
    }
}