/* RESET */
.btn-secondary {
    background-color: #6c757d !important;
}

.btn-danger {
    background-color: #dc3545 !important;
}

.btn-success {
    background-color: #198754 !important;
}

.btn-primary {
    background-color: #0d6efd !important;
}

.navbar-collapse {
    visibility: visible !important;
}

.form-control[readonly] {
    /* copied from bs .form-control:disabled */
    /* pseudo :read-only causes some issues */
    background-color: var(--bs-secondary-bg);
    opacity: 1;
}

.form-control::placeholder {
    opacity: .8;
}
/* END RESET */

/**
 * Enable smooth scrolling on the whole document
 */
html {
    scroll-behavior: smooth;
}

/**
 * Disable smooth scrolling when users have prefers-reduced-motion enabled
 */
@media screen and (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* HELPERS */
.pointer-none {
    pointer-events: none;
    opacity: .65;
}

.list-style-disc {
    list-style: disc;
}

/* END HELPERS */

/* BACK TO TOP BUTTON */
#back-to-top {
    text-decoration: none;
    color: #ffffff;
    border-radius: 50%;
    font-size: 20px;
    opacity: 0;
    transition: opacity 200ms ease-in-out;
    pointer-events: none;
    /* Prevents click events when invisible */
    height: 40px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    /* Enables click events when visible */
}

/* END BACK TO TOP BUTTON */

/* LISTS & FILTERS */
.filters {
    display: flex;
    gap: 10px;
}

.filters__block {
    display: flex;
    align-items: center;
    gap: .5rem;
    max-width: 250px;
}

.filters__block:not(:last-child) {
    border-right: 1px solid #eee;
    padding-right: 10px;
}

.filters__block #productStatus {
    width: 130px;
}

.handle {
    cursor: grab;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.products-listing__thumbnail {
    width: 75px;
}

.products-listing__thumbnail img {
    object-fit: contain;
    aspect-ratio: 1 / 1;
    width: 100%;
    font-size: 0;
}

.tags-listing__icon img {
    object-fit: contain;
    aspect-ratio: 1 / 1;
    width: 30px;
    font-size: 0;
}

/* END LISTS & FILTERS */

/* PUBLIC STYLES */
.public-main {
    min-height: calc(100vh - 80px);
    /* full height - built with footer */
}

footer.builtwith {
    font-size: 14px;
    height: 80px;
}

.nav-admin-public {
    font-size: 16px;
}

.place-info__logo {
    width: 250px;
}

.place-info__description {
    max-width: 500px;
}

.carta__products-item:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.carta__products-item-details {
    flex: 1;
}

.carta__products-item-details>p a {
    text-decoration: underline;
    color: #0d6efd;
}

.carta__products-item-details>p a:hover {
    text-decoration: none;
}

.carta__products-item-details>h4,
.carta__products-item-details>p {
    word-wrap: anywhere;
    overflow-wrap: anywhere;
}

.carta__products-item-details>h4,
.carta__products-item-price>span {
    font-size: 1.1rem;
    line-height: 1.366;
}

.carta__products-item-price {
    min-width: 110px;
    text-align: right;
}

.carta__products-item-price--with-thumbnail {
    text-align: left;
    display: flex;
    flex-direction: row;
    gap: .33em;
    align-items: baseline;
    justify-content: flex-start;
    flex-wrap: wrap;
}

a.carta__category-details i.fa-chevron-down {
    right: 10px;
    top: calc(50% - .5em);
    transition: transform .35s;
}

a.carta__category-details[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
}

.carta__products-item-thumbnail {
    min-width: 110px;
}

.carta__products-item-thumbnail img {
    object-fit: contain;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 100px;
    margin-left: auto;
    display: block;
}

.carta__products-item-details img { /* tags */
    margin-top: -0.125rem;
}

.carta__products-item-details img,
.tags-legend img {
    object-fit: contain;
    aspect-ratio: 1 / 1;
    width: 1.25rem;
    font-size: 0;
}

.tags-legend ul {
    padding: 0;
    margin: 0;
}

.tags-legend li {
    list-style: none;
    display: inline;
}

/* END PUBLIC STYLES */

/* LOADER */
.lds-ring,
.lds-ring div {
    box-sizing: border-box;
}

.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid currentColor;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: currentColor transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* END LOADER */

/* IMAGE UPLOAD PREVIEW (LIVEWIRE COMPONENTS) */
.image-upload-preview {
    width: 150px;
    height: 150px;
    position: relative;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"%3E%3C!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--%3E%3Cpath fill="%23666666" d="M288 109.3V352c0 17.7-14.3 32-32 32s-32-14.3-32-32V109.3l-73.4 73.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l128-128c12.5-12.5 32.8-12.5 45.3 0l128 128c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L288 109.3zM64 352H192c0 35.3 28.7 64 64 64s64-28.7 64-64H448c35.3 0 64 28.7 64 64v32c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V416c0-35.3 28.7-64 64-64zM432 456a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"/%3E%3C/svg%3E');
}

.image-upload-preview:hover {
    cursor: pointer;
}

.image-upload-preview:hover:before {
    content: '';
    background-color: #0000001f;
    position: absolute;
    width: 100%;
    height: 100%;
}

.image-upload-preview [wire\:loading][wire\:loading] {
    height: 100%;
    width: 100%;
}

.image-upload-preview .lds-ring-container {
    background-color: #ffffff83;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-upload-preview .lds-ring {
    width: 32px;
    height: 32px;
}

.image-upload-preview .lds-ring div {
    width: 32px;
    height: 32px;
    margin: 0;
    border: 4px solid #666;
    border-color: #666 transparent transparent transparent;
}

/* END IMAGE UPLOAD PREVIEW (LIVEWIRE COMPONENTS) */

/* WHATSAPP SUPPORT BUTTON */
.whatsapp-support {
    right: 1.25rem;
    bottom: 1.25rem;
}

.whatsapp-support .btn {
    background-color: #25D366 !important;
}

.whatsapp-support a:hover,
.whatsapp-support a:active {
    background-color: #1ca04d !important;
}

.whatsapp-support svg {
    width: 1.5em;
    height: auto;
    fill: white;
}
/* END WHATSAPP SUPPORT BUTTON */

/* WHATSAPP FLOATING CARTA */
.floatings-container {
    right: 16px;
    bottom: 24px;
    gap: 12px;
}

.whatsapp-floating-carta .btn {
    background-color: #25D366 !important;
    width: 50px;
    height: 50px;
}

.whatsapp-floating-carta a:hover,
.whatsapp-floating-carta a:active {
    background-color: #1ca04d !important;
}

.whatsapp-floating-carta svg {
    width: 25px;
    height: auto;
    fill: white;
}
/* END WHATSAPP FLOATING CARTA */

/* OPEN CART BUTTON CARTA */
#WACOpenCart {
    width: 50px;
    height: 50px;
}
/* END OPEN CART BUTTON CARTA */
