:root {
  --card-bg: rgba(255, 255, 255, 0.06);
  --accent: #ffb703;
  --accent-2: #00e0a4;
  --outline: rgba(255, 255, 255, 0.08);
  --ink: #ffffff;
  --muted: #a9b4c2;
  --card: rgba(255, 255, 255, 0.06);
  --bg: #111a2f;
}

/* Simple Order Page Layout */
.simple-order {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

/* Header Section */
.order-header-section {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--outline);
}

.order-header-section h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #ffca3a 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.order-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

.block-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.block-help-trigger {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.block-help-trigger:hover,
.block-help-trigger:focus-visible,
.block-help-trigger.is-active {
  border-color: var(--accent);
  background: rgba(255, 183, 3, 0.18);
  transform: translateY(-1px);
  outline: none;
}

/* Inline help trigger for checkbox items */
.item-help-trigger {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  margin-left: auto;
  margin-right: 8px;
  z-index: 10;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.item-help-trigger:hover,
.item-help-trigger:focus-visible,
.item-help-trigger.is-active {
  border-color: var(--accent);
  background: rgba(255, 183, 3, 0.15);
  color: var(--accent);
  transform: translateY(-1px);
  outline: none;
}

.block-help-tooltip {
  position: fixed;
  z-index: 2100;
  max-width: min(320px, calc(100vw - 20px));
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 183, 3, 0.42);
  background: rgba(14, 18, 26, 0.98);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.block-help-tooltip.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Order Blocks */
.order-block {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}

.order-block h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--ink);
}

.order-block h3 .optional {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.section-note {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.template-basis-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 183, 3, 0.08);
  border: 1px solid rgba(255, 183, 3, 0.18);
}

/* Block Header (for template preview) */
.block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.block-header h3 {
  margin-bottom: 0;
}

.change-link {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

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

/* Template Preview */
.template-preview {
  display: flex;
  gap: 16px;
  align-items: center;
}

.template-preview img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--outline);
}

.template-info h4 {
  font-size: 18px;
  margin: 0 0 8px 0;
}

.template-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

/* Option Groups */
.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--outline);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 120px;
}

.option-radio--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 240px;
}

.option-title {
  font-weight: 700;
  color: var(--ink);
}

.option-desc {
  color: var(--muted);
  line-height: 1.45;
}

.option-radio:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 183, 3, 0.3);
}

.option-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.option-radio input[type="radio"]:checked + span,
.option-radio:has(input:checked) {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 183, 3, 0.1);
}

.option-with-input {
  flex-direction: column;
  align-items: flex-start;
}

.option-with-input input {
  margin-top: 8px;
  width: 100%;
}

.option-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--outline);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 14px;
}

.option-input:focus {
  outline: none;
  border-color: var(--accent);
}

.option-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--outline);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-checkbox:hover {
  background: rgba(255, 255, 255, 0.08);
}

.option-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
}

.option-checkbox:has(input:checked) {
  background: rgba(255, 183, 3, 0.1);
  border-color: var(--accent);
}

/* Separate Options (Express & Hosting) */
.separate-option {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--outline);
}

.separate-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

.express-option .separate-label {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.15);
}

.express-option .option-checkbox:has(input:checked) {
  background: rgba(255, 107, 107, 0.15);
  border-color: #ff6b6b;
}

.hosting-option .separate-label {
  color: var(--accent-2);
  background: rgba(0, 224, 164, 0.15);
}

.hosting-option .option-checkbox:has(input:checked) {
  background: rgba(0, 224, 164, 0.15);
  border-color: var(--accent-2);
}

.option-label {
  flex: 1;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.option-label .block-help-trigger--inline {
  width: 20px;
  height: 20px;
  font-size: 12px;
}

.option-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-2);
}

.express-option .option-price {
  color: #ff6b6b;
}

.hosting-option .option-price {
  color: var(--accent-2);
}

/* Textarea */
.order-textarea {
  width: 100%;
  min-height: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 16px;
  color: var(--ink);
  font-size: 15px;
  resize: vertical;
  font-family: inherit;
}

.order-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.input-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0 0;
}

/* Photo Options */
.photo-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-option {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-status {
  font-size: 13px;
  color: var(--accent-2);
}

/* Order Total */
.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.15) 0%, rgba(0, 224, 164, 0.1) 100%);
  border: 1px solid rgba(255, 183, 3, 0.3);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 28px 0;
}

.total-price-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.total-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2);
}

.total-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
}

.price-note {
  margin: 10px 0 0;
  max-width: 460px;
  color: var(--muted);
  line-height: 1.5;
}

.order-total.is-individual {
  border-color: rgba(0, 224, 164, 0.28);
  background: linear-gradient(135deg, rgba(0, 224, 164, 0.14) 0%, rgba(255, 183, 3, 0.10) 100%);
}

.total-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 224, 164, 0.15);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 224, 164, 0.3);
}

.time-icon {
  font-size: 18px;
}

.delivery-time {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-2);
}

