/* modal-notifications.css
   Estilos para o modal de notificações/vouchers com QR Code
   Compatível com IE9+
*/

/* Overlay escuro de fundo */
.notification-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 1000;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    -ms-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

/* Overlay transparente no modo toast */
.notification-modal-overlay.toast-mode {
    background: transparent;
    pointer-events: none;
}

.notification-modal-overlay.active {
    display: block;
    opacity: 1;
}

/* Container do modal - centralizado e com fundo branco arredondado */
.notification-modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 70%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
    -ms-transition: opacity 0.3s ease, -ms-transform 0.3s ease;
    -o-transition: opacity 0.3s ease, -o-transform 0.3s ease;
    transition: opacity 0.3s ease, transform 0.3s ease;
    -webkit-transform: translate(-50%, -50%) scale(0.9);
    -ms-transform: translate(-50%, -50%) scale(0.9);
    transform: translate(-50%, -50%) scale(0.9);
    overflow: hidden;
}

.notification-modal-container.active {
    display: block;
    opacity: 1;
    -webkit-transform: translate(-50%, -50%) scale(1);
    -ms-transform: translate(-50%, -50%) scale(1);
    transform: translate(-50%, -50%) scale(1);
}

/* Modo toast - canto superior direito */
.notification-modal-container.toast-mode {
    top: 20px;
    right: 20px;
    left: auto;
    -webkit-transform: translate(0, 0) scale(0.9);
    -ms-transform: translate(0, 0) scale(0.9);
    transform: translate(0, 0) scale(0.9);
    width: auto;
    max-width: 400px;
    min-width: 300px;
}

.notification-modal-container.toast-mode.active {
    -webkit-transform: translate(0, 0) scale(1);
    -ms-transform: translate(0, 0) scale(1);
    transform: translate(0, 0) scale(1);
}

/* Conteúdo principal do modal - layout horizontal */
.notification-modal-content {
    display: table;
    width: 100%;
    padding: 18px;
    box-sizing: border-box;
}

/* Coluna esquerda - QR Code */
.notification-modal-left {
    display: table-cell;
    vertical-align: middle;
    width: 130px;
    padding-right: 14px;
    text-align: center;
}

.notification-qr-image {
    width: 110px;
    height: 110px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    padding: 8px;
    box-sizing: border-box;
    background: #ffffff;
}

/* Coluna direita - Título e descrição */
.notification-modal-right {
    display: table-cell;
    vertical-align: middle;
    padding-left: 15px;
}

.notification-modal-footer {
    padding: 12px 20px 18px 20px;
    text-align: right;
    box-sizing: border-box;
}

.notification-modal-title {
    font-family: Inter, Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.notification-modal-description {
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    margin: 0;
    line-height: 1.5;
}

.notification-close-btn {
    display: inline-block;
    background: transparent;
    color: #666666;
    border: 2px solid #cccccc;
    border-radius: 30px;
    padding: 9px 26px;
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    outline: none;
}

.notification-close-btn:hover,
.notification-close-btn:focus,
.notification-close-btn.selected {
    background: #C11C36;
    color: #ffffff;
    border-color: #C11C36;
}

/* Tablet/Monitor (1367px a 1920px) */
@media (min-width: 1367px) and (max-width: 1919px) {
    .notification-modal-container {
        max-width: 540px;
    }

    .notification-modal-content {
        padding: 20px;
    }

    .notification-modal-left {
        width: 140px;
        padding-right: 15px;
    }

    .notification-qr-image {
        width: 120px;
        height: 120px;
    }

    .notification-modal-right {
        padding-left: 15px;
    }

    .notification-modal-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .notification-modal-description {
        font-size: 15px;
    }

    .notification-modal-footer {
        padding: 12px 20px 16px 20px;
    }

    .notification-close-btn {
        padding: 10px 28px;
        font-size: 15px;
    }
}

/* TV (acima de 1920px) */
@media (min-width: 1920px) {
    .notification-modal-container {
        max-width: 600px;
    }

    .notification-modal-content {
        padding: 22px;
    }

    .notification-modal-left {
        width: 150px;
        padding-right: 16px;
    }

    .notification-qr-image {
        width: 130px;
        height: 130px;
    }

    .notification-modal-right {
        padding-left: 18px;
    }

    .notification-modal-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .notification-modal-description {
        font-size: 16px;
        line-height: 1.5;
    }

    .notification-modal-footer {
        padding: 14px 22px 18px 22px;
    }

    .notification-close-btn {
        padding: 11px 30px;
        font-size: 16px;
    }
}

/* Responsivo para telas menores */
@media (max-width: 768px) {
    .notification-modal-container {
        width: 90%;
        max-width: none;
    }

    .notification-modal-content {
        display: block;
        padding: 18px 14px;
    }

    .notification-modal-left {
        display: block;
        width: 100%;
        padding-right: 0;
        margin-bottom: 14px;
    }

    .notification-qr-image {
        width: 120px;
        height: 120px;
    }

    .notification-modal-right {
        display: block;
        padding-left: 0;
        text-align: center;
    }

    .notification-modal-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .notification-modal-description {
        font-size: 14px;
    }

    .notification-modal-footer {
        padding: 12px 16px 16px 16px;
        text-align: center;
    }

    .notification-close-btn {
        padding: 9px 26px;
        font-size: 14px;
    }
}
