* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #222;
}

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

/* Correzione generale pulsanti iPhone / Safari */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  color: #333 !important;
  -webkit-text-fill-color: #333 !important;
  font-family: Arial, sans-serif;
  opacity: 1;
  -webkit-appearance: none;
  appearance: none;
}

/* LinkButton ASP.NET visualizzati come pulsanti */
a.filtro,
a.modello-card,
a.btn-inline,
a.btn-primary,
a.btn-secondary,
a.btn-verifica,
a.carrello-del,
a.logout {
  -webkit-text-fill-color: currentColor !important;
}

.page-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 16px 30px;
}

.page-header {
  margin-bottom: 18px;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo-header {
    width: 140px;
    height: auto;
    display: block;
    object-fit: contain;
}

.page-header h1 {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  color: #333;
}

/* Box generici */
.box {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 14px;
  padding: 14px;
  min-width: 0;
}

.titolo {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #222;
}

.mt-16 {
  margin-top: 16px;
}

/* Parte superiore */
.top-layout {
  display: grid;
  grid-template-columns: 2.2fr 1.3fr 1.3fr;
  gap: 18px;
  align-items: start;
}

/* Modelli */
.modelli-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.modello-card {
  display: block;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  overflow: hidden;
  background: #fafafa;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease;
}

.modello-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}

.modello-card img {
  width: 100%;
  height: auto;
  display: block;
}

.modello-nome {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  background: #fff;
  border-top: 1px solid #eee;
}

.modello-hover,
.modello-img-wrap {
  position: relative;
  overflow: visible;
}

.modello-img-main {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .18s ease;
}

.modello-hover:hover .modello-img-main {
  transform: scale(1.03);
}

.texture-popup {
  position: absolute;
  top: 12px;
  left: calc(100% + 12px);
  width: 260px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  padding: 8px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  pointer-events: none;
}

.modello-hover:hover .texture-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.texture-popup-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.texture-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}

.texture-overlay.show {
  opacity: 1;
  visibility: visible;
}

.texture-content {
  max-width: 80%;
  max-height: 80%;
}

.texture-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

/* Dimensioni */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filtro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 8px 10px;
  text-decoration: none;
  background: #fff;
  color: #222;
  font-size: 13px;
  line-height: 1;
  user-select: none;
  transition: transform .05s ease, box-shadow .1s ease, outline-color .1s ease;
}

.filtro:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.filtro:active {
  transform: translateY(1px);
}

.pill {
  min-width: 56px;
  text-align: center;
  font-weight: 600;
  padding: 8px 12px;
}

.selezionato {
  outline: 2px solid #333;
  outline-offset: 2px;
}

.disabilitato {
  opacity: .35;
  pointer-events: none;
}

/* Finiture */
.colori-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.filtro.filtro-colore {
  width: 100%;
  min-height: 52px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-align: center;
  white-space: normal;
  position: relative;
  overflow: hidden;
}

.filtro.filtro-colore .color-name {
  color: dimgrey;
  font-weight: 600;
  padding: 0 6px;
  text-shadow: none;
}

/* Bottone verifica */
.verifica-wrap {
  text-align: center;
  margin: 28px 0 24px;
}

.btn-verifica {
  min-width: 200px;
  padding: 12px 22px;
  border: 1px solid #333;
  border-radius: 12px;
  background-color: #fff;
  color: #333 !important;
  -webkit-text-fill-color: #333 !important;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  font-family: Arial, sans-serif;
  opacity: 1;
  -webkit-appearance: none;
  appearance: none;
}

.btn-verifica:hover,
.btn-verifica:focus,
.btn-verifica:active {
  background-color: #f2f2f2;
  color: #333 !important;
  -webkit-text-fill-color: #333 !important;
}

/* Parte inferiore */
.bottom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 450px;
  gap: 20px;
  align-items: start;
}

.left-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.right-cart {
  position: sticky;
  top: 16px;
}

