/***** MODAL *****/
.rossa-modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: none;
    z-index: 9991;
    align-items: center;
    justify-content: center;
    transition: background-color var(--modal-transition-duration) ease;
    color: var(--rossa-color-black);
}

.rossa-modal.active {
    display: flex;
    background-color: rgba(0, 0, 0, 0.5);
}

.rossa-modal__box{
    display: flex;
    flex-direction: column;
    background-color: var(--rossa-white-color);
    border-radius: .5em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    opacity: 0;
    transition: transform  0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.rossa-modal.active .rossa-modal__box {
    transform: scale(1);
    opacity: 1;
}

.rossa-modal__header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em 1.5em 0 1.5em;
    gap:.5em;
}

.rossa-modal__header h2{
    margin: 0;
    font-size: 1.25rem;
    color: #212529;
}

.rossa-modal__close{
    cursor: pointer;
    color: var(--rossa-dark-gray-color);
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.rossa-modal__close:hover{
    color: var(--rossa-black-gray-color);
}

.rossa-modal__content{
    overflow-y: auto;
    max-height: calc(90vh - 100px);
    scrollbar-width: thin;
    padding: 1.5em;
}

.rossa-modal__content::-webkit-scrollbar{
    width: 12px;
}

.rossa-modal__confirmation{
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.rossa-modal__confirmation > div{
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
    margin-top: 2em;
    font-size: 1em;
}

@media (min-width: 600px) {
    .rossa-modal__confirmation > div{
        width: 100%;
        max-width: 300px;
        align-self: flex-end;
        justify-content: center;
        grid-template-columns: 1fr 1fr;
    }
}


/***** SWITCH *****/
.rossa-switch {
    display: inline-block;
    height: calc(28px * var(--rossa-switch-size));
    position: relative;
    width: calc(50px * var(--rossa-switch-size));
}

.rossa-switch .switch {
    display: inline-block;
    height: calc(28px * var(--rossa-switch-size));
    position: relative;
    width: calc(50px * var(--rossa-switch-size));
}

.rossa-switch input {
    display: none;
}

.rossa-switch .slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.rossa-switch .slider:before {
    background-color: #fff;
    bottom: calc(3px * var(--rossa-switch-size));
    content: "";
    height: calc(22px * var(--rossa-switch-size));
    left: calc(3px * var(--rossa-switch-size));
    position: absolute;
    transition: .4s;
    width: calc(22px * var(--rossa-switch-size));
}

.rossa-switch input:checked + .slider {
    background-color: var(--rossa-bg-wordpress-blue);
}

.rossa-switch input:checked + .slider:before {
    transform: translateX(calc(22px * var(--rossa-switch-size)));
}

.rossa-switch .slider.round {
    border-radius: calc(28px * var(--rossa-switch-size));
}

.rossa-switch .slider.round:before {
    border-radius: 50%;
}

.rossa-switch input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Example size variants you can use directly */
.rossa-switch.small {
    --rossa-switch-size: 0.7;
}

.rossa-switch.large {
    --rossa-switch-size: 1.5;
}

.rossa-switch.extra-large {
    --rossa-switch-size: 2;
}

/***** ROSSA CARD PAYMENT METHOD *****/
.rossa-box-payment-methods{
    display: grid;
    grid-auto-flow: dense;
    grid-auto-rows: min-content;
    grid-template-columns: repeat(auto-fill, minmax(min(100%,300px), 1fr));
    gap: 1em;
    font-size: 16px;
    width: 100%;
}


.rossa-card-payment-method {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 1em;
    border-radius: .5em;
    background-color: white;
    border: 2px solid var(--rossa-gray-color);
    justify-content: space-between;
}

.rossa-card-payment-method__title {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: var(--rossa-secondary-color);
}

.rossa-card-payment-method__title-content{
    display: flex;
    flex-direction: column;
    gap: .5em;

}

.rossa-card-payment-method__title h3 {
    font-size: 1.2em;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}

.rossa-card-payment-method__title svg {
    width: 24px;
    height: 24px;
}

.rossa-card-payment-method__description {
    font-size: 1em;
    font-weight: 400;
    line-height: normal;
    margin: 0;
}
.rossa-card-payment-method__description p {
    margin: 0;
}

.rossa-card-payment-method__footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .5em;
}

/***** CHIP *****/
.rossa-box-chipsets{
    display: flex;
    flex-wrap: wrap;
    gap: .5em;
}

.rossa-chip{
    padding: 0.5em 1em;
    border-radius: 1em;
    background-color: var(--rossa-gray-color);
    font-size: 12px;
    width: fit-content;
    height: fit-content;
}

.rossa-chip.rossa-chip--active{
    background-color: rgb(118, 188, 33,0.4);
}

.rossa-chip.rossa-chip--inactive{
    background-color: rgb(231, 0, 76,0.4);
}


/***** BOX ERROR MESSAGE *****/
.rossa-box-error-message{
    width: auto !important;
    background-color: var(--rossa-bg-error-color);
    border-radius: .5em;
    border: 1px solid var(--rossa-primary-color);
    padding: 1em;
    color: var(--rossa-primary-color);
    font-size: 14px;
}



/***** ROSSA COMMON CLASSES *****/
.rossa-box-v2 {
    padding: 20px;
    border-radius: 10px;
    background-color: white;
    box-shadow: var(--rossa-box-shadow);
}

.rossa-box-flex{
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 1em;
}

.rossa-box-flex.rossa-box-flex--end{
    justify-content: flex-end;
}
.rossa-box-flex.rossa-box-flex--align-end{
    align-items: flex-end;
}

.rossa-box-flex.rossa-box-flex--row{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.rossa-box-flex.rossa-box-flex--center{
    justify-content: center;
    align-items: center;
}

.rossa-box-select{
    display: flex;
    flex-direction: column;
    gap: .5em;
}



/* ROSSA GRID */
.rossa-grid-auto-200 {
    display: grid;
    grid-auto-flow: dense;
    grid-auto-rows: min-content;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1em;
    font-size: 16px;
    width: 100%;
}

/* ROSSA GENERATE UUID BOX */
.rossa-generate-uuid-box{
    display: flex;
    gap: .25em;
}
.rossa-generate-uuid-box div:first-child{
    width: 70%;
}
.rossa-generate-uuid-box div:first-child > input{
    width: 100%;
}
.rossa-generate-uuid-box div:last-child{
    width: 30%;
}
.rossa-generate-uuid-box div:last-child > button{
    width: 100%;
}

/* ROSSA INPUT TEXT */

.rossa-input-text {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    max-width: 300px;
    margin-bottom: 15px;
    gap: 1em;
}

.rossa-input-text input {
    width: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.rossa-input-text input:focus {
    outline: none;
    border-color: rgb(126, 195, 226);
}

.rossa-input-text.rossa-input-text--error input:focus {
    border-color: var(--rossa-primary-color);
    box-shadow: 0 0 0 2px rgba(231, 0, 76, 0.1);
}

.rossa-input-text input::placeholder {
    color: #aaa;
}

.rossa-input-text input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Size variants for input text */
.rossa-input-text.small input {
    padding: 6px 8px;
    font-size: 12px;
}

.rossa-input-text.large input {
    padding: 12px 16px;
    font-size: 16px;
}

.rossa-input-text.extra-large input {
    padding: 16px 20px;
    font-size: 18px;
}


.rossa-input-text.rossa-input-text--full{
    width: 100%;
    max-width: none;
}


/* ROSSA TITLE */
.rossa-title{
    font-size: 1em;
    font-weight: 700;
}



