/* static/apps_ecomm/css/menu_mobile_editor.css */

.custom-scrollbar::-webkit-scrollbar {
    width: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #334155;
}

/* Estilos da Preview Interna */
#preview-mobile-body h2 {
    font-size: 13px;
    font-weight: 800;
    margin: 15px 0 8px;
    color: #121212;
    font-family: 'Inter';
    text-transform: uppercase;
}

.p-card {
    position: relative;
    border-radius: 12px;
    padding: 12px;
    overflow: hidden;
    display: flex;
    text-decoration: none;
}

.p-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.p-card b {
    color: #fff;
    font-size: 11px;
    z-index: 3;
    width: 90%;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.p-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.p-carousel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.p-carousel::-webkit-scrollbar {
    display: none;
}

.p-carousel .p-card {
    flex: 0 0 95px;
    height: 95px;
}

.p-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.p-col-12 {
    grid-column: span 2;
    height: 85px;
}

.p-col-6 {
    height: 110px;
}

.p-bubbles {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    gap: 5px;
}

.p-bubble-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.p-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.p-bubble-item span {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    color: #b3b3b3;
}

/* Custom Switch mais largo para Bootstrap */
.form-switch-xl .form-check-input {
    width: 3.5rem;
    height: 1.75rem;
    cursor: pointer;
}

.custom-switch:checked {
    background-color: #ed008c !important;
    border-color: #ed008c !important;
}

/* iPhone Mockup (Centralizado para Bootstrap) */
.iphone-x {
    width: 280px;
    height: 580px;
    background: #000;
    border: 10px solid #212529;
    border-radius: 45px;
    position: relative;
    overflow: hidden;
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background: #212529;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.iphone-content {
    height: 100%;
    background: #fff;
    overflow-y: auto;
    padding: 40px 15px 20px;
}

/* Scrollbar para Bootstrap */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 10px;
}

/* Font Weights Extras */
.fw-black {
    font-weight: 900;
}

.ls-wide {
    letter-spacing: 0.1em;
}

/* ── Icon Picker (compartilhado entre editors) ───────────────────────────── */
.icon-picker-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s;
    user-select: none;
    width: 100%;
}

.icon-picker-trigger:hover {
    border-color: #ed008c;
}

.icon-picker-trigger .icon-preview {
    font-size: 20px;
    width: 28px;
    text-align: center;
    color: #555;
    flex-shrink: 0;
}

.icon-picker-trigger .icon-name {
    font-size: 12px;
    color: #666;
    font-family: monospace;
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-picker-trigger .icon-change-hint {
    font-size: 11px;
    color: #aaa;
    flex-shrink: 0;
}

/* Grade de ícones dentro do modal */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 6px;
    max-height: 400px;
    overflow-y: auto;
}

.icon-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px 6px;
    border: 1px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    font-size: 22px;
    gap: 4px;
    transition: all .15s;
    background: #fff;
    color: #555;
}

.icon-grid-item:hover {
    border-color: #ed008c;
    background: #fff0f8;
    color: #ed008c;
}

.icon-grid-item span {
    font-size: 8px;
    text-align: center;
    color: inherit;
    word-break: break-all;
    line-height: 1.2;
}