/* Quantita */
.qta-row {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.qta-input {
  width: 90px;
}

.qta-actions {
  margin-top: 16px;
  text-align: right;
}

.btn-inline,
.btn-primary,
.btn-secondary {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  background-color: #fff;
  color: #333 !important;
  -webkit-text-fill-color: #333 !important;
  font-family: Arial, sans-serif;
  opacity: 1;
  -webkit-appearance: none;
  appearance: none;
}

.btn-primary {
  border-color: #333;
  font-weight: 600;
}

/* Legenda */
.legenda-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.legenda-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legenda-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.25;
}

.legenda-item .giacenza-dot {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.legenda-testo {
  display: inline-block;
  font-size: 14px;
  color: #222;
}

/* Disponibilita */
.disponibilita-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.disponibilita-head .titolo {
  margin: 0;
}

.disp-filter {
  display: flex;
  gap: 10px;
  align-items: center;
}

.disp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 32px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
}

.disp-btn.selezionato {
  outline: 2px solid #333;
  outline-offset: 2px;
}

.giac-dot,
.giacenza-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.giac-verde {
  background: #388e3c;
}

.giac-arancio {
  background: #f9a825;
}

.giac-rosso {
  background: #d32f2f;
}

.risultati-scroll {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.ris-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 8px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
}

.ris-row:first-of-type {
  border-top: none;
}

.ris-info {
  flex: 1;
}

.ris-giac,
.ris-buy {
  width: 40px;
  text-align: center;
}

.ris-buy img {
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: .9;
}

.ris-buy img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Carrello */
.carrello-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.carrello-grid th {
  text-align: left;
  padding: 6px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  color: #333;
}

.carrello-grid td {
  padding: 6px;
  border-bottom: 1px solid #f2f2f2;
  vertical-align: top;
}

.carrello-del {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  color: #444;
}

.carrello-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.carrello-info {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

/* =========================================================
   PAGINA DI ACCESSO
   ========================================================= */

.login-page {
    font-family: Arial, sans-serif;
    background: #fff;
    color: #222;
    margin: 0;
    padding: 0 16px;
}

    .login-page .login-box {
        box-sizing: border-box;
        width: 100%;
        max-width: 520px;
        margin: 60px auto;
        border: 1px solid #eee;
        border-radius: 14px;
        padding: 18px;
        background: #fff;
    }

    .login-page .login-title {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 16px;
    }

    .login-page label {
        display: block;
        font-size: 13px;
        margin: 12px 0 6px;
    }

    .login-page .login-textbox {
        box-sizing: border-box;
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 10px;
        background-color: #fff;
        color: #222;
        -webkit-text-fill-color: #222;
        font-family: Arial, sans-serif;
        font-size: 14px;
        opacity: 1;
    }

    .login-page .login-actions {
        margin-top: 14px;
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .login-page .login-button {
        border: 1px solid #333;
        background-color: #fff;
        border-radius: 10px;
        padding: 10px 14px;
        cursor: pointer;
        font-family: Arial, sans-serif;
        font-weight: 600;
        font-size: 14px;
        /* Correzione Safari/iPhone */
        color: #333 !important;
        -webkit-text-fill-color: #333 !important;
        opacity: 1;
        -webkit-appearance: none;
        appearance: none;
    }

        .login-page .login-button:hover,
        .login-page .login-button:focus,
        .login-page .login-button:active {
            background-color: #f2f2f2;
            color: #333 !important;
            -webkit-text-fill-color: #333 !important;
        }

    .login-page .login-message {
        display: block;
        margin-top: 12px;
        color: #c62828;
        -webkit-text-fill-color: #c62828;
        font-size: 13px;
    }

.carrello-note {
    margin-top: 18px;
    margin-bottom: 18px;
}

.carrello-note-label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
}

.carrello-note-text {
    width: 100%;
    min-height: 85px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
}

    .carrello-note-text:focus {
        outline: none;
        border-color: #777;
    }

.carrello-note-help {
    margin-top: 5px;
    font-size: 12px;
    color: #777;
}
/* ========================================
   MODALITÀ DI CONSEGNA
   ======================================== */

.order-delivery {
    margin-top: 22px;
    text-align: left;
}

.order-delivery-title {
    font-size: 17px;
    font-weight: 700;
    color: #252525;
    margin-bottom: 3px;
}

.order-delivery-subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 14px;
}


