/* ==========================================================================
   🔮 MASTER CSS: OVERLAY DI CONDIVISIONE GLOSSY PREMIUM (T9)
   ========================================================================== */

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 100000 !important; /* Sopra ad ogni elemento */
    top: 0;
    left: 0;
    
    /* 🌟 EFFETTO VETRO CRISTALLO FUMÉ TRASPARENTE */
    background-color: rgba(26, 26, 26, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    overflow-x: hidden;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.overlay-content {
    position: relative;
    top: 8% !important; /* Alzato per lasciare spazio su schermi corti */
    width: 100%;
    padding: 0 24px !important;
    box-sizing: border-box;
}

/* 🟦 I PULSANTI DEL MENU CONDIVISIONE TRASFORMATI IN CRISTALLI APPLICATIVI */
.overlay-content .t9-share-row-btn {
    display: flex !important;
    align-items: center !important;
    width: 100%;
    max-width: 290px;
    margin: 0 auto 14px auto !important;
    padding: 12px 18px !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    box-sizing: border-box;
    transition: background 0.2s, transform 0.1s;
    
    /* Fondo in cristallo semi-trasparente */
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.overlay-content .t9-share-row-btn:active {
    transform: scale(0.97);
}

/* Allineamento fisso e spaziatura delle icone social nell'overlay */
.overlay-content .t9-share-row-btn i {
    font-size: 1.35rem !important;
    width: 35px !important;
    text-align: center !important;
    margin-right: 15px !important;
    display: inline-block !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Il bottone della X di chiusura */
.overlay .closebtn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.2s;
}
.overlay .closebtn:hover { color: #ffffff !important; }

/*
@media screen and (max-height: 450px) {
  .overlay a {font-size: 20px}
  .overlay .closebtn {
  font-size: 40px;
  top: 0px;
  right: 15px;
  }
}
*/