html,
body {
    overflow: hidden; /* prevenir scroll en body */
}

.loading-canvas {
    position: fixed;
    z-index: 100000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.formRadio label,
.formCheckbox label {
    flex-grow: 1;
    font-size: small;
}

.formSelect select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    white-space: pre-wrap;
    height: auto;
    min-height: 3em;
    max-height: none;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: #f1f1f1;
    border: none;
    border-radius: 3px;
    padding: 8px 3px;
}

.formRadio,
.formCheckbox {
    display: flex;
    flex-direction: row-reverse;
    text-align: left;
    margin-bottom: 8px;
    gap: 5px;
}

#launcher {
    display: none;
    right: auto !important;
    bottom: 3.5rem !important;
}

body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
        sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #222;
}

button {
    cursor: pointer;
    color: #000;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
        sans-serif;

    &:hover {
        opacity: 0.7;
    }
}

img {
    max-width: 100%;
    height: auto;
}

nav button {
    display: flex;
    align-items: center;
    border: none;
    background-color: #f5f5f5;
    flex-grow: 1;
    justify-content: center;
    padding: 10px 0;
    gap: 4px;
    cursor: pointer;
    max-height: 50px;
    opacity: 1;
    transition: all 1s ease, display 0.3s ease allow-discrete;
}

@starting-style {
    nav button {
        opacity: 0;
    }
}

nav {
    display: flex;
}

nav button.active {
    background-color: var(--primary-color);
    color: #fff;
}

@media (max-width: 768px) {
    nav {
        margin: 10px;
        padding: 5px;
        background-color: #fff;
        box-shadow: 1px 1px 10px rgb(0 0 0 / 20%);
        border-radius: 20px;
    }

    nav button {
        flex-direction: column;
        font-size: 11px;
        gap: 0;
        background-color: transparent;
        padding: 6px 0;
    }
    nav button.active {
        background-color: transparent;
        color: var(--primary-color);
    }
}

