@charset "utf-8";
/* CSS Document */

:root {
  --greenBase: #23a54b; /*verde*/
  --greenBaseRgb: 35,165,75; /*verde*/
  --greenLight: #7bca8d; /*verde chiaro*/
  --greenLightRgb: 123,202,141; /*verde*/
  --blackLight: #222222; /*nero chiaro*/
  --black: #000000; /*nero*/
  --grayLight1: #eeeeee; /*grigio chiaro1*/
  --grayLight2: #dddddd; /*grigio chiaro2*/
  --white: #ffffff; 
  --green: #008000; 
  --red: #dc143c; 
}

*, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

body {
  font-family: "Barlow", sans-serif;
  font-size: 1em;
}

body.inshop {
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin:0;
  padding:0;
}

.container {
  width:1190px;
  margin:auto;
}

@media only screen and (max-width: 1280px) {
  body.inshop .container {
    margin-left:1%;
  }
}

@media only screen and (max-width: 767px) {
  .container {
    width:100%;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media only screen and (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(1, 1fr);
  }
}

.btn1,
.btn2,
.btn3 {
  display: flex;
  align-items: center;
  background: var(--greenBase);
  color: var(--white);
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  text-decoration:none;
}

.btn2,
.btn3 {
  padding: 5px 5px;
}

.btn3 {
  background: transparent;
  border-radius:0;
}

.btn1 a {
  color: var(--white);
  text-decoration:none;
}

.btn1:hover {
  background: linear-gradient(to left, rgba(var(--greenBaseRgb), 1) 0%, rgba(var(--greenBaseRgb), 1) 50%, rgba(var(--greenLightRgb), 1) 100%);
  color: var(--white);
  text-decoration:none;
}

.btn1:hover a {
  color: var(--white);
  text-decoration:none;
}

.but-text {
  margin-left:10px;
}

button:disabled,
button[disabled],
button:disabled:hover,
button[disabled]:hover {
  cursor:none;
}

header {
  height:80px;
  padding:10px;
}

@media only screen and (max-width: 767px) {
  header {
    height:56px;
    padding: 10px 20px;
  }
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header #logo {
  height:60px;
  width:300px;
  background-size: contain;
  background-position: top left;
  background-repeat: no-repeat;
}

@media only screen and (max-width: 767px) {
  header #logo {
    height:30px;
    width:150;
  }
}

.site-footer {
  --footerGreenBase: var(--greenBase, #23a54b);
  --footerGreenLight: var(--greenLight, #7bca8d);
  --footerYellow: #ffd72f;
  position: relative;
  min-height: 200px;
  overflow: hidden;
  background: var(--footerGreenBase);
  color: #fff;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: var(--footerGreenLight);
  opacity: .78;
  z-index: 0;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -1px;
  height: 60px;
  background: var(--footerYellow);
  clip-path: polygon(0 38%, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.site-footer__inner {
  position: relative;
  z-index: 2;
  max-width: 1190px;
  margin: 0 auto;
  padding: 30px 20px 0;
}

.site-footer__line,
.site-footer__line a {
  color: #fff;
}

.site-footer__brand,
.site-footer__line strong {
  font-weight: 700;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.site-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, .33);
  transition: color .2s ease, transform .2s ease;
}

.site-footer__socials a:hover {
  color: rgba(255, 255, 255, .82);
  transform: translateY(-1px);
  text-decoration: none;
}

.site-footer__version {
  position: absolute;
  right: 18px;
  bottom: 7px;
  z-index: 3;
  padding: 3px 7px;
  background: rgba(255, 255, 255, .72);
  color: #111;
  font-size: 12px;
  line-height: 1;
}

.site-footer__top {
  position: absolute;
  right: 14px;
  bottom: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: rgba(0, 0, 0, .38);
  text-decoration: none;
}

.site-footer__top:hover {
  background: rgba(0, 0, 0, .55);
  text-decoration: none;
}

@media only screen and (max-width: 767px) {
  .site-footer {
    min-height: 340px;
    font-size: 13px;
  }

  .site-footer__inner {
    padding-top: 24px;
  }

  .site-footer::before {
    bottom: 76px;
    height: 88px;
  }

  .site-footer::after {
    height: 94px;
  }
}

#box-wrapper {
  display:none;
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  width: 1190px;
  height: 300px;
  border-radius: 20px;
}

#page-mov .container {
  display:flex;
  justify-content: space-between;
  align-content: center;
}

div#buttons {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

div#buttons .lang-wrapper {
  position: relative;
  user-select: none;
}