.delivery-time.express {
  color: var(--accent);
  font-weight: 700;
}

/* Contact Block */
.contact-fields {
  display: grid;
  gap: 16px;
}

.contact-fields .field {
  display: grid;
  gap: 6px;
}

.contact-fields label {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.contact-fields input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--outline);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 15px;
}

.contact-fields input:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-fields input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

/* Submit Section */
.submit-section {
  text-align: center;
  padding-top: 16px;
}

.btn-large {
  width: 100%;
  padding: 18px 32px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Submit Button - styled to match site */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  color: #10131a;
  background: linear-gradient(120deg, var(--accent) 0%, #ffca3a 60%, #ffe082 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(255, 183, 3, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  width: 100%;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0, 224, 164, 0.34);
}

.btn-submit:active {
  transform: translateY(0);
}

.submit-note {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0;
}

/* Post-addons note */
.post-addons-note {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(0, 224, 164, 0.1);
  border: 1px solid rgba(0, 224, 164, 0.2);
  border-radius: 12px;
  font-size: 15px;
  color: var(--accent-2);
  line-height: 1.5;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-container {
  background: var(--card-bg);
  border: 1px solid var(--outline);
  border-radius: 20px;
  width: 90%;
  max-width: 1120px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--outline);
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-shrink: 0;
}

.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--outline);
}

.view-switch__btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.view-switch__btn.active {
  background: rgba(255, 183, 3, 0.18);
  color: var(--ink);
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.modal-grid--grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-grid--grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modal-grid--list {
  grid-template-columns: 1fr;
}

.modal-grid--list .modal-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  align-items: center;
  min-height: 154px;
}

.modal-grid--list .modal-item-image {
  height: 100%;
  min-height: 136px;
}

.modal-grid--list .modal-item-info {
  padding: 20px 22px;
  border-top: none;
  background: transparent;
}

.modal-grid--list .modal-item-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  align-items: center;
  justify-content: end;
  gap: 12px;
  padding: 18px 24px 18px 12px;
  background: transparent;
  margin-top: 0;
  align-self: center;
  height: auto;
  position: relative;
  z-index: 3;
}

.modal-grid--list .modal-item-btn {
  width: 100%;
  min-width: 120px;
}

.modal-grid--list .modal-item-name {
  min-height: auto;
  align-items: center;
  font-size: 18px;
}

.modal-grid--list .modal-item-badge {
  display: none;
}

.modal-item {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--outline);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.modal-item.selected {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(0, 224, 164, 0.2);
}

.modal-item-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.modal-item-info {
  padding: 18px 20px 12px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 22, 27, 0.96) 0%, rgba(20, 22, 27, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-item-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
  min-height: 44px;
  display: flex;
  align-items: flex-start;
}

.modal-item-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-2);
  color: #000;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
}

.modal-item.selected .modal-item-badge {
  opacity: 1;
  transform: scale(1);
}

.modal-item-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 22px 20px 20px;
  position: relative;
  z-index: 1;
  margin-top: auto;
  background: rgba(20, 22, 27, 0.98);
}

.modal-item-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.modal-item-btn.view {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-item-btn.view:hover {
  background: rgba(255, 255, 255, 0.14);
}

.modal-item-btn.select {
  background: linear-gradient(120deg, var(--accent) 0%, #ffca3a 100%);
  color: #111;
  box-shadow: 0 10px 24px rgba(255, 183, 3, 0.22);
}

.modal-item-btn.select:hover {
  background: #ffc107;
  transform: translateY(-1px);
}

/* Demo Modal */
.modal-demo {
  max-width: 95vw;
  max-height: 95vh;
  width: 1200px;
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--outline);
  background: var(--card-bg);
}

.demo-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.demo-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.demo-actions .btn,
.demo-actions .btn-primary {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: var(--accent);
  color: #000;
}

.demo-actions .btn:hover,
.demo-actions .btn-primary:hover {
  background: #ffc107;
  transform: scale(1.05);
}

.demo-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.demo-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.demo-body {
  flex: 1;
  overflow: hidden;
  padding: 0;
}

.demo-body iframe {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  border: none;
}

/* Mobile: always show buttons */
@media (max-width: 768px) {
  .modal-header {
    align-items: flex-start;
  }

  .view-switch {
    flex-wrap: wrap;
  }

  .modal-item-actions {
    grid-template-columns: 1fr;
    padding: 0 14px 14px;
  }
  
  .modal-item-btn {
    padding: 10px 16px;
    font-size: 13px;
    min-width: auto;
    flex: 1;
  }
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .modal-grid--list .modal-item {
    grid-template-columns: 1fr;
  }

  .modal-grid--list .modal-item-info {
    padding: 18px 16px 10px;
  }

  .modal-grid--list .modal-item-actions {
    flex-direction: column;
    padding: 8px 14px 14px;
    height: auto;
  }
  
  .modal-container {
    width: 95%;
    max-height: 90vh;
  }
  
  .modal-header h3 {
    font-size: 16px;
  }
  
  .modal-body {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 48px 24px;
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 16px;
}

.success-message.hidden {
  display: none;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-2) 0%, #00c853 100%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 40px;
  margin: 0 auto 24px;
}

.success-message h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.success-message p {
  color: var(--muted);
  margin-bottom: 32px;
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.success-actions .btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-success-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0b1220;
  box-shadow: 0 4px 16px rgba(255, 183, 3, 0.3);
}

.btn-success-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 183, 3, 0.4);
}

