/* =========================
   MODALS
========================= */
.modal-aprovada {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999; /* Ensures it stays on top of all other elements */
    background-color: rgba(0, 0, 0, 0.3); /* Change 0.0 to 0.5 if you want a dim effect */
    cursor: pointer;
}


.modal-touch,
.modal-img {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  text-align: center;
}

.modal-img {
  background-color: white;
}

.modal-offline {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.2);
  z-index: 9999; /* Forces the gray background OVER the buttons */
}

.modal-offline-box {
  background: white;
  padding: 10px;
  width: 200px;
  height: 50px;
  border-radius: 10px;
  box-shadow: 0 0 10px black;

  display: flex;
  justify-content: center;
  align-items: center;

  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  font-size: 20px;
  font-weight: bold;
  z-index: 9999; /* Forces the gray background OVER the buttons */
}

/* =========================
   CLOCK
========================= */
.time_now {
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  margin-top: 30px;
}
/* ======================================================================
   RESPONSIVE MOBILE ADJUSTMENTS (Screens 480px or smaller)
======================================================================= */
@media (max-width: 480px) {
  .time_now {
    font-size: 17px;      /* Reduces text size on mobile screens */
    margin-top: 15px;     /* Reduces top spacing on mobile */
    padding: 0 10px;      /* Keeps text safe from screen edges */
  }
}

/* =========================
   ITEMS GRID
========================= */
.items-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin: 50px 0 25px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.items-box {
  padding: 10px;
  width: 190px;
  height: 235px;
  border-radius: 10px;
  box-shadow: 0 0 10px black;
}

.items-image {
  display: block;
  margin: 0 auto;
  width: 150px;
  height: 150px;
}

.items-description {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   QUANTITY
========================= */
.qtd-Container {
  display: flex;
  justify-content: space-between;
}

.qtd-counter {
  font-size: 35px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  color: red;
}

/* Buttons */
.round-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: DodgerBlue;
  border: none;
  cursor: pointer;
  position: relative;
}

.plus-icon::before,
.plus-icon::after,
.minus-icon::after {
  content: '';
  position: absolute;
  background: white;
}

.plus-icon::before {
  width: 4px;
  top: 5px;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
}

.plus-icon::after {
  height: 4px;
  left: 6px;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.minus-icon::after {
  height: 4px;
  left: 6px;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

/* =========================
   PRICE + STATUS
========================= */
.items-price {
  text-align: center;
  font-size: 25px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
}

.items-indisponivel {
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  color: red;
}

/* =========================
   TOTAL
========================= */
.containter-total-amount {
  width: 90%;
  max-width: 500px;
  height: 50px;
  margin: 50px auto;
  border-radius: 10px;
  box-shadow: 0 0 10px black;

  font-size: 50px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  color: red;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================
   PAYMENT
========================= */
.container-pagar {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-top: 40px;
}

.action-button {
  width: 185px;
  height: 50px;
  font-size: 30px;
  font-weight: bold;
  background: red;
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
}

.action-button:hover {
  background: DodgerBlue;
}

/* =========================
   CASH
========================= */
.container-change {
	background-color: white;
	padding: 10px;
	width: 60%;
	height: 50px;
	border-radius: 10px;
	box-shadow: 0 0 10px black;
	margin: 0 auto; /* Center horizontally using auto margins */
  margin-top: 40px;
	border: 1px solid black; /* For visualization */
	font-size: 50px;
	font-weight: bold;
	font-family: Arial, Helvetica, sans-serif;
	display: flex;
	align-items: center; /* Vertically centers content within the flex container */
	justify-content: center; /* Horizontally centers content (optional) */
	gap: 10px;
}

/************************** input cash */
.text-cash {
	text-align: right; 
	font-family: Arial; 
	font-size: 50px; 
	font-weight: bold; 
	background-color: #FFFF00;
}

/************************** display change */
.text-change {
	text-align: right; 
	font-family: Arial; 
	font-size: 50px; 
	font-weight: bold; 
	color: green;
}

/************************** transaction status message */
.container-transaction_status {
  margin-top: 10px;
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  color: red;
}

/* ======================================================================
   GRID ADJUSTMENTS FOR 2 ITEMS PER ROW ON MOBILE
======================================================================= */
@media (max-width: 480px) {
  /* Reduce container gap so two columns can sit comfortably */
  .items-container {
    gap: 12px;
    margin: 20px auto;
    padding: 0 10px;
  }

  /* 30% Smaller Item Box */
  .items-box {
    width: 135px;
    height: 175px;
    padding: 6px;
  }

  /* 30% Smaller Image */
  .items-image {
    width: 100px;
    height: 100px;
  }

  /* Downscale description & price fonts to prevent overflow text wrapping */
  .items-description {
    font-size: 15px;
  }

  .items-price {
    font-size: 16px;
  }

  .items-indisponivel {
    font-size: 18px;
  }

  /* Downscale Quantity Buttons and Text Counter */
  .qtd-counter {
    font-size: 22px;
  }

  .round-button {
    width: 28px;
    height: 28px;
  }

  /* Adjust inner icon alignments for smaller buttons */
  .plus-icon::before {
    width: 3px;
    top: 4px;
    bottom: 4px;
  }
  .plus-icon::after, .minus-icon::after {
    height: 3px;
    left: 4px;
    right: 4px;
  }
  /* Add this inside your existing @media (max-width: 480px) block */
  .container-pagar {
    gap: 20px;          /* Reduces spacing between buttons so they fit side-by-side */
    margin-top: 25px;
  }

  .action-button {
    width: 148px;       /* 20% smaller than 185px */
    height: 40px;       /* 20% smaller than 50px */
    font-size: 24px;    /* 20% smaller than 30px */
    border-radius: 12px;
  }
}