
/* ==========================================
   ESTRUTURA PRINCIPAL DO MODAL
========================================== */

.modal-content {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5eaf1;
    border-radius: 24px;

    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.14),
        0 8px 24px rgba(15, 23, 42, 0.08);
}

/* ==========================================
   TOPO
========================================== */

.modal-header-custom {
    position: relative;

    min-height: 96px;
    padding: 26px 32px 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
}

.modal-top-icon {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #0f172a;
    font-size: 23px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 22px;

    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.06);
}

.modal-close-btn {
    position: absolute;
    top: 22px;
    right: 24px;

    width: 40px;
    height: 40px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #64748b;
    font-size: 14px;

    background: #f8fafc;
    border: 1px solid #edf1f5;
    border-radius: 14px;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.modal-close-btn:hover {
    color: #0f172a;

    background: #eef2f7;
    border-color: #dce3ec;

    transform: translateY(-1px);
}

.modal-close-btn:active {
    transform: scale(0.96);
}

.modal-close-btn:focus {
    outline: none;
}

.modal-close-btn:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.14);
    outline-offset: 2px;
}

/* ==========================================
   TÍTULO
========================================== */

.modal-intro {
    padding: 2px 36px 22px;

    text-align: center;
}

.modal-main-title {
    margin: 0 0 7px;

    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 750;
    line-height: 1.25;
}