.controls {
    position: relative;
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.controls button {
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
    font-weight: bold;
    width: 100px;
    height: 100px;
}

.controls button img {
    object-fit: contain;
    width: 60px;
    height: 60px;
}

aside {
    position: fixed;
    width: 100%;
    top: 0;
    left: 100%;
    height: 100dvh;
    z-index: 10;
    background-color: #f5f5f5;
}

aside > section {
    display: none;
}

aside header {
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

aside header .header-info {
    display: flex;
    flex-direction: column;
}

aside header .header-info strong {
    font-weight: 700;
}

aside article {
    overflow-y: auto;
    overflow-x: hidden;
}

aside footer {
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 20;
}

@media (max-width: 768px) {
    aside footer {
        padding: 0.4rem 1rem;
    }

    aside header {
        justify-content: space-between;
    }

    aside header .header-info {
        max-width: 200px;
    }
}

aside footer.right {
    justify-content: end;
}

.box {
    background-color: #ededed;
    padding: 1rem;
    margin: 1rem;
    border-radius: 4px;
}

button.btn,
a.btn {
    padding: 0.375rem 0.75rem;
    font-size: clamp(0.8rem, 1vw, 1rem);
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    background-color: var(--dark-color);
    border: 2px solid var(--dark-color);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;

    svg {
        width: 18px;
        height: 18px;
    }
}

.muted {
    color: #6c757d;
}

button.secondary,
a.secondary {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: #fff;
}

button.primary,
a.primary {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: #fff;
}

button.success {
    background-color: var(--success-color);
    border: 2px solid var(--success-color);
    color: #fff;
}

button.danger {
    background-color: var(--danger-color);
    border: 2px solid var(--danger-color);
    color: #fff;
}

button.warning {
    background-color: var(--warning-color);
    border: 2px solid var(--warning-color);
    color: #222;
}

button.info {
    background-color: var(--info-color);
    border: 2px solid var(--info-color);
    color: #222;
}

button.light {
    background-color: var(--light-color);
    border: 2px solid var(--light-color);
    color: #222;
}

.product-box {
    display: flex;
    gap: 1rem;
}

.product-box .product-preview {
    width: 125px;
}

.product-box .product-preview img {
    border-radius: 4px;
}

.product-box .product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;

    .style-block {
        display: flex;
        gap: 0.25rem;
        align-items: center;
        margin-top: 5px;

        .style-info {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            justify-content: center;

            small {
                display: flex;
                align-items: center;
                gap: 2px;

                svg {
                    color: var(--success-color);
                }
            }
        }
    }
}

.positions .box strong {
    display: block;
}

.positions .box .actions {
    display: flex;
    justify-content: end;
    gap: 0.4rem;
}

.form-control {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.form-control label {
    font-size: 11px;
    color: #6c757d;
}

.form-control input {
    padding: 6px 3px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.header-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/*
.header-filter .select {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 4px;
    border-radius: 4px;
}
*/
.header-filter .select select {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    outline: none;
    padding: 3px;
    border-radius: 3px;
}

.logo-list {
    margin-top: 4px;
}

.logo-list .content {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;

    div {
        position: relative;
    }

    div button {
        height: 100%;
    }
}

.logo-list .content > button {
    background-color: #fff;
    border: none;
    border-radius: 4px;
    flex-grow: 1;
    display: flex;
    gap: 2px;
    align-items: center;
    padding: 4px;
}

.logo-list button img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.logo-list .configList {
    display: none;
    background-color: #f5f5f5;
    padding: 3px;

    button {
        width: 100%;
        background-color: #fff;
        color: #222;
        display: flex;
        gap: 2px;
        flex-direction: row-reverse;
        justify-content: start;
        border: none;
    }
}
.logo-list .configList.open {
    position: absolute;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 20;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.logo-preview img,
.logo-preview svg {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-preview img,
    .logo-preview svg {
        width: 80px;
        height: 80px;
        object-fit: contain;
    }
}

.logo-preview {
    display: flex;
    justify-content: center;
}

.dropzone {
    border: 1px dashed #ccc;
    border-radius: 4px;
}

.colors-list {
    display: flex;
    flex-direction: column;
}

.colors-list .item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #ccc;
    padding: 10px 0;
    align-items: center;
}

#dropdown-font {
    display: none;
    position: absolute;
    top: 2rem;
    left: 0;
    background-color: #fff;
    z-index: 10;
    height: 200px;
    overflow-y: auto;
    min-width: 300px;
}

#dropdown-font button {
    background-color: #fff;
    padding: 0.575rem 0.75rem;
    font-size: 1rem;
    font-weight: 300 !important;
    border: none;
    border-radius: 0;
    cursor: pointer;
    width: 100%;

    &:hover {
        background-color: #f1f1f1;
    }
}

.select-form-color {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.select-font-family {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.select-font-family .select {
    flex-grow: 1;
}

.select-font-family .select select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    padding: 12px 4px;
    margin-top: 4px;
    font-size: 1rem;
    border-color: #ccc;
    border-radius: 4px;
}

/* Checkbox Style */

.checkbox-wrapper .tgl {
    display: none;
}

.checkbox-wrapper .tgl,
.checkbox-wrapper .tgl:after,
.checkbox-wrapper .tgl:before,
.checkbox-wrapper .tgl *,
.checkbox-wrapper .tgl *:after,
.checkbox-wrapper .tgl *:before,
.checkbox-wrapper .tgl + .tgl-btn {
    box-sizing: border-box;
}

.checkbox-wrapper .tgl::-moz-selection,
.checkbox-wrapper .tgl:after::-moz-selection,
.checkbox-wrapper .tgl:before::-moz-selection,
.checkbox-wrapper .tgl *::-moz-selection,
.checkbox-wrapper .tgl *:after::-moz-selection,
.checkbox-wrapper .tgl *:before::-moz-selection,
.checkbox-wrapper .tgl + .tgl-btn::-moz-selection,
.checkbox-wrapper .tgl::selection,
.checkbox-wrapper .tgl:after::selection,
.checkbox-wrapper .tgl:before::selection,
.checkbox-wrapper .tgl *::selection,
.checkbox-wrapper .tgl *:after::selection,
.checkbox-wrapper .tgl *:before::selection,
.checkbox-wrapper .tgl + .tgl-btn::selection {
    background: none;
}

.checkbox-wrapper .tgl + .tgl-btn {
    outline: 0;
    display: block;
    width: 4em;
    height: 2em;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.checkbox-wrapper .tgl + .tgl-btn:after,
.checkbox-wrapper .tgl + .tgl-btn:before {
    position: relative;
    display: block;
    content: "";
    width: 50%;
    height: 100%;
}

.checkbox-wrapper .tgl + .tgl-btn:after {
    left: 0;
}

.checkbox-wrapper .tgl + .tgl-btn:before {
    display: none;
}

.checkbox-wrapper .tgl:checked + .tgl-btn:after {
    left: 50%;
}

.checkbox-wrapper .tgl-ios + .tgl-btn {
    background: #a4a4a4;
    border-radius: 2em;
    padding: 2px;
    transition: all 0.4s ease;
    border: 1px solid #a4a4a4;
}

.checkbox-wrapper .tgl-ios + .tgl-btn:after {
    border-radius: 2em;
    background: #fff;
    transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        padding 0.3s ease, margin 0.3s ease;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 4px 0 rgba(0, 0, 0, 0.08);
}

.checkbox-wrapper .tgl-ios + .tgl-btn:hover:after {
    will-change: padding;
}

.checkbox-wrapper .tgl-ios + .tgl-btn:active {
    box-shadow: inset 0 0 0 2em #e8eae9;
}

.checkbox-wrapper .tgl-ios + .tgl-btn:active:after {
    padding-right: 0.8em;
}

.checkbox-wrapper .tgl-ios:checked + .tgl-btn {
    background: var(--primary-color);
}

.checkbox-wrapper .tgl-ios:checked + .tgl-btn:active {
    box-shadow: none;
}

.checkbox-wrapper .tgl-ios:checked + .tgl-btn:active:after {
    margin-left: -0.8em;
}

/* Checkbox style end */

.group-size-controls {
    display: flex;
}

.group-size-controls button {
    background-color: var(--primary-color);
    padding: 0.575rem 0.75rem;
    border: none;
    cursor: pointer;
    color: #fff;
    min-width: 32px;
    font-size: 12px;
}

.group-size-controls button:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.group-size-controls button:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

#input-custom-font {
    display: none;
}

.input-custom-font {
    background-color: var(--primary-color);
    padding: 0.375rem 0.75rem;
    font-weight: 300 !important;
    border: none;
    cursor: pointer;
    color: #fff;
    min-width: 32px;
    border-radius: 4px;
    transition: opacity 0.3s ease;

    &:hover {
        opacity: 0.7;
    }
}

.size-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
    gap: 1rem;
}

.text-form-block {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #ccc;
}

.text-form-block label {
    font-weight: bold;
}

.text-form-block .with-color {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#input-name {
    text-align: center;
    resize: none;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.detail {
    display: flex;
    justify-content: space-between;
}

.detail.options {
    color: var(--primary-color);
}

.detail.total {
    font-size: 2rem;
    margin-bottom: 1rem;
}

button.checkout {
    width: 100%;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

a.checkout {
    text-decoration: none;
    text-align: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.title {
    font-size: larger;
}

#product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-content: center;

    .active {
        border: 2px solid var(--primary-color);
    }
}

#product-container > div.card {
    background-color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: 0;

    img {
        flex-grow: 1;
        object-fit: contain;
    }
}

.sizes-badge {
    background: var(--primary-color);
    color: #fff;
    padding: 7px;
    font-size: 14px;
    font-weight: 700;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    min-height: 20px;
}

#product-container > div.card:hover {
    border: 1px solid #6c6c6c;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
}

.card,
.styles-list .item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    background-color: #fff;

    &.active {
        border: 2px solid var(--primary-color);
    }
}