.btn-success-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-success-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .success-actions {
    flex-direction: column;
  }
  
  .success-actions .btn {
    width: 100%;
  }
}

/* Language Group */
.language-group {
  justify-content: center;
}

.language-group .option-radio {
  flex: 0 0 auto;
  min-width: 100px;
  justify-content: center;
}

/* Business Group */
.business-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.business-group .option-radio {
  flex: 1;
}

/* Responsive */
@media (max-width: 640px) {
  .simple-order {
    padding: 16px 12px 32px;
  }
  
  .order-header-section h1 {
    font-size: 26px;
  }
  
  .order-subtitle {
    font-size: 16px;
  }

  .order-block {
    padding: 20px 16px;
  }
  
  .template-preview {
    flex-direction: column;
    text-align: center;
  }
  
  .template-preview img {
    width: 100%;
    height: 140px;
  }
  
  .option-group {
    flex-direction: column;
  }
  
  .option-radio {
    min-width: auto;
    width: 100%;
  }
  
  .business-group {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .order-total {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 20px;
  }
  
  .total-price-row {
    align-items: center;
  }
  
  .total-price {
    font-size: 28px;
  }
  
  .total-time-row {
    justify-content: center;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 14, 0.78);
  backdrop-filter: blur(2px);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.tour-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.tour-highlight {
  position: relative;
  z-index: 3002;
  border-radius: 14px;
  box-shadow: 0 0 0 2px rgba(255, 183, 3, 0.95), 0 0 0 9999px rgba(0, 0, 0, 0);
  animation: tourPulse 1.4s ease-in-out infinite;
}

@keyframes tourPulse {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(255, 183, 3, 0.95), 0 0 0 9999px rgba(0, 0, 0, 0);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(255, 183, 3, 0.95), 0 0 0 9999px rgba(0, 0, 0, 0);
  }
}

.tour-tooltip {
  position: fixed;
  z-index: 3003;
  width: min(360px, calc(100vw - 24px));
  border: 1px solid rgba(255, 183, 3, 0.5);
  border-radius: 14px;
  background: rgba(14, 18, 27, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  padding: 14px 14px 12px;
  color: var(--ink);
}

.tour-tooltip-step {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.tour-tooltip-text {
  margin: 0;
  line-height: 1.45;
  color: var(--ink);
  font-size: 14px;
}

.tour-tooltip-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.tour-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.tour-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.tour-btn--primary {
  border-color: rgba(255, 183, 3, 0.6);
  background: linear-gradient(120deg, var(--accent) 0%, #ffca3a 100%);
  color: #10131a;
}

@media (max-width: 768px) {
  .block-help-trigger {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .option-label .block-help-trigger--inline {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }

  .item-help-trigger {
    width: 26px;
    height: 26px;
    font-size: 13px;
    margin-right: 4px;
    border-width: 1.5px;
    background: rgba(255, 183, 3, 0.1);
    color: var(--accent);
  }

  .item-help-trigger:hover,
  .item-help-trigger:active {
    background: rgba(255, 183, 3, 0.25);
    transform: scale(1.1);
  }

  /* Mobile: make checkboxes more compact */
  .option-checkbox {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .option-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  .option-label {
    font-size: 14px;
    line-height: 1.3;
    flex: 1;
    min-width: 140px;
  }

  .option-price {
    font-size: 12px;
    padding: 3px 8px;
    margin-left: auto;
  }

  .checkbox-group {
    gap: 8px;
  }

  .block-help-tooltip {
    max-width: calc(100vw - 16px);
    width: calc(100vw - 16px);
    font-size: 13px;
    line-height: 1.4;
    padding: 12px 14px;
    left: 8px !important;
    right: 8px !important;
    transform: none !important;
    z-index: 2101;
  }

  .block-help-tooltip.active {
    transform: none !important;
  }

  /* Mobile backdrop for tooltips */
  body:has(.block-help-tooltip.active)::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2099;
    pointer-events: none;
  }

  .tour-tooltip {
    width: calc(100vw - 16px);
    padding: 12px 12px 10px;
    border-radius: 12px;
  }

  .tour-tooltip-text {
    font-size: 13px;
    line-height: 1.4;
  }

  .tour-tooltip-actions {
    gap: 6px;
    flex-wrap: wrap;
  }

  .tour-btn {
    flex: 1 1 calc(33.33% - 6px);
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .tour-highlight {
    border-radius: 12px;
  }
}
