.wpait-fallback-switcher-wrap {
    box-sizing: border-box;
    padding: 8px 16px;
    text-align: right;
    width: 100%;
    z-index: 99;
}

.wpait-fallback-switcher-header,
.wpait-fallback-switcher-footer {
    clear: both;
}

.wpait-fallback-switcher-footer {
    margin-top: 10px;
}

.wpait-fallback-switcher,
.wpait-fallback-switcher-dropdown {
    font: inherit;
}

.wpait-fallback-switcher-dropdown {
    background: #fff;
    border: 1px solid currentColor;
    border-radius: 6px;
    min-height: 36px;
    padding: 4px 28px 4px 10px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.wpait-fallback-switcher-dropdown:hover,
.wpait-fallback-switcher-dropdown:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.14);
    outline: 0;
}

.wpait-fallback-switcher-list {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wpait-switcher-orientation-vertical {
    align-items: stretch;
    flex-direction: column;
}

.wpait-fallback-switcher-link {
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 6px;
    display: inline-flex;
    gap: 6px;
    line-height: 1.2;
    min-height: 32px;
    padding: 5px 9px;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.wpait-fallback-switcher-link:hover,
.wpait-fallback-switcher-link:focus {
    background: rgba(34, 113, 177, 0.08);
    border-color: #2271b1;
    outline: 0;
}

.wpait-fallback-switcher-link.is-current {
    font-weight: 700;
    opacity: 0.75;
}

.wpait-switcher-layout-buttons .wpait-fallback-switcher-link,
.wpait-switcher-layout-flags_only .wpait-fallback-switcher-link {
    justify-content: center;
    min-width: 36px;
}

.wpait-switcher-layout-name_only .wpait-fallback-flag,
.wpait-switcher-layout-flags_only .wpait-fallback-language-name,
.wpait-switcher-layout-flags_only .wpait-fallback-language-code {
    display: none;
}

.wpait-menu-language-item > a,
.wpait-menu-current-language > a {
    align-items: center;
    display: inline-flex;
    gap: 0.35em;
}

.wpait-fallback-language-code {
    font-size: 0.78em;
    opacity: 0.72;
}

.wpait-elementor-switcher .wpait-fallback-switcher-wrap {
    display: inline-block;
    padding: 0;
}

.wpait-inline-editor-toolbar {
    align-items: center;
    background: rgba(29, 35, 39, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    bottom: 18px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
    box-sizing: border-box;
    color: #fff;
    display: flex;
    gap: 8px;
    left: 18px;
    max-width: calc(100vw - 36px);
    padding: 8px;
    position: fixed;
    z-index: 999999;
}

.wpait-inline-editor-brand {
    align-items: center;
    color: #fff;
    display: flex;
    gap: 6px;
    font-size: 12px;
    line-height: 1.2;
    max-width: 300px;
    text-decoration: none;
}

.wpait-inline-editor-brand:hover,
.wpait-inline-editor-brand:focus {
    color: #fff;
    text-decoration: underline;
}

.wpait-inline-editor-brand img {
    background: #fff;
    border-radius: 4px;
    height: 22px;
    object-fit: contain;
    width: 22px;
}

.wpait-inline-editor-toolbar button {
    background: #2271b1;
    border: 0;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    min-height: 34px;
    padding: 6px 10px;
    transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.wpait-inline-editor-toolbar button:hover,
.wpait-inline-editor-toolbar button:focus {
    background: #135e96;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
    outline: 0;
}

.wpait-inline-editor-toolbar button.is-active {
    background: #00a32a;
}

.wpait-inline-editor-status {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 12px;
    max-width: 340px;
    padding: 4px 8px;
}

.wpait-inline-editor-modal {
    align-items: center;
    backdrop-filter: blur(2px);
    background: rgba(0, 0, 0, 0.48);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 1000000;
}

.wpait-inline-editor-modal.is-open {
    display: flex;
}

.wpait-inline-editor-dialog {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    color: #1d2327;
    max-width: 760px;
    padding: 22px;
    width: min(760px, 100%);
}

.wpait-inline-editor-dialog h2 {
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 12px;
}

.wpait-inline-editor-textarea {
    border: 1px solid #8c8f94;
    border-radius: 8px;
    box-sizing: border-box;
    font: inherit;
    line-height: 1.45;
    min-height: 220px;
    padding: 12px 14px;
    resize: vertical;
    width: 100%;
}

.wpait-inline-editor-textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.16);
    outline: 0;
}

.wpait-inline-editor-dialog-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 14px;
}

.wpait-inline-editor-dialog-actions button {
    background: #2271b1;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    min-height: 34px;
    padding: 7px 13px;
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.wpait-inline-editor-dialog-actions button:hover,
.wpait-inline-editor-dialog-actions button:focus {
    background: #135e96;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.18);
    outline: 0;
}

.wpait-inline-editor-dialog-actions button.is-secondary {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    color: #1d2327;
}

.wpait-inline-editor-dialog-actions button.is-secondary:hover,
.wpait-inline-editor-dialog-actions button.is-secondary:focus {
    background: #fff;
    border-color: #8c8f94;
}

.wpait-inline-editor-dialog-actions button:disabled {
    cursor: wait;
    opacity: 0.65;
}

body.wpait-editor-active .wpait-editable {
    cursor: pointer;
    outline: 2px solid rgba(34, 113, 177, 0.7);
    outline-offset: 3px;
    transition: background-color 0.16s ease, outline-color 0.16s ease;
}

body.wpait-editor-active .wpait-editable:hover {
    background: rgba(34, 113, 177, 0.14);
}

@media (max-width: 640px) {
    .wpait-inline-editor-toolbar {
        align-items: flex-start;
        bottom: 10px;
        flex-direction: column;
        left: 10px;
        right: 10px;
    }

    .wpait-inline-editor-brand {
        max-width: none;
    }
}