.modal-subtitle {
    max-width: 500px;
    margin: 0 auto;

    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ==========================================
   CORPO DO MODAL
========================================== */

.modal-body {
    padding: 24px 32px 30px;
}

/* Caso exista um formulário diretamente no modal */

.modal-body form {
    width: 100%;
}

/* Espaçamento entre linhas e grupos */

.modal-body .row {
    --bs-gutter-x: 20px;
    --bs-gutter-y: 18px;
}

.modal-body .mb-3 {
    margin-bottom: 18px !important;
}

.modal-body .mb-4 {
    margin-bottom: 22px !important;
}

/* ==========================================
   LABELS
========================================== */

.modal-body .form-label {
    margin-bottom: 7px;

    color: #334155;
    font-size: 13px;
    font-weight: 650;
}

/* ==========================================
   INPUTS, SELECTS E TEXTAREAS
========================================== */

.modal-body .form-control,
.modal-body .form-select {
    min-height: 48px;
    padding: 11px 14px;

    color: #1e293b;
    font-size: 14px;

    background-color: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 14px;

    box-shadow: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.modal-body textarea.form-control {
    min-height: 110px;
    padding-top: 13px;

    resize: vertical;
}

.modal-body .form-control::placeholder {
    color: #a0aec0;
}

.modal-body .form-control:hover,
.modal-body .form-select:hover {
    border-color: #c4ceda;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    background-color: #ffffff;
    border-color: #94a3b8;

    box-shadow:
        0 0 0 4px rgba(100, 116, 139, 0.1);
}

.modal-body .form-control:disabled,
.modal-body .form-select:disabled,
.modal-body .form-control[readonly] {
    color: #64748b;

    background-color: #f8fafc;
    border-color: #e2e8f0;
}

/* ==========================================
   INPUT GROUP
========================================== */

.modal-body .input-group .form-control,
.modal-body .input-group .form-select,
.modal-body .input-group-text,
.modal-body .input-group .btn {
    min-height: 48px;
}

.modal-body .input-group-text {
    padding: 0 14px;

    color: #64748b;

    background: #f8fafc;
    border-color: #dbe3ec;
}

.modal-body .input-group > :first-child {
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

.modal-body .input-group > :last-child {
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

/* ==========================================
   CHECKBOX E SWITCH
========================================== */

.modal-body .form-check {
    padding: 12px 14px 12px 38px;

    background: #f8fafc;
    border: 1px solid #e5eaf1;
    border-radius: 14px;
}

.modal-body .form-check-input {
    margin-top: 0.2rem;

    cursor: pointer;
}

.modal-body .form-check-input:checked {
    background-color: #111827;
    border-color: #111827;
}

.modal-body .form-check-input:focus {
    border-color: #94a3b8;

    box-shadow:
        0 0 0 4px rgba(100, 116, 139, 0.12);
}

.modal-body .form-check-label {
    color: #475569;
    font-size: 13px;
    font-weight: 550;

    cursor: pointer;
}

/* ==========================================
   TEXTO AUXILIAR E VALIDAÇÕES
========================================== */

.modal-body .form-text {
    margin-top: 6px;

    color: #94a3b8;
    font-size: 11px;
    line-height: 1.45;
}

.modal-body .invalid-feedback {
    margin-top: 6px;

    font-size: 11px;
    font-weight: 550;
}

.modal-body .form-control.is-invalid,
.modal-body .form-select.is-invalid {
    border-color: #ef4444;
}

.modal-body .form-control.is-valid,
.modal-body .form-select.is-valid {
    border-color: #22c55e;
}

/* ==========================================
   DIVISORES E SEÇÕES
========================================== */

.modal-section {
    padding: 20px;

    background: #f8fafc;
    border: 1px solid #edf1f5;
    border-radius: 18px;
}

.modal-section + .modal-section {
    margin-top: 18px;
}

.modal-section-title {
    margin: 0 0 16px;

    color: #1e293b;
    font-size: 13px;
    font-weight: 700;
}

/* ==========================================
   FOOTER
========================================== */

.modal-footer {
    padding: 22px 32px 26px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background: #ffffff;
    border-top: 1px solid #eef2f7;
}

/* ==========================================
   BOTÕES PADRÃO DOS MODAIS
========================================== */

.modal-btn {
    min-width: 145px;
    min-height: 48px;
    padding: 10px 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-size: 14px;
    font-weight: 650;
    line-height: 1;

    border: 1px solid transparent;
    border-radius: 15px;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.modal-btn i {
    font-size: 13px;
}

/* CANCELAR */

.modal-btn-secondary {
    color: #475569;

    background: #ffffff;
    border-color: #dbe3ee;
}

.modal-btn-secondary:hover {
    color: #0f172a;

    background: #f8fafc;
    border-color: #cbd5e1;

    box-shadow:
        0 5px 14px rgba(15, 23, 42, 0.06);

    transform: translateY(-1px);
}

/* SALVAR */

.modal-btn-primary {
    color: #ffffff;

    background: #111827;
    border-color: #111827;

    box-shadow:
        0 8px 18px rgba(17, 24, 39, 0.16);
}

.modal-btn-primary:hover {
    color: #ffffff;

    background: #020617;
    border-color: #020617;

    box-shadow:
        0 10px 22px rgba(17, 24, 39, 0.2);

    transform: translateY(-1px);
}

/* CLIQUE */

.modal-btn:active {
    box-shadow: none;

    transform: scale(0.98);
}

.modal-btn:focus {
    outline: none;
}

.modal-btn:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.14);
    outline-offset: 2px;
}

/* ==========================================
   MODAL GRANDE
========================================== */

.modal-dialog.modal-lg .modal-body,
.modal-dialog.modal-xl .modal-body {
    padding-right: 36px;
    padding-left: 36px;
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {
    .modal-dialog {
        margin: 16px;
    }

    .modal-content {
        border-radius: 21px;
    }

    .modal-header-custom {
        padding: 24px 24px 10px;
    }

    .modal-close-btn {
        top: 18px;
        right: 18px;
    }

    .modal-intro {
        padding-right: 24px;
        padding-left: 24px;
    }

    .modal-body,
    .modal-dialog.modal-lg .modal-body,
    .modal-dialog.modal-xl .modal-body {
        padding: 22px 24px 26px;
    }

    .modal-footer {
        padding: 20px 24px 24px;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 10px;
    }

    .modal-content {
        border-radius: 19px;
    }

    .modal-header-custom {
        min-height: 86px;
        padding: 22px 18px 8px;
    }

    .modal-top-icon {
        width: 58px;
        height: 58px;

        border-radius: 19px;
    }

    .modal-close-btn {
        top: 14px;
        right: 14px;

        width: 38px;
        height: 38px;
    }

    .modal-intro {
        padding: 2px 20px 18px;
    }

    .modal-main-title {
        font-size: 1.25rem;
    }

    .modal-subtitle {
        font-size: 0.85rem;
    }

    .modal-body,
    .modal-dialog.modal-lg .modal-body,
    .modal-dialog.modal-xl .modal-body {
        padding: 20px 18px 24px;
    }

    .modal-body .row {
        --bs-gutter-x: 14px;
        --bs-gutter-y: 16px;
    }

    .modal-footer {
        padding: 18px;

        flex-direction: column-reverse;
        gap: 10px;
    }

    .modal-btn {
        width: 100%;
        min-height: 47px;
    }
}


.offer-items-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.offer-item-row {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(220px, 1fr) 105px 120px 38px;
    align-items: end;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.offer-item-row:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05);
}

.offer-item-number {
    width: 32px;
    height: 32px;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.offer-item-product,
.offer-item-quantity {
    min-width: 0;
}

.offer-item-row .form-label {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.offer-item-row .form-select,
.offer-item-row .form-control {
    min-height: 40px;
    border-radius: 10px;
}

.offer-item-subtotal {
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
}

.offer-item-subtotal span {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
}

.offer-item-subtotal strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 750;
}

.offer-add-item-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.offer-add-item-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 9px;
    background: #f1f5f9;
    color: #334155;
    font-size: 11px;
    transition: background-color .2s ease, color .2s ease;
}

.offer-add-item-btn:hover {
    color: #0f172a;
    border-color: #94a3b8;
    background: #f8fafc;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
}

.offer-add-item-btn:hover .offer-add-item-icon {
    background: #e2e8f0;
    color: #0f172a;
}

.offer-add-item-btn:active {
    transform: translateY(1px);
}

.offer-add-item-btn:focus-visible {
    outline: 3px solid rgba(71, 85, 105, 0.14);
    outline-offset: 2px;
}

/* ==================================================
   BOTÃO REMOVER BRINQUEDO
================================================== */

.offer-remove-item-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: end;
    margin-bottom: 1px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.offer-remove-item-btn:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.08);
}

.offer-remove-item-btn:active {
    transform: scale(0.96);
}

.offer-remove-item-btn:focus-visible {
    outline: 3px solid rgba(220, 38, 38, 0.12);
    outline-offset: 2px;
}

/* ==================================================
   RESUMO DE VALORES
================================================== */

.offer-price-summary {
    display: grid;
    grid-template-columns: 1fr auto 1fr 1fr;
    align-items: center;
    gap: 15px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.offer-price-summary > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.offer-price-summary span {
    color: #94a3b8;
    font-size: 11px;
}

.offer-price-summary strong {
    color: #000000;
    font-size: 14px;
}

.offer-price-summary > i {
    color: #cbd5e1;
    font-size: 12px;
}

.offer-summary-discount {
    padding-left: 15px;
    border-left: 1px solid #e2e8f0;
}

.offer-summary-discount strong {
    color: #16a34a;
}




/* ==================================================
   MODAL DE OFERTA — MOBILE CORRIGIDO
================================================== */

@media (max-width: 767px) {

    #modalOferta {
        padding: 0 !important;
    }

    #modalOferta .modal-dialog {
        width: auto;
        max-width: none;

        min-height: calc(100% - 16px);

        margin: 8px;

        display: flex;
        align-items: stretch;
    }

    #modalOferta .modal-content {
        width: 100%;
        max-height: calc(100vh - 16px);

        display: flex;
        flex-direction: column;

        overflow: hidden;

        border-radius: 18px;
    }

    #modalOferta .modal-header-custom,
    #modalOferta .modal-intro,
    #modalOferta .modal-footer {
        flex-shrink: 0;
    }

    /*
     * O formulário precisa participar da estrutura flex
     * para o corpo poder rolar sem esconder o rodapé.
     */
    #modalOferta #formOferta {
        min-height: 0;

        display: flex;
        flex: 1;
        flex-direction: column;

        overflow: hidden;
    }

    /*
     * Parte principal da correção:
     * habilita a rolagem do conteúdo do modal.
     */
    #modalOferta .modal-body {
        min-height: 0;
        max-height: none;

        flex: 1;

        padding: 16px;

        overflow-x: hidden;
        overflow-y: auto;

        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;

        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }

    #modalOferta .modal-body::-webkit-scrollbar {
        width: 6px;
    }

    #modalOferta .modal-body::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

    #modalOferta .modal-body .row {
        margin-right: 0;
        margin-left: 0;
    }

    #modalOferta .modal-body .row > * {
        padding-right: 0;
        padding-left: 0;
    }

    /* ===============================
       ITEM DO BRINQUEDO
    =============================== */

    #modalOferta .offer-items-container {
        width: 100%;
        gap: 14px;
    }

    #modalOferta .offer-item-row {
        width: 100%;
        min-width: 0;

        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) 38px;
        grid-template-rows: auto auto auto;

        align-items: start;
        gap: 12px 10px;

        padding: 14px 12px;
    }

    #modalOferta .offer-item-number {
        grid-column: 1;
        grid-row: 1;

        align-self: end;

        margin: 0 0 4px;
    }

    #modalOferta .offer-item-product {
        grid-column: 2;
        grid-row: 1;

        min-width: 0;
    }

    #modalOferta .offer-item-product .form-select {
        width: 100%;
        min-width: 0;

        text-overflow: ellipsis;
    }

    #modalOferta .offer-remove-item-btn {
        grid-column: 3;
        grid-row: 1;

        align-self: end;

        margin: 0 0 2px;
    }

    #modalOferta .offer-item-quantity {
        grid-column: 1 / 4;
        grid-row: 2;

        width: 100%;
        min-width: 0;
    }

    #modalOferta .offer-item-quantity .input-wrapper,
    #modalOferta .offer-item-quantity .form-control {
        width: 100%;
    }

    #modalOferta .offer-item-subtotal {
        grid-column: 1 / 4;
        grid-row: 3;

        width: 100%;
        min-height: auto;

        padding: 11px 13px;

        background: #ffffff;

        border: 1px solid #e2e8f0;
        border-radius: 10px;
    }

    /* ===============================
       IMAGEM
    =============================== */

    #modalOferta .offer-image-upload {
        width: 100%;

        grid-template-columns: 1fr;
        gap: 14px;

        padding: 13px;
    }

    #modalOferta .offer-image-preview {
        width: 100%;
        height: 180px;
    }

    #modalOferta .offer-image-actions {
        width: 100%;
        align-items: stretch;
    }

    #modalOferta .offer-image-select-btn {
        width: 100%;
    }

    /* ===============================
       MODOS DE IMAGEM
    =============================== */

    #modalOferta .offer-image-mode {
        width: 100%;
        grid-template-columns: 1fr;
    }

    #modalOferta .offer-image-mode-option {
        width: 100%;
        min-width: 0;
    }

    /* ===============================
       RESUMO DE PREÇOS
    =============================== */

    #modalOferta .offer-price-summary {
        width: 100%;

        grid-template-columns: 1fr;
        gap: 12px;
    }

    #modalOferta .offer-price-summary > i {
        display: none;
    }

    #modalOferta .offer-price-summary > div {
        width: 100%;

        padding: 10px 0;

        border-bottom: 1px solid #e2e8f0;
    }

    #modalOferta .offer-price-summary > div:last-child {
        border-bottom: none;
    }

    #modalOferta .offer-summary-discount {
        padding-left: 0;
        border-left: 0;
    }

    /* ===============================
       RODAPÉ
    =============================== */

    #modalOferta .modal-footer {
        padding: 14px;

        flex-direction: column-reverse;
        gap: 9px;

        background: #ffffff;

        box-shadow:
            0 -8px 22px
            rgba(15, 23, 42, 0.06);
    }

    #modalOferta .modal-footer .modal-btn {
        width: 100%;
        min-width: 0;
    }
}