.item-b {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 220px;
    justify-content: space-between;

    img {
        width: 150px;
        object-fit: contain;
    }

    .item-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
}

.card:hover,
.styles-list .item:hover {
    cursor: pointer;
    border-color: #333;
}

.card .block {
    padding-bottom: 1rem;
}

.card h3,
.styles-list .item h3 {
    font-size: 18px;
    margin: 10px 0;
}

.card p,
.styles-list .item p {
    color: #555;
}

.card img {
    max-height: 200px;
    flex-grow: 1;
}

.designs-list > div.loader {
    margin: 0 auto !important;
    display: flex;
}

.designs-list > div.notice-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 25px;
}

.notice-container {
    grid-column: 2 / span 3;
    place-self: center;
    width: 100%;
}

.notice {
    display: flex;
    padding: 20px;
    background-color: antiquewhite;
    gap: 10px;
}

#no-designs-found {
    display: none;
    text-align: center;
}

.notice.center {
    justify-content: center;
}

#watcher {
    height: 30px;
}

/* Loader */

/*
Colors
*/
#design-colors > div > div.tableColor {
    min-height: 300px;
    /*max-height: 500px;*/
}

.selectColorInput {
    position: relative;

    button {
        width: 45px;
        height: 45px;
        border-radius: 4px;
        border: 1px solid #ccc;
        cursor: pointer;
        background-color: #000;
        appearance: none;
    }

    .selectListColors {
        display: none;
        position: absolute;
        top: 40px;
        right: 0;
        background-color: #fff;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        width: 200px;
        padding: 5px;
        max-height: 150px;
        border-radius: 4px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .selectListColors > button {
        margin: 4px 2px;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        border: 1px solid #ccc;
        cursor: pointer;
        appearance: none;
    }
}

/* HTML: <div class="loader"></div> */
.loader {
    width: 50px;
    margin: 0 auto;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(farthest-side, var(--primary-color) 94%, #0000)
            top/8px 8px no-repeat,
        conic-gradient(#0000 30%, var(--primary-color));
    -webkit-mask: radial-gradient(
        farthest-side,
        #0000 calc(100% - 8px),
        #000 0
    );
    animation: l13 1s infinite linear;
}

@keyframes l13 {
    100% {
        transform: rotate(1turn);
    }
}

#control-back-button.active,
#control-front-button.active {
    border: 3px solid var(--primary-color);
    margin-bottom: 10px;
}

.clr-field button {
    width: 45px;
    height: 45px;

    border-radius: 4px;
}

.clr-field input {
    width: 45px;
    height: 45px;
    border: none;
    padding: 0;
    border-radius: 4px;
}

.label-normal {
    font-size: 11px;
    color: #6c757d;
}

.list-details {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

.layout {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
}

.designs-menu-buttons {
    padding: 1rem;
    display: flex;
}

.designs-menu-buttons button {
    background-color: transparent;
    border: none;
    border-bottom: 3px solid #ccc;
    padding: 0.7rem;

    &:hover {
        background-color: #fff;
    }
}

.designs-menu-buttons button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

#section-designs,
#section-saved-designs {
    padding: 1rem;
}

#section-saved-designs {
    display: none;
}

#no-my-designs {
    text-align: center;
}

