.gm-recesso-container{
    max-width:700px;
    margin:40px auto;
    padding:30px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
}

.gm-title{
    margin-bottom:10px;
}

.gm-description{
    margin-bottom:25px;
    color:#666;
}

.gm-field{
    margin-bottom:20px;
}

.gm-field label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

.gm-field input{
    width:100%;
    padding:12px 15px;
    border:1px solid #d1d5db;
    border-radius:8px;
    box-sizing:border-box;
    transition:.2s;
}

.gm-field input:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:
        0 0 0 3px rgba(37,99,235,.15);
}

.gm-recesso-button{
    padding:12px 20px;
    font-weight:600;
    cursor:pointer;
    transition:all .2s ease;
    text-decoration:none;
    display:inline-block;
}

#gm-recesso-message{
    margin-bottom:20px;
}

.gm-message-success{
    padding:15px;
    background:#ecfdf5;
    border:1px solid #10b981;
    border-radius:8px;
}

.gm-message-error{
    padding:15px;
    background:#fef2f2;
    border:1px solid #ef4444;
    border-radius:8px;
}

#gm-step-orders,
#gm-step-products,
#gm-step-confirm{
    margin-top:25px;
}

/* ==========================
   SELECT ORDINI
========================== */

/* ==========================
   CARD ORDINI
========================== */

.gm-order-list{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.gm-order-card{
    border:1px solid #ddd;
    border-radius:10px;
    padding:18px;
    background:#fff;
    cursor:pointer;
    transition:all .2s ease;
}

.gm-order-card:hover{
    border-color:#333092;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.gm-order-card.selected{
    border-color:#333092;
    background:#f5f5ff;
}

.gm-order-number{
    font-size:18px;
    font-weight:700;
    margin-bottom:8px;
}

.gm-order-date{
    color:#666;
    margin-bottom:6px;
}

.gm-order-total{
    font-weight:600;
}

.gm-products-grid{
    display:grid;
    grid-template-columns:
        repeat(auto-fill,minmax(220px,1fr));
    gap:20px;
    margin-top:20px;
}

.gm-product-card{
    border:1px solid #ddd;
    border-radius:10px;
    padding:15px;
    cursor:pointer;
    background:#fff;
    transition:all .2s ease;
}

.gm-product-card:hover{
    box-shadow:0 4px 15px rgba(0,0,0,.08);
}

.gm-product-card.selected{
    border:2px solid #333092;
    background:#f4f4ff;
    box-shadow:0 0 12px rgba(51,48,146,.25);
}

.gm-product-image img{
    width:100%;
    height:auto;
    border-radius:6px;
}

.gm-product-title{
    margin-top:10px;
    font-weight:600;
}

.gm-product-price{
    margin-top:5px;
    font-weight:700;
}

.gm-product-selection-message{
    text-align:center;
    margin-top:30px;
    margin-bottom:20px;
    font-weight:600;
    color:#666;
}

#gm-submit-container{
    text-align:center;
    margin-top:35px;
}

#gm-submit-products{
    min-width:280px;
}

.gm-order-selected{
    border:2px solid #333092;
    background:#f5f5ff;
    box-shadow:
        0 0 15px rgba(51,48,146,.20);
}

/* ==========================
   LOADER
========================== */

#gm-loader{
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;

    background:rgba(255,255,255,.85);

    display:none;

    z-index:999999;

    align-items:center;
    justify-content:center;
    flex-direction:column;
}

#gm-loader.active{
    display:flex;
}

.gm-loader-spinner{
    width:60px;
    height:60px;

    border:5px solid #e5e5e5;
    border-top:5px solid #333092;

    border-radius:50%;

    animation:
        gm-spin 1s linear infinite;
}

.gm-loader-text{
    margin-top:15px;
    font-size:16px;
    font-weight:600;
}

@keyframes gm-spin{

    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }

}

.gm-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.gm-confirm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.gm-confirm-box {
    position: relative;
    width: 90%;
    max-width: 450px;
    margin: 15vh auto 0;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .25);
}

.gm-confirm-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.gm-confirm-box h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.gm-confirm-box p {
    margin: 0 0 25px;
    color: #555;
}

.gm-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.gm-confirm-actions button {
    border: 0;
    padding: 11px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.gm-confirm-cancel {
    background: #e5e7eb;
    color: #333;
}

.gm-confirm-ok {
    background: #dc2626;
    color: #fff;
}

.gm-confirm-cancel:hover,
.gm-confirm-ok:hover {
    opacity: .9;
}