.style-badge {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 850;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 34px;
  padding: 20px 0;
  background: #fff;
  color: var(--primary-blue);
  border: none;
  cursor: pointer;

  border-radius: 14px 0 0 14px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
  transition: width 0.15s ease, box-shadow 0.15s ease;
}
.style-badge:hover {
  width: 38px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.style-badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

@media (max-width: 960px) {
  .style-badge,
  .style-backdrop,
  .style-drawer {
    display: none;
  }
}

.style-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1150;
  background: transparent;
  pointer-events: none;
}
.style-backdrop.is-open {
  pointer-events: auto;
}

.style-drawer {
  position: fixed;
  top: 50%;
  right: 0;
  width: 370px;
  max-width: 88vw;
  max-height: calc(100vh - 32px);
  z-index: 1200;
  background: #fff;
  box-shadow: -4px 0 34px rgba(0, 0, 0, 0.18);
  border-radius: 16px 0 0 16px;

  transform: translate(calc(100% + 48px), -50%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  font-family: 'Manrope', sans-serif;
}
.style-drawer.is-open {
  transform: translate(0, -50%);
}

.style-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 10px;
  flex-shrink: 0;
}
.style-drawer__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #212529);
}
.style-drawer__close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.15s;
}
.style-drawer__close:hover {
  color: #475569;
}

.style-drawer__body {
  padding: 0px 20px 20px;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.style-field__label {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted, #3c444b);
  margin-bottom: 6px;
}
.style-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-light, #c8d0d8);
  border-radius: 10px;
  font: inherit;
  font-size: 0.86rem;
  color: var(--text-primary, #212529);
  background: #fff;
  transition: border-color 0.15s;
}
.style-input:focus {
  outline: none;
  border-color: var(--primary-blue);
}
.style-input--area {
  resize: vertical;
  min-height: 74px;
  line-height: 1.4;
}

.style-input--limit,
.style-input--limit:focus {
  border-color: #e5484d;
}

.style-logo-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px;
  border: 1px dashed var(--border-light, #c8d0d8);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.style-logo-drop:hover {
  border-color: var(--primary-blue);
}
.style-logo-drop__preview {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--bg-secondary);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.9rem;
}

.style-logo-drop.has-logo .style-logo-drop__preview {
  background: transparent;
}
.style-logo-drop__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.style-logo-drop__hint {
  font-size: 0.82rem;
  color: var(--text-muted, #919fad);
}

.style-logo-drop__del {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.62);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}
.style-logo-drop.has-logo .style-logo-drop__del {
  display: flex;
}
.style-logo-drop.has-logo .style-logo-drop__preview:hover .style-logo-drop__del {
  opacity: 1;
}
.style-logo-drop__del:hover {
  background: #ef4444;
}

.style-color {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.style-color__preview {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--border-light, #c8d0d8);
  cursor: pointer;
  padding: 0;
}
.style-color__hex {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-light, #c8d0d8);
  border-radius: 10px;
  font: inherit;
  font-size: 0.86rem;
  text-transform: uppercase;
  color: var(--text-primary, #212529);
}
.style-color__hex:focus {
  outline: none;
  border-color: var(--primary-blue);
}
.style-color__picker canvas {
  width: 100%;
  height: 100px;
  border-radius: 10px;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

.style-hue {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  margin-top: 12px;
  border-radius: 6px;
  background: transparent;
  outline: none;
  cursor: pointer;
  padding: 0;
  border: none;
}
.style-hue::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-light, #c8d0d8);
  background: linear-gradient(to right,
    hsl(0,100%,50%), hsl(30,100%,50%), hsl(60,100%,50%),
    hsl(90,100%,50%), hsl(120,100%,50%), hsl(150,100%,50%),
    hsl(180,100%,50%), hsl(210,100%,50%), hsl(240,100%,50%),
    hsl(270,100%,50%), hsl(300,100%,50%), hsl(330,100%,50%),
    hsl(360,100%,50%));
}
.style-hue::-moz-range-track {
  height: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-light, #c8d0d8);
  background: linear-gradient(to right,
    hsl(0,100%,50%), hsl(30,100%,50%), hsl(60,100%,50%),
    hsl(90,100%,50%), hsl(120,100%,50%), hsl(150,100%,50%),
    hsl(180,100%,50%), hsl(210,100%,50%), hsl(240,100%,50%),
    hsl(270,100%,50%), hsl(300,100%,50%), hsl(330,100%,50%),
    hsl(360,100%,50%));
}
.style-hue::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #94a3b8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  margin-top: -3px;
}
.style-hue::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #94a3b8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.style-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
}
.style-link {
  font-size: 0.82rem;
  color: var(--text-muted, #919fad);
  text-decoration: underline;
  cursor: pointer;
}
.style-link:hover {
  color: var(--text-secondary, #3c444b);
}

.hero-photo-gate {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
  border-radius: var(--radius-md, 12px);
  background: rgba(15, 23, 42, 0);
  transition: background 0.15s ease;
}
.hero-photo-gate:hover {
  background: rgba(15, 23, 42, 0.28);
}
.hero-photo-gate__pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(33, 37, 41, 0.82);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.hero-photo-gate:hover .hero-photo-gate__pill {
  opacity: 1;
}
.hero-photo-gate__reset {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.62);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}
.hero-photo-gate.has-photo .hero-photo-gate__reset {
  display: flex;
}
.hero-photo-gate.has-photo:hover .hero-photo-gate__reset {
  opacity: 1;
}
.hero-photo-gate__reset:hover {
  background: #ef4444;
}

@media (max-width: 960px) {
  .hero-photo-gate {
    display: none;
  }
}