/* CARD */

.order-delivery-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    margin-bottom: 10px;
    background: #fff;
    border: 2px solid #e3e3e3;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

    .order-delivery-card:hover {
        border-color: #b8b8b8;
        background: #fafafa;
    }


    /* NASCONDO IL RADIO ORIGINALE */

    .order-delivery-card input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }


/* RADIO GRAFICO */

.delivery-radio {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 2px solid #aaa;
    border-radius: 50%;
    position: relative;
    box-sizing: border-box;
}

.order-delivery-card.selected .delivery-radio {
    border-color: #333;
}

    .order-delivery-card.selected .delivery-radio::after {
        content: "";
        position: absolute;
        width: 10px;
        height: 10px;
        top: 3px;
        left: 3px;
        background: #333;
        border-radius: 50%;
    }


/* TESTI */

.delivery-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

    .delivery-content strong {
        font-size: 15px;
        line-height: 1.2;
        color: #222;
    }

    .delivery-content small {
        margin-top: 4px;
        font-size: 12px;
        line-height: 1.3;
        color: #777;
    }


/* PREZZO */

.delivery-price {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

.delivery-price-rapid {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}


/* SELEZIONATA */

.order-delivery-card.selected {
    border-color: #333;
    background: #f8f8f8;
    box-shadow: 0 0 0 1px rgba(0,0,0,.03);
}


/* RAPIDA NON DISPONIBILE */

.order-delivery-warning {
    display: flex;
    flex-direction: column;
    margin-top: 6px;
    padding: 12px 14px;
    background: #faf7ef;
    border: 1px solid #eadfbe;
    border-radius: 10px;
    color: #5d5135;
}

    .order-delivery-warning strong {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .order-delivery-warning span {
        font-size: 12px;
        line-height: 1.35;
    }


/* ================================
   MODAL - NOTE
   ================================ */

.order-confirm-notes {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f7f7f7;
    border: 1px solid #dddddd;
    border-radius: 8px;
    text-align: left;
}

.order-confirm-notes-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.order-confirm-notes-text {
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* ========================================
   PULSANTE AGGIUNGI AL CARRELLO
   ======================================== */

.add-cart-button {
    width: 52px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid #d0d0d0;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: .18s ease;
}

    .add-cart-button:hover {
        border-color: #339447;
        box-shadow: 0 3px 10px rgba(0,0,0,.12);
        transform: translateY(-2px);
    }

    .add-cart-button:active {
        transform: scale(.94);
    }

.cart-symbol {
    position: relative;
    display: inline-block;
    line-height: 1;
}

.cart-icon {
    font-size: 27px;
}

.cart-plus {
    position: absolute;
    top: -7px;
    right: -9px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #339447;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
}


/* ========================================
   MULETTO - AGGIUNGI AL CARRELLO
   ======================================== */

.add-forklift-button {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}


    /* PASSAGGIO MOUSE */

    .add-forklift-button:hover {
        border-color: #339447;
        background: #fafefa;
        box-shadow: 0 4px 12px rgba(0,0,0,.12);
        transform: translateY(-2px);
    }


    /* CLICK */

    .add-forklift-button:active {
        transform: scale(.94);
    }


/* CONTENITORE ICONA */

.forklift-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}


/* TUA IMMAGINE ORIGINALE */

.forklift-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    pointer-events: none;
}


/* PALLINO + */

.forklift-plus {
    position: absolute;
    top: -6px;
    right: -7px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #339447;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
}

@media (max-width: 600px) {
    .login-page {
        padding: 0 12px;
    }

        .login-page .login-box {
            margin: 30px auto;
        }
    .logo-header {
        width: 80px;
    }
}

/* Responsive */
@media (max-width: 1100px) {
  .top-layout {
    grid-template-columns: 1fr;
  }

  .bottom-layout {
    grid-template-columns: 1fr;
  }

  .right-cart {
    position: static;
  }
}

/* Smartphone */
@media (max-width: 700px) {
    .page-wrap {
        padding: 12px;
    }

    /* Intestazione disposta verticalmente */
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .logo-header {
        height: auto;
        width: 100%;
        max-width: 200px;
    }

    .page-header h1 {
        flex: 0 0 100%;
        order: 2;
        font-size: 26px;
        line-height: 1.15;
        text-align: center;
    }

    .utente-header {
        order: 3;
        width: 100%;
        text-align: center;
        font-size: 14px;
        line-height: 1.4;
    }

    .logout {
        order: 4;
        display: inline-block;
        font-size: 15px;
        padding: 8px 14px;
    }

    /* Blocchi principali */
    .top-layout,
    .bottom-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .box {
        padding: 14px;
        border-radius: 12px;
    }

    .titolo {
        font-size: 17px;
        margin-bottom: 12px;
    }

    /* Un modello per riga */
    .modelli-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .modello-nome {
        padding: 12px;
        font-size: 15px;
        line-height: 1.3;
    }

    /* Su smartphone il popup hover non serve */
    .texture-popup {
        display: none;
    }

    /* Pulsanti larghezza e profondità */
    .pill-grid {
        gap: 10px;
    }

    .filtro {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 15px;
        line-height: 1.2;
    }

    .pill {
        min-width: 68px;
        flex-grow: 1;
    }

    /* Finiture */
    .filtro.filtro-colore {
        min-height: 58px;
        font-size: 15px;
    }

        .filtro.filtro-colore .color-name {
            font-size: 15px;
        }

    /* Pulsante verifica */
    .verifica-wrap {
        margin: 20px 0;
    }

    .btn-verifica {
        width: 100%;
        min-height: 48px;
        padding: 13px 18px;
        font-size: 16px;
    }

    /* Quantità */
    .qta-row {
        align-items: stretch;
    }

    .qta-input {
        flex: 1;
        width: auto;
        min-width: 0;
        min-height: 46px;
        padding: 10px;
        font-size: 16px;
    }

    .btn-inline,
    .btn-primary,
    .btn-secondary {
        min-height: 46px;
        padding: 11px 16px;
        font-size: 15px;
    }

    .qta-actions .btn-primary {
        width: 100%;
    }

    /* Disponibilità */
    .disponibilita-head {
        flex-wrap: wrap;
    }

    .disp-btn {
        width: 46px;
        height: 46px;
    }

    .ris-row {
        padding: 14px 6px;
        font-size: 14px;
        line-height: 1.4;
    }

    /* Carrello */
    .right-cart {
        position: static;
    }

    .carrello-grid {
        font-size: 13px;
    }

        .carrello-grid th,
        .carrello-grid td {
            padding: 8px 5px;
        }

    .carrello-actions {
        flex-direction: column;
    }

        .carrello-actions .btn-primary,
        .carrello-actions .btn-secondary {
            width: 100%;
        }
}

/* ==========================================
   POPUP ORDINE - VERSIONE PIÙ ARIOSA
   ========================================== */

.order-modal-card {
    width: min(520px, calc(100vw - 30px));
    padding: 30px 32px 28px;
    border-radius: 22px;
}

.order-modal-symbol {
    margin-bottom: 18px;
}

#orderConfirmTitle {
    margin: 0 0 10px 0;
    font-size: 26px;
    line-height: 1.2;
}

