/**
 * Stili per il widget Elementor Vending Machines
 * 
 * Layout a griglia con card per ogni macchina vending - Two Step Navigation
 */

/* Import Google Font Pacifico per il nome prodotto */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

/* ============================================
   Container principale e griglia
   ============================================ */

.mamanto-vending-widget {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Step navigation */
.mamanto-step-machines,
.mamanto-step-products {
    display: none;
    animation: mamanto-fadeIn 0.3s ease;
}

.mamanto-step-machines.active {
    display: block;
}

.mamanto-step-products.active {
    display: block;
}

/* Assicura che il pulsante back sia visibile solo nello step 2 */
.mamanto-step-machines .mamanto-back-btn {
    display: none !important;
}

@keyframes mamanto-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mamanto-vending-grid {
    display: grid;
    width: 100%;
    gap: 20px;
}

.mamanto-vending-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.mamanto-vending-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mamanto-vending-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive: tablet */
@media (max-width: 1024px) {
    .mamanto-vending-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive: mobile */
@media (max-width: 768px) {
    .mamanto-vending-grid-3,
    .mamanto-vending-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .mamanto-vending-grid-2,
    .mamanto-vending-grid-3,
    .mamanto-vending-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Card macchina
   ============================================ */

.mamanto-vending-card {
    background: #A31815;
    border-radius: 24px !important;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.mamanto-card-selectable {
    cursor: pointer;
}

.mamanto-card-selectable:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.mamanto-card-selectable:active {
    transform: translateY(-2px);
}

/* ============================================
   Header della card
   ============================================ */

.mamanto-card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgb(255, 255, 255);
}

.mamanto-machine-name {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1.3;
}

.mamanto-machine-serial {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.mamanto-machine-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mamanto-status-active {
    background-color: #d4edda;
    color: #155724;
}

.mamanto-status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.mamanto-status-maintenance {
    background-color: #fff3cd;
    color: #856404;
}

/* ============================================
   Body della card (Step 1 - Hint)
   ============================================ */

.mamanto-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mamanto-card-click-hint {
    text-align: center;
    padding: 14px 28px;
    background: #A31815;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;

    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-radius: 999px;
    border: 1px solid transparent;
    width: 100%;
    box-sizing: border-box;
}

.mamanto-card-selectable:hover .mamanto-card-click-hint {
    background: #ffffff;
    color: #A31815 !important;
    border: 1px solid #ffffff !important;
    transform: none;
}

.mamanto-card-click-hint .mamanto-arrow-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    display: none;
}

.mamanto-card-selectable:hover .mamanto-card-click-hint .mamanto-arrow-icon {
    transform: translateX(4px);
}

/* ============================================
   Step 2: Dettaglio prodotti
   ============================================ */

.mamanto-step-products {
    padding-top: 60px;
}

.mamanto-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #a3171500 !important;
    color: #A31815 !important;
    border: 1px solid #A31815 !important;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.mamanto-back-btn:hover {
    background: #ffffff !important;
    color: #A31815 !important;
    border: none !important;
    transform: scale(1.05);
}

.mamanto-back-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.mamanto-back-btn:hover .mamanto-back-icon {
    transform: translateX(-4px);
}

.mamanto-products-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    text-align: center;
}

.mamanto-machine-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mamanto-selected-machine-name {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.mamanto-selected-machine-serial {
    display: block;
    font-size: 14px;
    color: #666;
}

.mamanto-products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    gap: 40px 24px;
    justify-content: center;
    padding-top: 20px;
}

@media (max-width: 768px) {
    .mamanto-products-container {
        grid-template-columns: 1fr;
    }
    
    .mamanto-back-btn {
        position: static;
        margin-bottom: 20px;
        width: 100%;
        justify-content: center;
    }
    
    .mamanto-step-products {
        padding-top: 0;
    }
}

/* ============================================
   Product items (Step 2)
   ============================================ */

.mamanto-products-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    padding-top: 20px;
}

/* Layout griglia prodotti */
.mamanto-products-grid {
    display: grid;
    gap: 40px 24px;
    justify-content: center;
    padding-top: 20px;
}

.mamanto-products-grid.mamanto-products-grid-1 {
    grid-template-columns: minmax(280px, 320px);
    justify-content: center;
}

.mamanto-products-grid.mamanto-products-grid-2 {
    grid-template-columns: repeat(2, minmax(280px, 320px));
}