#saved-designs-list {
    .filter {
        display: flex;
        justify-content: end;
        margin-bottom: 4px;
    }
}

#saved-designs-list .item {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 4px;
    grid-row-gap: 4px;
    margin-bottom: 1rem;
    background-color: #fff;
    border-radius: 4px;
    padding: 1rem;
}

#saved-designs-list .item .image {
    grid-area: 1 / 1 / 3 / 2;
}

#saved-designs-list .item .image img {
    max-width: 125px;
}

#saved-designs-list .item .info {
    grid-area: 1 / 2 / 3 / 4;
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

#saved-designs-list .item .toolbar {
    grid-area: 3 / 1 / 4 / 4;
    display: flex;
    justify-content: end;
    gap: 5px;
}

#b-preview-logo,
#b-upload-logo,
#b-colorlist-logo,
#b-search-logo,
#b-list-logos {
    display: none;
}

#b-list-logos {
    height: 400px; /* o lo que necesites */
    overflow-y: hidden;
}

.logo-list {
    height: 100%;
    overflow-y: auto;
}

#search_logo_letter {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    button {
        text-transform: uppercase;
    }
}

.logo-list button.active {
    background-color: var(--primary-color);
    color: #fff;
}

.text-preview {
    display: flex;
    justify-content: center;
}

.td-c-i {
    display: flex;
    align-items: center;
}

.td-c-i button {
    background-color: transparent;
    border: none;
}

