.pb-mt {
    display: none;
}

html.pb-phone #pb-ttb {
    display: none !important;
}

html.pb-phone .pb-mt {
    --pbmt-line: var(--pbui-line, #e6e2d9);
    --pbmt-ink: var(--pbui-ink, #0d1b22);
    --pbmt-accent: var(--pbui-accent, #e6007e);
    --pbmt-soft: var(--pbui-accent-soft, rgba(230, 0, 126, .1));
    grid-row: 4;
    grid-column: 1 / -1;
    position: relative;
    z-index: 2000;
    padding: 8px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--pbmt-line);
    box-shadow: 0 -10px 24px -16px rgba(13, 27, 34, .45);
    font: 700 14px/1.2 var(--pbui-font, 'Manrope', system-ui, sans-serif);
    color: var(--pbmt-ink);
}

html.pb-phone.pb-mt-open .pb-mt:not([hidden]) {
    display: block;
}

html.pb-phone.pb-mt-open:not(.pb-mt-kb):not(.pb-mt-flow) .pb-mt {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--pbmt-tb, 56px);
}

html.pb-phone.pb-mt-open.pb-mt-kb .pb-tabbar {
    display: none;
}

html.pb-phone.pb-mt-open:not(.pb-mt-kb) #wrapper.pb-shell {
    grid-template-rows: auto minmax(0, 1fr) auto auto auto;
}

html.pb-phone.pb-mt-open:not(.pb-mt-kb) .pb-tabbar {
    grid-row: 5;
}

html.pb-phone.pb-sheet-open .pb-mt {
    display: none !important;
}

html.pb-phone.pb-mt-kb .pb-mt {
    padding-bottom: 6px;
}

html.pb-phone .pb-mt__in {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

html.pb-phone .pb-mt__input {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    height: 46px;
    min-height: 46px;
    max-height: 96px;
    margin: 0;
    padding: 11px 12px;
    border: 1.5px solid var(--pbmt-line);
    border-radius: 12px;
    background: #fff;
    color: var(--pbmt-ink);
    font: 500 16px/22px var(--pbui-font, 'Manrope', system-ui, sans-serif);
    resize: none;
    overflow-y: auto;
    -webkit-appearance: none;
    appearance: none;
}

html.pb-phone .pb-mt__input:focus {
    outline: 0;
    border-color: var(--pbmt-accent);
}

html.pb-phone .pb-mt__done {
    flex: none;
    height: 46px;
    min-width: 88px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: var(--pbmt-accent);
    color: #fff;
    font: 700 15px var(--pbui-font, 'Manrope', system-ui, sans-serif);
}

html.pb-phone .pb-mt__strip {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 6px -8px 0;
    padding: 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

html.pb-phone .pb-mt__strip::-webkit-scrollbar {
    display: none;
}

html.pb-phone .pb-mt__strip button,
html.pb-phone .pb-mt__glow button,
html.pb-phone .pb-mt__own {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--pbmt-ink);
    font: 700 16px var(--pbui-font, 'Manrope', system-ui, sans-serif);
}

html.pb-phone .pb-mt__strip button.is-on,
html.pb-phone .pb-mt__strip button[aria-expanded="true"],
html.pb-phone .pb-mt__glow button.is-on {
    background: var(--pbmt-soft);
    color: var(--pbmt-accent);
}

html.pb-phone .pb-mt__strip .pb-mt__font {
    min-width: 120px;
    max-width: 150px;
    border: 1.5px solid var(--pbmt-line);
    background: #fff;
    font-size: 14px;
    justify-content: space-between;
}

html.pb-phone .pb-mt__fn {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.pb-phone .pb-mt__strip .pb-ic,
html.pb-phone .pb-mt__glow .pb-ic {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html.pb-phone .pb-mt__sep {
    flex: none;
    width: 1px;
    height: 26px;
    margin: 0 4px;
    background: var(--pbmt-line);
}

html.pb-phone .pb-mt__strip .pb-mt__c i,
html.pb-phone .pb-mt__glow .pb-mt__c i {
    display: block;
    width: 26px;
    height: 26px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px var(--pbmt-line);
}

html.pb-phone .pb-mt__strip .pb-mt__c.is-on,
html.pb-phone .pb-mt__glow .pb-mt__c.is-on {
    background: transparent;
}

html.pb-phone .pb-mt__strip .pb-mt__c.is-on i,
html.pb-phone .pb-mt__glow .pb-mt__c.is-on i {
    box-shadow: 0 0 0 2.5px var(--pbmt-accent);
}

html.pb-phone .pb-mt__own {
    cursor: pointer;
}

html.pb-phone .pb-mt__own i {
    display: block;
    width: 26px;
    height: 26px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: conic-gradient(#e6007e, #f5b800, #2bb673, #00a3d9, #7a4de0, #e6007e);
    box-shadow: 0 0 0 1.5px var(--pbmt-line);
}

html.pb-phone .pb-mt__own.is-on i {
    box-shadow: 0 0 0 2.5px var(--pbmt-accent);
}

html.pb-phone .pb-mt__own input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

html.pb-phone .pb-mt__strip .pb-mt__del {
    color: #c62828;
}

html.pb-phone .pb-mt__fonts {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    gap: 6px;
    padding: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    background: #fff;
    border-top: 1px solid var(--pbmt-line);
    box-shadow: 0 -10px 24px -16px rgba(13, 27, 34, .45);
    touch-action: pan-x;
}

html.pb-phone .pb-mt__glow {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    align-items: center;
    gap: 2px;
    padding: 8px;
    background: #fff;
    border-top: 1px solid var(--pbmt-line);
    box-shadow: 0 -10px 24px -16px rgba(13, 27, 34, .45);
}

html.pb-phone .pb-mt.is-glow .pb-mt__glow {
    display: flex;
}

html.pb-phone .pb-mt__gx {
    display: none !important;
}

html.pb-phone .pb-mt__range {
    flex: 1 1 90px;
    min-width: 90px;
    height: 44px;
    margin: 0 4px;
    padding: 0;
    accent-color: var(--pbmt-accent);
    touch-action: none;
}

html.pb-phone .pb-mt__fonts::-webkit-scrollbar {
    display: none;
}

html.pb-phone .pb-mt.is-fonts .pb-mt__fonts {
    display: flex;
}

html.pb-phone .pb-mt__chip {
    flex: none;
    height: 44px;
    padding: 0 16px;
    border: 1.5px solid var(--pbmt-line);
    border-radius: 12px;
    background: #fff;
    color: var(--pbmt-ink);
    font-size: 20px;
    font-weight: 400;
    white-space: nowrap;
}

html.pb-phone .pb-mt__chip--x {
    min-width: 44px;
    padding: 0 10px;
}

html.pb-phone .pb-mt__chip--x .pb-ic {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

html.pb-phone .pb-mt__chip[aria-selected="true"] {
    border-color: var(--pbmt-accent);
    background: var(--pbmt-soft);
}

html.pb-phone.pb-mt-kb #wrapper.pb-shell .ed__top .pricebar,
html.pb-phone.pb-mt-kb #wrapper.pb-shell #pages,
html.pb-phone.pb-mt-kb #wrapper.pb-shell #main-content .stage__bar {
    display: none;
}

html.pb-phone #book-content .editable-text {
    touch-action: none;
}

html.pb-phone #book-content .editable-text::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    min-width: 44px;
    min-height: 44px;
    transform: translate(-50%, -50%);
}

html.pb-phone #book-content .editable-text.active-element {
    outline: 2px solid var(--p55-accent, #e6007e) !important;
    outline-offset: 3px;
}

html.pb-phone #book-content .editable-text.active-element span:empty {
    min-width: 2em;
    min-height: 1em;
}

html.pb-phone #book-content .editable-text .ui-rotatable-handle {
    width: 26px;
    height: 26px;
    margin-left: -13px;
    top: -52px;
    box-sizing: border-box;
    border: 2px solid var(--p55-accent, #e6007e);
    background: #fff;
}

html.pb-phone #book-content .editable-text .ui-rotatable-handle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 1.5px;
    height: 20px;
    margin-left: -.75px;
    background: var(--p55-accent, #e6007e);
}

html.pb-phone #book-content .editable-text .ui-rotatable-handle::after {
    content: "";
    position: absolute;
    inset: -12px;
}