.lang-trigger {
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 40px;
  transition: 0.2s;
}

@media only screen and (max-width: 767px) {
  .lang-trigger {
    padding: 9px 15px;
  }
}

.lang-options {
  position: absolute;
  top: 110%;
  right: 0;
  display: none;
  z-index: 9;
  overflow: hidden;
}

.lang-options.active { 
  display: block; 
}

.lang-item {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

@media only screen and (max-width: 767px) {
  .lang-name {
    display:none;
  }
}

.flag {
  padding-left:20px;
  background-size: contain;
  background-repeat: no-repeat;
  height: 1em;
}

.flag.it {
  background-image: url("assets/flags/flag_it.png");
}

.flag.en {
  background-image: url("assets/flags/flag_en.png");
}

.flag.de {
  background-image: url("assets/flags/flag_de.png");
}

.flag.fr {
  background-image: url("assets/flags/flag_fr.png");
}

.flag.es {
  background-image: url("assets/flags/flag_es.png");
}

.flag.cn {
  background-image: url("assets/flags/flag_cn.png");
}

#cart-btn, #area-btn {
  margin-left:10px;
}

@media only screen and (max-width: 767px) {
  .but-text {
    display:none;
  }
}

div#buttons .cart-wrapper {
  position: relative;
  user-select: none;
}

#cart-box {
  position: absolute;
  top: 110%;
  left: 10px;
  width: calc(100% + 94px);
  display: none;
  z-index: 9;
  overflow: hidden;
}

@media only screen and (max-width: 767px) {
  #cart-box {
    width:100vw;
    left:0;
  }
}

#cart-content {
  position: relative;
  margin-top: 34px;
  padding: 5px;
}

#go-step {
  float: right;
  margin:5px 0;
}

#cart-close {
  position:absolute;
  top:5px;
  right:5px;
  margin-bottom:5px;
}

.cart-item {
  position:relative;
  border-bottom: 1px solid var(--grayLight1);
  padding: 5px 0 5px 20px;
}

.cart-item img {
  display:none;
}

.cart-item .cart-remove {
  position: absolute;
  top: 50%;
  left: 0;
  background: transparent;
  border: 0;
  font-weight: 500;
  transform: translateY(-50%);
}

#hero {
  height: 300px;
  margin:0 auto;
}

@media only screen and (max-width: 767px) {
  #hero {
    height: 150px;
  }
}

#hero .container {
  position: relative;
  overflow: hidden;
  border-radius:20px;
  background: 
   linear-gradient(to right, rgba(var(--greenBaseRgb), 1) 0%, rgba(var(--greenBaseRgb), 1) 50%, rgba(var(--greenBaseRgb), 0.65) 100%),
   url('assets/hero-image.jpg') no-repeat;
  height: 100%;
  background-size: 100%, auto 400px;
  background-position: center left, bottom right;
  padding:20px;
  color:var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

#hero .container::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50px;
  background: var(--greenLight);
  opacity: .78;
  z-index: 0;
}

#hero .container::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -1px;
  height: 50px;
  background: #ffd72f;
  clip-path: polygon(0 38%, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

#hero .container > * {
  position: relative;
  z-index: 2;
}

#hero h1 {
  font-size: 5em;
  line-height: 0.7em;
  margin-bottom: 20px;
}

@media only screen and (max-width: 767px) {
  #hero h1 {
    font-size: 2em;
    margin: 7px 0;
  }
}

#hero h2 {
  text-transform:uppercase;
  color:var(--greenLight);
}

@media only screen and (max-width: 767px) {
  #hero h2 {
    font-size: 1.25em;
  }
}

#hero h3 {
  font-weight: 400;
}

#breadcrumbs {
  margin-bottom:0;
}

@media only screen and (max-width: 767px) {
  section:has(> #breadcrumbs) {
    display:none;
  }
}

#breadcrumbs .container {
  display:flex;
  justify-content: space-between;
  align-content: center;
  border-radius:20px;
}

