/* ============ Shared modern design (jlcw-*) ============ */

.jlcw-container {
  max-width: 720px;
  margin: 0 auto;
}

.jlcw-hero {
  text-align: center;
  margin-bottom: 28px;
}

.jlcw-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff3e0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.jlcw-hero-icon i {
  font-size: 36px;
  color: #e65100;
}

.jlcw-hero-icon-success {
  background: #e8f5e9;
}

.jlcw-hero-icon-success i {
  color: #2e7d32;
}

.jlcw-hero-success {
  margin-bottom: 16px;
}

.jlcw-hero-icon-info {
  background: #e3f2fd;
}

.jlcw-hero-icon-info i {
  color: #1565c0;
}

.jlcw-hero-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a2e;
}

.jlcw-hero-text {
  font-size: 15px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Alerts */
.jlcw-alert {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  border: 1px solid;
}

.jlcw-alert-error {
  background: #fef2f2;
  border-color: #fecaca;
}

.jlcw-alert-warning {
  background: #fffbeb;
  border-color: #fde68a;
}

.jlcw-alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.jlcw-alert-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.jlcw-alert-error .jlcw-alert-icon {
  color: #dc2626;
}

.jlcw-alert-warning .jlcw-alert-icon {
  color: #d97706;
}

.jlcw-alert-info .jlcw-alert-icon {
  color: #2563eb;
}

.jlcw-alert-content {
  flex: 1;
  min-width: 0;
}

.jlcw-alert-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #991b1b;
  margin-bottom: 4px;
}

.jlcw-alert-warning .jlcw-alert-title {
  color: #92400e;
}

.jlcw-alert-info .jlcw-alert-title {
  color: #1e40af;
}

.jlcw-alert-list {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: #7f1d1d;
}

.jlcw-alert-list li {
  margin-bottom: 2px;
}

.jlcw-alert-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 4px;
}

.jlcw-alert-text:last-child {
  margin-bottom: 0;
}

/* Cards */
.jlcw-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
  overflow: hidden;
}

.jlcw-card-body {
  padding: 24px 28px 12px;
}

.jlcw-card-footer {
  padding: 16px 28px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

/* Form fields */
.jlcw-field {
  margin-bottom: 22px;
}

.jlcw-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.jlcw-label-optional::after {
  content: '';
}

.jlcw-label::after {
  content: ' *';
  color: #e74c3c;
}

.jlcw-input-wrapper {
  position: relative;
}

.jlcw-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s;
}

.jlcw-input-wrapper:focus-within .jlcw-input-icon {
  color: #2563eb;
}

.jlcw-input {
  width: 100%;
  padding: 12px 14px 12px 46px;
  font-size: 15px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}

.jlcw-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.jlcw-input::placeholder {
  color: #94a3b8;
}

.jlcw-field-hint {
  font-size: 13px;
  color: #94a3b8;
  margin: 6px 0 0;
}

/* Info boxes */
.jlcw-info-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.jlcw-info-box-warning {
  background: #fffbeb;
  border-color: #fde68a;
}

.jlcw-info-box-info {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.jlcw-info-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #334155;
}

.jlcw-info-box-header strong {
  font-size: 14px;
}

.jlcw-info-box-icon {
  font-size: 18px;
  color: #2563eb;
}

.jlcw-info-box-warning .jlcw-info-box-icon {
  color: #d97706;
}

.jlcw-info-box-info .jlcw-info-box-icon {
  color: #2563eb;
}

.jlcw-info-box-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}

.jlcw-info-box-list li {
  margin-bottom: 2px;
}

.jlcw-info-box-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 6px;
}

.jlcw-info-box-text:last-child {
  margin-bottom: 0;
}

/* Divider */
.jlcw-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 16px 0 20px;
}

/* Checkbox */
.jlcw-acknowledgment {
  margin-bottom: 16px;
}

.jlcw-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.jlcw-checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #2563eb;
}

.jlcw-checkbox-text {
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}

.jlcw-checkbox-text strong {
  color: #1e293b;
}

/* CGV link */
.jlcw-cgv-link {
  margin-bottom: 4px;
}

.jlcw-cgv-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
}

.jlcw-cgv-link a:hover {
  text-decoration: underline;
}

.jlcw-cgv-link a i {
  font-size: 16px;
}

/* Buttons */
.jlcw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.jlcw-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.jlcw-btn-primary {
  background: #2563eb;
  color: #fff;
}

.jlcw-btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
}

.jlcw-btn-primary i {
  font-size: 20px;
}