.position-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.colorListTable .item > button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    border: none;
    border-bottom: 1px dashed #ccc;
    padding: 10px 0;
    font-size: 16px;
    align-items: center;
}

.colorListTable .item > button .currentColor {
    background-color: #000;
    height: 36px;
    width: 36px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.colorListTable .item .tableColor {
    background-color: #fff;
    padding: 5px;
    gap: 2px;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
}

.colorListTable .item .tableColor button {
    background-color: #000;
    height: 100px;
    width: 60px;
    border-radius: 4px;
    border: 1px solid #ccc;
    display: flex;
    align-items: end;
    justify-content: center;
    font-size: 9px;
    padding-bottom: 6px;
    flex-shrink: 0;
}

.colorListTable .item .tableColor button span {
    color: #fff;
    text-shadow: -1px -1px 0 #606060, 1px -1px 0 #606060, -1px 1px 0 #606060,
        1px 1px 0 #606060;
}

.colorListTable .item .tableColor button.base {
    margin-right: 10px;
    margin-bottom: 4px;
}

.colorListTable .item .tableColor .rowColor,
.colorListTable .item .tableColor .columnColors {
    display: flex;
    overflow-x: auto;
}

.colorListTable .item .tableColor .rowColor.border {
    border-bottom: 1px solid #ccc;
    margin-bottom: 4px;
}

.colorListTable .item .tableColor button.transparent {
    background-color: #fff;
    position: relative;
}

.colorListTable .item .tableColor button.transparent::after {
    position: absolute;
    content: "";
    width: 110px;
    height: 4px;
    background-color: red;
    transform: rotateZ(120deg);
    left: -25px;
    top: 47px;
}

.n-br {
    border-radius: 0 !important;
}

.group-size-controls .n-br:first-child {
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
}

.group-size-controls .n-br:last-child {
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

.sticky-box {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.item-detail {
    display: flex;
    background-color: #e0e0e0;
    padding: 10px;
    border-radius: 4px;
    gap: 4px;
    align-items: center;
}

.item-detail img {
    width: 20px;
}

#detail-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#login,
#signup,
#wrap-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 350px;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;

    .l-modal {
        background-color: #fff;
        padding: 3rem 2rem;
        border-radius: 1rem;
        width: 100%;
        max-width: 400px;
        position: relative;
        margin: 0 1rem;

        .close-modal {
            position: absolute;
            top: 1rem;
            right: 1rem;
            border: none;
            background-color: transparent;
            cursor: pointer;
            color: #ccc;
        }
    }

    .l-header {
        font-size: 28px;
        color: #222;
        display: flex;
        justify-content: center;
    }

    .l-form {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        margin-bottom: 0.5rem;

        input {
            padding: 0.5rem;
            border: 1px solid #ccc;
            border-radius: 0;
        }
    }

    .l-form-checkbox {
        display: flex;
        gap: 0.5rem;
        align-items: end;
        margin-bottom: 0.5rem;
    }

    .l-actions {
        margin-bottom: 0.5rem;
    }

    .l-actions button {
        width: 100%;
        margin: 1.5rem 0;
    }

    .l-footer {
        display: flex;
        justify-content: center;
    }

    .d-actions {
        display: flex;
        justify-content: end;
        gap: 0.5rem;
    }

    a {
        color: var(--primary-color);
        cursor: pointer;
        text-decoration: none;
    }
}

#upload-image-preview {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
    gap: 10px;

    img {
        width: 150px;
        height: 150px;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    #upload-image-preview img {
        width: 100px;
        height: 100px;
    }
}

.styles-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
    gap: 1rem;
}

.login-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    z-index: 9;
}

.login-btn button {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: normal;
}

.block-as-front {
    display: none;
    align-items: center;
    gap: 4px;
    padding-bottom: 10px;
}

.filter-block-designs {
    display: none;
    flex-wrap: wrap;
    gap: 1rem;
}

#filter-flag-side,
#filter-flag-size {
    display: none;
    justify-content: end;
    flex-direction: column;
    align-items: flex-start;

    label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    select {
        font-size: 16px;
        padding: 4px;
    }
}