#breadcrumbs ul {
  display: flex;
  list-style: none;
  padding: 0;
  width: calc(100% + 15px);
  margin-right: -15px;
  padding-left: 15px;
  overflow-x: hidden;
}

#breadcrumbs ul li {
  /*
  display: flex;
  align-items: center;
  */
  transition: background 0.3s ease;
  clip-path: polygon(0% 0%, calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 0% 100%, 15px 50%);
  margin-left: -15px;
  width: 100%;
  margin-right: 10px;
  padding: 10px 20px;
  cursor: pointer;
  user-select: none;
}

#breadcrumbs ul li:first-of-type {
  margin-left: -15px;
}

#breadcrumbs ul li.active {
  background: var(--greenBase);
  color:var(--white);
}

#breadcrumbs ul li.disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

#breadcrumbs ul li:focus-visible {
  outline: 2px solid var(--greenBase);
  outline-offset: 2px;
}

#breadcrumbs ul li span {
  font-size: 0.8em;
}

section {
  padding:10px 0;
}

@media only screen and (max-width: 767px) {
  section {
    width: calc(100% - 40px);
    margin: auto;
  }
}

section#step4 .grid-2 {
  align-items:start;
}

div#filters,
div#reviews,
div.customer-box,
div#contract-box,
div#payment-box {
  border-radius:20px;
  padding:20px;
}

div#filters h2 a.item_filter,
div#reviews h2 a.item_filter {
}

.contract-rental-summary {
  margin-bottom:20px;
}

.contract-rental-summary table {
  width:100%;
  border-collapse:collapse;
}

.contract-rental-summary table td {
  padding:6px 8px;
  border-bottom:1px solid rgba(128,128,128,0.25);
  vertical-align:top;
}

.contract-rental-summary table td:first-child {
  width:35%;
}

#contract-box > p:first-of-type {
  font-weight:bold;
}

.contract-items {
  display:grid;
  gap:6px;
  margin-bottom:20px;
}

.contract-item {
  display:flex;
  align-items:baseline;
  gap:8px;
  flex-wrap:wrap;
}

.contract-item-qty,
.contract-item-name {
  font-weight:bold;
}

.contract-item-details {
  font-size:0.9em;
  opacity:0.85;
}

.contract-actions {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

@media only screen and (max-width: 767px) {
  div#filters h2 a.item_filter,
  div#reviews h2 a.item_filter {
    
  }
}

div#filters form,
div#reviews form,
div.customer-box form {
  margin-top:10px;
  grid-row-gap: 10px;
}

@media only screen and (max-width: 767px) {
  div#filters form {
    display:none;
  }
}

div#filters form .form-field,
div#reviews form .form-field,
div.customer-box .form-field {
  position: relative;
}

div.customer-box .form-field {
  margin-bottom:10px;
}

div#filters label,
div#filters select,
div#filters input,
div#reviews label,
div#reviews select,
div#reviews input,
div.customer-box label,
div.customer-box select,
div.customer-box input {
  display:block;
  width:100%;
}

div#filters select,
div#filters input,
div#reviews select,
div#reviews input,
div.customer-box select,
div.customer-box input {
  padding:5px;
  border:1px solid var(--grayLight2);
  background: transparent;
  border-radius:5px;
}

div#filters select.error,
div#filters input.error,
div#reviews select.error,
div#reviews input.error,
div.customer-box select.error,
div.customer-box input.error {
  border-color:var(--red);
}

div#payment-box ul {
  list-style-type: none;
}

div#payment-box ul li {
  display: flex;
  gap: 12px;
  margin-bottom:20px;
}

div#payment-box ul li span.title {
  font-weight: bold;
}

#myarea .myarea-grid {
  align-items:start;
}

.myarea-box-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.myarea-user-summary,
.myarea-rental-meta {
  display:grid;
  gap:10px;
  margin-bottom:15px;
}

.myarea-summary-row,
.myarea-rental-meta > div {
  display:grid;
  gap:4px;
  padding:10px 12px;
  border:1px solid var(--grayLight1);
  border-radius:10px;
}

.myarea-summary-row span,
.myarea-rental-meta span {
  font-size:0.85em;
  opacity:0.75;
}

