:root {
  --primary-color: #015FC9;
  --primary-dark: #014a9e;
  --text-primary: #16243D;
  --text-secondary: #6c757d;
  --bg-primary: #ffffff;
  --bg-secondary: #F2F5F9;
}

/* Rate Us designer - scoped to match main site brand */
.stand-designer-section { background: #F2F5F9; }
.stand-designer-section .stand-designer-card { background: #fff; }
.stand-designer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
}

.stand-designer-grid > .stand-designer-card:last-child {
  position: sticky;
  top: 100px;
}

.stand-designer-card {
  background:#ffffff;
  border:3px solid rgba(1,95,201,.18);
  box-shadow:0 10px 30px rgba(1,95,201,.12);
  padding:2rem;
  border-radius:16px
}

.stand-designer-field {
  margin-bottom:1.25rem
}

.stand-designer-label {
  display:block;
  font-weight:800;
  color:#16243D;
  margin-bottom:.5rem
}

.stand-designer-input {
  width:100%;
  padding:.9rem 1rem;
  border-radius:10px;
  border:2px solid rgba(1,95,201,.18);
  background:#fff;
  font-family:inherit
}

.stand-designer-input:focus {
  outline:0;
  border-color:#015FC9;
  box-shadow:0 0 0 4px rgba(1,95,201,.14)
}

.stand-designer-help,.stand-designer-muted {
  color:#6c757d;
  font-size:.95rem;
  line-height:1.6
}

.stand-designer-templates {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.75rem
}

.stand-designer-template {
  display:flex;
  gap:.75rem;
  align-items:flex-start;
  padding:1rem;
  border-radius:12px;
  border:2px solid rgba(1,95,201,.18);
  cursor:pointer;
  user-select:none;
  background:linear-gradient(135deg,rgba(1,95,201,.06) 0,rgba(255,255,255,.9) 100%);
  transition:transform .2s,border-color .2s,box-shadow .2s
}

.stand-designer-template input {
  margin-top:.2rem
}

.stand-designer-template:has(input:checked) {
  border-color:#015FC9;
  box-shadow:0 10px 25px rgba(1,95,201,.18)
}

.stand-designer-template:hover {
  transform:translateY(-2px)
}

.stand-designer-colors {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.75rem
}

.stand-designer-color {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:.85rem 1rem;
  border-radius:12px;
  border:2px solid rgba(1,95,201,.18);
  background:rgba(1,95,201,.04)
}

.stand-designer-color-label {
  font-weight:700;
  color:#16243D;
  font-size:.95rem
}

.stand-designer-color input[type=color] {
  width:48px;
  height:36px;
  border:none;
  padding:0;
  background:0 0;
  cursor:pointer
}

.stand-designer-actions {
  display:flex;
  gap:.75rem;
  margin-top:1.25rem
}

.stand-designer-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.9rem 1.1rem;
  border-radius:12px;
  border:none;
  font-weight:800;
  cursor:pointer;
  transition:transform .2s,box-shadow .2s,opacity .2s;
  font-family:inherit
}

.stand-designer-btn:disabled {
  opacity:.6;
  cursor:not-allowed;
  transform:none
}

.stand-designer-btn-primary {
  background:linear-gradient(135deg,#015FC9 0,#014a9e 100%);
  color:#fff;
  box-shadow:0 10px 25px rgba(1,95,201,.25)
}

.stand-designer-btn-secondary {
  background:rgba(1,95,201,.08);
  color:#16243D;
  border:2px solid rgba(1,95,201,.18)
}

.stand-designer-btn:hover:not(:disabled) {
  transform:translateY(-2px)
}

.stand-designer-preview-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(1,95,201,.18);
  background: #000;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  width: 100%;
  padding: 0;
  margin: 0;
  line-height: 0;
  box-sizing: border-box;
}

.stand-designer-preview-wrap canvas,
#standDesignerCanvas {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  vertical-align: top;
}

.stand-designer-msg {
  margin-top:1rem;
  font-size:.95rem;
  color:#6c757d;
  min-height:1.2em
}

.stand-order-modal {
  position:fixed;
  inset:0;
  z-index:3000;
  display:none
}

.stand-order-modal.active {
  display:block
}

.stand-order-backdrop {
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(2px)
}

.stand-order-dialog {
  position:relative;
  max-width:980px;
  margin:5vh auto;
  background:#ffffff;
  border:1px solid rgba(1,95,201,.12);
  border-radius:18px;
  box-shadow:0 24px 80px rgba(0,0,0,.25);
  padding:1.25rem 1.25rem 1.5rem;
  max-height:90vh;
  overflow:auto
}

.stand-order-close {
  position:absolute;
  top:10px;
  right:12px;
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid rgba(1,95,201,.18);
  background:#fff;
  color:#16243D;
  font-size:28px;
  line-height:1;
  cursor:pointer
}

.stand-order-header {
  padding-right:56px;
  margin-bottom:1rem
}

.stand-order-title {
  font-size:1.4rem;
  font-weight:900;
  color:#16243D;
  margin-bottom:.35rem
}

.stand-order-subtitle {
  color:#6c757d;
  font-size:.98rem;
  line-height:1.6
}

.stand-order-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.25rem;
  align-items:start
}

.stand-order-preview-frame {
  border-radius:16px;
  border:1px solid rgba(1,95,201,.12);
  background:#0b1220;
  padding:.75rem
}

.stand-order-preview-frame img {
  width:100%;
  height:auto;
  display:block;
  border-radius:12px
}

.stand-order-delivery {
  display:grid;
  gap:.5rem
}

.stand-order-radio {
  display:grid;
  grid-template-columns:18px 1fr;
  gap:.65rem;
  align-items:start;
  padding:.75rem;
  border:1px solid rgba(1,95,201,.12);
  border-radius:14px;
  background:#F2F5F9;
  cursor:pointer
}

.stand-order-radio input {
  margin-top:3px
}

.stand-order-totals {
  margin-top:.75rem;
  padding-top:.75rem;
  border-top:1px solid rgba(1,95,201,.12);
  display:grid;
  gap:.5rem
}

.stand-order-line {
  display:flex;
  justify-content:space-between;
  gap:1rem;
  color:#16243D
}

.stand-order-total {
  padding-top:.5rem;
  border-top:1px dashed rgba(1,95,201,.18);
  font-size:1.05rem
}

.stand-order-actions {
  margin-top:.9rem;
  display:flex;
  gap:.75rem;
  flex-wrap:wrap
}

.stand-order-outofstock {
  margin-top:1rem
}

.stand-order-outofstock-card {
  border:1px solid rgba(239,68,68,.25);
  background:rgba(239,68,68,.06);
  border-radius:14px;
  padding:1rem
}

@media (max-width: 991.98px) {
  .stand-designer-grid,
  .stand-order-grid {
    grid-template-columns: 1fr;
  }

  .stand-designer-grid > .stand-designer-card:last-child {
    position: static;
  }

  .stand-designer-card {
    padding: 1.25rem;
  }

  .stand-designer-colors,
  .stand-designer-templates {
    grid-template-columns: 1fr;
  }

  .stand-order-dialog {
    margin: 2.5vh auto;
    border-radius: 14px;
    padding: 1rem 1rem 1.25rem;
    max-height: 92vh;
  }

  .stand-order-close {
    top: 8px;
    right: 8px;
  }

  .stand-order-actions > .stand-designer-btn {
    width: 100%;
    justify-content: center;
  }
}