.preview-custom-design {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.generated-design-preview {
    object-fit: contain;
}

.formText input[type="text"],
.formText input[type="number"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    white-space: pre-wrap;
    height: auto;
    min-height: 1.75em;
    max-height: none;
    text-overflow: ellipsis;
    background-color: #f7f7f7;
    border: none;
    border-radius: 3px;
    padding: 8px 3px;
}

button[disabled] {
    opacity: 0.6;
}

.header-preview-title {
    display: flex;
    justify-content: center;
}

.controls-block {
    display: flex;
    gap: 4px;
}

.select-font-family .select2-container .select2-selection--single {
    height: 44px;
    margin-top: 1px;
}

.select-font-family
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 42px;
}

.select-font-family
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 43px;
    width: 30px;
}

.select-font-family .select2-dropdown {
    left: 10px;
}

.templates-block {
    display: block;
    height: 0;
    /* Altura inicial cerrada */
    position: absolute;
    bottom: 0;
    background: #f1f1f1;
    /* Fondo claro */
    overflow-y: hidden;
    /* Ocultar contenido verticalmente durante la animación */
    overflow-x: auto;
    /* Permitir desplazamiento horizontal si es necesario */
    transition: height 0.3s ease-in-out;
    /* Animar solo la propiedad height */

    header {
        display: flex;
        justify-content: flex-end;
        /* Alinear los botones al final */
        padding: 4px;

        button {
            border: none;
            background: transparent;
            /* Botones sin fondo para mejor diseño */
            cursor: pointer;
            /* Mostrar el cursor interactivo */
            padding: 4px;
        }
    }

    .list {
        display: flex;
        gap: 4px;
        /* Espaciado entre elementos */
        margin: 4px;
        justify-content: center;
        /* Centrar la lista de elementos */

        .item {
            background-color: #fff;
            /* Fondo blanco para cada ítem */
            padding: 8px;
            /* Más espacio interno */
            border-radius: 4px;
            /* Bordes redondeados */
            display: flex;
            flex-direction: column;
            align-items: center;
            /* Centrar contenido dentro del ítem */
            gap: 4px;
            font-weight: 700;
            /* Texto en negrita */
            flex-shrink: 0;
            /* Evitar que los elementos se reduzcan */
            text-transform: capitalize;
            /* Capitalizar texto */
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            /* Sombra ligera */
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            /* Animar hover */

            img {
                width: 60px;
                /* Tamaño fijo para imágenes */
                height: 60px;
                object-fit: contain;
                /* Contener imagen dentro del espacio */
                border-radius: 4px;
                /* Opcional: redondear imágenes */
            }

            &:hover {
                transform: scale(1.05);
                /* Aumentar tamaño ligeramente al pasar el mouse */
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
                /* Sombra más pronunciada */
            }
        }
    }
}

.wrapper-select {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 4px 0;

    label {
        font-size: 14px;
        font-weight: 600;

        .required {
            color: red;
        }
    }

    select {
        padding: 10px 5px;
    }

    input[type="text"] {
        padding: 10px 5px;
    }
}

.wrapper-radio,
.wrapper-checkbox {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: start;
    gap: 4px;
    margin-bottom: 4px;

    label {
        font-size: 14px;
        font-weight: 600;

        .required {
            color: red;
        }
    }

    :nth-child(1) {
        margin-top: 4px;
    }
}

.wrapper-checkbox {
    align-items: end;
}

#landing {
    background-color: red;
    position: absolute;
    z-index: 100;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    overflow: auto;
    flex-direction: column;
}

#b-vectorize-step {
    /*display: none;*/

    .title {
        display: flex;
        gap: 8px;
        align-items: center;
    }
}

.list-vectorize {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;

    .img-svg {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        width: 50%;
        align-items: center;
        svg {
            width: 200px;
            height: 200px;
        }
        img {
            width: 200px;
            height: 200px;
            object-fit: contain;
        }
    }
}