.jlcw-btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.jlcw-btn-secondary:hover:not(:disabled) {
  background: #e2e8f0;
  color: #1e293b;
}

.jlcw-btn-secondary i {
  font-size: 20px;
}

.jlcw-btn-danger {
  background: #dc2626;
  color: #fff;
}

.jlcw-btn-danger:hover:not(:disabled) {
  background: #b91c1c;
}

.jlcw-btn-danger i {
  font-size: 20px;
}

.jlcw-btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.jlcw-btn-sm i {
  font-size: 16px;
}

.jlcw-actions {
  text-align: center;
  margin: 8px 0 20px;
}

.jlcw-actions .jlcw-btn {
  margin: 4px;
}

/* Summary rows */
.jlcw-summary-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.jlcw-summary-item {
  flex: 1;
  min-width: 140px;
}

.jlcw-summary-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.jlcw-summary-value {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.jlcw-summary-value-accent {
  color: #2563eb;
}

.jlcw-summary-value-success {
  color: #16a34a;
}

/* Badge */
.jlcw-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

.jlcw-badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.jlcw-badge-info {
  background: #dbeafe;
  color: #1e40af;
}

.jlcw-badge-danger {
  background: #fce4ec;
  color: #c62828;
}

.jlcw-badge i {
  font-size: 14px;
}

/* ============ Product cards (confirm) ============ */

.jlcw-product-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.jlcw-product-item:hover {
  border-color: #2563eb;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.1);
}

.jlcw-product-item.jlcw-product-excluded {
  background: #f8fafc;
  opacity: 0.85;
}

.jlcw-product-item.jlcw-product-excluded:hover {
  border-color: #e2e8f0;
  box-shadow: none;
}

.jlcw-product-image {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.jlcw-product-info {
  flex: 1;
  min-width: 0;
}

.jlcw-product-name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.jlcw-product-name a {
  color: inherit;
  text-decoration: none;
}

.jlcw-product-name a:hover {
  color: #2563eb;
}

.jlcw-product-meta {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 8px;
}

.jlcw-product-details {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #475569;
  flex-wrap: wrap;
}

.jlcw-product-details span {
  white-space: nowrap;
}

.jlcw-product-right {
  text-align: center;
  min-width: 110px;
  flex-shrink: 0;
}

.jlcw-product-checkbox-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  cursor: pointer;
}

.jlcw-product-checkbox-label input[type="checkbox"] {
  margin-right: 4px;
  vertical-align: middle;
}

.jlcw-product-qty {
  display: none;
  margin-top: 6px;
}

.jlcw-product-qty select {
  width: 70px;
  padding: 4px 6px;
  font-size: 13px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  outline: none;
}

.jlcw-product-qty select:focus {
  border-color: #2563eb;
}

/* Selected total */
.jlcw-selected-total {
  margin-top: 20px;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jlcw-selected-total-label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.jlcw-selected-total-amount {
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
}

/* Select all button */
.jlcw-select-all-btn {
  text-align: center;
  margin-bottom: 16px;
}

/* ============ Table (process order list) ============ */

.jlcw-table-wrapper {
  overflow-x: auto;
}

.jlcw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.jlcw-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.jlcw-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
}

.jlcw-table tr:last-child td {
  border-bottom: none;
}

.jlcw-table tr:hover td {
  background: #f8fafc;
}

/* No orders */
.jlcw-empty-state {
  text-align: center;
  padding: 40px 20px;
}

.jlcw-empty-state-icon {
  font-size: 48px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.jlcw-empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 8px;
}

.jlcw-empty-state-text {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

/* ============ Footer link ============ */

.jlcw-footer-withdrawal-link {
  text-align: center;
  padding: 10px 0;
}

.jlcw-footer-withdrawal-link a {
  color: #777;
  font-size: 13px;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.jlcw-footer-withdrawal-link a:hover {
  color: #e74c3c;
}

.jlcw-footer-withdrawal-link a i {
  font-size: 16px;
}

/* ============ Legacy support ============ */

.jlcw-retractation-account-link a {
  display: block;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
  transition: all 0.2s;
  text-decoration: none;
  color: #333;
  position: relative;
}

.jlcw-retractation-account-link a:hover {
  background: #f8f8f8;
  border-color: #e67e22;
}

.jlcw-retractation-account-link a .link-item i {
  margin-right: 8px;
  vertical-align: middle;
  color: #e74c3c;
}

.jlcw-retractation-account-link .badge-danger {
  background-color: #e74c3c;
  color: #fff;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
  margin-left: 8px;
  vertical-align: middle;
}
