/***** Fix Admin panel *****/
body.rossa-plugin #wpcontent {
    padding-left: 0;
}

/* Sidebar open */
body.rossa-plugin .wp-responsive-open #wpbody {
    /*right: -14.6em;*/
    right: 0;
}

/* Footer */
body.rossa-plugin #wpfooter {
    display: none;
}

/* Mode pc */
@media (min-width: 783px) {
    body.rossa-plugin #wpcontent {
        padding-left: 0;
    }
}

/***** General admin variables *****/
:root {
    --rossa-admin-max-width: 1440px;
}


/***** Reset styles for rossa plugin *****/
.rossa-show {
    display: flex !important;
}

.rossa-hide {
    display: none !important;
}

.rossa-dropdown-transition {
    transition: all 0.3s ease;
}

.rossa-dropdown-up {

    transform: rotate(180deg);
}

/* Admin bar */
.rossa-admin-bar__mode-dev {
    background-color: var(--rossa-color-primary);
    color: #fff;
    padding: .2em .5em !important;
    border-radius: 0.5em !important;
    margin-left: 0.5em !important;
}

@media (hover: hover) {
    .rossa-admin-bar:hover [role="menuitem"] {
        color: #72aee6 !important;
        cursor: pointer !important;
    }
}

/***** Layout base page *****/
.rossa-main-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    font-size: initial;
    font-family: 'Work Sans', sans-serif;
}

.rossa-box-header {
    width: 100%;
}

.rossa-box-body {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin-top: 1rem;
}

.rossa-box-body__content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--rossa-admin-max-width);
}


/***** VIEW PAGE *****/
.rossa-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rossa-page__subtitle {
    all: unset;
    display: block;
    font-size: 1.5em;
    line-height: normal;
    color: var(--rossa-color-black);
    font-weight: bold;
    margin: 0;
    padding: 0;
}

/***** VIEW TEMPLATE *****/

.rossa-template {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.rossa-template__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    gap: 1.5em;
}

.rossa-template.rossa-template--box{
    border: 1px solid var(--rossa-color-gray);
    border-radius: 0.5em;
    padding: 1em;
}

.rossa-template__image {
    width: 100%;
}

.rossa-template__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 4 / 3;
}

.rossa-template__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rossa-template__title {
    all: unset;
    display: block;
    font-size: 4em;
    font-weight: bolder;
    color: var(--rossa-config-color-primary);
    text-align: center;
    margin: 0;
    padding: 0;
}

.rossa-template__title--error{
    color: var(--rossa-color-primary);
}

.rossa-template.rossa-template--contact-payment .rossa-template__title {
    font-size: 2em;
}

.rossa-template.rossa-template--404 .rossa-template__title {
    font-size: 6em;
}

.rossa-template__subtitle {
    all: unset;
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: var(--rossa-config-color-primary);
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: normal;
}

.rossa-template.rossa-template--404 .rossa-template__subtitle {
    line-height: 1.5;
}

.rossa-template__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
}

.rossa-template__description {
    all: unset;
    display: block;
    font-size: 1em;
    font-weight: 400;
    margin: 0;
    padding: 0;
    text-align: center;
    color: var(--rossa-color-black);
    line-height: normal;
}

.rossa-template__description.rossa-template__description--box {
    color: var(--rossa-color-default-text);
    background-color: var(--rossa-color-bg-gray);
    padding: 1em;
    border-radius: 0.5em;
}

.rossa-template__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.rossa-template.rossa-template--404 .rossa-template__footer {
    margin-top: 2em;
}

.rossa-template__footer__buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
    width: 100%;
}

.rossa-template__footer__buttons .rossa-button {
    width: 100%;
}

@media (min-width: 400px) {
    .rossa-template__footer__buttons {
        flex-direction: row;
    }
}


/***** GRID COLUMNS *****/
.rossa-grid-col-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.rossa-grid-col-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 783px) {
    .rossa-grid-col-2:not(.rossa-grid-col-2--checkout) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 640px) {
    .rossa-grid-col-2.rossa-grid-col-2--checkout {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rossa-grid-col-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 783px) {
    .rossa-grid-col-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.rossa-grid-col-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 460px) {
    .rossa-grid-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 783px) {
    .rossa-grid-col-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.rossa-grid-auto-300 {
    display: grid;
    width: 100%;
    grid-auto-flow: auto;
    grid-auto-rows: min-content;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
}


.rossa-field-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* animations */
.rossa-animate-pulse {
    animation: rossa-animate-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

@keyframes rossa-animate-pulse {
    50% {
        opacity: 0.5;
    }
}


/* loading */
#rossa-loading {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.7;
    background-color: #fff;
    z-index: 999;
}

#rossa-loading .rossa-loading__gif {
    z-index: 1000;
}

/* Coloris */
.rossa-coloris-wrapper{
    width: 100%;
    box-sizing: border-box;
}

.rossa-coloris-wrapper .clr-field{
    width: 100%;
}


.rossa-coloris-wrapper .clr-field > input[data-coloris]{
    width: 100%;
}