#orderConfirmText {
    margin: 0 0 22px 0;
    line-height: 1.5;
    color: #666;
}

.order-summary {
    margin: 0 0 26px 0;
    padding: 14px 18px;
    border-radius: 12px;
    line-height: 1.4;
}

/* CONSEGNA */

.order-delivery {
    margin-top: 0;
    text-align: left;
}

.order-delivery-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 5px;
}

.order-delivery-subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 16px;
}

.order-delivery-card {
    min-height: 68px;
    padding: 15px 16px;
    margin-bottom: 12px;
    border-radius: 12px;
}

.delivery-content strong {
    font-size: 15px;
    line-height: 1.35;
}

.delivery-content small {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.4;
}

.delivery-price {
    margin-left: 12px;
}

/* NOTE NEL RIEPILOGO */

.order-confirm-notes {
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 12px;
}

.order-confirm-notes-title {
    margin-bottom: 7px;
}

/* PULSANTI */

.order-modal-actions {
    margin-top: 26px;
    gap: 12px;
}

    .order-modal-actions .order-button {
        min-height: 48px;
        padding: 12px 20px;
        border-radius: 11px;
    }

/* MOBILE */

@media (max-width: 600px) {

    .order-modal-card {
        width: calc(100vw - 24px);
        padding: 26px 20px 22px;
        border-radius: 18px;
    }

    #orderConfirmTitle {
        font-size: 23px;
    }

    .order-summary {
        margin-bottom: 22px;
    }

    .order-delivery-card {
        padding: 14px;
    }

    .order-modal-actions {
        margin-top: 24px;
    }
}


