/* Settings Menu
/* ---------------------------------------------------------- */

/* Toggle button
/* ---------------------------------------------------------- */

.settings-menu-toggle {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 9999;
    height: 34px;
    margin-right: 0 !important;
}

.settings-menu-toggle .settings-menu-open svg path {
    stroke: var(--black);
}

@media (min-width: 500px) and (max-width: 1024px) {
    .settings-menu-toggle {
        top: 12px;
    }
}

@media (max-width: 500px) {
    .settings-menu-toggle {
        top: 11px;
        right: 20px;
    }
}

.settings-menu-toggle-spacer {
    width: 46px;
}

@media (max-width: 1024px) {
    .settings-menu-toggle-spacer {
        width: 68px;
    }
}


/* Container
/* ---------------------------------------------------------- */

.settings-menu-container {
    z-index: 999;
    height: 100%;
    min-width: 420px;
    overflow: hidden;
    border-left: 1px solid var(--whitegrey-d1);
    display: flex;
    flex-direction: column;
}

.settings-menu-container #entry-controls {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.settings-menu-container-wide {
    width: 501px;
    min-width: 501px;
}

@media (max-width: 1024px) {
    .settings-menu-container {
        position: absolute;
        right: 0;
        box-shadow:
        -4.5px 0 3.6px rgba(0, 0, 0, 0.007),
        -12.5px 0 10px rgba(0, 0, 0, 0.008),
        -30.1px 0 24.1px rgba(0, 0, 0, 0.01),
        -100px 0 80px rgba(0, 0, 0, 0.02)
    ;
    }
}

@media (max-width: 500px) {
    .settings-menu-container {
        width: 100vw;
        min-width: 100vw;
    }
}

.settings-menu-container .settings-menu-pane {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 419px;
    overflow: auto;
    background-color: var(--white);
    opacity: 1;
    z-index: 0;
}

.settings-menu-container-wide .settings-menu-pane {
    width: 500px;
    min-width: 500px;
}

.settings-menu-container .settings-menu-pane-main {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (max-width: 500px) {
    .settings-menu-container .settings-menu-pane {
        width: 100vw;
        min-width: 100vw;
    }
}

/* Header
/* ---------------------------------------------------------- */

.settings-menu-header {
    position: sticky;
    top: 0;
    display: flex;
    height: 82px; /* 34px + 24px + 24px */
    min-height: 82px;
    width: 100%;
    padding: 24px;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
    background: var(--white);
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .settings-menu-header {
        padding-top: 15px;
    }
}

.settings-menu-header h4 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.375;
    font-weight: 700;
}

.settings-menu-header .close {
    margin-right: -15px;
    padding: 10px 15px;
    font-size: 12px;
    line-height: 12px;
}

.settings-menu-header .close svg {
    width: 12px;
    height: 12px;
    fill: var(--darkgrey);
}

.settings-menu-header.subview {
    z-index: 2;
    width: 100%;
    max-width: 484px;
}

.settings-menu-header.subview h4 {
    width: 100%;
    text-align: left;
}

.settings-menu-header.subview .back {
    margin-left: -15px;
    padding: 2px 15px 0;
    line-height: 14px;
}

.settings-menu-header.subview .back svg {
    width: 12px;
    height: 12px;
}

.settings-menu-header.subview .back svg path {
    fill: var(--darkgrey);
}

/* Content
/* ---------------------------------------------------------- */

.settings-menu-container .ember-power-select-multiple-trigger input,
.settings-menu-pane .gh-date-time-picker-date input,
.settings-menu-pane .gh-date-time-picker-time input {
    border: none !important;
}

.settings-menu-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0;
}

.gh-post-settings {
    padding: 0 24px;
}

@media (max-width: 1024px) {
    .settings-menu-content {
        padding-top: 0;
    }
}

.settings-menu-content label code {
    font-weight: normal;
    border: 1px solid var(--lightgrey);
}

.settings-menu-content .gh-image-uploader {
    margin: 0 0 1.6rem 0;
    background: color-mod(var(--whitegrey-l1) l(+2%));
}

.settings-menu-content .gh-image-uploader .description {
    font-size: 1.4rem;
}

.settings-menu-content .gh-image-uploader form {
    padding: 35px 45px;
}

.settings-menu-content .gh-image-uploader.-with-image {
    width: auto;
    min-height: 50px;
    max-height: 250px;
    margin-top: 0;
}