.myarea-rentals {
  display:grid;
  gap:16px;
}

.myarea-rental-card {
  border:1px solid var(--grayLight1);
  border-radius:14px;
  padding:16px;
}

.myarea-rental-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:15px;
}

.myarea-rental-head h3 {
  margin-bottom:4px;
}

.myarea-rental-status {
  padding:6px 10px;
  border-radius:999px;
  background:rgba(var(--greenBaseRgb), 0.12);
  color:var(--greenBase);
  font-weight:600;
  white-space:nowrap;
}

.myarea-rental-items {
  display:grid;
  gap:8px;
  margin-bottom:15px;
}

.myarea-rental-item {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom:8px;
  border-bottom:1px solid var(--grayLight1);
}

.myarea-rental-item:last-child {
  border-bottom:0;
  padding-bottom:0;
}

.myarea-rental-links {
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.myarea-rental-links a {
  color:var(--greenBase);
  text-decoration:none;
  font-weight:600;
}

.myarea-rental-links a:hover {
  text-decoration:underline;
}

#myarea .btn3 {
  padding:0;
}

@media only screen and (max-width: 767px) {
  .myarea-box-head,
  .myarea-rental-head,
  .myarea-rental-item {
    display:grid;
  }
}

#payment .panel {
  margin:0;
}

#payment .panel-heading {
  margin-bottom:15px;
}

#payment .panel-heading p {
  margin-bottom:8px;
}

#payment .panel-body {
  display:grid;
  gap:12px;
}

#payment .panel-body p {
  margin:0;
}

#payment .payment-summary {
  width:100%;
  border-collapse:collapse;
}

#payment .payment-summary td {
  padding:6px 8px;
  border-bottom:1px solid rgba(128,128,128,0.25);
  vertical-align:top;
}

#payment .payment-summary td:first-child {
  width:35%;
}

#payment .payment-loading {
  font-weight:bold;
}

#payment .field,
#payment input[type="text"],
#payment input[type="email"] {
  display:block;
  width:100%;
  padding:8px;
  border:1px solid var(--grayLight2);
  background:transparent;
  border-radius:5px;
}

#form-stripe {
  display:grid;
  gap:14px;
}

#form-stripe p {
  margin:0;
}

#paymentElement {
  margin-top:4px;
}

#paymentResponse {
  padding:6px 8px;
  border-radius:5px;
  background:rgba(128,128,128,0.12);
}

#frmProcess {
  display:flex;
  align-items:center;
  gap:8px;
}

#payment .hidden {
  display:none !important;
}

#payment .btn,
#payment button {
  border:0;
  cursor:pointer;
}

#payment .btn-success,
#payment .btn-primary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  justify-self:start;
  padding:10px 16px;
  border-radius:20px;
  background:var(--greenBase);
  color:var(--white);
  font-weight:bold;
  font-family:inherit;
}

#payment .btn-success:hover,
#payment .btn-primary:hover {
  background: linear-gradient(to left, rgba(var(--greenBaseRgb), 1) 0%, rgba(var(--greenBaseRgb), 1) 50%, rgba(var(--greenLightRgb), 1) 100%);
  color:var(--white);
}

#payment .btn-success:disabled,
#payment .btn-primary:disabled {
  opacity:0.6;
  cursor:default;
}

.toggle-password {
  position:absolute;
  right:0;
  bottom:10px;
  cursor:pointer;
  width:30px;
}

.toggle-password:after {
  content:"\f06e";
  font-family:"Font Awesome 6 Free";
  position:absolute;
  bottom:-5px;
  left:calc(50% - 10px);
}

.toggle-password.active:after {
  content:"\f070";
}

span.details, 
span.default, 
span.chars {
  font-size:0.8em;
  font-style:italic;
  display:block;
  width:100%;
  text-align:right;
}

span.details.left,
span.default.left, 
span.chars.left{
  text-align:left;
}

span.default {
  display:none;
}

#search-btn {
  margin-top:10px;
}

@media only screen and (max-width: 767px) {
  #search-btn {
    display:none;
    width:100%;
  }
  
  #search-btn .but-text {
    display: inline;
  }
}

.responseForm {
  margin-top:10px;
  padding:5px;
}