html #book-content .editable-text.active-element {
    outline: 1.5px solid var(--p55-accent, #e6007e) !important;
    outline-offset: 3px;
}

#pb-tc {
    position: fixed;
    inset: 0;
    z-index: 1030;
    pointer-events: none;
}

#pb-tc[hidden] {
    display: none;
}

.pb-tc__h {
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pb-tc__h::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    box-sizing: border-box;
    border: 2px solid var(--p55-accent, #e6007e);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(13, 27, 34, .28);
    transform: translate(var(--ox, 0px), var(--oy, 0px));
}

.pb-tc__h.is-drag::after {
    transform: translate(var(--ox, 0px), var(--oy, 0px)) scale(1.15);
}

html.pb-phone .pb-tc__h,
html.pb-coarse .pb-tc__h {
    width: 44px;
    height: 44px;
}

html.pb-phone .pb-tc__h::after,
html.pb-coarse .pb-tc__h::after {
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
}

html.pb-sheet-open #pb-tc {
    display: none;
}

@media (orientation: landscape) and (max-height: 500px) {
    html.pb-phone .pb-mt {
        grid-row: 3;
        display: none;
        padding-top: 6px;
    }

    html.pb-phone.pb-mt-open .pb-mt:not([hidden]) {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    html.pb-phone .pb-mt__in {
        flex: 0 1 340px;
        min-width: 220px;
        align-items: center;
    }

    html.pb-phone .pb-mt__strip {
        flex: 1 1 0;
        min-width: 0;
        margin: 0;
    }

    html.pb-phone.pb-mt-open:not(.pb-mt-kb) #wrapper.pb-shell {
        grid-template-rows: 44px minmax(0, 1fr) auto auto;
    }

    html.pb-phone.pb-mt-open:not(.pb-mt-kb) .pb-tabbar {
        grid-row: 4;
    }

    html.pb-phone .pb-mt.is-fonts .pb-mt__strip,
    html.pb-phone .pb-mt.is-glow .pb-mt__strip {
        display: none;
    }

    html.pb-phone .pb-mt.is-glow .pb-mt__glow {
        position: static;
        flex: 1 1 0;
        min-width: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    html.pb-phone .pb-mt__gx {
        display: flex !important;
    }

    html.pb-phone .pb-mt.is-fonts .pb-mt__fonts {
        position: static;
        flex: 1 1 0;
        min-width: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    html.pb-phone .pb-mt__input {
        height: 46px !important;
    }

    html.pb-phone.pb-mt-tight #wrapper.pb-shell > .ed__top > * {
        display: none;
    }
}

html.pb-phone #book-content .corner {
    pointer-events: none;
}
