.delete-icon {
    cursor: pointer;
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: #fff; */
}

.col-sx {
    padding-top: 70px;
}

.hidden-bg {
    overflow: hidden;
}

/* base righelli */
.ruler {
    position: absolute;
    color: #666;
    font-size: 12px;
    pointer-events: none;
}

/* righello sopra */
.ruler-top {
    top: -40px;
    left: 0;
    /* width: 100%; */
    height: 30px;
    border-top: 1px solid #aaa;
}

.ruler-top::before,
.ruler-top::after {
    content: "";
    position: absolute;
    top: 0;
    height: 10px;
    border-left: 1px solid #aaa;
}

.ruler-top::before {
    left: 0;
}

.ruler-top::after {
    right: 0;
}

/* righello a sinistra */
.ruler-left {
    left: -40px;
    top: 0;
    /* height: 100%; */
    width: 30px;
    border-left: 1px solid #aaa;
}

.ruler-left::before,
.ruler-left::after {
    content: "";
    position: absolute;
    left: 0;
    width: 10px;
    border-top: 1px solid #aaa;
}

.ruler-left::before {
    top: 0;
}

.ruler-left::after {
    bottom: 0;
}

/* etichette */
.ruler .label {
    position: absolute;
    padding: 0 6px 1px;
    border-radius: 2px;
}

.ruler-top .label:not(.inner) {
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
}

.ruler-top .label.inner {
    top: 8px;
    width: 280px;
    /* left: 50%; */
    /* transform: translateX(-50%); */
    
    text-align: center;
    border-bottom: 1px solid #aaa;
    border-left: 1px solid #aaa;
    border-right: 1px solid #aaa;
    border-radius: 0;

}

.ruler-left .label:not(.inner) {
    left: -25px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

.ruler-left .label.inner {
    transform: rotate(-90deg);
}

.ruler-left .label.inner {
    left: 9px;
    /* height: 250px; */
    /* top: 50%; */
    /* transform: translateY(-50%) rotate(-90deg); */
      transform-origin: top left;

    text-align: center;
    border-bottom: 1px solid #aaa;
    border-left: 1px solid #aaa;
    border-right: 1px solid #aaa;
    border-radius: 0;
}

.col-sx-container {
    position: sticky;
    top: 200px;
}

.preview {
    overflow: hidden;
    object-fit: contain;
    width: auto;
    height: 120px;
    margin: 0;
    border: 1px solid #997f68;
}

.placeholder {
    width: 100%;
    height: 100%;
    background: #eae6e2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-seleziona {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.modal-configuratore-prodotti {
    margin-top: 40px;
}

.modal-configuratore-prodotti .modal-header {
    padding: 1rem;
    background: #f2eeea;
    border-bottom: none;
}

.modal-configuratore-prodotti .modal-body {
    padding: 1rem 1rem 0;
}

.modal-lg {
    max-width: 1000px !important;
}


.col-form-label {
    padding: 0 0 5px;
}

.modal-backdrop {
    background: rgba(22, 30, 50, .9);
}

.modal-header {
    padding: 1rem 0;
}

.modal-body {
    padding: 0;
}

.modal-footer {
    border-top: none;
}

.modal-body .fa-search {
    position: absolute;
    left: 40px;
}

.search-form .form-control-lg {
    height: auto;
    padding: 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border: none;
    border-radius: 9px;
}

@media (max-width: 767px) {

    h1,
    .h1 {
        font-size: 1.75rem;
    }
}

.logo-pagamento-accettato {
    width: 30px;
    height: 100%;
}


/* Assicurati che il contenitore dell'immagine sia relativo per il posizionamento dell'overlay */
.saz-cropper-section {
    position: relative;
    padding-left: 0px;
    padding-right: 0px;
}

.overlay-print {
    position: absolute;
    /* Overlay posizionato sopra l'immagine */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    /* Disabilita l'interazione con l'overlay */
    z-index: 10;
    /* Posiziona l'overlay sopra l'immagine */
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.img-prese {
    display: block;
    max-width: 100%;
}

.pin {
    position: absolute;
    box-shadow: inset 0 0 0 2px red;
    background-color: rgba(255, 0, 0, 0.568);

    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    user-select: none;

    counter-increment: pin-counter;
}

.pin::before {
    content: counter(pin-counter);
    position: absolute;
    top: 0;
    left: 0;

    background: red;
    color: white;
    font-weight: bold;
    font-size: 16px;
    /* border-radius: 25%; */
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000,
        -1px 1px 0 #000, 1px 1px 0 #000;
    z-index: 999;
    /* opzionale: per stare sopra il pin */
}



.pin-circle {
    border-radius: 50%;
    border: 2px solid red;
    background-color: rgba(255, 0, 0, 0.3);
    position: absolute;
}

.nav-tabs {
    border-bottom: 1px solid #272727;
}

.nav-tabs .nav-item:not(.tab-codice),
.nav-tabs .nav-item:not(.tab-codice).show {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-bottom: none;
    padding: 1rem .75rem;
}

.nav-tabs .nav-item.active,
.nav-tabs .nav-item.show {
    color: #495057;
    border: 1px solid #272727;
    border-bottom: 1px solid #fff !important;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    background-color: transparent;
}

.nav-tabs .nav-link:not(.panel-type) {
    border: none;
    padding: 0;
}

.nav-item .icon-remove:hover {
    color: var(--danger)
}

.nav-item:hover .icon-add {
    color: var(--secondary)
}

.nav-item:hover .icon-riepilogo {
    color: var(--secondary)
}


.step-container {
    display: inline-flex;
    margin-top: 0;
    position: relative;
    align-items: center;
    margin: 0 0 30px;
    width: 100%;
}

.step {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
}

.step-circle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    margin-right: 8px;
    font-weight: 600;
    font-size: .875rem;
    line-height: 1;
}


.step.disabled .step-circle {
    background-color: #ccc;
}

.step.disabled {
    color: #997f68;
}

.line {
    height: 1.5px;
    width: 40px;
    background-color: #dad3cc;
    margin: 0 10px;
}

.step-title {
    text-align: center;
    font-size: .875rem;
    color: #997f68;
}

.step.disabled .step-title {
    text-align: center;
    color: #a7a7a7;
    background: transparent;
}


.spinner-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.6);
    /* leggera opacità */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1055;
}

