
/* GỠ BỎ HOÀN TOÀN TRẠNG THÁI ẨN CỦA NÚT MUA VÀ SUBMIT */
#BUTTON1173,
#BUTTON1173.ladi-animation-hidden,
#BUTTON1110,
#BUTTON1110.ladi-animation-hidden,
#BUTTON1172,
#BUTTON1172.ladi-animation-hidden,
#BUTTON1177,
#BUTTON1177.ladi-animation-hidden {
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  pointer-events: auto !important;
}
/**
 * CSS CHO HIỆU ỨNG NHẤP NHÁY, GIAO DIỆN RADIO CHỌN GÓI & MODAL
 */

/* 1. HIỆU ỨNG NHẤP NHÁY NÚT "ĐẶT MUA NGAY" */
@keyframes pulseBuyNowBtn {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 6px 25px 6px rgba(13, 110, 253, 0.65);
    filter: brightness(1.15);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    filter: brightness(1);
  }
}

/* Ép hiển thị trên cả mobile & desktop */
#BUTTON1173 {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#BUTTON1173,
#BUTTON1173 .ladi-button {
  animation: pulseBuyNowBtn 1.5s infinite ease-in-out !important;
  cursor: pointer !important;
  border-radius: 40px !important;
  transform-origin: center center;
}

/* 2. HIỆU ỨNG NHẤP NHÁY NÚT "HOÀN TẤT ĐĂNG KÝ" */
@keyframes pulseCompleteBtn {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 30px 8px rgba(239, 68, 68, 0.7);
    filter: brightness(1.18);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    filter: brightness(1);
  }
}

/* Ép hiển thị trên cả mobile & desktop cho các nút submit */
#BUTTON1110,
#BUTTON1172,
#BUTTON1177 {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#BUTTON1110,
#BUTTON1110 .ladi-button,
#BUTTON1172,
#BUTTON1172 .ladi-button,
#BUTTON1177,
#BUTTON1177 .ladi-button {
  animation: pulseCompleteBtn 1.3s infinite ease-in-out !important;
  cursor: pointer !important;
  transform-origin: center center;
}

/* 3. TỐI ƯU GIAO DIỆN 4 Ô RADIO CHỌN GÓI SẢN PHẨM */
.ladi-form-checkbox-item {
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 5px 8px !important;
  border-radius: 8px !important;
  border: 1.5px solid transparent !important;
  margin-bottom: 4px !important;
  background: rgba(248, 250, 252, 0.7) !important;
}

.ladi-form-checkbox-item:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

/* Khi ô được tích chọn */
.ladi-form-checkbox-item.is-selected {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15) !important;
}

.ladi-form-checkbox-item input[type="radio"] {
  cursor: pointer !important;
  width: 17px !important;
  height: 17px !important;
  accent-color: #2563eb !important;
  margin-right: 6px !important;
}

.ladi-form-checkbox-item span {
  cursor: pointer !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  line-height: 1.4 !important;
}

.ladi-form-checkbox-item.is-selected span {
  color: #1e3a8a !important;
  font-weight: 700 !important;
}

/* Hiệu ứng cảnh báo rung đỏ khi chưa tích chọn combo */
@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.radio-group-error {
  animation: shakeAlert 0.4s ease-in-out !important;
  border: 2px solid #ef4444 !important;
  border-radius: 10px !important;
  padding: 4px !important;
  background-color: #fef2f2 !important;
}

/* Viền đỏ cho ô nhập liệu bị thiếu */
.input-field-error {
  border: 1.5px solid #ef4444 !important;
  background-color: #fef2f2 !important;
  animation: shakeAlert 0.35s ease-in-out !important;
}

/* 4. MODAL VÀ BACKDROP */
.order-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px;
  box-sizing: border-box;
}

.order-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.order-modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  padding: 28px 22px;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}

.order-modal-backdrop.active .order-modal-box {
  transform: scale(1) translateY(0);
}

.order-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
  outline: none;
}

.order-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.order-success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
  animation: modalBounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.order-success-icon svg {
  width: 36px;
  height: 36px;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: checkDraw 0.6s ease forwards 0.25s;
}

@keyframes modalBounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

.order-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-modal-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.5;
}

.order-code-badge {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px dashed #93c5fd;
  margin-bottom: 14px;
}

.order-details-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  margin-bottom: 16px;
  font-size: 12.5px;
  line-height: 1.6;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.order-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.order-detail-label {
  color: #64748b;
  font-weight: 500;
  flex-shrink: 0;
  margin-right: 8px;
}

.order-detail-value {
  color: #1e293b;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.order-detail-value.highlight-price {
  color: #dc2626;
  font-size: 15px;
  font-weight: 800;
}

.order-modal-notice {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: #92400e;
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.order-modal-notice svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  stroke: #d97706;
}

.order-modal-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.2s;
  text-transform: uppercase;
}

.order-modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* Spinner khi gửi */
.order-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: orderSpin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes orderSpin {
  to { transform: rotate(360deg); }
}

/* Toast cảnh báo lỗi */
.order-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-40px);
  background: #dc2626;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Montserrat', system-ui, sans-serif;
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.45);
  z-index: 1000000000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 90vw;
  box-sizing: border-box;
}

.order-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Hiệu ứng nổi bật trường nhập khi cuộn tới */
.input-field-highlight {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.35) !important;
  transition: all 0.3s ease-in-out !important;
}