/* IMAGEM DA OFERTA */

.offer-image-upload {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.offer-image-preview {
    width: 180px;
    height: 140px;
    overflow: hidden;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
}

.offer-image-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.offer-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 15px;
    color: #000000;
    text-align: center;
}

.offer-image-placeholder i {
    font-size: 28px;
}

.offer-image-placeholder strong {
    color: #000000;
    font-size: 13px;
}

.offer-image-placeholder small {
    font-size: 11px;
}

.offer-image-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
}

.offer-image-select-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.offer-image-select-btn:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.offer-remove-image-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 575px) {
    .offer-image-upload {
        grid-template-columns: 1fr;
    }

    .offer-image-preview {
        width: 100%;
        height: 180px;
    }
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    background: transparent;

    color: #64748b;

    cursor: pointer;
    z-index: 3;

    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: #0f172a;
}

.password-toggle-btn:focus {
    outline: none;
}

#modalBanner .modal-body {
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }

    #modalBanner .modal-body::-webkit-scrollbar {
        width: 8px;
    }

    #modalBanner .modal-body::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

    #modalBanner .banner-section-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        padding: 20px;
    }

    #modalBanner .banner-section-heading {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 18px;
    }

    #modalBanner .banner-section-heading > i {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: #eef2ff;
        color: #000000;
    }

    #modalBanner .oferta-banner-preview {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 20px;
        margin-top: 18px;
        padding: 18px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        background: #f8fafc;
    }

    #modalBanner .oferta-banner-preview-image {
        width: 100%;
        height: 150px;
        overflow: hidden;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #modalBanner .oferta-banner-preview-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #modalBanner .oferta-banner-preview-image i {
        color: #94a3b8;
        font-size: 32px;
    }

    #modalBanner .oferta-banner-preview-title {
        margin: 0 0 8px;
        color: #0f172a;
        font-size: 20px;
        font-weight: 800;
    }

    #modalBanner .oferta-banner-preview-description {
        margin: 0 0 14px;
        color: #64748b;
        font-size: 14px;
        line-height: 1.6;
    }

    #modalBanner .oferta-banner-preview-prices {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    #modalBanner .oferta-banner-price-original {
        color: #94a3b8;
        text-decoration: line-through;
        font-size: 14px;
    }

    #modalBanner .oferta-banner-price-current {
        color: #16a34a;
        font-size: 22px;
        font-weight: 900;
    }

    #modalBanner .oferta-banner-button-preview {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 15px;
        padding: 10px 15px;
        border-radius: 11px;
        background: #000000;
        color: #fff;
        font-size: 13px;
        font-weight: 700;
    }

    #modalBanner .oferta-banner-empty {
        margin-top: 18px;
        padding: 22px;
        border: 1px dashed #cbd5e1;
        border-radius: 15px;
        background: #f8fafc;
        color: #64748b;
        text-align: center;
        font-size: 14px;
    }


    @media (max-width: 767.98px) {
        #modalBanner .modal-dialog {
            margin: .5rem;
        }

        #modalBanner .modal-content {
            height: calc(100vh - 1rem) !important;
            max-height: calc(100vh - 1rem) !important;
        }

        #modalBanner .oferta-banner-preview {
            grid-template-columns: 1fr;
        }

        #modalBanner .oferta-banner-preview-image {
            height: 190px;
        }
    }


    #modalBrinquedo .modal-body {
    max-height: 68vh;
    overflow-y: auto;
    padding-right: 20px;
}

