body {
    --admin-color:var(--gin-color-primary);
    --admin-color:rgb(38, 37, 46);
    --lp-hover-outline-color: var(--admin-color);
    --lp-hover-outline-width: 2px;
    --lp-focus-outline-color: var(--admin-color);
    --lp-focus-outline-width: 4px;
    --lp-focus-ui-outline-color: #fff;
    --lp-focus-ui-outline-width: 2px;
    --lp-controls-bg-color: var(--admin-color);
    --lp-controls-fg-color: #fff;
    --lp-controls-bg-color--layout: var(--admin-color);
    --lp-controls-fg-color--layout: #fff;
    --lp-btn-bg-color: var(--admin-color);
    --lp-btn-fg-color: #fff;
    --lp-controls-sticky-top: 70px;
    --lp-controls-gap: 15px;
    --font-size-base:12px;
    --input-font-size:12px;
    --gin-font-size-l: 13px;
}

.lpb-controls a{
    color: #fff;
}

body.editor [data-drupal-selector="edit-reset"]{
    display: none;
}


body.editor .menu-item__system-admin_config,
body.editor .menu-item__system-admin_content,
body.expert:not(.administrator) .menu-item__system-admin_content,
body.expert:not(.administrator) .menu-item__system-admin_structure,
body.editor #block-oklahoma-admin-primary-local-tasks,
body.editor .view-filters{
    display: none!important;
}

body.editor .views-bulk-actions,
body.editor .views-field-node-bulk-form {
    opacity: 0 !important;
    height: 0px !important;
    overflow: hidden;
    min-height: 0px !important;
    display: inline-block;
    padding: 0px;
    flex: auto;
}

body.editor .media-library-views-form__bulk_form{
    display: flex;
}

[data-drupal-selector="edit-field-reseaux-sociaux"] .paragraphs-subform {
    display: flex;
    gap:10px;
}

[data-drupal-selector="edit-field-magasins"] .paragraphs-subform {
    display: flex;
    gap:10px;
    flex-wrap: wrap;
}

[data-drupal-selector="edit-field-magasins"] .paragraphs-subform .paragraphs-subform{
    flex-wrap: nowrap;
}

[data-drupal-selector="edit-field-magasins"] .paragraphs-subform > div{
    width: 100%;
}
[data-drupal-selector="edit-field-magasins"] .paragraphs-subform .field--type-string{
    max-width: calc(100% / 3 - 20px);
   width: 100%;   
}


[data-drupal-selector="node-magasin-edit-form"] .paragraphs-subform .field--name-field-information-du-magasin ,
[data-drupal-selector="edit-field-magasins"] .paragraphs-subform .field--name-field-information-du-magasin {
    max-width: calc(100% /3 - 20px);
   width: 100%;   
}

[data-drupal-selector="node-magasin-edit-form"] [data-drupal-selector="edit-content"],
[data-drupal-selector="node-magasin-form"] [data-drupal-selector="edit-content"] {
    display: flex;
    gap:10px;
    flex-wrap: wrap;
}

[data-drupal-selector="node-magasin-edit-form"] [data-drupal-selector="edit-content"].paragraphs-subform,
[data-drupal-selector="node-magasin-form"] [data-drupal-selector="edit-content"].paragraphs-subform{
    flex-wrap: nowrap;
}

[data-drupal-selector="node-magasin-edit-form"] [data-drupal-selector="edit-content"] > div,
[data-drupal-selector="node-magasin-form"] [data-drupal-selector="edit-content"] > div{
    width: 100%;
}
[data-drupal-selector="node-magasin-edit-form"] [data-drupal-selector="edit-content"] .field--type-string,
[data-drupal-selector="node-magasin-form"] [data-drupal-selector="edit-content"] .field--type-string{
    max-width: calc(100% / 3 - 20px);
   width: 100%;   
}
[data-drupal-selector="node-magasin-edit-form"] [data-drupal-selector="edit-content"] [data-drupal-selector="edit-title-wrapper"],
[data-drupal-selector="node-magasin-form"] [data-drupal-selector="edit-content"] [data-drupal-selector="edit-title-wrapper"]{
    max-width: 100%;
}

[data-drupal-selector="node-magasin-edit-form"] [data-drupal-selector="edit-content"] .field--name-field-information-du-magasin,
[data-drupal-selector="node-magasin-form"] [data-drupal-selector="edit-content"] .field--name-field-information-du-magasin,
[data-drupal-selector="node-magasin-form"] [data-drupal-selector="edit-content"] [data-drupal-selector="edit-field-message-prise-de-rdv-wrapper"],
[data-drupal-selector="node-magasin-edit-form"] [data-drupal-selector="edit-content"] [data-drupal-selector="edit-field-message-prise-de-rdv-wrapper"]{
    max-width: calc(100% /3 - 20px);
   width: 100%;   
}

body.editor .js-form-item-field-numero-d-identification-0-value,
body.editor .js-form-item-field-google-maps-url-0-value,
body.editor .js-form-item-field-place-id-0-value,
body.editor  .form-item--field-maps-api-key-0-value{
    display: none;
}

body.editor .js-form-item-field-classes-personnalisees-0-value {
    display: none;
}

.gin--edit-form .region-sticky--is-sticky {
    position: fixed;
}


.gin--edit-form .page-wrapper__node-edit-form .block-local-tasks-block, .gin--edit-form .page-wrapper__node-edit-form .block-system-main-block, .gin--edit-form .page-wrapper__node-edit-form .messages-list, .gin--edit-form .page-wrapper__node-edit-form .node-form, .gin--edit-form .page-wrapper__node-edit-form .node-confirm-form, .gin--edit-form .page-wrapper__node-edit-form .admin-list, .gin--edit-form .page-wrapper__node-edit-form .help{
    max-width: 100%!important;
}

.toolbar-tray-open:not(.toolbar-vertical) .layout-container, body:not(.toolbar-tray-open) .layout-container {
    margin-left:0;
    margin-right: 0;
}

body{
    --gin-spacing-xxl:35px;
}

.gin--edit-form .region-sticky{
    background: rgba(var(--gin-bg-app-rgb));
}

#edit-field-body > div{
    background: #fff;
}

.paragraph--type--paragaphe  .field--name-field-texte{
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    color: var(--color-text-dark);
}

body .messages, body .messages-list {
    margin-top: 30px;
}

body .messages.oklahoma-environment-managed-notice {
    color: #1b4b70;
    border-color: #2f7db2;
    background-color: #e7f3fb;
}

#block-oklahoma-primary-local-tasks a{
    border:1px solid;
    padding: 1rem;
}