.mamanto-products-grid.mamanto-products-grid-3 {
    grid-template-columns: repeat(3, minmax(280px, 320px));
}

@media (max-width: 768px) {
    .mamanto-products-grid.mamanto-products-grid-2,
    .mamanto-products-grid.mamanto-products-grid-3 {
        grid-template-columns: minmax(280px, 320px);
        justify-content: center;
    }
}

/* Product Card - Layout verticale con sfondo colorato */
.mamanto-vending-widget .mamanto-product-item,
.mamanto-products-container .mamanto-product-item,
.mamanto-products-list .mamanto-product-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    padding: 100px 28px 28px 28px !important;
    background: #A31815 !important;
    border: none !important;
    border-radius: 28px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
    position: relative !important;
    margin-top: 80px !important;
    max-width: 320px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.mamanto-vending-widget .mamanto-product-item:hover,
.mamanto-products-container .mamanto-product-item:hover,
.mamanto-products-list .mamanto-product-item:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-4px) !important;
}

/* Immagine prodotto - posizionata sopra la card */
.mamanto-vending-widget .mamanto-product-image,
.mamanto-products-container .mamanto-product-image,
.mamanto-products-list .mamanto-product-image {
    width: 200px !important;
    height: 200px !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    flex-shrink: 0 !important;
    position: absolute !important;
    top: -80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35)) !important;
}

.mamanto-vending-widget .mamanto-product-image img,
.mamanto-products-container .mamanto-product-image img,
.mamanto-products-list .mamanto-product-image img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
    border-radius: 0 !important;
}

.mamanto-vending-widget .mamanto-product-item:hover .mamanto-product-image img,
.mamanto-products-container .mamanto-product-item:hover .mamanto-product-image img,
.mamanto-products-list .mamanto-product-item:hover .mamanto-product-image img {
    transform: scale(1.1) !important;
}

/* Info prodotto */
.mamanto-vending-widget .mamanto-product-info,
.mamanto-products-container .mamanto-product-info,
.mamanto-products-list .mamanto-product-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    width: 100% !important;
    margin-top: 8px !important;
}

.mamanto-vending-widget .mamanto-product-name,
.mamanto-products-container .mamanto-product-name,
.mamanto-products-list .mamanto-product-name {
    /* font-family: 'Pacifico', 'Brush Script MT', cursive !important; */
    font-weight: 400 ;
    color: #ffffff ;
    font-size: 48px !important;
    line-height: 1.2 !important;
    margin: 0 0 4px 0 !important;
    text-shadow: none ;
}

/* Descrizione prodotto */
.mamanto-vending-widget .mamanto-product-description,
.mamanto-products-container .mamanto-product-description,
.mamanto-products-list .mamanto-product-description {
    font-size: 18px !important;
    color: #FDEBD7 !important;
    margin: 0 0 8px 0 !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
}

.mamanto-vending-widget .mamanto-product-price,
.mamanto-products-container .mamanto-product-price,
.mamanto-products-list .mamanto-product-price {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 8px 0 12px 0 !important;
    text-shadow: none !important;
}

/* Stock info - Totale e Disponibili */
.mamanto-vending-widget .mamanto-stock-info,
.mamanto-products-container .mamanto-stock-info,
.mamanto-products-list .mamanto-stock-info {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    color: #FDEBD7 !important;
    border: 1px solid #FDEBD7 !important;
    background: rgba(0, 0, 0, 0.15) !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.mamanto-vending-widget .mamanto-product-total,
.mamanto-products-container .mamanto-product-total,
.mamanto-products-list .mamanto-product-total {
    color: rgba(253, 235, 215, 0.7) !important;
}

.mamanto-vending-widget .mamanto-product-available,
.mamanto-products-container .mamanto-product-available,
.mamanto-products-list .mamanto-product-available {
    color: #FDEBD7 !important;
    font-weight: 600 !important;
}

.mamanto-vending-widget .mamanto-stock-separator,
.mamanto-products-container .mamanto-stock-separator,
.mamanto-products-list .mamanto-stock-separator {
    color: rgba(253, 235, 215, 0.5) !important;
}

/* Badge disponibilità (legacy) */
.mamanto-vending-widget .mamanto-product-quantity,
.mamanto-products-container .mamanto-product-quantity,
.mamanto-products-list .mamanto-product-quantity {
    font-size: 14px !important;
    color: #FDEBD7 !important;
    border: 1px solid #FDEBD7 !important;
    background: rgba(0, 0, 0, 0.15) !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* Availability Badge */
.mamanto-availability-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.mamanto-availability-badge.mamanto-available {
    background-color: #d4edda;
    color: #155724;
}

.mamanto-availability-badge.mamanto-unavailable {
    background-color: #f8d7da;
    color: #721c24;
}

.mamanto-availability-badge.mamanto-low-stock {
    background-color: #fff3cd;
    color: #856404;
}

/* Product item disabled state */
.mamanto-product-item.mamanto-product-unavailable {
    opacity: 0.7;
    background: #f9f9f9;
}

.mamanto-product-item.mamanto-product-unavailable:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: #e0e0e0;
}

/* Azioni prodotto */
.mamanto-vending-widget .mamanto-product-actions,
.mamanto-products-container .mamanto-product-actions,
.mamanto-products-list .mamanto-product-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    margin-top: 8px !important;
}