/* ==================================================
   INPUTS COM PREFIXO OU SUFIXO
================================================== */

#formBrinquedo .input-wrapper.input-group {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
}

/*
 * Campos com prefixo à esquerda, como R$.
 * O prefixo recebe o arredondamento esquerdo e o input,
 * mesmo tendo o ícone de validação depois dele, recebe
 * o arredondamento direito.
 */
#formBrinquedo
.input-wrapper.input-group
> .input-group-text:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

#formBrinquedo
.input-wrapper.input-group
> .input-group-text:first-child
+ .form-control {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

/*
 * Campos com sufixo à direita, como metros.
 * O input recebe o arredondamento esquerdo e o sufixo
 * recebe o arredondamento direito.
 */
#formBrinquedo
.input-wrapper.input-group
> .form-control:first-child {
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

#formBrinquedo
.input-wrapper.input-group
> .form-control:first-child
+ .input-group-text {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/*
 * Posição do ícone de validação.
 * Nos campos com unidade à direita, ele precisa ficar
 * antes do bloco "m".
 */
#formBrinquedo .input-wrapper.input-group > .icon {
    right: 46px;
}

/*
 * Nos campos de moeda, o ícone fica próximo à borda
 * direita do próprio input.
 */
#formBrinquedo
.input-wrapper.input-group
> .input-group-text:first-child
~ .icon {
    right: 14px;
}

.modal-form-section {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 18px;
    padding: 13px 15px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.modal-form-section-space {
    margin-top: 12px;
}

.modal-form-section-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #0f172a;
    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.modal-form-section h5 {
    margin: 0 0 2px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}

.modal-form-section p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}


.locacao-check-card {
    min-height: 90px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 12px;

    color: #64748b;
    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    cursor: pointer;
    transition: 0.2s ease;
}

.locacao-check-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.locacao-check-card i {
    font-size: 20px;
}

.locacao-check-card span {
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.locacao-check-card:has(input:checked) {
    color: #0f172a;
    background: #f1f5f9;
    border-color: #94a3b8;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.05);
}

@media (max-width: 767px) {
    #modalBrinquedo .modal-body {
        max-height: 72vh;
    }

    .modal-form-section {
        align-items: flex-start;
    }
}

/* ==================================================
   GALERIA DE IMAGENS DO MODAL
================================================== */

#thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 16px;
}

/* ==================================================
   ITEM DA MINIATURA
================================================== */

.toy-thumb-item {
    position: relative;

    width: 86px;
    height: 86px;

    flex: 0 0 86px;

    overflow: hidden;

    border: 2px solid transparent;
    border-radius: 12px;

    background: #f8fafc;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.toy-thumb-item:hover {
    transform: translateY(-2px);

    border-color: #cbd5e1;

    box-shadow:
        0 8px 20px
        rgba(15, 23, 42, 0.12);
}

.toy-thumb-item.active {
    border-color:
        var(--cor-principal, #00a3e0);

    box-shadow:
        0 0 0 3px
        rgba(0, 163, 224, 0.14);
}

/* ==================================================
   IMAGEM DA MINIATURA
================================================== */

.toy-thumb-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 10px;
}

/* ==================================================
   BOTÃO DE EXCLUIR
================================================== */

.toy-thumb-delete {
    position: absolute;
    top: 6px;
    right: 6px;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(220, 38, 38, 0.92);
    color: #ffffff;

    font-size: 13px;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: scale(0.85);

    box-shadow:
        0 4px 12px
        rgba(127, 29, 29, 0.35);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.toy-thumb-item:hover
.toy-thumb-delete,
.toy-thumb-delete:focus-visible {
    opacity: 1;
    visibility: visible;

    transform: scale(1);
}

.toy-thumb-delete:hover {
    background: #b91c1c;
}

.toy-thumb-delete:active {
    transform: scale(0.92);
}

.toy-thumb-delete i {
    pointer-events: none;
}

/* ==================================================
   IMAGEM PRINCIPAL
================================================== */

.toy-main-image-wrapper {
    position: relative;

    width: 100%;
    min-height: 320px;

    overflow: hidden;

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    background: #f8fafc;
}

#mainToyImage {
    width: 100%;
    height: 360px;

    display: block;

    object-fit: cover;

    background: #f8fafc;
}

/* ==================================================
   ESTADO SEM IMAGEM
================================================== */

#emptyState {
    padding: 24px;

    border: 1px dashed #cbd5e1;
    border-radius: 14px;

    background: #f8fafc;
    color: #64748b;

    text-align: center;
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 768px) {
    #thumbs {
        gap: 10px;
    }

    .toy-thumb-item {
        width: 74px;
        height: 74px;

        flex-basis: 74px;
    }

    .toy-thumb-delete {
        width: 28px;
        height: 28px;

        opacity: 1;
        visibility: visible;

        transform: scale(1);
    }

    #mainToyImage {
        height: 260px;
    }
}