.responseForm.error {
  background: var(--red);
  color:var(--white);
}

.responseForm.ok {
  background: var(--green);
  color:var(--white);
}

#bikes-list h1,
#optionals-list h1,
#step3 h1,
#step4 h1,
#step5 h1,
#step6 h1,
#step7 h1 {
  margin-bottom:20px;
}

div.bike-card,
div.optional-card {  
  border-radius: 20px;
  position: relative;
  padding-bottom:50px;
}

div.bike-card img,
div.optional-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius:20px 20px 0 0;
}

div.bike-card .text,
div.optional-card .text {
  padding:15px;
}

div.bike-card .options,
div.optional-card .options {
  gap: 10px;
  margin:10px 0;
}

div.bike-card .options span,
div.optional-card .options span {
  padding: 10px;
  border-radius:10px;
}

div.bike-card div.order,
div.optional-card div.order {
  border-top:1px solid var(--grayLight2);
  padding:10px 0;
  position: absolute;
  bottom:0;
  display:flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 30px);
}

div.bike-card div.order select,
div.optional-card div.order select {
  padding: 5px;
  border: 1px solid var(--grayLight2);
  background: transparent;
  border-radius: 5px;
}

@media only screen and (max-width: 767px) {
  .add2cart-btn .but-text {
    display: inline;
  }
}

.bike-pupoints ul,
.optional-pupoints ul {
  list-style-type: none;
}

#google-pupoints-map {
  width: 100%;
  height: 460px;
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--grayLight1);
}

#google-pupoints-map-message {
  margin-top: 10px;
}

.pupoint-infowindow {
  width: 260px;
  max-width: 70vw;
  font-family: "Barlow", sans-serif;
}

.pupoint-infowindow img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
}

.pupoint-infowindow-body {
  padding: 10px 0 0 0;
}

.pupoint-infowindow-body strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.pupoint-infowindow-body p {
  margin: 5px 0;
  line-height: 1.35;
}

.pupoint-infowindow-body a {
  color: var(--greenBase);
  text-decoration: none;
}

.pupoint-opening-hours {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--grayLight2);
}

.pupoint-opening-hours strong {
  margin-bottom: 6px;
  font-size: .95rem;
}

.pupoint-opening-hours ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pupoint-opening-hours li {
  margin: 3px 0;
  line-height: 1.3;
}

.pupoint-infowindow .pupoint-map-select {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

/* --- Cart/Login modal loaded via #box-wrapper --- */

body.box-open {
  overflow: hidden;
}

.box-loading {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  padding:20px;
  border-radius:20px;
}

#cart-box,
#login-box,
#cart-message-box,
#box-wrapper > .customer-box,
#box-wrapper > form,
#box-wrapper > h2 {
  z-index: 999;
}

#cart-box {
  max-height: calc(100vh - 40px);
  overflow-y:auto;
}

#cart-box h2 {
  margin:0 0 15px 0;
}

#cart-close,
#login-close,
.box-close {
  position:absolute;
  top:10px;
  right:10px;
  width:24px;
  height:24px;
  line-height:20px;
  border:0;
  border-radius:50%;
  background:var(--blackLight);
  color:var(--white);
  font-size:18px;
  cursor:pointer;
  z-index:10001;
}

#cart-content {
  margin-top:0;
  padding:0;
}

.cart-empty {
  padding:20px 0;
}

.cart-items-box {
  border-bottom:1px solid var(--grayLight1);
}

.cart-item {
  display:grid;
  grid-template-columns: 24px 42px minmax(0, 1fr) auto auto;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:6px 0;
  border-bottom:1px solid var(--grayLight1);
}

.cart-item:last-child {
  border-bottom:0;
}

.cart-item .cart-remove {
  position:static;
  transform:none;
  width:20px;
  height:20px;
  padding:0;
  background:transparent;
  border:0;
  color:var(--blackLight);
  cursor:pointer;
}

.cart-item-image {
  width:42px;
  height:32px;
  overflow:hidden;
  border-radius:4px;
}

.cart-item-image img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.cart-item-main {
  min-width:0;
}

.cart-item-main strong,
.cart-item-main span {
  display:block;
}

.cart-item-main strong {
  font-size:0.95em;
  line-height:1.1;
}