/* Riga quantità */
.mamanto-quantity-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Wrapper per badge disponibili e input quantità affiancati */
.mamanto-vending-widget .mamanto-availability-quantity-row,
.mamanto-products-container .mamanto-availability-quantity-row,
.mamanto-products-list .mamanto-availability-quantity-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

/* Grid layout: mantiene verticale ma con colonne */
.mamanto-products-grid .mamanto-product-image {
    width: 200px !important;
    height: 200px !important;
    max-width: none !important;
}

.mamanto-products-grid .mamanto-product-image img {
    aspect-ratio: auto !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Responsive: mobile */
@media (max-width: 600px) {
    .mamanto-vending-widget .mamanto-product-item,
    .mamanto-products-container .mamanto-product-item,
    .mamanto-products-list .mamanto-product-item {
        padding: 90px 20px 24px 20px !important;
        margin-top: 70px !important;
        max-width: 100% !important;
        border-radius: 24px !important;
    }
    
    .mamanto-vending-widget .mamanto-product-image,
    .mamanto-products-container .mamanto-product-image,
    .mamanto-products-list .mamanto-product-image {
        width: 150px !important;
        height: 150px !important;
        top: -70px !important;
    }
    
    .mamanto-vending-widget .mamanto-product-name,
    .mamanto-products-container .mamanto-product-name,
    .mamanto-products-list .mamanto-product-name {
        font-size: 26px !important;
    }
    
    .mamanto-vending-widget .mamanto-product-price,
    .mamanto-products-container .mamanto-product-price,
    .mamanto-products-list .mamanto-product-price {
        font-size: 24px !important;
    }
    
    .mamanto-vending-widget .mamanto-product-description,
    .mamanto-products-container .mamanto-product-description,
    .mamanto-products-list .mamanto-product-description {
        font-size: 13px !important;
    }
    
    .mamanto-vending-widget .mamanto-availability-quantity-row,
    .mamanto-products-container .mamanto-availability-quantity-row,
    .mamanto-products-list .mamanto-availability-quantity-row {
        flex-direction: row !important;
        gap: 6px !important;
    }
    
    .mamanto-vending-widget .mamanto-quantity-input,
    .mamanto-products-container .mamanto-quantity-input,
    .mamanto-products-list .mamanto-quantity-input {
        width: 80px !important;
        height: 44px !important;
        font-size: 16px !important;
    }
    
    .mamanto-vending-widget .mamanto-product-quantity,
    .mamanto-products-container .mamanto-product-quantity,
    .mamanto-products-list .mamanto-product-quantity {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
}

/* Quantità */
.mamanto-quantity-label {
    font-size: 14px;
    color: #FDEBD7;
    font-weight: 500;
    display: none; /* Nascosto perché usiamo il badge disponibili */
}

.mamanto-vending-widget .mamanto-quantity-input,
.mamanto-products-container .mamanto-quantity-input,
.mamanto-products-list .mamanto-quantity-input {
    width: 120px !important;
    height: 44px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50px !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    background: #FDEBD7 !important;
    color: #A31815 !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    -moz-appearance: textfield !important;
}

/* Rimuovi frecce input number */
.mamanto-vending-widget .mamanto-quantity-input::-webkit-outer-spin-button,
.mamanto-vending-widget .mamanto-quantity-input::-webkit-inner-spin-button,
.mamanto-products-container .mamanto-quantity-input::-webkit-outer-spin-button,
.mamanto-products-container .mamanto-quantity-input::-webkit-inner-spin-button,
.mamanto-products-list .mamanto-quantity-input::-webkit-outer-spin-button,
.mamanto-products-list .mamanto-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.mamanto-vending-widget .mamanto-quantity-input:focus,
.mamanto-products-container .mamanto-quantity-input:focus,
.mamanto-products-list .mamanto-quantity-input:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25) !important;
}

