* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    height: 100%;
    overflow: hidden;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

body {
    background: #f4f1ea;
}

.editor-bar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;

    min-height: 64px;

    padding:
        calc(8px + env(safe-area-inset-top,0px))
        10px
        8px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    background: rgba(248,247,243,.96);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(0,0,0,.1);
}

.editor-title {
    min-width: 110px;
}

.editor-title strong {
    display: block;
    font-size: .88rem;
}

.editor-title span {
    display: block;
    margin-top: 2px;

    color: #73736e;
    font-size: .67rem;
    font-weight: 700;
}

.editor-actions {
    display: flex;
    gap: 6px;

    overflow-x: auto;
}

.editor-actions button {
    flex: 0 0 auto;

    min-height: 38px;

    padding: 0 10px;

    border:
        1px solid rgba(0,0,0,.13);

    border-radius: 11px;

    background: #fff;
    color: #181916;

    font-size: .73rem;
    font-weight: 800;
}

.editor-actions button.primary {
    background: #20251e;
    border-color: #20251e;
    color: #fff;
}

.editor-help {
    position: fixed;

    top:
        calc(
            64px +
            env(safe-area-inset-top,0px)
        );

    left: 0;
    right: 0;

    z-index: 99;

    padding: 6px 12px;

    background: #fff3cf;

    color: #665214;

    text-align: center;
    font-size: .69rem;
    font-weight: 750;
}

#cartaFrame {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    top:
        calc(
            88px +
            env(safe-area-inset-top,0px)
        );

    width: 100%;
    height:
        calc(
            100% -
            88px -
            env(safe-area-inset-top,0px)
        );

    border: 0;

    background: #fff;
}

.toast {
    position: fixed;

    left: 50%;

    bottom:
        calc(
            18px +
            env(safe-area-inset-bottom,0px)
        );

    z-index: 500;

    transform: translateX(-50%);

    max-width: calc(100vw - 30px);

    padding: 11px 15px;

    border-radius: 999px;

    background: #111;
    color: #fff;

    font-size: .8rem;
    font-weight: 800;

    box-shadow:
        0 10px 35px
        rgba(0,0,0,.22);
}

@media (max-width: 600px) {

    .editor-bar {
        align-items: flex-start;
    }

    .editor-title strong {
        font-size: .8rem;
    }

    .editor-actions button {
        padding: 0 9px;
        font-size: .69rem;
    }
}
/* ==========================================================
   DRAGON CARTA EDITOR V3.1 - COLOR TOOLS
   ========================================================== */

.color-tool {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: 5px;

    min-height: 38px;

    padding:
        0
        7px
        0
        9px;

    border:
        1px solid rgba(0,0,0,.13);

    border-radius: 11px;

    background: #fff;

    color: #181916;

    font-size: .68rem;
    font-weight: 800;
}

.color-tool input[type="color"] {
    width: 27px;
    height: 27px;

    padding: 0;

    border: 0;
    border-radius: 8px;

    background: transparent;

    cursor: pointer;
}

@media (max-width: 600px) {

    .color-tool span {
        display: none;
    }

    .color-tool {
        padding: 0 5px;
    }
}
/* ==========================================================
   DRAGON CARTA EDITOR V3.2
   VARIANTES EDITABLES
   ========================================================== */

.dish-variant {
    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        112px
        28px !important;

    gap: 7px !important;

    align-items: center !important;

    padding:
        4px
        0 !important;
}

.dish-variant-name,
.dish-variant-price {
    display: block;

    width: 100%;

    min-height: 38px;

    padding:
        8px
        9px;

    border:
        1px solid
        rgba(0,0,0,.20);

    border-radius: 8px;

    background:
        rgba(255,255,255,.92);

    color: inherit;

    outline: none;
}

.dish-variant-price {
    text-align: right;
    font-weight: 800;
}

.dish-variant-name:focus,
.dish-variant-price:focus {
    border-color:
        rgba(40,80,40,.65);

    box-shadow:
        0 0 0 2px
        rgba(40,80,40,.12);
}

.dish-variant-name:empty::before,
.dish-variant-price:empty::before {
    content:
        attr(data-placeholder);

    color:
        rgba(0,0,0,.42);

    font-weight: 500;
}

.dc-remove-variant {
    position: static !important;

    transform: none !important;

    width: 28px !important;
    height: 28px !important;
}

.dc-add-variant {
    margin-top: 9px !important;

    min-height: 36px !important;

    padding:
        0
        11px !important;

    border:
        1px solid
        rgba(0,0,0,.20) !important;

    border-radius: 9px !important;

    background:
        rgba(255,255,255,.9) !important;
}

@media (max-width: 430px) {

    .dish-variant {
        grid-template-columns:
            minmax(0,1fr)
            96px
            28px !important;
    }

    .dish-variant-name,
    .dish-variant-price {
        min-height: 40px;
        padding:
            8px
            7px;
    }
}
/* ==========================================================
   DRAGON CARTA V3.6.1
   BUSCADOR DE PLATOS
   ========================================================== */

.editor-help {
    height: 54px !important;

    padding:
        7px
        10px !important;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        #fff3cf;
}

.dish-search-wrap {
    width:
        min(680px, 100%);

    min-height:
        40px;

    display:
        grid;

    grid-template-columns:
        auto
        minmax(0,1fr)
        auto;

    align-items:
        center;

    gap:
        8px;

    padding:
        4px
        8px
        4px
        11px;

    border:
        1px solid
        rgba(0,0,0,.13);

    border-radius:
        12px;

    background:
        #fff;

    box-shadow:
        0 2px 8px
        rgba(0,0,0,.04);
}

.dish-search-icon {
    color:
        #555;

    font-size:
        .72rem;

    font-weight:
        800;
}

.dish-search {
    width:
        100%;

    min-width:
        0;

    height:
        32px;

    padding:
        0
        4px;

    border:
        0;

    outline:
        0;

    background:
        transparent;

    color:
        #161713;

    font:
        600 .86rem
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

.dish-search::placeholder {
    color:
        #8b8b86;
}

.dish-search-count {
    white-space:
        nowrap;

    color:
        #6d6d68;

    font-size:
        .67rem;

    font-weight:
        800;
}

/*
 * La barra de búsqueda ahora ocupa
 * más altura que la ayuda anterior.
 */
#cartaFrame {
    top:
        calc(
            118px +
            env(safe-area-inset-top,0px)
        ) !important;

    height:
        calc(
            100% -
            118px -
            env(safe-area-inset-top,0px)
        ) !important;
}

@media (max-width: 600px) {

    .dish-search-wrap {
        grid-template-columns:
            minmax(0,1fr)
            auto;

        padding-left:
            9px;
    }

    .dish-search-icon {
        display:
            none;
    }
}

/*
 * ================================================================
 * DRAGON_CARTA_EDITOR_NAVIGATION_V1
 * ================================================================
 */

.editor-actions .editor-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 8px 13px;

    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 10px;

    background: #ffffff;
    color: #111111;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;
}

.editor-actions .editor-nav-button:hover {
    background: #f4f4f4;
}

.editor-actions .editor-nav-button:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

@media (max-width: 650px) {
    .editor-actions .editor-nav-button {
        min-height: 40px;
        padding: 9px 12px;
    }
}