/* Custom Cart & LIFF Ordering System Styles for Mama Pizza CNX */

/* Floating Cart Bar */
.floating-cart-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart-bar.hidden {
  bottom: -100px;
  opacity: 0;
  pointer-events: none;
}

.cart-bar-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.cart-count-badge {
  background: #e31b23;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(227, 27, 35, 0.4);
}

.cart-total-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fac564;
}

.btn-open-cart {
  background: linear-gradient(135deg, #1a7a3c 0%, #22c55e 100%);
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  padding: 10px 22px;
  border-radius: 25px;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(26, 122, 60, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-open-cart:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(26, 122, 60, 0.6);
}

/* Option Select Modal & Cart Drawer Backdrop */
.mp-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mp-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Content Container */
.mp-modal-content {
  background: #191919;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  width: 92%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.mp-modal-backdrop.active .mp-modal-content {
  transform: translateY(0);
}

.mp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.mp-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fac564;
  margin: 0;
}

.mp-close-btn {
  background: transparent;
  border: none;
  color: #aaaaaa;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.mp-close-btn:hover {
  color: #ffffff;
}

/* Addon Option Selectors & Text Readability Fixes */
.option-group {
  margin-bottom: 18px;
}

.option-group-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #fac564 !important; /* Bright Gold for high visibility */
  margin-bottom: 10px !important;
  display: block !important;
}

/* Force all text inside modal content to be white/gold with high contrast */
.mp-modal-content {
  color: #ffffff !important;
}

.mp-modal-content p {
  color: #e5e7eb !important;
}

.mp-modal-content label,
.mp-modal-content span,
.mp-modal-content div:not(.cart-count-badge),
.mp-modal-content strong,
.mp-modal-content b {
  color: #ffffff !important;
}

.option-checkbox-item, .option-radio-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  margin-bottom: 8px !important;
  cursor: pointer !important;
  color: #ffffff !important;
  transition: all 0.2s ease !important;
}

.option-checkbox-item label,
.option-checkbox-item span,
.option-checkbox-item div,
.option-radio-item label,
.option-radio-item span,
.option-radio-item div {
  color: #ffffff !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
}

.option-checkbox-item:hover, .option-radio-item:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: #fac564 !important;
  box-shadow: 0 2px 10px rgba(250, 197, 100, 0.2) !important;
}

.option-checkbox-item:hover span, .option-radio-item:hover span {
  color: #ffffff !important;
}

/* Accent price tags inside options */
.option-checkbox-item span[style*="color:#fac564"],
.option-checkbox-item span[style*="color: #fac564"],
.option-radio-item span[style*="color:#fac564"],
.option-radio-item span[style*="color: #fac564"],
.opt-price-tag {
  color: #fac564 !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
}

.option-checkbox-item input, .option-radio-item input {
  accent-color: #fac564 !important;
  width: 20px !important;
  height: 20px !important;
  cursor: pointer !important;
}

/* Quantity Control Buttons & Text */
.qty-control {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 30px !important;
  padding: 4px 12px !important;
}

.qty-btn {
  background: #333333 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.qty-btn:hover {
  background: #fac564 !important;
  color: #111111 !important;
  border-color: #fac564 !important;
}

.qty-val {
  color: #fac564 !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  min-width: 28px !important;
  text-align: center !important;
}

/* Cart Item Entry */
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
}

.cart-item-info h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.cart-item-info small {
  color: #9ca3af;
  display: block;
}

.cart-item-price {
  font-weight: 700;
  color: #fac564;
  font-size: 1rem;
}

/* LINE User Identification Banner & Warning Overlay */
.line-user-banner {
  background: rgba(6, 199, 85, 0.12);
  border: 1px solid #06c755;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.line-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #06c755;
}

.line-user-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
  margin: 0;
}

.line-user-status {
  font-size: 0.75rem;
  color: #06c755;
  font-weight: 600;
}

.line-login-warning-box {
  background: rgba(227, 27, 35, 0.15);
  border: 1px solid #e31b23;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
}

.line-login-btn {
  background: #06c755;
  color: #ffffff !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 25px;
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.4);
}

.line-login-btn:hover {
  background: #05b34c;
  color: #ffffff;
}

/* Add To Cart Trigger Buttons on Menu Items */
.pricing-entry .desc {
  position: relative !important;
  overflow: visible !important;
}

.btn-add-item {
  background: linear-gradient(135deg, #1a7a3c 0%, #22c55e 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 8px !important;
  float: right !important;
  clear: both !important;
  box-shadow: 0 4px 12px rgba(26, 122, 60, 0.4) !important;
  z-index: 10 !important;
}

.btn-add-item:hover {
  background: #22c55e !important;
  transform: scale(1.05) !important;
}