.mamanto-vending-widget .mamanto-quantity-input:disabled,
.mamanto-products-container .mamanto-quantity-input:disabled,
.mamanto-products-list .mamanto-quantity-input:disabled {
    background-color: rgba(253, 235, 215, 0.5) !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* ============================================
   Pulsante prenotazione
   ============================================ */

.mamanto-vending-widget .mamanto-reserve-btn,
.mamanto-products-container .mamanto-reserve-btn,
.mamanto-products-list .mamanto-reserve-btn {
    width: 100% !important;
    max-width: 260px !important;
    padding: 14px 24px !important;
    background-color: #FDEBD7 !important;
    color: #A31815 !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    margin-top: 4px !important;
}

.mamanto-vending-widget .mamanto-reserve-btn:hover:not(:disabled),
.mamanto-products-container .mamanto-reserve-btn:hover:not(:disabled),
.mamanto-products-list .mamanto-reserve-btn:hover:not(:disabled) {
    background-color: #ffffff !important;
    transform: scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.mamanto-vending-widget .mamanto-reserve-btn:active:not(:disabled),
.mamanto-products-container .mamanto-reserve-btn:active:not(:disabled),
.mamanto-products-list .mamanto-reserve-btn:active:not(:disabled) {
    transform: scale(0.98) !important;
}

.mamanto-vending-widget .mamanto-reserve-btn:disabled,
.mamanto-products-container .mamanto-reserve-btn:disabled,
.mamanto-products-list .mamanto-reserve-btn:disabled {
    background-color: rgba(253, 235, 215, 0.5) !important;
    color: rgba(163, 24, 21, 0.5) !important;
    cursor: not-allowed !important;
}

.mamanto-reserve-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.mamanto-reserve-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #7a1f1f;
    border-radius: 50%;
    border-top-color: transparent;
    animation: mamanto-spinner 0.6s linear infinite;
}

@keyframes mamanto-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Messaggi stato
   ============================================ */

.mamanto-no-machines,
.mamanto-no-products {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* ============================================
   Modal prenotazione
   ============================================ */

.mamanto-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: mamanto-fadeInModal 0.3s ease;
}

.mamanto-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes mamanto-fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mamanto-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    animation: mamanto-slideUp 0.3s ease;
    position: relative;
}

@keyframes mamanto-slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mamanto-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.mamanto-modal-close:hover,
.mamanto-modal-close:focus {
    color: #000;
}

.mamanto-modal-body {
    padding: 40px 30px;
    text-align: center;
}

.mamanto-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

.mamanto-modal-body h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
}

.mamanto-modal-body p {
    margin: 10px 0;
    color: #666;
    font-size: 16px;
}

.mamanto-reservation-code {
    font-size: 32px !important;
    font-weight: bold !important;
    color: #0073aa !important;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    margin: 20px 0 !important;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 8px;
}

.mamanto-reservation-expires {
    font-size: 14px !important;
    color: #dc3545 !important;
    font-weight: 500 !important;
}

.mamanto-reservation-instructions {
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px solid #e0e0e0;
    font-size: 14px !important;
    color: #666 !important;
}

/* ============================================
   WooCommerce Modal Styles
   ============================================ */

.mamanto-cart-link {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
    margin: 10px 0;
}

.mamanto-cart-link:hover {
    background: #005177;
}

.mamanto-continue-shopping {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mamanto-continue-shopping:hover {
    background: #e9ecef;
}

/* ============================================
   Error/Success messages
   ============================================ */

.mamanto-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
    animation: mamanto-fadeIn 0.3s ease;
}

.mamanto-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mamanto-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mamanto-message-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* ============================================
   Loading spinner
   ============================================ */

.mamanto-loading {
    text-align: center;
    padding: 60px 20px;
}

.mamanto-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: mamanto-spin 1s linear infinite;
}

@keyframes mamanto-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mamanto-loading p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

