/* Theming */
:root {
    --gjs-primary-color: #181819;
    --gjs-secondary-color: #606060;
    --gjs-tertiary-color: #0074A9;
    --gjs-quaternary-color: #ffffff;
    --gjs-font-size: 1.125rem;
}

/* Initializing */
#gjs {
    border: none;
}

.grapesjsEditor {
    height: inherit;
}

/* Reset some default styling */
.gjs-cv-canvas {
    top: 0;
    width: 100%;
    height: 100%;
}

/* Panel top section styles */

.panel__top {
    padding: 0;
    width: 100%;
    display: flex;
    position: initial;
    justify-content: center;
    justify-content: space-between;
}

/* Panel right section styles */

.editor-row {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: nowrap;
    height: calc(100% - 35px);
}

.editor-canvas {
    flex-grow: 1;
}







/* Estilos del panel superior derecho */

.panel__right_top {
    display: flex;
}

/* Estilos del panel de controles y sus botones */

.panel__controls {
    position: initial;
}

.panel__controls .gjs-pn-btn svg {
    vertical-align: middle;
}

.panel__controls .gjs-pn-buttons {
    vertical-align: middle;
    height: 100%;
}

.panel__controls .btn-back {
    background-color: var(--gjs-secondary-color);
    font-size: 1.125rem;
    color: var(--gjs-quaternary-color);
    padding: 0.5rem 1rem;
    width: 90px;
}

.panel__controls .btn-save {
    background-color: var(--gjs-tertiary-color);
    font-size: 1.125rem;
    color: var(--gjs-quaternary-color);
    padding: 0.5rem 1rem;
    width: 90px;
}

/* Estilos del panel de dispositivos */

.panel__devices {
    position: initial;
}

.panel__devices .gjs-pn-btn svg {
    vertical-align: middle;
}

.panel__devices .gjs-pn-buttons {
    vertical-align: middle;
    height: 100%;
}

/* Estilos del panel de herramientas */

.panel__tools {
    height: 100%;
    position: initial;
}

.panel__tools .gjs-pn-btn svg {
    vertical-align: middle;
}

.panel__tools .gjs-pn-buttons {
    vertical-align: middle;
    height: 100%;
}

/* Estilos del panel switcher */

.panel__switcher {
    position: initial;
}

.panel__switcher .gjs-pn-buttons {
    vertical-align: middle;
    height: 100%;
}

.panel__switcher .gjs-pn-btn {
    text-wrap: nowrap;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.panel__switcher .gjs-pn-btn svg {
    font-size: 18px;
    vertical-align: middle;
}

/* Estilos del panel lateral derecho */

.panel__right {
    flex-basis: 20vw;
    min-width: min-content;
    position: relative;
    overflow-y: auto;
}

/* Estilos del panel de estilos */

.styles-container .gjs-sm-sector-title {
    color: var(--gjs-quaternary-color);
}

.styles-container .gjs-radio-items {
    flex-wrap: wrap;
}

.styles-container .gjs-radio-item input:checked+.gjs-radio-item-label {
    color: var(--gjs-quaternary-color);
    background-color: var(--gjs-tertiary-color);
}

/* Estilos del panel de bloques */

.blocks-container .gjs-title {
    color: var(--gjs-quaternary-color);
    display: flex;
    gap: 0.5rem;
    min-height: 36px;
}

.blocks-container .gjs-block {
    width: 6.5vw;
    height: auto;
    min-height: auto;
}

.blocks-container .gjs-block .gjs-block__media {
    font-size: 2.25rem;
}

.blocks-container .gjs-block-label {
    font-size: 1.125rem;
    overflow: visible;
}