@media (max-width: 991px) {
    .modal-dialog {
        max-width: 90%;
        margin: 1.75rem auto;
    }

    .tab-codice a {
        padding: 0.5rem;
        font-size: .75rem;
    }

    .nav-tabs .nav-item:not(.tab-codice),
    .nav-tabs .nav-item:not(.tab-codice).show {
        padding: 0.5rem;
        font-size: .875rem;
    }

    .line {
        height: 2px;
        width: 100px;
        background-color: #dad3cc;
        margin: 0 10px;
    }

    .step-title,
    .step.disabled .step-title {
        font-size: .75rem;
    }
}


.print-only h2 {
    margin-bottom: 2rem;
    border-bottom: 1px solid #000;
    padding-bottom: 0.5rem;
}

.print-panel {
    page-break-inside: avoid;
}

.print-panel img {
    max-width: 100%;
    height: auto;
    border: 1px solid #997f68;
}

.print-panel ul {
    padding-left: 1rem;
    margin-bottom: 0;
}

.print-panel li {
    margin-bottom: 0.5rem;
    font-size: 14px;
}


@media screen {
    .print-only {
        display: none !important;
    }
}

@media print {
    .print-only {
        display: block;
    }

    .hide-on-print {
        display: none;
    }


}


table td {
    vertical-align: middle !important;
}


/* Nasconde lo sfondo scuro attorno al crop box */
.cropper-crop-box::before,
.cropper-crop-box::after,
.cropper-view-box::before,
.cropper-view-box::after {
    background: transparent !important;
}

.cropper-crop-box {
    outline: 1px solid #997f68 !important;
    outline-color: #997f68 !important;
}

/* In alcune versioni la maschera è questa */
.cropper-modal {
    opacity: 0 !important;
    background: transparent !important;
}

/* Rende più scura l'area fuori dal crop box */
.cropper-face {
    background-color: rgba(0, 0, 0, 0.7) !important;
    /* Aumenta l'opacità */
    opacity: 0.7 !important;
}

.cropper-canvas {
    background: transparent !important;
}

.seleziona-immagine-img,
.card-diamanti img[data-toggle="modal"] {

    cursor: pointer;
}

.area-bloccata {
    pointer-events: none;
}

.area-bloccata-opaca {
    display: none;
    pointer-events: none;
}

.link-custom {
    text-decoration: underline;
}

.input-error {
    border: 1px solid red;
}

.cropper-bg {
    background: #fff !important;
}

.cropper-container-wrapper {
    position: relative;
    /* Importante per posizionare l'immagine al suo interno */
    overflow: hidden;
    /* Se l'immagine sforasse, verrebbe nascosta dal wrapper */
    /* Altre proprietà di styling */
    border: 1px solid #ccc;
    /* Per visualizzare i bordi del contenitore */
}

.cropper-container-wrapper img.anteprima_step1 {
    display: block;
    /* Evita spazio bianco extra sotto l'immagine */
    max-width: 100%;
    /* Assicurati che l'immagine non sfori il suo genitore */
}

.op-0 {
    opacity: 0 !important;
}


.ratio500x310 {
    width: 100%;
    aspect-ratio: 1.6129032258;
    overflow: hidden;
}

.ratio300x300 {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.ratio300x60 {
    width: 100%;
    aspect-ratio: 5;
    overflow: hidden;
}

.ratio500x310 img,
.ratio300x300 img,
.ratio300x60 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zoom .btn, .flip .btn{
    min-width: 60px;
}