.cart-item-main span {
  font-size:0.75em;
  opacity:.8;
}

.cart-item-actions {
  white-space:nowrap;
  font-size:0.8em;
}

.cart-item-actions select {
  padding:3px;
  border:1px solid var(--grayLight2);
  border-radius:4px;
  background:transparent;
}

.cart-item-price {
  min-width:80px;
  text-align:right;
  font-weight:500;
}

.cart-item-price label,
.cart-item-price span {
  display:block;
}

.cart-item-price input {
  width:90px;
  padding:3px;
  text-align:right;
}

.cart-summary-row,
#cart-summary-row {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:25px;
  padding:8px 0 15px;
  font-weight:500;
}

#cart-rental-box {
  display:grid;
  grid-template-columns: 1fr;
  gap:8px;
  max-width:420px;
  margin-left:auto;
}

.cart-rental-field {
  display:grid;
  grid-template-columns: 145px 1fr;
  align-items:center;
  gap:10px;
}

.cart-rental-field label {
  text-align:right;
}

.cart-rental-field input,
.cart-rental-field select {
  width:100%;
  padding:6px;
  border:1px solid var(--grayLight2);
  border-radius:5px;
  background:transparent;
}

.voucher-input-action {
  display:flex;
  gap:8px;
}

.voucher-input-action input {
  flex:1;
}

.voucher-input-action .voucher-check-btn {
  flex:0 0 auto;
  padding:6px 14px;
  font-size:0.9rem;
}

.voucher-message {
  display:block;
  margin-top:6px;
}

.cart-list-summary {
  margin-top:20px;
  text-align:right;
}

.cart-list-summary p {
  margin:4px 0;
}

#cart-actions {
  display:flex;
  justify-content:flex-end;
  margin-top:15px;
}

@media only screen and (max-width: 767px) {
  #cart-box {
    max-height:calc(100vh - 20px);
  }

  .cart-item {
    grid-template-columns: 24px 42px minmax(0, 1fr);
  }

  .cart-item-actions,
  .cart-item-price {
    grid-column: 3 / 4;
    justify-self:end;
  }

  .cart-rental-field {
    grid-template-columns:1fr;
    gap:4px;
  }

  .cart-rental-field label {
    text-align:left;
  }
}

/* --- FIX DEFINITIVO overlay carrello/login via #box-wrapper ---
   Deve stare in fondo al file per sovrascrivere le vecchie regole:
   - #box-wrapper absolute/top 110px
   - #cart-box display:none
*/
#box-wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  width: 100vw;
  height: 100vh;
  transform: none;
  border-radius: 0;
  z-index: 9999;
  overflow-y: auto;
}

body.box-open #box-wrapper {
  display: block;
}

#box-wrapper #cart-box,
#box-wrapper #login-box,
#box-wrapper #cart-message-box,
#box-wrapper > .customer-box {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 800px;
  max-width: calc(100vw - 40px);
  height: auto;
  max-height: calc(100vh - 40px);
  margin-left: 0;
  transform: translate(-50%, -50%);
  z-index: 10000;
  border-radius: 20px;
  padding: 15px 20px;
  overflow-y: auto;
}

#box-wrapper #cart-box,
#box-wrapper #login-box,
#box-wrapper #cart-message-box,
#box-wrapper > .customer-box,
#box-wrapper .box-loading {
  padding-top: 40px;
}

#box-wrapper #login-box,
#box-wrapper #cart-message-box,
#box-wrapper > .customer-box {
  width: 585px;
}

#cart-message-box h2 {
  margin: 0 0 10px 0;
}

.cart-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.booking-success-box h2 {
  margin: 0 0 10px 0;
}

.booking-success-box p {
  margin: 0 0 12px 0;
}

.booking-success-countdown {
  font-size: 0.95rem;
}

.booking-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.payment-panel .booking-success-actions {
  margin-top: 20px;
}

#box-wrapper #cart-content {
  margin-top: 0;
  padding: 0;
}

@media only screen and (max-width: 767px) {
#box-wrapper #cart-box,
#box-wrapper #login-box,
#box-wrapper #cart-message-box,
#box-wrapper > .customer-box {
    top: 10px;
    left: 10px;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    transform: none;
    margin-left: 0;
  }
}