/* ==================================================
   ESTADO VAZIO DA IMAGEM PRINCIPAL
================================================== */

#emptyState {
    width: 100%;
    min-height: 390px;

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 40px;

    border: 1px dashed #cbd5e1;
    border-radius: 18px;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(0, 0, 0, 0.12),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #fbfdff,
            #edf3f8
        );

    color: #64748b;

    text-align: center;
}

/* ==================================================
   ÍCONE
================================================== */

.toy-main-empty-icon {
    width: 88px;
    height: 88px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 6px;

    border: 1px solid
        rgba(0, 0, 0, 0.16);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            rgba(0, 0, 0, 0.08)
        );

    color:
        var(
            --cor-principal,
            #000000
        );

    font-size: 34px;

    box-shadow:
        0 14px 34px
        rgba(0, 0, 0, 0.1);
}

/* ==================================================
   TEXTOS
================================================== */

#emptyState strong {
    color: #334155;

    font-size: 18px;
    font-weight: 800;
}

#emptyState span {
    max-width: 320px;

    color: #64748b;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 768px) {
    #emptyState {
        min-height: 280px;

        padding: 28px 20px;
    }

    .toy-main-empty-icon {
        width: 72px;
        height: 72px;

        border-radius: 20px;

        font-size: 28px;
    }

    #emptyState strong {
        font-size: 16px;
    }
}

/* ==================================================
   GALERIA SEM IMAGENS
================================================== */

.col-gallery {
  width: 100%;
  min-height: 430px;
}

#emptyState {
  width: 100%;
  min-height: 380px;

  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 10px;

  padding: 32px;

  border: 2px dashed #d8dee8;
  border-radius: 18px;

  background: linear-gradient(
    145deg,
    #f8fafc,
    #f1f5f9
  );

  text-align: center;
}

#emptyState .toy-main-empty-icon {
  width: 76px;
  height: 76px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 6px;

  border-radius: 50%;

  background: #ffffff;

  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

#emptyState .toy-main-empty-icon i {
  font-size: 30px;
  color: #94a3b8;
}

#emptyState strong {
  color: #334155;
  font-size: 17px;
  font-weight: 800;
}

#emptyState span {
  max-width: 300px;

  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
}