body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  padding-bottom: 120px;
  margin: 0;
}

.container {
  width: 90%;
  max-width: 600px;
  margin: 30px auto;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.explain {
  font-size: 12px;
  font-style: italic;
  color: #666;
}

input, select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.mandatory {
  border-color: #cc5500;
  background: #fff7f0;
}

.error {
  color: #cc0000;
  font-size: 12px;
  margin-top: 3px;
  display: none;
}

.error-border {
  border-color: #cc0000 !important;
  background: #ffecec !important;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #222;
  padding: 15px;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.3);
}

.bottom-bar button {
  padding: 10px 20px;
  font-size: 16px;
  background: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltiptext {
  visibility: hidden;
  width: 220px;
  background-color: #333;
  color: #fff;
  text-align: left;
  padding: 8px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  top: 22px;
  left: 0;
  font-size: 12px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}
/* Popup background */
.popup {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
   overflow-y: auto;
   padding: 24px 16px;
   box-sizing: border-box;
  background: rgba(0,0,0,0.6);
}

/* Popup box */
.popup-content {
  background: #fff;
  margin: 0 auto;
  padding: 20px 24px;
  width: 100%;
  max-width: 900px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
/* ==================================================
   POPUP PRODUCT
   ================================================== */

.popup-product {
  margin-bottom: 28px;
}

.popup-product-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 80px;
  width: 100%;
}

.popup-product-name {
  flex: 1;
  min-width: 0;
}

.popup-product-price {
  flex: 0 0 auto;
  min-width: 70px;
  text-align: right;
  white-space: nowrap;
}

.popup-group {
  margin-bottom: 30px;
}

.popup-group h2 {
  margin-bottom: 24px;
}

.popup-category {
  margin-bottom: 12px;
}

.popup-category h3 {
  display: inline;
  margin: 0;
}

.popup-explanation {
  margin-left: 8px;
}





/* Close button */
.close {
  display: block;
  text-align: right;
  font-size: 24px;
  cursor: pointer;
}

#popupPreview {
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 8px;
}

/* Explain text */
.explain {
  font-size: 12px;
  font-style: italic;
  color: #666;
}