.settings-menu-content .gh-radio {
    margin: 20px 0;
}

.settings-menu-content .no-selection {
    margin-top: -16px;
}

.settings-menu-content .gh-radio-desc {
    margin: 8px 0 0 -32px;
}

.settings-menu-content .select-members {
    margin-bottom: .4rem;
}

.settings-menu-content .segment-totals {
    line-height: 1.65;
}

.settings-menu-content textarea {
    height: 108px;
}

.settings-menu-content .gh-cm-editor-textarea {
    min-height: 170px;
}

.settings-menu-content .nav-list {
    margin: 0;
}

.settings-menu-content .word-count {
    font-weight: bold;
}

.ghost-url-preview {
    width: 98%;
    /* Preview never wider than input */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-menu-post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.2rem;
    padding: .4rem 0;
}

.settings-menu-content .for-checkbox .input-toggle-component {
    margin-right: .8rem;
}

.settings-menu-content .for-checkbox {
    margin: 0;
    width: initial;
}

.settings-menu-content .for-checkbox label {
    margin: 0;
    padding: 0;
}

.settings-menu-content .for-checkbox label p {
    margin: 0;
    color: var(--black);
    font-size: 1.3rem;
    font-weight: 500;
}

li.nav-list-item .switch {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 100% !important;
    padding: 2rem 2.4rem;
}

li.nav-list-item .for-switch.xs label {
    width: initial;
    height: initial !important;
}

.settings-menu-content .gh-toggle-featured {
    position: relative;
    width: 34px;
    height: 20px;
}

.settings-menu-delete-button {
    margin: 3.2rem 2.4rem 2.4rem;
}

.settings-menu-delete-button button,
.settings-menu-delete-button button:hover,
.settings-menu-delete-button button:active,
.settings-menu-delete-button button:focus {
    border: 1px solid var(--red);
}

.settings-menu-delete-button button span {
    height: 40px;
    line-height: 40px;
    color: var(--red);
}

.settings-menu-delete-button button:hover span {
    color: var(--red-d1);
}

.settings-menu-delete-button svg {
    width: 1.6rem;
    height: 1.6rem;
    margin: 0 .8rem 2px 0;
    color: var(--red);
}

.settings-menu-delete-button button:hover svg {
    color: var(--red-d1);
}

.post-setting-custom-excerpt {
    font-size: 1.5rem;
    line-height: 1.35em;
    letter-spacing: 0;
}

.settings-menu-content .gh-seo-preview-title {
    white-space: inherit;
}

.settings-menu-content .CodeMirror {
    height: 170px;
    min-height: 170px;
    padding: 0;
    background: var(--white);
    color: var(--darkgrey);
    border: 1px solid var(--lightgrey);
    border-radius: 4px;
}

.settings-menu-content .CodeMirror-cursor {
    border: 1px solid var(--midgrey);
}

.settings-menu-content .CodeMirror-gutters {
    background-color: var(--whitegrey-l2);
    border-right: 1px solid var(--lightgrey);
}

.settings-menu-content .CodeMirror:hover {
    cursor: text;
}

.settings-menu-content .CodeMirror-scroll {
    min-height: 170px;
}

.settings-menu-content .for-radio .input-toggle-component,
.settings-menu-content .for-checkbox .input-toggle-component {
    background: #fff;
}

/* .settings-menu-pane .ember-power-select-multiple-trigger {
    border: var(--input-border);
    background: var(--input-bg-color);
}

.settings-menu-pane .ember-power-select-trigger[aria-expanded=true] {
    border-color: transparent;
    background: color-mod(var(--input-bg-color) l(-3%));
} */

.settings-menu-pane .ember-power-select-dropdown {
    border: none;
    border-top: none;
    margin: 0 1px;
    width: calc(100% - 2px);
    box-shadow: 0 0 0 1px rgba(99,114,130,0.16), 0 8px 16px rgba(27,39,51,0.08);
}

.settings-menu-pane .gh-date-time-picker-date,
.settings-menu-pane .gh-date-time-picker-time {
    margin: 0;
}

.settings-menu-pane .gh-date-time-picker-date {
    margin-right: 4px;
}

.settings-menu-pane .gh-date-time-picker-time {
    margin-left: 4px;
}

.settings-menu-content.keyboard-shortcuts .form-group {
    margin-bottom: 3em;
}

