/* online-design page styles */
body { padding-top: var(--nav-h); }
.od-header { padding: 60px 8% 40px; text-align: center; }
.od-header h1 { margin: 10px 0 14px; }
.od-header p { color: var(--text-light); max-width: 580px; margin: 0 auto; }

.od-selector-section { padding: 0 8% 60px; }
.od-hands-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.od-hand-panel { background: #fff; border: 1.5px solid var(--border); padding: 28px 24px; }
.od-hand-label { font-family: var(--serif); font-size: 1.2rem; text-align: center; margin-bottom: 16px; }
.od-hand-img-wrap { position: relative; width: 100%; display: block; }
.od-hand-img { width: 100%; display: block; border-radius: 4px; }

/* Nail hotspots */
.od-nail {
  position: absolute;
  width: 36px; height: 36px;
  background: rgba(255,62,126,0.15);
  border: 2px solid var(--orange);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: var(--orange);
  transition: all 0.2s;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.od-nail:hover { background: rgba(255,62,126,0.3); transform: translate(-50%,-50%) scale(1.15); }
.od-nail.selected { background: var(--orange); color: #fff; }
.od-nail span { pointer-events: none; }

/* Finger buttons */
.od-finger-row { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.od-fbtn {
  flex: 1; min-width: 56px;
  padding: 8px 4px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-family: var(--sans);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
  text-align: center;
}
.od-fbtn:hover { border-color: var(--orange); color: var(--orange); }
.od-fbtn.selected { background: var(--orange); border-color: var(--orange); color: #fff; }

/* Selected designs list */
.od-selected-list { margin-top: 14px; min-height: 48px; }
.od-sel-empty { font-size: 0.78rem; color: var(--text-light); font-style: italic; padding: 10px 0; }
.od-sel-item { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; padding: 5px 0; border-bottom: 1px solid var(--border); }
.od-sel-item:last-child { border-bottom: none; }
.od-sel-dot { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; flex-shrink: 0; }

/* Upload section */
.od-upload-section { padding: 60px 8%; background: var(--cream); }
.od-section-header { margin-bottom: 40px; }
.od-section-header h2 { margin: 8px 0 10px; }
.od-section-header p { color: var(--text-light); max-width: 580px; }
.od-section-header.centered { text-align: center; }
.od-section-header.centered p { margin-inline: auto; }

.od-photo-instructions { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 40px; align-items: stretch; }
.od-instr-steps { display: flex; flex-direction: column; gap: 0; justify-content: space-between; }
.od-instr-step { display: flex; align-items: flex-start; gap: 18px; }
.od-instr-icon { width: 36px; height: 36px; min-width: 36px; background: var(--orange); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
.od-instr-step h4 { font-size: 1.3rem; margin-bottom: 6px; }
.od-instr-step p { font-size: 1.1rem; color: var(--text-light); line-height: 1.7; }
.od-instr-photo { display: flex; flex-direction: column; justify-content: center; }
.od-instr-photo img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 4px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.od-instr-caption { font-size: 0.75rem; color: var(--text-light); text-align: center; margin-top: 10px; font-style: italic; }

.od-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.od-upload-card { background: #fff; padding: 28px; border: 1px solid var(--border); text-align: center; }
.od-upload-card h3 { margin-bottom: 16px; }
.od-drop {
  display: block;
  border: 2px dashed var(--border);
  padding: 32px 16px;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color .2s, background .2s;
  margin-bottom: 12px;
}
.od-drop:hover { border-color: var(--orange); background: rgba(255,62,126,0.03); }
.od-drop input[type=file] { display: none; }
.od-drop-icon { font-size: 2rem; margin-bottom: 8px; }
.od-drop strong { display: block; font-size: 0.88rem; margin-bottom: 4px; }
.od-drop p { font-size: 0.75rem; color: var(--text-light); }
.od-preview { width: 100%; max-height: 200px; object-fit: cover; display: none; border-radius: 2px; margin-top: 8px; }
.od-upload-ok { display: none; align-items: center; gap: 6px; font-size: 0.8rem; color: #2e7d32; padding: 8px 12px; background: #e8f5e9; border-radius: 2px; margin-top: 8px; justify-content: center; }

/* Form section */
.od-form-section { padding: 60px 8% 100px; text-align: center; }
.od-form { max-width: 680px; margin-inline: auto; text-align: left; }
.od-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.od-submit-btn { width: 100%; padding: 18px; text-align: center; font-size: 0.75rem; letter-spacing: 2px; margin-top: 8px; }

/* Delivery options */
.od-delivery-options { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.od-del-opt { cursor: pointer; flex: 1; min-width: 140px; }
.od-del-opt input { display: none; }
.od-del-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 12px;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  text-align: center;
  transition: all 0.2s;
  background: #fff;
}
.od-del-opt input:checked + .od-del-card { border-color: var(--orange); background: rgba(255,62,126,0.05); }
.od-del-icon { font-size: 1.6rem; margin-bottom: 4px; }
.od-del-card strong { font-size: 0.85rem; }
.od-del-card small { font-size: 0.72rem; color: var(--text-light); }

@media (max-width: 768px) {
  .od-hands-grid { grid-template-columns: 1fr; }
  .od-photo-instructions { grid-template-columns: 1fr; }
  .od-instr-photo { order: -1; }
  .od-upload-grid { grid-template-columns: 1fr; }
  .od-form-grid { grid-template-columns: 1fr; }
}

/* Modal Custom Upload Drag & Drop & Presets */
.od-modal-upload {
  margin-bottom: 24px;
}
.od-modal-drop {
  border: 2px dashed var(--border);
  padding: 24px 16px;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  background: var(--bg);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.od-modal-drop.dragover, .od-modal-drop:hover {
  border-color: var(--orange);
  background: rgba(255,62,126,0.03);
}
.od-modal-drop .od-drop-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.od-modal-drop strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.od-modal-drop p {
  font-size: 0.75rem;
  color: var(--text-light);
}
#modal-drop-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#modal-drop-preview {
  max-height: 120px;
  border-radius: 4px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.modal-remove-upload-btn {
  padding: 6px 14px;
  font-size: 0.68rem;
  letter-spacing: 1px;
}

/* Preset Options Grid */
.design-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.design-opt {
  position: relative;
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}
.design-opt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.design-opt:hover {
  border-color: var(--orange);
}
.design-opt.selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px var(--orange);
}
.design-opt-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(13,13,26,0.75);
  color: #fff;
  font-size: 0.65rem;
  text-align: center;
  padding: 3px 0;
  font-weight: 700;
}

/* Thumbnails in summary list */
.od-sel-thumb {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.od-sel-item {
  gap: 10px;
}

/* Modal vertical scroll & auto height centering overrides */
.modal-overlay {
  align-items: flex-start !important;
  overflow-y: auto !important;
  padding: 40px 20px !important;
}
.modal-box {
  margin: auto !important; /* beautifully centers it when height is small, allows top/bottom margins when height is tall */
  max-width: 560px;
  width: 100%;
}
