/* XSTMZ permanent orientation selector */

.xstmz-orientation-box {
    box-sizing: border-box;
}

.xstmz-orientation-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.xstmz-orientation-option {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
}

.xstmz-orientation-option input {
    width: 17px;
    height: 17px;
    margin: 0;
    cursor: pointer;
}

.xstmz-orientation-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.xstmz-orientation-apply,
.xstmz-orientation-all {
    border: 0;
    border-radius: 4px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.xstmz-orientation-apply {
    background: #fff;
    color: #111;
}

.xstmz-orientation-all {
    background: rgba(255,255,255,.12);
    color: inherit;
}

/* Desktop */
.xstmz-orientation-desktop {
    position: relative;
}

.xstmz-orientation-desktop .xstmz-orientation-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 99999;
    width: 220px;
    padding: 18px;
    background: #1c1c1c;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,.35);
}

.xstmz-orientation-desktop:hover .xstmz-orientation-dropdown,
.xstmz-orientation-desktop.xstmz-open .xstmz-orientation-dropdown {
    display: block;
}

.xstmz-orientation-desktop .xstmz-orientation-trigger {
    cursor: pointer;
}

/* Mobile */
.xstmz-orientation-mobile .mobile-drop {
    padding: 5px 0;
}

.xstmz-orientation-mobile .xstmz-orientation-box {
    padding: 15px 20px 18px;
}

.xstmz-orientation-mobile .xstmz-orientation-option {
    padding: 4px 0;
}

/* Light theme */
html.theme-white .xstmz-orientation-desktop .xstmz-orientation-dropdown,
html.theme-light .xstmz-orientation-desktop .xstmz-orientation-dropdown {
    background: #fff;
    color: #222;
    box-shadow: 0 8px 25px rgba(0,0,0,.18);
}

html.theme-white .xstmz-orientation-apply,
html.theme-light .xstmz-orientation-apply {
    background: #222;
    color: #fff;
}

html.theme-white .xstmz-orientation-all,
html.theme-light .xstmz-orientation-all {
    background: #eee;
    color: #222;
}

@media (max-width: 767px) {
    .xstmz-orientation-desktop {
        display: none !important;
    }
}