body .layout-select__item{
    margin-left:0;
}

.layout-select__item-icon img {
    display: block;
    width: 66px;
    height: 40px;
    object-fit: contain;
}

[data-drupal-selector="layout-paragraphs-layout-options"]{
    display: none!important;
}

.ui-dialog:not(.ui-dialog-off-canvas).ui-widget-content {
   /* width:600px!important;
    left:0!important;
    right:auto!important;
    min-height: 100dvh;*/
}

.ui-dialog:not(.ui-dialog-off-canvas) .ui-dialog-content {
    height: calc(100dvh - 120px) !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* Component deletion is a short confirmation, not a full-height editor. */
.ui-dialog.lpb-dialog:has(.layout-paragraphs-delete-component-form) {
    max-width: calc(100vw - 32px);
}

.ui-dialog.lpb-dialog:has(.layout-paragraphs-delete-component-form) .ui-dialog-content {
    height: auto !important;
    max-height: calc(100dvh - 200px) !important;
}

.ui-dialog:not(.ui-dialog-off-canvas) .mega-menu{
    width: 100%;
}

body .ui-widget-content a{
    /* color:var(--color-dark); */
}

#edit-field-navbar-contenu .menu-item-mega-menu-parent {
    display: none!important;
}

.js-lpb-component{
    overflow: initial!important;
    max-width: 100%;
    margin:0;
}

/* Highlight only the deepest Layout Paragraphs component under the pointer. */

body .lp-builder:not(.is-navigating) .js-lpb-component:hover:not(:has(.js-lpb-component:hover)) {
    outline: 2px solid #43cd76;
}


body .js-lpb-component + .lpb-btn--add.center {
    display: block!important;
}

.js-lpb-component .js-lpb-component .lpb-controls.js-lpb-ui {
    min-width: max-content;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}

 .js-lpb-component [data-type="container"].js-lpb-component > .lpb-controls.js-lpb-ui {
    min-width: max-content;
    left: 100%;
    top: 0;
    transform: translateX(-100%) translateY(-100%);
}

.js-lpb-component [data-type="container"].js-lpb-component .lpb-btn--add{
}

.js-lpb-component [data-type="container"].js-lpb-component .lpb-btn--add.center {
    top: 50%;
    transform: translate(-50%, -50%);
    display: block !important;
}

body .oklahoma-color-controls-row {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 1rem;
    flex-direction: column;
}

body .oklahoma-color-controls-row > * {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    margin:0;
    padding:1rem;
}

.oklahoma-advanced-editor .oklahoma-color-controls-row--colors > .details-wrapper,
.oklahoma-advanced-editor .oklahoma-color-controls-row--columns > .details-wrapper,
.oklahoma-advanced-editor .oklahoma-color-controls-row--background_media > .details-wrapper,
.oklahoma-advanced-editor .oklahoma-color-controls-row--columns_alignment > .details-wrapper{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap:16px;
  }

body .oklahoma-color-controls-row .description {
    display: none;
}

body .oklahoma-color-controls-row input,
body .oklahoma-color-controls-row select {
    width: 100%;
    max-width: 100%;
}

body fieldset[data-drupal-selector="edit-field-background-variable"] .form-radios,
body fieldset[data-drupal-selector="edit-field-text-color-variable"] .form-radios {
    display: flex;;
    gap: 8px;
}

body fieldset[data-drupal-selector="edit-field-background-variable"] .form-item,
body fieldset[data-drupal-selector="edit-field-background-variable"] .js-form-item,
body fieldset[data-drupal-selector="edit-field-text-color-variable"] .form-item,
body fieldset[data-drupal-selector="edit-field-text-color-variable"] .js-form-item {
    margin: 0!important;
    min-width: 0;
}


body fieldset[data-drupal-selector="edit-field-background-variable"] input[type="radio"],
body fieldset[data-drupal-selector="edit-field-text-color-variable"] input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body fieldset[data-drupal-selector="edit-field-background-variable"] label.option,
body fieldset[data-drupal-selector="edit-field-text-color-variable"] label.option {
    display: block;
    padding: 0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 0px;
    line-height: 0;
}

body fieldset[data-drupal-selector="edit-field-background-variable"] label.option::before,
body fieldset[data-drupal-selector="edit-field-text-color-variable"] label.option::before {
    content: "";
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    display:inline-flex;
}

body fieldset[data-drupal-selector="edit-field-background-variable"] input[type="radio"]:checked + label.option,
body fieldset[data-drupal-selector="edit-field-text-color-variable"] input[type="radio"]:checked + label.option {
    border-color: var(--gin-color-primary);
    box-shadow: inset 0 0 0 1px var(--gin-color-primary);
    border:2px solid;
}

body fieldset[data-drupal-selector="edit-field-background-variable"] input[type="radio"]:focus + label.option,
body fieldset[data-drupal-selector="edit-field-background-variable"] input[type="radio"]:focus-visible + label.option,
body fieldset[data-drupal-selector="edit-field-text-color-variable"] input[type="radio"]:focus + label.option,
body fieldset[data-drupal-selector="edit-field-text-color-variable"] input[type="radio"]:focus-visible + label.option {
    outline: 2px solid var(--gin-color-primary-light);
    outline-offset: 2px;
}

