/* @itZEN-CONFIG SECURITY=strict VERSIONING=timestamp LOG=enable */
/* @itZEN-FILE FILE=components.css | PATH=/assets/css/components.css | VERSION=2025-05-16-ADDR-SUGGESTIONS-INTEGRATED | STATUS=LOCKED */

/* === SECTIONS === */
.section-title {
  font-size: 2em;
  text-align: center;
  margin: 30px auto;
  color: #222;
}

.container {
  padding: 20px;
  max-width: 960px;
  margin: auto;
}

/* === TABLE STYLE (fallback) === */
.cart-table-wrapper {
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.cart-table th,
.cart-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.cart-table th {
  background: #f8f8f8;
  font-weight: 600;
}

.cart-table td.total-cell {
  font-weight: bold;
  color: #111;
}

/* === MODERN ITEM DISPLAY === */
.cart-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
}

.cart-item-title:hover {
  text-decoration: underline;
}

.cart-item-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* === EXTRAS === */
.extras-list {
  list-style-type: disc;
  margin-left: 20px;
  padding: 0;
  font-size: 0.95rem;
  color: #444;
}

.extra-removed {
  color: red;
  font-style: italic;
}

/* === QUANTITE === */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ccc;
  padding: 5px 10px;
  border-radius: 10px;
}

.quantity-control button {
  background: #eee;
  border: none;
  padding: 6px 12px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
}

.quantity-control button:hover {
  background: #ddd;
}

.qty-display {
  font-weight: bold;
  min-width: 30px;
  text-align: center;
}

/* === PRIX === */
.price-info {
  text-align: right;
}

.unit-price {
  color: #777;
  font-size: 0.9rem;
}

.total-price {
  font-weight: bold;
  font-size: 1.1rem;
}

/* === TOTAL GENERAL === */
.cart-total-final {
  margin-top: 30px;
  text-align: right;
  font-size: 1.2rem;
  font-weight: bold;
}

/* === BOUTONS GLOBAUX === */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease-in-out;
}

.btn-primary {
  background-color: #007BFF;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

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

.btn-danger:hover {
  background-color: #c82333;
}

.btn-light {
  background-color: #f8f9fa;
  color: #212529;
}

.btn-light:hover {
  background-color: #e2e6ea;
}

.btn-icon {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* === LIENS === */
.btn-link {
  text-decoration: none;
  color: #007BFF;
  font-weight: 500;
}

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

/* === EMPTY STATE === */
.empty-card {
  text-align: center;
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  font-size: 1.1rem;
  color: #666;
  border: 1px dashed #ccc;
}

/* === FOOTER PANIER === */
#kiosk-footer {
  background: #ffffff;
  border-top: 1px solid #ddd;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  z-index: 50;
  gap: 15px;
}

#kiosk-footer .cart-info {
  font-size: 1rem;
  font-weight: 500;
}

#cart-count {
  display: inline-block;
  min-width: 30px;
  text-align: center;
  background: #222;
  color: #fff;
  border-radius: 50%;
  padding: 5px 10px;
  margin-right: 10px;
}

#kiosk-footer .cart-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#kiosk-footer .cart-actions button {
  border-radius: 30px;
}

/* ZENBLOCK 99: FORM MODERNE GÉNÉRIQUE */

.form-wrapper {
  background: #ffffff;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 12px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  margin-top: 30px;
  text-align: center;
}

.form-inline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.form-inline-group .form-group {
  flex: 1;
  min-width: 45%;
}

/* ZENBLOCK 100: AUTOCOMPLETE ADRESSES SUGGESTIONS */

.suggestions-box {
  position: relative;
  margin-top: 4px;
  border: 1px solid #ccc;
  background: white;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 6px;
  z-index: 999;
}

.suggestion-item {
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}


/* === KIOSK PAYMENT CHOICE === */
.kiosk-payment-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.kiosk-btn-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  border: 2px solid #333;
  border-radius: 12px;
  text-decoration: none;
  background: #f9f9f9;
  max-width: 320px;
  width: 100%;
}

.kiosk-btn-card:hover {
  background: #f0f0f0;
}

.kiosk-icon-card {
  width: 120px;
  height: auto;
  margin-bottom: 15px;
}

.kiosk-btn-text {
  font-size: 2.4rem;
  font-weight: bold;
  color: #222;
}

.kiosk-payment-separator {
  font-size: 1.2rem;
  color: #666;
  margin: 0;
}

.kiosk-btn-cash {
  display: block;
  padding: 15px 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  text-decoration: none;
  color: #555;
  font-size: 1.2rem;
}

.kiosk-btn-cash:hover {
  background: #f2f2f2;
}