.settings-menu-content.keyboard-shortcuts label {
    padding: 12px 0;
    border-bottom: 1px solid var(--whitegrey-d1);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
}

.settings-menu-content .gh-shortcut {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--whitegrey-d1);
}

.settings-menu-content .gh-shortcut .link {
    color: var(--accent-color);
}

.settings-menu-content .gh-shortcut .code {
    font-family: Consolas,Liberation Mono,Menlo,Courier,monospace;
    font-size: .95em;
}

.gh-shortcut .gh-keys {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.gh-shortcut .gh-key {
    min-width: 28px;
    height: 28px;
    background: var(--whitegrey);
    border-radius: var(--border-radius);
    padding: 0 6px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 28px;
    cursor: default;
}

.gh-shortcut .gh-key.mono {
    font-family: Consolas,Liberation Mono,Menlo,Courier,monospace;
    font-size: 1.25rem;
}

.gh-shortcut .gh-key.mono.clear {
    background: transparent;
}

/* Email
/* ---------------------------------------------------------- */
.settings-menu-email-button span {
    padding: 4px 0;
    line-height: 1em;
    height: unset;
    margin-bottom: 4px;
}

.settings-menu-email .disabled button,
.settings-menu-email .disabled input {
    opacity: 0.5;
}

/* Form controls
/* ---------------------------------------------------------- */
.settings-menu-container select,
.settings-menu-container .gh-date-time-picker-date,
.settings-menu-container .gh-date-time-picker-time {
    min-height: 38px;
    padding: 4px 12px;
    font-size: 1.4rem;
    color: var(--black);
    background-color: var(--grey-150);
    border: 1px solid transparent;
    border-radius: 8px;
    transition-property: color, background-color,border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .15s;
}

.settings-menu-container select:hover,
.settings-menu-container .gh-date-time-picker-date:hover,
.settings-menu-container .gh-date-time-picker-time:hover{
    background-color: var(--grey-100);
}

.settings-menu-container .ember-basic-dropdown-trigger[aria-expanded=true] .gh-date-time-picker-date,
.settings-menu-container .gh-date-time-picker-time:focus-within {
    background-color: var(--white);
    border: 1px solid var(--green);
    box-shadow: 0 0 0 2px rgba(48,207,67,.25);
    outline: none;
}

.settings-menu-container textarea.gh-input {
    padding-block: 8px;
}

.settings-menu-container .gh-date-time-picker input {
    font-size: 1.4rem;
    color: var(--black);
}

.settings-menu-container .gh-input-icon .gh-input {
    padding-left: 32px;
}

.settings-menu-container .ember-power-select-trigger[aria-expanded=true] {
    border-color: transparent;
}

.settings-menu-container .ember-power-select-multiple-trigger {
    padding: 5px 8px;
    border-radius: 8px !important;
}

.settings-menu-container .ember-power-select-multiple-trigger:has(.ember-power-select-multiple-option) {
    padding-left: 6px !important;
}

.settings-menu-container .ember-power-select-multiple-option {
    height: 24px;
}

.settings-menu-container .ember-power-select-status-icon {
    border-color: var(--black);
}

.settings-menu-container .gh-date-time-picker-timezone {
    font-size: 1.2rem;
    margin-left: 0;
}

.settings-menu-container .ember-power-select-dropdown {
    border: 0 !important;
    border-radius: 8px;
    --tw-shadow: 0 0 7px rgba(0, 0, 0, .08), 0 2.1px 2.2px -5px rgba(0, 0, 0, .011), 0 5.1px 5.3px -5px rgba(0, 0, 0, .016), 0 9.5px 10px -5px rgba(0, 0, 0, .02), 0 17px 17.9px -5px rgba(0, 0, 0, .024), 0 31.8px 33.4px -5px rgba(0, 0, 0, .029), 0 76px 80px -5px rgba(0, 0, 0, .04);
    --tw-shadow-colored: 0 0 7px var(--tw-shadow-color), 0 2.1px 2.2px -5px var(--tw-shadow-color), 0 5.1px 5.3px -5px var(--tw-shadow-color), 0 9.5px 10px -5px var(--tw-shadow-color), 0 17px 17.9px -5px var(--tw-shadow-color), 0 31.8px 33.4px -5px var(--tw-shadow-color), 0 76px 80px -5px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);
}
