/* =========================================================
   LAYOUT CLIENTE
   Arquivo: public/assets/cliente/css/layout.css
   ========================================================= */

/* =========================================================
   RESET / BASE
   ========================================================= */
* {
    box-sizing: border-box;
}
 
html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f9f9f9;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    background: transparent;
}

/* =========================================================
   UTILITÁRIOS
   ========================================================= */
.cliente-layout-hidden {
    display: none !important;
}

/* =========================================================
   ESTRUTURA PRINCIPAL
   ========================================================= */
.cliente-app {
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

body.cliente-footer-fixed .cliente-main {
    padding-bottom: 110px;
}

body.cliente-footer-float .cliente-main {
    padding-bottom: 130px;
}

.cliente-main {
    min-height: calc(100vh - 160px);
    padding: 14px 0 32px;
}

/* =========================================================
   TOAST
   ========================================================= */
.cliente-toast {
    position: fixed;
    left: 50%;
    bottom: 88px;
    transform: translateX(-50%);
    z-index: 10060;
    min-width: 220px;
    max-width: calc(100vw - 32px);
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(34, 34, 34, 0.96);
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

/* =========================================================
   MODAL GLOBAL
   ========================================================= */
.cliente-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: rgba(17, 24, 39, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cliente-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 22px;
    padding: 22px 18px 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.cliente-modal-title {
    margin: 0 0 10px;
    color: #222;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 900;
}

.cliente-modal-text {
    margin: 0 0 18px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 700;
}

.cliente-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cliente-modal-actions .btn,
.cliente-modal-actions a.btn {
    flex: 1 1 0;
    min-width: 140px;
}

.cliente-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #f4f4f5;
    color: #444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* =========================================================
   BOTÕES BASE
   ========================================================= */
.btn,
a.btn,
button.btn {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: 0.18s ease;
    text-decoration: none;
}

.btn:hover,
a.btn:hover,
button.btn:hover {
    opacity: 0.96;
}

.btn-primary {
    background: #df1f26;
    color: #fff;
}

.btn-secondary {
    background: #f1f2f4;
    color: #333;
}

/* =========================================================
   CHAT BUBBLE GLOBAL
   ========================================================= */
.cliente-global-chat-bubble {
    position: fixed;
    right: 16px;
    bottom: 88px;
    z-index: 10030;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: #df1f26;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 26px rgba(223, 31, 38, 0.28);
    cursor: pointer;
    padding: 0;
}

.cliente-global-chat-bubble-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}

.cliente-global-chat-bubble-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ffcf00;
    color: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 640px) {
    .cliente-main {
        padding: 12px 0 28px;
    }

    .cliente-modal {
        max-width: 100%;
        border-radius: 18px;
        padding: 18px 14px 14px;
    }

    .cliente-modal-title {
        font-size: 21px;
    }

    .cliente-modal-text {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .cliente-modal-actions .btn,
    .cliente-modal-actions a.btn {
        width: 100%;
        min-width: 0;
    }

    .cliente-global-chat-bubble {
        right: 12px;
        bottom: 84px;
        width: 54px;
        height: 54px;
    }

    .cliente-global-chat-bubble-icon {
        font-size: 20px;
    }
}

/* =========================================================
   FORM BASE CLIENTE
   Usado em checkout, modais, conta, PIX e formulários
   ========================================================= */

.cliente-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cliente-auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cliente-auth-label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.cliente-auth-input {
    width: 100%;
    height: 52px;
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 15px;
    color: #222;
    background: #fff;
    outline: none;
}

.cliente-auth-input:focus,
.cliente-auth-input:focus-within {
    border-color: #df1f26;
    box-shadow: 0 0 0 3px rgba(223, 31, 38, 0.10);
}

.cliente-auth-input[readonly],
.cliente-auth-input:disabled {
    background: #f5f5f5;
    color: #777;
    cursor: not-allowed;
}

/* =========================================================
   HELP ICON / MODAL BASE GLOBAL
   ========================================================= */
   
   .cliente-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2f80ed;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.cliente-help-icon,
.cliente-help-icon i,
.cliente-report-card-label .cliente-help-icon i {
    color: #2f80ed !important;
}

.cliente-help-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.45);
}

.cliente-help-modal:not(.cliente-layout-hidden) {
    display: flex;
}

.cliente-help-modal.cliente-layout-hidden {
    display: none !important;
}

.cliente-help-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 22px 18px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.cliente-help-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 24px;
    cursor: pointer;
}

.cliente-help-modal-icon {
    color: #df1f26;
    font-size: 28px;
    margin-bottom: 10px;
}

.cliente-help-modal-dialog h3 {
    margin: 0 0 8px;
    color: #222;
    font-size: 18px;
    font-weight: 900;
}

.cliente-help-modal-dialog p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

body.cliente-modal-open {
    overflow: hidden;
}

/* =========================================================
   ALERTAS GLOBAIS CLIENTE
   ========================================================= */

.cliente-main > .cliente-auth-alert {
    width: calc(100% - 32px);
    max-width: 820px;
    margin: 0 auto 14px;
}

@media (max-width: 640px) {
    .cliente-main > .cliente-auth-alert {
        width: calc(100% - 24px);
        margin-bottom: 12px;
    }
}

#clienteSessionToast {
    animation: clienteToastFadeOut 3.2s ease forwards;
}

@keyframes clienteToastFadeOut {
    0%,
    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        pointer-events: none;
    }
}