body fieldset[data-drupal-selector="edit-field-background-variable"] input[type="radio"][value="_none"] + label.option::before,
body fieldset[data-drupal-selector="edit-field-text-color-variable"] input[type="radio"][value="_none"] + label.option::before {
    background:
        linear-gradient(135deg, transparent 45%, #d72323 45%, #d72323 55%, transparent 55%),
        #fff;
}

body fieldset[data-drupal-selector="edit-field-background-variable"] input[type="radio"][value="primary"] + label.option::before,
body fieldset[data-drupal-selector="edit-field-text-color-variable"] input[type="radio"][value="primary"] + label.option::before {
    background: var(--color-primary, #1D1D1B);
}

body fieldset[data-drupal-selector="edit-field-background-variable"] input[type="radio"][value="secondary"] + label.option::before,
body fieldset[data-drupal-selector="edit-field-text-color-variable"] input[type="radio"][value="secondary"] + label.option::before {
    background: var(--color-secondary, #E5007D);
}

body fieldset[data-drupal-selector="edit-field-background-variable"] input[type="radio"][value="text-dark"] + label.option::before,
body fieldset[data-drupal-selector="edit-field-text-color-variable"] input[type="radio"][value="text-dark"] + label.option::before {
    background: var(--color-text-dark, #1E1D1D);
}

body fieldset[data-drupal-selector="edit-field-background-variable"] input[type="radio"][value="text-light"] + label.option::before,
body fieldset[data-drupal-selector="edit-field-text-color-variable"] input[type="radio"][value="text-light"] + label.option::before {
    background: var(--color-text-light, #ffffff);
}

body fieldset[data-drupal-selector="edit-field-background-variable"] input[type="radio"][value="grey-dark"] + label.option::before,
body fieldset[data-drupal-selector="edit-field-text-color-variable"] input[type="radio"][value="grey-dark"] + label.option::before {
    background: var(--color-grey-dark, #3D3D3D);
}

body fieldset[data-drupal-selector="edit-field-background-variable"] input[type="radio"][value="grey-medium"] + label.option::before,
body fieldset[data-drupal-selector="edit-field-text-color-variable"] input[type="radio"][value="grey-medium"] + label.option::before {
    background: var(--color-grey-medium, #A7A6A6);
}

body fieldset[data-drupal-selector="edit-field-background-variable"] input[type="radio"][value="grey-light"] + label.option::before,
body fieldset[data-drupal-selector="edit-field-text-color-variable"] input[type="radio"][value="grey-light"] + label.option::before {
    background: var(--color-grey-light, #F8F8F8);
}

body fieldset[data-drupal-selector="edit-field-background-variable"] input[type="radio"][value="black"] + label.option::before,
body fieldset[data-drupal-selector="edit-field-text-color-variable"] input[type="radio"][value="black"] + label.option::before {
    background: var(--color-black, #000000);
}

body fieldset[data-drupal-selector="edit-field-background-variable"] input[type="radio"][value="white"] + label.option::before,
body fieldset[data-drupal-selector="edit-field-text-color-variable"] input[type="radio"][value="white"] + label.option::before {
    background: var(--color-white, #ffffff);
    border-color: rgba(0, 0, 0, 0.24);
}

body .oklahoma-color-palette .form-radios {
    display: flex;
    gap: 8px;
}

body .oklahoma-color-palette .form-item,
body .oklahoma-color-palette .js-form-item {
    margin: 0 !important;
    min-width: 0;
}

body .oklahoma-color-palette input[type="radio"] {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

body .oklahoma-color-palette label.option {
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    font-size: 0;
    line-height: 0;
    padding: 0;
}

body .oklahoma-color-palette label.option::before {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    content: "";
    display: inline-flex;
    flex: 0 0 18px;
    height: 18px;
    width: 18px;
}

body .oklahoma-color-palette input[type="radio"]:checked + label.option {
    border: 2px solid;
    border-color: var(--gin-color-primary);
    box-shadow: inset 0 0 0 1px var(--gin-color-primary);
}

body .oklahoma-color-palette input[type="radio"]:focus + label.option,
body .oklahoma-color-palette input[type="radio"]:focus-visible + label.option {
    outline: 2px solid var(--gin-color-primary-light);
    outline-offset: 2px;
}

body .oklahoma-color-palette input[type="radio"][value="_none"] + label.option::before {
    background:
        linear-gradient(135deg, transparent 45%, #d72323 45%, #d72323 55%, transparent 55%),
        #fff;
}

body .oklahoma-color-palette input[type="radio"][value="primary"] + label.option::before {
    background: var(--color-primary, #1D1D1B);
}

body .oklahoma-color-palette input[type="radio"][value="secondary"] + label.option::before {
    background: var(--color-secondary, #E5007D);
}

body .oklahoma-color-palette input[type="radio"][value="text-dark"] + label.option::before {
    background: var(--color-text-dark, #1E1D1D);
}

body .oklahoma-color-palette input[type="radio"][value="text-light"] + label.option::before {
    background: var(--color-text-light, #ffffff);
}

body .oklahoma-color-palette input[type="radio"][value="grey-dark"] + label.option::before {
    background: var(--color-grey-dark, #3D3D3D);
}

body .oklahoma-color-palette input[type="radio"][value="grey-medium"] + label.option::before {
    background: var(--color-grey-medium, #A7A6A6);
}

body .oklahoma-color-palette input[type="radio"][value="grey-light"] + label.option::before {
    background: var(--color-grey-light, #F8F8F8);
}

body .oklahoma-color-palette input[type="radio"][value="black"] + label.option::before {
    background: var(--color-black, #000000);
}

body .oklahoma-color-palette input[type="radio"][value="white"] + label.option::before {
    background: var(--color-white, #ffffff);
    border-color: rgba(0, 0, 0, 0.24);
}

@media (max-width: 1280px) {
    body .oklahoma-color-controls-row {
        flex-wrap: wrap;
    }

    body .oklahoma-color-controls-row > * {
        flex-basis: calc(50% - 6px);
        min-width: 240px;
    }

    body fieldset[data-drupal-selector="edit-field-background-variable"] .form-radios,
    body fieldset[data-drupal-selector="edit-field-text-color-variable"] .form-radios {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lpb-controls:not(.is-layout) .lpb-controls-label{
    color:var(--gin-color-text-light);
    font-size:16px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0px;
}

[data-layout="navbar_layout"] .use-ajax.before,
[data-layout="navbar_layout"] .use-ajax.after{
    display: none!important;
}

@media (min-width: 61em) {
    .gin--horizontal-toolbar #toolbar-administration .toolbar-menu-administration .menu-item.oklahoma-toolbar-delayed-hover {
        display: block;
    }

    .gin--horizontal-toolbar #toolbar-administration .toolbar-menu-administration .menu-item.oklahoma-toolbar-delayed-hover > .toolbar-menu {
        display: block;
        z-index: 2;
        border-inline-end: 1px solid rgba(0, 0, 0, .075);
    }

    .gin--horizontal-toolbar #toolbar-administration .toolbar-menu-administration .toolbar-menu.oklahoma-toolbar-delayed-menu {
        width: var(--oklahoma-toolbar-delayed-menu-width);
    }

    .gin--horizontal-toolbar #toolbar-administration .toolbar-menu-administration .toolbar-menu.oklahoma-toolbar-delayed-menu > .menu-item {
        float: none;
        display: block;
        border-block: 0 none;
        border-inline-start: 0 none;
    }

    .gin--horizontal-toolbar #toolbar-administration .toolbar-menu-administration .toolbar-menu.oklahoma-toolbar-delayed-menu > .menu-item > .toolbar-icon,
    .gin--horizontal-toolbar #toolbar-administration .toolbar-menu-administration .toolbar-menu.oklahoma-toolbar-delayed-menu > .menu-item > .toolbar-box > .toolbar-icon {
        display: block;
        width: 100%;
        max-width: calc(100% - var(--gin-spacing-l));
    }

    [dir="ltr"] .gin--horizontal-toolbar #toolbar-administration .toolbar-menu-administration .menu-item.oklahoma-toolbar-delayed-hover > .toolbar-menu {
        box-shadow: 7px 0 16px rgba(0, 0, 0, .075), -12px 0 0 0 var(--gin-bg-layer);
    }

    [dir="rtl"] .gin--horizontal-toolbar #toolbar-administration .toolbar-menu-administration .menu-item.oklahoma-toolbar-delayed-hover > .toolbar-menu {
        box-shadow: -7px 0 16px rgba(0, 0, 0, .075), 12px 0 0 0 var(--gin-bg-layer);
    }

    .gin--horizontal-toolbar #toolbar-administration .toolbar-tray-horizontal li.menu-item--expanded > ul.toolbar-menu.oklahoma-toolbar-floating {
        position: fixed;
        inset-block-start: var(--oklahoma-toolbar-submenu-top, 0);
        inset-inline-start: var(--oklahoma-toolbar-submenu-left, 0);
        z-index: 503;
        margin: 0;
    }
}

[data-region="container"] .center {
    top: 100%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    padding: 10px 10px 10px 10px;
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: 0 center;
    color: #fff;
    font-size: 14px;
    background: var(--gin-color-primary);
    border: none;
}

[data-region="container"] .center:hover{
    background: var(--gin-color-primary-active);
}

[data-region="container"] .center:before{
    content:"Ajouter un élément";
}


[data-drupal-selector="edit-field-menu-items-dragdrop-field-menu-items"] .paragraphs-dragdrop__list .paragraphs-dragdrop__list{
    display: none!important;
}

body .gin--horizontal-toolbar #toolbar-administration{
    z-index: 1000000000000;
}

/* Navbar form */
body.editor .block-navbar-form .js-lpb-component + .lpb-btn--add.center,
body.editor .block-navbar-form .js-lpb-component .lpb-btn--add,
body.editor .block-navbar-form .is-layout,
body.editor .block-navbar-form .field--name-info,
body.editor [data-type="bouton_prise_de_rendez_vous"] .lpb-controls,
body.editor [data-type="gestion_des_cookies"] .lpb-controls,
body.editor [data-type="logo_du_site"] .lpb-controls,
body.editor [data-drupal-selector="edit-field-menu-items-1-subform"]  .js-lpb-component [data-type="colonnes_mega_menu"] > .lpb-btn--add,
body.editor [data-layout="mega_menu_layout"] > .lpb-btn--add{
    display: none!important;
}


/* Navbar form */
body.editor .block-top-bar-form .js-lpb-component + .lpb-btn--add.center,
body.editor .block-top-bar-form .js-lpb-component .lpb-btn--add,
body.editor .block-top-bar-form .is-layout,
body.editor .block-top-bar-form .field--name-info{
    display: none!important;
}

/* Navbar form */
body.editor .block-footer-form .js-lpb-component + .lpb-btn--add.center,
body.editor .block-footer-form .js-lpb-component .lpb-btn--add,
body.editor .block-footer-form .is-layout,
body.editor .block-footer-form .field--name-info,
body.editor [data-type="logo_realisations"] .lpb-controls,
body.editor [data-type="liens_mentions_legales"] .lpb-controls,
body.editor .menu-item__system-admin_content,
body.editor .menu-item__system-admin_structure{
    display: none!important;
}

.lpb-component-list__group > *{
    gap:24px;
}

body.editor .type-from_library{
    display: none;
}

.lpb-component-list__group--content:not(:nth-child(1)){
    margin-top:80px;
}


[data-drupal-selector] #layout-paragraphs-element{
    display: none!important;
}

[data-drupal-selector="edit-layout-paragraphs-component-form-colonnes"] #layout-paragraphs-element,
[data-drupal-selector="edit-layout-paragraphs-component-form-container"] #layout-paragraphs-element{
    display: block!important;
}

[data-drupal-selector="edit-layout-paragraphs-component-form-carte-magasin"] .field--widget-readonly-html-field-widget{
    padding: 30px;
}

body .ok-component-chooser{
    background:#1b1b1d;
    padding-left: var(--gin-spacing-l);
    padding-right: var(--gin-spacing-l);
    min-width: calc(100% + var(--gin-spacing-l)* 2);
    margin-left: calc((-1)* var(--gin-spacing-l));
    margin-right: calc((-1)* var(--gin-spacing-l));
    padding-bottom: calc(var(--gin-spacing-l) * 2);
}

.lpb-component-list__search{
    display:none;
}
body .lpb-component-list__group > div > div{
    width: 300px;
    display: block;
}

body .lpb-component-list__item a{
    --space:12px;
    flex-direction: column;
    align-items: start;
    padding: var(--space);
    border: 1px solid lightgrey;
    border-radius: 16px;
    background:#fff;
    overflow: hidden;
    font-weight: 700;
    height: 100%;
    border:none;
    justify-content: space-between;
    transition:background ease-in .3s;
    box-shadow:0px 0px 15px rgba(0,0,0,0.1);
}

body .lpb-component-list__item a:hover{
    color:#fff;
    background: var(--button-bg-color--primary);
    box-shadow:0px 20px 30px rgba(255,255,255,0.3);
    outline:2px solid #fff;
}
body .lpb-component-list__item a:hover img{
    opacity:0.7;
}

body .lpb-component-list__item img {
    margin: calc((-1) * var(--space));
    max-width: calc(100% + var(--space) *2);
    width: calc(100% + var(--space)* 2);
    margin-bottom: 10px;
}



/* Page de config */

[data-drupal-selector="edit-col1"]{
    display: flex;
    flex: 1;
    gap: 20px;
    flex-wrap: wrap;
}

[data-drupal-selector="edit-col1"] > div:not(.field--type-readonly-html-field){
    width:500px;
    background: var(--gin-bg-header);
    padding: 0px 30px;
    border-radius: 16px;
}

[data-drupal-selector="edit-col1"] > div:not(.field--type-readonly-html-field).field--type-entity-reference-revisions {
    width:100%;
    background: var(--gin-bg-header);
    padding: 0px 30px;
    border-radius: 16px;
}

[data-drupal-selector="edit-col1"] > div:not(.field--type-readonly-html-field).field--type-entity-reference-revisions .paragraphs-subform {
    display:flex;
    gap:10px;
}

[data-drupal-selector="edit-col1"] > div:not(.field--type-readonly-html-field).field--type-entity-reference-revisions .paragraphs-subform .form-element{
    max-width: 100px;
}

[data-drupal-selector="edit-col2"]{
    display: flex;
    flex: 1;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 80px;
}

[data-drupal-selector="edit-col2"] > div:not(.field--type-readonly-html-field){
    width:200px;
    background: var(--gin-bg-header);
    padding: 0px 30px;
    border-radius: 16px;
}

[data-drupal-selector="edit-col1"] .field--type-readonly-html-field,
[data-drupal-selector="edit-col2"] .field--type-readonly-html-field,
[data-drupal-selector="edit-col3"] .field--type-readonly-html-field{
    width: 100%;
    font-weight: 700;
}

[data-drupal-selector="edit-col3"]{
    display: flex;
    flex: 1;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 80px;
}

[data-drupal-selector="edit-col3"] > div:not(.field--type-readonly-html-field){
    width:200px;
    background: var(--gin-bg-header);
    padding: 0px 30px;
    border-radius: 16px;
}

[name="field_variables_json[0][value]"]{
    font-size:14px;
    line-height: 1.2;
}


.js-form-item-field-balises-0-basic-abstract{
    display: none;
}

.lpb-component-list__item.type-categorie:nth-child(1),
.lpb-component-list__item.type-categorie:nth-child(1) + .type-sous_menu,
.lpb-component-list__item.type-categorie:nth-child(1) + .type-sous_menu,
.lpb-component-list__item.type-categorie:nth-child(1) + .type-sous_menu + .type-paste_clipboard,
.lpb-component-list__item.type-categorie:nth-child(1) + .type-sous_menu + .type-paste_clipboard + .type-paste_clipboard_form{
    display: none!important;
}

/* activer réseaux sociaux */

.field_activer_reseaux_sociaux_0 [href="/admin/nxbackoffice/reseaux-sociaux"]{
    display: none!important;
}

.field_activer_multi_magasin_0 [href="/node/add/magasin"]{
    display: none!important;
}

.field_activer_la_top_barre_0 .toolbar-icon-top-barre{
    display: none!important;
}

.field_instagram_0 [href="/admin/config/instagram-photos"]{
    display: none!important;
}

.field_activer_blog_0 [href="/admin/content/articles"]{
    display: none!important;
}



.rdv-disabled [href="/admin/nxbackoffice/prise-de-rdv"],
.rdv-disabled [href="/admin/nxbackoffice/appointment"],
.rdv-disabled [data-drupal-selector="edit-field-message-prise-de-rdv-wrapper"]{
    display: none!important;
}


/* Tabs */


.oklahoma-tabs-content > div {
    display: none;
  }
  
.oklahoma-tabs-content > div.is-active {
    display: block;
  }

/* Variables du site. */
.config-page-variables-du-site-form {
    --oklahoma-variables-card: var(--gin-bg-header, #eaf4fb);
    --oklahoma-variables-accent: var(--gin-color-primary, #0079cf);
    padding: 0 30px 30px;
}

.config-page-variables-du-site-form > footer,
.config-page-variables-du-site-form .oklahoma-sitemap-footer-link,
.config-page-variables-du-site-form [data-drupal-selector="edit-reset"] {
    display: none;
}

.config-page-variables-du-site-form label.form-required::after {
    margin-left: 2px;
    color: #e00;
    content: "*";
}

.config-page-variables-du-site-form .form-actions .button--primary {
    height: 36px;
    min-height: 36px;
    padding: 7px 16px;
    border-color: var(--oklahoma-variables-accent);
    background: var(--oklahoma-variables-accent);
    color: #fff;
    font-size: 14px;
    line-height: 20px;
}

.oklahoma-variables-tabs__list,
.oklahoma-secondary-tabs .tabs {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 5px 8px;
    overflow-x: auto;
    list-style: none;
}

.oklahoma-variables-tabs .tabs__tab,
.oklahoma-variables-tabs .tabs__tab:not(.is-active) {
    display: block;
}

.config-page-variables-du-site-form .oklahoma-variables-tabs .tabs__link {
    min-height: 40px;
    padding: 8px 15px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: var(--gin-color-text, #222330);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.config-page-variables-du-site-form .oklahoma-variables-tabs .tabs__link:hover,
.config-page-variables-du-site-form .oklahoma-variables-tabs .tabs__link:focus-visible,
.config-page-variables-du-site-form .oklahoma-variables-tabs .tabs__link.is-active {
    border-bottom-color: var(--oklahoma-variables-accent);
    color: var(--oklahoma-variables-accent);
    outline: 0;
    box-shadow: none;
}

.config-page-variables-du-site-form .oklahoma-variables-tabs .tabs__link:focus {
    min-height: 40px;
    margin: 0;
    padding: 8px 15px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 8px 8px 0 0;
    background: transparent;
    outline: 0;
    box-shadow: none;
}

.config-page-variables-du-site-form .oklahoma-variables-tabs .tabs__link.is-active:focus {
    border-bottom-color: var(--oklahoma-variables-accent);
    color: var(--oklahoma-variables-accent);
}

.oklahoma-variables-panel,
.oklahoma-secondary-panel {
    padding: 16px 0;
}

.oklahoma-variables-panel[hidden],
.oklahoma-secondary-panel[hidden] {
    display: none;
}

.oklahoma-logo-grid,
.oklahoma-global-fonts,
.oklahoma-color-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 20px;
}

.oklahoma-logo-grid > .form-wrapper,
.oklahoma-global-fonts > .form-wrapper,
.oklahoma-color-grid > .form-wrapper,
.oklahoma-font-import,
.oklahoma-typography-card,
.oklahoma-visual-editor-notice,
.oklahoma-custom-code-field {
    padding: 20px;
    border-radius: 15px;
    background: var(--oklahoma-variables-card);
}

.oklahoma-logo-grid .media-library-item,
.oklahoma-logo-grid .media-library-selection {
    max-width: 100%;
}

/* A single selected logo uses its card, rather than the library grid. */
.config-page-variables-du-site-form .oklahoma-logo-grid .media-library-item--grid {
    flex: 0 1 260px;
    width: min(260px, 100%);
}

.config-page-variables-du-site-form .oklahoma-logo-grid .media-library-item__preview {
    height: 180px;
    min-height: 0;
    padding-block-end: 0;
}

.config-page-variables-du-site-form .oklahoma-logo-grid .media-library-item__preview .field img,
.config-page-variables-du-site-form .oklahoma-logo-grid .media-library-item__preview .field svg {
    object-fit: contain;
}

.oklahoma-font-settings {
    display: grid;
    gap: 40px;
    margin-bottom: 24px;
}

.oklahoma-font-import {
    width: min(500px, 100%);
    box-sizing: border-box;
    padding: 20px 30px 16px;
}

.oklahoma-font-import textarea {
    height: 68px;
    min-height: 68px;
}

.oklahoma-font-import .form-item__description {
    margin-top: 6px;
    font-size: 13px;
    line-height: 18px;
}

.oklahoma-global-fonts {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.oklahoma-global-fonts > .form-wrapper {
    padding: 20px 30px;
}

.oklahoma-global-fonts input {
    height: 36px;
}

.oklahoma-global-fonts .form-item__description {
    margin-top: 7px;
    color: #64748b;
    font-size: 11px;
    line-height: 15px;
}

.oklahoma-global-fonts > .form-wrapper,
.oklahoma-color-grid > .form-wrapper {
    display: flex;
    align-items: center;
    min-height: 106px;
    box-sizing: border-box;
}

#variables-panel-colors {
    padding-bottom: 4px;
}

.oklahoma-global-fonts .form-item,
.oklahoma-color-grid .form-item {
    width: 100%;
    margin: 0;
}

.oklahoma-secondary-tabs > .tabs-wrapper {
    margin: 0 0 8px;
}

.oklahoma-secondary-tabs .tabs {
    gap: 2px;
    padding-left: 4px;
}

.config-page-variables-du-site-form .oklahoma-secondary-tabs .tabs__link {
    min-height: 36px;
    font-size: 13px;
}

.config-page-variables-du-site-form .oklahoma-secondary-tabs .tabs__link:focus {
    min-height: 36px;
}

.config-page-variables-du-site-form .oklahoma-secondary-tabs .tabs__link.is-active {
    border-bottom-color: var(--gin-color-text, #222330);
    color: var(--gin-color-text, #222330);
}

.config-page-variables-du-site-form .oklahoma-secondary-tabs .tabs__link.is-active::before {
    display: none;
    border: 0;
    content: none;
}

.config-page-variables-du-site-form .oklahoma-secondary-tabs .tabs__link.is-active:focus {
    border-bottom-color: var(--gin-color-text, #222330);
    color: var(--gin-color-text, #222330);
}

.oklahoma-typography-card {
    margin-bottom: 20px;
    padding: 21px 30px;
}

.oklahoma-typography-card__title {
    margin: 0 0 14px;
    color: var(--oklahoma-variables-accent);
    font-size: 20px;
    line-height: 24px;
}

.oklahoma-typography-card__layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
}

.oklahoma-font-preview {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 100px;
    padding: 8px 20px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--gin-bg-layer, #fff);
}

.oklahoma-font-preview__sample {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.oklahoma-font-preview__device {
    flex: none;
    color: var(--oklahoma-variables-accent);
    font-size: 14px;
    line-height: 1;
}

.oklahoma-typography-card__controls {
    display: grid;
    grid-template-columns: minmax(0, 660px) 160px;
    justify-content: space-between;
    gap: 40px;
    min-width: 0;
}

.oklahoma-typography-control__label {
    display: block;
    margin-bottom: 12px;
    color: var(--oklahoma-variables-accent);
    font-size: 12px;
    text-transform: uppercase;
}

.oklahoma-typography-control__label i {
    width: 16px;
    margin-right: 8px;
    text-align: center;
}

.oklahoma-typography-control .field--type-entity-reference-revisions > .form-item > .form-item__label,
.oklahoma-typography-control .paragraph-type-title,
.oklahoma-typography-control .field-multiple-table > thead,
.oklahoma-typography-control .paragraph-top,
.oklahoma-typography-control .paragraph-bullet,
.oklahoma-typography-control .paragraphs-tabs-wrapper > .paragraphs-tabs,
.oklahoma-typography-control .tableresponsive-toggle-columns,
.oklahoma-typography-control .paragraphs-dropdown-actions,
.oklahoma-typography-control .paragraphs-icon-button,
.oklahoma-typography-control .field-dragdrop-mode-submit,
.oklahoma-typography-control .paragraphs-add-wrapper {
    display: none !important;
}

.oklahoma-typography-control .field-multiple-table,
.oklahoma-typography-control .field-multiple-table tbody,
.oklahoma-typography-control .field-multiple-table tr,
.oklahoma-typography-control .field-multiple-table td {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    border: 0;
    background: transparent;
}

.config-page-variables-du-site-form .oklahoma-typography-control .paragraphs-tabs-wrapper .field-multiple-table .draggable,
.config-page-variables-du-site-form .oklahoma-typography-control .paragraphs-tabs-wrapper .field-multiple-table .draggable:hover,
.config-page-variables-du-site-form .oklahoma-typography-control .paragraphs-tabs-wrapper .field-multiple-table .draggable:focus-within {
    border: 0 !important;
    box-shadow: none !important;
}

.oklahoma-typography-control .paragraphs-subform {
    display: grid !important;
    grid-template-columns: 60px 100px 100px 80px 80px 100px 80px;
    gap: 10px;
    margin: 0 !important;
}

.oklahoma-typography-control .paragraphs-subform .form-item {
    width: auto;
    max-width: none !important;
    margin: 0;
}

.oklahoma-typography-control .paragraphs-subform .form-item__label,
.oklahoma-typography-control .paragraphs-subform label {
    display: block;
    height: 24px;
    font-size: 11px;
    line-height: 24px;
    white-space: nowrap;
}

.oklahoma-font-import textarea,
.oklahoma-global-fonts input,
.oklahoma-typography-control .paragraphs-subform input {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    box-sizing: border-box;
    padding: 7px 10px;
    border: 1px solid #9ca3af;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    line-height: 18px;
}

.oklahoma-typography-control .paragraphs-subform input {
    height: 36px;
}

.oklahoma-typography-control--mobile .paragraphs-subform {
    grid-template-columns: 60px 80px;
    gap: 10px;
}

.oklahoma-typography-control--mobile .field--name-field-font-family,
.oklahoma-typography-control--mobile .field--name-field-font-style,
.oklahoma-typography-control--mobile .field--name-field-letter-spacing,
.oklahoma-typography-control--mobile .field--name-field-text-decoration,
.oklahoma-typography-control--mobile .field--name-field-text-transform {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1180px) {
    .oklahoma-typography-card__layout {
        grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    }

    .oklahoma-typography-card__controls {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .config-page-variables-du-site-form {
        padding-right: 16px;
        padding-left: 16px;
    }

    .oklahoma-global-fonts {
        grid-template-columns: minmax(0, 1fr);
    }

    .oklahoma-typography-card__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .oklahoma-typography-control {
        overflow-x: auto;
    }
}

.oklahoma-color-grid > .form-wrapper {
    height: 90px;
    min-height: 90px;
    padding: 20px 30px;
}

.oklahoma-color-grid .form-item {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: 130px 100px 50px;
    gap: 40px;
    align-items: center;
    width: min(360px, 100%);
    min-width: 0;
}

.oklahoma-color-grid .form-item__label,
.oklahoma-color-grid label {
    display: block;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    text-transform: uppercase;
}

@media (max-width: 1300px) {
    .oklahoma-color-grid--zones {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }

    .oklahoma-color-grid .form-item {
        grid-template-columns: minmax(0, 1fr) 100px 50px;
        gap: 14px;
        width: 100%;
    }
}

.oklahoma-hex-color,
.oklahoma-color-grid select {
    width: 100%;
    height: 36px;
    min-width: 0;
    padding: 7px 14px;
    border: 1px solid #9ca3af;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    line-height: 18px;
}

.oklahoma-color-grid--zones .form-item {
    position: relative;
    grid-template-columns: 130px minmax(0, 1fr) 50px;
    gap: 14px;
    width: 100%;
}

.oklahoma-color-grid--zones > .form-wrapper {
    padding-right: 20px;
    padding-left: 20px;
}

.oklahoma-color-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.oklahoma-color-select {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
}

.oklahoma-color-select.is-open {
    z-index: 20;
}

.oklahoma-color-select__trigger {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 14px;
    gap: 10px;
    align-items: center;
    width: 100%;
    height: 40px;
    padding: 7px 12px;
    border: 1px solid #9ca3af;
    border-radius: 8px;
    background: #fff;
    color: var(--gin-color-text, #222330);
    font: inherit;
    font-size: 12px;
    line-height: 18px;
    text-align: left;
    cursor: pointer;
}

.oklahoma-color-select__trigger:hover {
    border-color: var(--oklahoma-variables-accent);
}

.oklahoma-color-select__trigger:focus-visible,
.oklahoma-color-select.is-open .oklahoma-color-select__trigger {
    border-color: var(--oklahoma-variables-accent);
    outline: 2px solid color-mix(in srgb, var(--oklahoma-variables-accent) 24%, transparent);
    outline-offset: 1px;
}

.oklahoma-color-select__selected-dot,
.oklahoma-color-select__option-dot {
    display: block;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 50%;
}

.oklahoma-color-select__selected-dot.is-empty,
.oklahoma-color-select__option-dot.is-empty,
.oklahoma-color-swatch.is-empty {
    border-style: dashed;
    background: transparent;
}

.oklahoma-color-select__value,
.oklahoma-color-select__option-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oklahoma-color-select__chevron {
    color: #59636e;
    font-size: 11px;
    text-align: center;
    transition: transform 160ms ease;
}

.oklahoma-color-select.is-open .oklahoma-color-select__chevron {
    transform: rotate(180deg);
}

.oklahoma-color-select__listbox {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 100;
    width: max(100%, 260px);
    max-height: 304px;
    box-sizing: border-box;
    padding: 6px;
    overflow-y: auto;
    border: 1px solid #9ca3af;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(34, 35, 48, 0.16);
}

.oklahoma-color-select.is-above .oklahoma-color-select__listbox {
    top: auto;
    bottom: calc(100% + 6px);
}

.oklahoma-color-select__listbox[hidden] {
    display: none;
}

.oklahoma-color-select__option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 36px;
    padding: 7px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--gin-color-text, #222330);
    font: inherit;
    font-size: 12px;
    line-height: 18px;
    text-align: left;
    cursor: pointer;
}

.oklahoma-color-select__option:hover,
.oklahoma-color-select__option:focus-visible {
    outline: 0;
    background: #f0f7fc;
}

.oklahoma-color-select__option.is-selected {
    background: #e2f1fb;
    color: #005ea8;
    font-weight: 700;
}

.oklahoma-color-swatch,
.oklahoma-color-grid input[type="color"].oklahoma-color-swatch {
    display: inline-block;
    width: 50px;
    height: 50px;
    min-width: 50px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--gin-border-color, #c2c3ca);
    border-radius: 50%;
    cursor: pointer;
}

.oklahoma-color-grid input[type="color"].oklahoma-color-swatch:focus-visible {
    border-color: var(--oklahoma-variables-accent);
    outline: 2px solid color-mix(in srgb, var(--oklahoma-variables-accent) 24%, transparent);
    outline-offset: 3px;
}

.oklahoma-color-grid input[type="color"].oklahoma-color-swatch::-webkit-color-swatch-wrapper {
    padding: 0;
}

.oklahoma-color-grid input[type="color"].oklahoma-color-swatch::-webkit-color-swatch {
    border: 0;
    border-radius: 50%;
}

.oklahoma-visual-editor-notice {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.oklahoma-custom-code-field textarea {
    min-height: 340px;
    font-family: var(--font-family-monospace, monospace);
}

.oklahoma-custom-code-field {
    padding: 0;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #fff;
    box-shadow: 0 8px 24px rgb(15 23 42 / 8%);
}

.oklahoma-code-editor-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 46px;
    padding: 0 16px;
    border-bottom: 1px solid #dbe5ec;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
}

.oklahoma-code-editor-bar__language {
    padding: 4px 8px;
    border-radius: 5px;
    background: var(--oklahoma-variables-accent);
    color: #fff;
    font-weight: 700;
    letter-spacing: .04em;
}

.oklahoma-code-editor-bar__shortcut {
    margin-left: auto;
}

.oklahoma-code-editor-bar kbd {
    padding: 2px 5px;
    border: 1px solid #cbd5e1;
    border-bottom-width: 2px;
    border-radius: 4px;
    background: #fff;
    color: #334155;
    font: 11px/1.2 var(--font-family-monospace, monospace);
}

.oklahoma-custom-code-field .field--name-field-custom-css,
.oklahoma-custom-code-field .field--name-field-custom-js,
.oklahoma-custom-code-field .form-item {
    margin: 0;
}

.oklahoma-custom-code-field .form-item__label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.oklahoma-custom-code-field .CodeMirror {
    width: 100%;
    height: 520px;
    border: 0;
    background: #fff;
    color: #172033;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 14px;
    line-height: 1.65;
}

.oklahoma-custom-code-field .CodeMirror-gutters {
    border-right: 1px solid #e2e8f0;
    background: #f8fafc;
}

.oklahoma-custom-code-field .CodeMirror-linenumber {
    color: #94a3b8;
}

.oklahoma-custom-code-field .CodeMirror-activeline-background {
    background: #f1f7fb;
}

.oklahoma-custom-code-field .CodeMirror-selected {
    background: #dbeafe;
}

.oklahoma-custom-code-field .CodeMirror-matchingbracket {
    border-bottom: 2px solid #16a34a;
    color: #15803d !important;
}

.oklahoma-custom-code-field .cm-s-default .cm-comment {
    color: #64748b;
    font-style: italic;
}

.oklahoma-custom-code-field .cm-s-default .cm-atom,
.oklahoma-custom-code-field .cm-s-default .cm-number {
    color: #c2410c;
}

.oklahoma-custom-code-field .cm-s-default .cm-attribute,
.oklahoma-custom-code-field .cm-s-default .cm-property {
    color: #0369a1;
}

.oklahoma-custom-code-field .cm-s-default .cm-builtin,
.oklahoma-custom-code-field .cm-s-default .cm-def,
.oklahoma-custom-code-field .cm-s-default .cm-keyword,
.oklahoma-custom-code-field .cm-s-default .cm-qualifier,
.oklahoma-custom-code-field .cm-s-default .cm-tag {
    color: #7c3aed;
}

.oklahoma-custom-code-field .cm-s-default .cm-string,
.oklahoma-custom-code-field .cm-s-default .cm-string-2 {
    color: #15803d;
}

.CodeMirror-hints {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgb(15 23 42 / 18%);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13px;
}

.CodeMirror-hint-active {
    background: var(--oklahoma-variables-accent);
}

@media (max-width: 700px) {
    .oklahoma-code-editor-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .oklahoma-code-editor-bar__shortcut {
        margin-left: 0;
    }

    .oklahoma-custom-code-field .CodeMirror {
        height: 420px;
    }
}

@media (max-width: 1100px) {
    .oklahoma-logo-grid,
    .oklahoma-color-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .oklahoma-global-fonts {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .oklahoma-typography-card__layout,
    .oklahoma-typography-card__controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .oklahoma-logo-grid,
    .oklahoma-global-fonts,
    .oklahoma-color-grid {
        grid-template-columns: 1fr;
    }

    .oklahoma-typography-control .paragraphs-subform {
        grid-template-columns: repeat(2, minmax(90px, 1fr));
    }

    .oklahoma-color-grid .form-item {
        grid-template-columns: minmax(100px, 1fr) 100px 50px;
        gap: 14px;
    }

    .oklahoma-color-grid--zones .form-item {
        grid-template-columns: minmax(100px, 1fr) minmax(140px, 166px) 50px;
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .oklahoma-color-grid--zones > .form-wrapper {
        height: auto;
        min-height: 124px;
    }

    .oklahoma-color-grid--zones .form-item {
        grid-template-columns: minmax(0, 1fr) 50px;
        gap: 12px;
    }

    .oklahoma-color-grid--zones .form-item__label,
    .oklahoma-color-grid--zones label {
        grid-column: 1 / -1;
    }

    .oklahoma-color-select__listbox {
        width: min(260px, calc(100vw - 64px));
    }
}

.layout-select__item label.option {
    display: flex;
    padding: 10px;
    outline: 1px solid #ccc;
    flex-direction: column;
    gap: 8px;
}

/* Uploaded fonts: own sub-tab of the Polices panel. */
.oklahoma-custom-fonts {
    position: relative;
    max-width: 900px;
    box-sizing: border-box;
    padding: 20px 30px 16px;
    border-radius: 15px;
    background: var(--oklahoma-variables-card);
}

.oklahoma-custom-fonts .form-item,
.oklahoma-custom-fonts .field--widget-file-generic {
    margin: 0;
}

/* The multi-value file widget is the card body, not a nested panel. */
.oklahoma-custom-fonts details,
.oklahoma-custom-fonts fieldset {
    margin: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

/* The sub-tab already names the field: keep only the "i" help. */
.oklahoma-custom-fonts summary,
.oklahoma-custom-fonts legend {
    display: none;
}

.oklahoma-custom-fonts .field--widget-file-generic {
    padding-inline-end: 36px;
}

.oklahoma-custom-fonts .details-wrapper,
.oklahoma-custom-fonts .fieldset__wrapper {
    margin: 0;
    padding: 0;
}

.oklahoma-custom-fonts table thead,
.oklahoma-custom-fonts .tabledrag-toggle-weight-wrapper {
    display: none;
}

.oklahoma-custom-fonts table {
    margin: 8px 0;
    border-radius: 10px;
    background: #fff;
}

.oklahoma-custom-fonts td {
    padding-block: 10px;
}

/* One compact row per file: file link and preview, optional name on the right. */
.oklahoma-custom-fonts .form-managed-file.has-value.is-multiple {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
    gap: 4px 16px;
    align-items: center;
}

.oklahoma-custom-fonts .form-managed-file.has-value.is-multiple > .form-managed-file__main {
    grid-column: 1;
    grid-row: 1;
}

.oklahoma-custom-fonts .form-managed-file.has-value.is-multiple > .oklahoma-custom-font-preview {
    grid-column: 1;
    grid-row: 2;
}

.oklahoma-custom-fonts .form-managed-file.has-value.is-multiple > .form-managed-file__meta-wrapper {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
}

.oklahoma-custom-fonts .form-managed-file__meta {
    padding: 0;
    border: 0;
    background: transparent;
}

.oklahoma-custom-fonts .form-managed-file__meta .form-item__label {
    font-size: 12px;
}

.oklahoma-custom-font-preview {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.oklahoma-custom-font-preview__sample {
    overflow: hidden;
    font-size: 20px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oklahoma-custom-font-preview__usage {
    color: #64748b;
    font-size: 12px;
    line-height: 16px;
}

.oklahoma-custom-font-preview__usage code {
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--oklahoma-variables-card);
    color: var(--gin-color-text, #222330);
    font-size: 12px;
}

/* Help shown on hover or keyboard focus of an "i" icon. */
.oklahoma-help-tooltip {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 2;
}

.oklahoma-help-tooltip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: #fff;
    color: var(--gin-color-primary, #0550e6);
    font: italic 700 13px/1 Georgia, serif;
    cursor: help;
}

.oklahoma-help-tooltip__content {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, 80vw);
    padding: 12px 14px;
    border-radius: 10px;
    background: #222330;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    color: #fff;
    font-size: 12px;
    line-height: 17px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
}

.oklahoma-help-tooltip__content ol {
    margin: 0 0 6px;
    padding-inline-start: 18px;
}

.oklahoma-help-tooltip:hover .oklahoma-help-tooltip__content,
.oklahoma-help-tooltip:focus-within .oklahoma-help-tooltip__content {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 760px) {
    .oklahoma-custom-fonts .form-managed-file.has-value.is-multiple {
        grid-template-columns: 1fr;
    }

    .oklahoma-custom-fonts .form-managed-file.has-value.is-multiple > * {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
}