/* ========================================
   PASSWORD - MOSTRA / NASCONDI
   ======================================== */

.pwd-box {
    position: relative;
    display: block;
    width: 100%;
}

    .pwd-box .pwd-input {
        display: block;
        width: 100%;
        padding-right: 48px !important;
        box-sizing: border-box;
    }

    .pwd-box .pwd-eye {
        position: absolute !important;
        right: 14px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 18px;
        line-height: 1;
        color: #666;
        cursor: pointer;
        user-select: none;
        z-index: 20;
    }

        .pwd-box .pwd-eye:hover {
            color: #222;
        }

.login-secondary-link {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

    .login-secondary-link:hover {
        text-decoration: underline;
    }

/* ========================================
   MIO ACCOUNT
   ======================================== */

.account-container {
    width: 100%;
    max-width: 720px;
    margin: 30px auto 0;
}

.account-box {
    margin-bottom: 18px;
    padding: 20px;
}

.account-field {
    margin-top: 14px;
}

    .account-field label {
        display: block;
        margin-bottom: 6px;
        font-size: 13px;
        font-weight: 600;
        color: #333;
    }

    .account-field .login-textbox {
        box-sizing: border-box;
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 10px;
        background-color: #f8f8f8;
        color: #555;
        -webkit-text-fill-color: #555;
        font-family: Arial, sans-serif;
        font-size: 14px;
        opacity: 1;
    }

        .account-field .login-textbox[readonly] {
            cursor: default;
        }

.account-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 18px;
}

    .account-actions .login-button {
        border: 1px solid #333;
        background-color: #fff;
        border-radius: 10px;
        padding: 10px 14px;
        cursor: pointer;
        font-family: Arial, sans-serif;
        font-weight: 600;
        font-size: 14px;
        color: #333 !important;
        -webkit-text-fill-color: #333 !important;
        opacity: 1;
        -webkit-appearance: none;
        appearance: none;
    }

        .account-actions .login-button:hover {
            background-color: #f2f2f2;
        }


/* Smartphone */

@media (max-width: 700px) {

    .account-container {
        margin-top: 20px;
    }

    .account-box {
        padding: 16px;
    }

    .account-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .account-actions .login-button,
        .account-actions .btn-secondary {
            width: 100%;
            min-height: 46px;
        }

    .account-link {
        order: 4;
        display: inline-block;
        font-size: 15px;
        padding: 8px 14px;
    }

    .logout {
        order: 5;
    }
}
    /* ========================================
   LINK MIO ACCOUNT
   ======================================== */

    .account-link {
        display: inline-block;
        color: #333;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }

        .account-link:hover {
            text-decoration: underline;
        }

.account-password-panel {
    margin-top: 22px;
    padding-top: 6px;
    border-top: 1px solid #eee;
}

.account-password-message {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    color: #c62828;
}
.account-password-success {
    color: #2e7d32;
}