.btn-forms {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-forms .or {
    text-align: center;
    color: #909090;
}

@media (min-width: 768px) {
    .preview-custom-design {
        flex-direction: row;
    }

    .header-preview-title {
        display: none !important;
    }

    .td-main {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-auto-rows: auto;
        grid-column-gap: 0px;
        grid-row-gap: 0px;
        position: relative;
    }

    .td-main nav {
        grid-area: 1 / 1 / 2 / 4;
    }

    .td-main .layout {
        grid-area: 2 / 1 / 5 / 4;
    }

    .td-main .controls {
        grid-area: 5 / 1 / 6 / 4;
    }

    .td-main aside {
        grid-area: 1 / 4 / 6 / 6;
        display: block;
        left: 0;
        position: relative;
    }

    .td-main > nav {
        gap: 1rem;
        padding: 1rem;
    }

    .td-main > nav button {
        border-radius: 4px;
    }

    .nav-close-button {
        display: none !important;
    }
}

@media (max-width: 1100px) {
    #product-container {
        grid-template-columns: 1fr 1fr;
    }

    .loader,
    .notice-container {
        grid-column: 2 / span 2;
    }
}

@media (max-width: 910px) {
    #product-container {
        grid-template-columns: 1fr 1fr;
    }

    .loader,
    .notice-container {
        grid-column: 2 / span 1;
    }
}

@media (max-width: 768px) {
    .card h3 {
        font-size: 13px;
    }

    .card p {
        font-size: 11px;
    }

    .loader,
    .notice-container {
        grid-column: 1 / span 2;
    }

    /*
    .colorListTable .item .tableColor button {
        height: 24px;
    }*/

    .login-btn {
        position: fixed;
        top: 1rem;
        right: 1rem;
        left: auto;
        bottom: auto;
    }
}

@media (max-width: 360px) {
    #product-container {
        grid-template-columns: 1fr 1fr;
    }
}

.skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    .s-box {
        display: flex;
        gap: 0.5rem;
    }

    .s-box.spc-b {
        justify-content: space-between;
    }

    .s-t-20 {
        width: 20%;
        height: 8px;
        border-radius: 4px;
        background-color: #ccc;
        animation: pulse 1.5s infinite;
    }

    .s-btn {
        width: 100%;
        height: 40px;
        border-radius: 4px;
        background-color: #ccc;
        animation: pulse 1.5s infinite;
    }

    .s-c {
        width: 100px;
        height: 100px;
        background: #ccc;
        border-radius: 4px;
        animation: pulse 1.5s infinite;
    }
}
.skeleton.s-row {
    flex-direction: row;
}

#terms-logo-box {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    gap: 4px;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.4;
    }
}

.img-trans {
    background-image: url("/trans.png");
    background-size: 20px;
}

.msg-error {
    background-color: #ffd5d5;
    padding: 4px;
    border-left: 5px solid #f85555;
    margin: 5px 0;
}

section header > div {
    display: flex;
    gap: 4px;
    align-items: center;
}

.btn.mini {
    padding: 5px;
    font-size: 14px;
}

.show_pass {
    border: 1px solid #ccc;
}

#b-search-logo .content-filter {
    height: 0;
    overflow: hidden;
}

#b-search-logo.open .content-filter {
    height: auto;
    overflow: auto;
}

.ellipsis-1 {
    display: inline-block;
    max-width: 230px; /* o el ancho que necesites */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0; /* IMPORTANTE en flexbox para truncar */
}

#go-to-cart {
    display: none;
}

.checkout-group {
    display: flex;
    position: relative;

    .checkout-btn-principal {
        flex-grow: 1;
        border: none;
        border-radius: 4px;
        background-color: var(--primary-color);
        color: var(--light-color);
        padding: 0.75rem;
    }

    .checkout-btn-principal.edit {
        border-bottom-right-radius: 0;
        border-top-right-radius: 0;
    }

    .checkout-btn-group {
        display: none;
        border: none;
        border-bottom-right-radius: 4px;
        border-top-right-radius: 4px;
        background-color: var(--primary-color);
        color: var(--light-color);
        border-left: 1px solid;
    }

    .checkout-group-list {
        display: none;
        position: absolute;
        z-index: 20;
        left: 0;
        bottom: -44px;
        width: 100%;
        background: #fff;
        border-radius: 4px;
    }

    .checkout-group-list button {
        width: 100%;
        padding: 0.75rem;
        border-radius: 4px;
    }
}
