/* Starby — reforma profissional das janelas de configurações da loja (2026-08-06) */
body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal).starby-config-modal {
  padding: 14px !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(24, 12, 39, .62) !important;
  backdrop-filter: blur(8px);
}

body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-window {
  position: relative !important;
  width: min(980px, calc(100vw - 28px)) !important;
  max-width: 980px !important;
  height: min(840px, calc(100vh - 28px)) !important;
  max-height: calc(100vh - 28px) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(132, 76, 224, .18) !important;
  border-radius: 26px !important;
  background: #fff !important;
  box-shadow: 0 38px 100px rgba(22, 9, 39, .32) !important;
}

body[data-app="admin"] #hoursModal .starby-config-window { width: min(1120px, calc(100vw - 28px)) !important; max-width: 1120px !important; }
body[data-app="admin"] #couponsModal .starby-config-window { width: min(1080px, calc(100vw - 28px)) !important; max-width: 1080px !important; }

body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-shell {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 5% 0%, rgba(143, 91, 255, .10), transparent 24%),
    linear-gradient(180deg, #fff 0%, #fbf9ff 100%) !important;
}

body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-close {
  position: absolute !important;
  z-index: 20 !important;
  top: 18px !important;
  right: 18px !important;
  left: auto !important;
  display: grid !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #f05f83, #d73b68) !important;
  box-shadow: 0 10px 24px rgba(215, 59, 104, .26) !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-header {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) auto !important;
  gap: 16px !important;
  align-items: center !important;
  min-height: 116px !important;
  padding: 24px 76px 22px 26px !important;
  border-bottom: 1px solid #eee7f6 !important;
  background: linear-gradient(135deg, rgba(126, 70, 224, .09), rgba(255,255,255,.96) 48%, #fff) !important;
}

body[data-app="admin"] .starby-config-header-icon {
  display: grid !important;
  width: 58px !important;
  height: 58px !important;
  place-items: center !important;
  border-radius: 18px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #965fff, #6f33d3) !important;
  box-shadow: 0 14px 28px rgba(100, 48, 194, .24) !important;
  font-size: 25px !important;
}

body[data-app="admin"] .starby-config-header-copy { min-width: 0 !important; }
body[data-app="admin"] .starby-config-header-copy > span,
body[data-app="admin"] .starby-config-section-head > div:nth-child(2) > span {
  display: block !important;
  margin: 0 0 4px !important;
  color: #8150d6 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .13em !important;
}
body[data-app="admin"] .starby-config-header-copy h2 {
  margin: 0 !important;
  color: #28183a !important;
  font-size: 24px !important;
  line-height: 1.15 !important;
  letter-spacing: -.035em !important;
}
body[data-app="admin"] .starby-config-header-copy p {
  margin: 6px 0 0 !important;
  color: #746b80 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}
body[data-app="admin"] .starby-config-header-badge,
body[data-app="admin"] .starby-section-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  border: 1px solid #e1d3f4 !important;
  border-radius: 999px !important;
  color: #6f33d3 !important;
  background: #f6f0ff !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-body {
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 22px 26px 30px !important;
  scrollbar-width: thin !important;
  scrollbar-color: #c8afe9 transparent !important;
}
body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-body::-webkit-scrollbar { width: 10px !important; }
body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-body::-webkit-scrollbar-thumb { border: 2px solid transparent !important; border-radius: 999px !important; background: #c8afe9 !important; background-clip: padding-box !important; }

body[data-app="admin"] .starby-config-section {
  margin: 0 0 16px !important;
  padding: 18px !important;
  border: 1px solid #e9e1f2 !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 10px 30px rgba(50, 27, 79, .055) !important;
}
body[data-app="admin"] .starby-config-section-head {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  margin-bottom: 16px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #f0eaf5 !important;
}
body[data-app="admin"] .starby-config-section-head.compact { grid-template-columns: 38px minmax(0,1fr) !important; margin-bottom: 12px !important; }
body[data-app="admin"] .starby-config-section-icon {
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  border-radius: 13px !important;
  color: #7740d1 !important;
  background: linear-gradient(135deg, #f1e8ff, #faf7ff) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}
body[data-app="admin"] .starby-config-section-head h3 {
  margin: 0 !important;
  color: #2b1c3d !important;
  font-size: 16px !important;
  letter-spacing: -.02em !important;
}
body[data-app="admin"] .starby-config-section-head p {
  margin: 4px 0 0 !important;
  color: #7b7288 !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
}

body[data-app="admin"] .starby-config-form-grid {
  display: grid !important;
  gap: 14px !important;
}
body[data-app="admin"] .starby-config-form-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
body[data-app="admin"] .starby-config-field.full { grid-column: 1 / -1 !important; }
body[data-app="admin"] .starby-config-field {
  display: grid !important;
  gap: 7px !important;
  margin: 0 !important;
  color: #40334f !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}
body[data-app="admin"] .starby-config-field > span { color: #40334f !important; font-size: 11px !important; font-weight: 800 !important; }
body[data-app="admin"] .starby-config-field small { color: #867d91 !important; font-size: 10px !important; font-weight: 600 !important; line-height: 1.4 !important; }
body[data-app="admin"] :is(#storeModal,#deliveryModal,#couponsModal) .starby-config-field input,
body[data-app="admin"] :is(#storeModal,#deliveryModal,#couponsModal) .starby-config-field select {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  border: 1px solid #dfd5e8 !important;
  border-radius: 12px !important;
  color: #2d2137 !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 12px !important;
}
body[data-app="admin"] :is(#storeModal,#deliveryModal,#couponsModal) .starby-config-field input:focus,
body[data-app="admin"] :is(#storeModal,#deliveryModal,#couponsModal) .starby-config-field select:focus {
  border-color: #8d5bea !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(141, 91, 234, .11) !important;
}
body[data-app="admin"] .starby-input-prefix {
  display: grid !important;
  grid-template-columns: 42px minmax(0,1fr) !important;
  align-items: center !important;
  overflow: hidden !important;
  border: 1px solid #dfd5e8 !important;
  border-radius: 12px !important;
  background: #fff !important;
}
body[data-app="admin"] .starby-input-prefix:focus-within { border-color: #8d5bea !important; box-shadow: 0 0 0 4px rgba(141, 91, 234, .11) !important; }
body[data-app="admin"] .starby-input-prefix b {
  display: grid !important;
  align-self: stretch !important;
  place-items: center !important;
  color: #7040c4 !important;
  background: #f4edff !important;
  font-size: 11px !important;
}
body[data-app="admin"] .starby-input-prefix input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
body[data-app="admin"] .starby-input-prefix input:focus { box-shadow: none !important; }
body[data-app="admin"] .starby-input-prefix.large { grid-template-columns: 52px minmax(0,1fr) !important; }
body[data-app="admin"] .starby-input-prefix.large input { height: 52px !important; min-height: 52px !important; font-size: 18px !important; font-weight: 800 !important; }

body[data-app="admin"] .starby-config-note {
  display: flex !important;
  gap: 12px !important;
  align-items: flex-start !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid #e7dcf6 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #f8f3ff, #fff) !important;
}
body[data-app="admin"] .starby-config-note > span { font-size: 20px !important; }
body[data-app="admin"] .starby-config-note strong { display: block !important; color: #49355f !important; font-size: 12px !important; }
body[data-app="admin"] .starby-config-note p { margin: 3px 0 0 !important; color: #7a7088 !important; font-size: 10px !important; line-height: 1.45 !important; }

body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 16px !important;
  min-height: 76px !important;
  padding: 14px 26px !important;
  border-top: 1px solid #ebe4f2 !important;
  background: linear-gradient(180deg, #fff, #f8f4fd) !important;
}
body[data-app="admin"] .starby-config-footer > span { margin-right: auto !important; color: #81778d !important; font-size: 10px !important; font-weight: 600 !important; }
body[data-app="admin"] .starby-config-primary,
body[data-app="admin"] .starby-config-secondary,
body[data-app="admin"] .starby-config-danger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border-radius: 11px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
body[data-app="admin"] .starby-config-primary {
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #925df2, #6f33d3) !important;
  box-shadow: 0 12px 24px rgba(101, 48, 194, .23) !important;
}
body[data-app="admin"] .starby-config-secondary { border: 1px solid #dacbea !important; color: #6f33d3 !important; background: #fff !important; box-shadow: none !important; }
body[data-app="admin"] .starby-config-danger { border: 1px solid #f0bdca !important; color: #cb315d !important; background: #fff5f8 !important; box-shadow: none !important; }
body[data-app="admin"] :is(.starby-config-primary,.starby-config-secondary,.starby-config-danger):hover { transform: translateY(-1px) !important; filter: brightness(1.02) !important; }

/* Entrega */
body[data-app="admin"] .starby-delivery-free-grid { display: grid !important; grid-template-columns: minmax(0, .85fr) minmax(240px, 1.15fr) !important; gap: 16px !important; align-items: stretch !important; }
body[data-app="admin"] .starby-delivery-benefit-preview {
  display: grid !important;
  align-content: center !important;
  gap: 5px !important;
  padding: 16px !important;
  border: 1px dashed #d8c5ef !important;
  border-radius: 15px !important;
  background: #fbf8ff !important;
}
body[data-app="admin"] .starby-delivery-benefit-preview span { color: #8960cd !important; font-size: 9px !important; font-weight: 900 !important; letter-spacing: .1em !important; }
body[data-app="admin"] .starby-delivery-benefit-preview strong { color: #39254e !important; font-size: 14px !important; }
body[data-app="admin"] .starby-delivery-benefit-preview p { margin: 0 !important; color: #7d7489 !important; font-size: 10px !important; }
body[data-app="admin"] .starby-delivery-editor-wrap { min-height: 150px !important; }
body[data-app="admin"] #deliveryModal .delivery-fees-table { display: grid !important; gap: 9px !important; }
body[data-app="admin"] #deliveryModal .delivery-fees-head {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 190px 92px !important;
  gap: 12px !important;
  padding: 0 12px 6px !important;
  color: #8a8094 !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
body[data-app="admin"] #deliveryModal .delivery-tier-row {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 190px 92px !important;
  gap: 12px !important;
  align-items: end !important;
  padding: 12px !important;
  border: 1px solid #ece4f3 !important;
  border-radius: 15px !important;
  background: #fcfbfe !important;
}
body[data-app="admin"] #deliveryModal .delivery-tier-row label { display: grid !important; gap: 5px !important; margin: 0 !important; }
body[data-app="admin"] #deliveryModal .delivery-row-label { display: none !important; }
body[data-app="admin"] #deliveryModal .delivery-tier-row input { width: 100% !important; height: 40px !important; min-height: 40px !important; margin: 0 !important; padding: 0 11px !important; border: 1px solid #ded4e7 !important; border-radius: 10px !important; background: #fff !important; font-size: 11px !important; }
body[data-app="admin"] #deliveryModal .delivery-input-with-prefix.small { display: grid !important; grid-template-columns: 36px minmax(0,1fr) !important; overflow: hidden !important; border: 1px solid #ded4e7 !important; border-radius: 10px !important; background: #fff !important; }
body[data-app="admin"] #deliveryModal .delivery-input-with-prefix.small > span { display: grid !important; place-items: center !important; color: #7546c4 !important; background: #f4edff !important; font-size: 10px !important; font-weight: 800 !important; }
body[data-app="admin"] #deliveryModal .delivery-input-with-prefix.small input { border: 0 !important; border-radius: 0 !important; }
body[data-app="admin"] #deliveryModal .delivery-remove-neighborhood { width: 100% !important; min-height: 40px !important; padding: 0 10px !important; border: 1px solid #f1bfcb !important; border-radius: 10px !important; color: #cd315e !important; background: #fff4f7 !important; font-size: 10px !important; font-weight: 900 !important; }
body[data-app="admin"] #deliveryModal .delivery-empty-state { display: grid !important; min-height: 180px !important; place-items: center !important; align-content: center !important; gap: 6px !important; padding: 24px !important; border: 1px dashed #d9cae8 !important; border-radius: 16px !important; color: #6f6578 !important; background: #fcfaff !important; text-align: center !important; }
body[data-app="admin"] #deliveryModal .delivery-empty-state > div { font-size: 28px !important; }
body[data-app="admin"] #deliveryModal .delivery-empty-state strong { color: #49385a !important; font-size: 13px !important; }
body[data-app="admin"] #deliveryModal .delivery-empty-state p { margin: 0 !important; font-size: 10px !important; }

/* Horários */
body[data-app="admin"] #hoursEditor { display: grid !important; gap: 16px !important; }
body[data-app="admin"] .starby-hours-quick-actions { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 14px !important; }
body[data-app="admin"] .starby-hours-action-card {
  display: grid !important;
  grid-template-columns: 42px minmax(0,1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  min-height: 84px !important;
  padding: 14px !important;
  border: 1px solid #e6dbf2 !important;
  border-radius: 18px !important;
  color: inherit !important;
  background: linear-gradient(135deg, #fff, #faf6ff) !important;
  box-shadow: 0 9px 24px rgba(54, 29, 82, .05) !important;
  text-align: left !important;
}
body[data-app="admin"] .starby-hours-action-card > span { display: grid !important; width: 42px !important; height: 42px !important; place-items: center !important; border-radius: 13px !important; color: #7541cf !important; background: #f0e7ff !important; font-size: 18px !important; }
body[data-app="admin"] .starby-hours-action-card strong { display: block !important; color: #322242 !important; font-size: 12px !important; }
body[data-app="admin"] .starby-hours-action-card small { display: block !important; margin-top: 3px !important; color: #7b7288 !important; font-size: 9px !important; line-height: 1.4 !important; }
body[data-app="admin"] .starby-hours-action-card b { color: #7541cf !important; font-size: 9px !important; }
body[data-app="admin"] .starby-hours-days-list { display: grid !important; gap: 10px !important; }
body[data-app="admin"] .starby-hour-day-card { display: grid !important; gap: 12px !important; padding: 14px !important; border: 1px solid #e9e2ef !important; border-radius: 16px !important; background: #fbfafc !important; transition: border-color .16s ease, background .16s ease !important; }
body[data-app="admin"] .starby-hour-day-card.is-open { border-color: #d9c4ee !important; background: linear-gradient(135deg, #fff, #faf5ff) !important; }
body[data-app="admin"] .starby-hour-day-main { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 14px !important; }
body[data-app="admin"] .starby-hour-day-name strong { display: block !important; color: #332442 !important; font-size: 13px !important; }
body[data-app="admin"] .starby-hour-day-name small { display: block !important; margin-top: 2px !important; color: #8a8092 !important; font-size: 9px !important; }
body[data-app="admin"] .starby-hour-switch { display: flex !important; align-items: center !important; gap: 8px !important; margin: 0 !important; cursor: pointer !important; }
body[data-app="admin"] .starby-hour-switch input { position: absolute !important; opacity: 0 !important; pointer-events: none !important; }
body[data-app="admin"] .starby-hour-switch i { position: relative !important; display: block !important; width: 42px !important; height: 23px !important; border-radius: 999px !important; background: #d9d2df !important; transition: .18s ease !important; }
body[data-app="admin"] .starby-hour-switch i::after { content: "" !important; position: absolute !important; top: 3px !important; left: 3px !important; width: 17px !important; height: 17px !important; border-radius: 50% !important; background: #fff !important; box-shadow: 0 3px 8px rgba(0,0,0,.16) !important; transition: .18s ease !important; }
body[data-app="admin"] .starby-hour-switch input:checked + i { background: linear-gradient(135deg, #8e59ee, #6e32d2) !important; }
body[data-app="admin"] .starby-hour-switch input:checked + i::after { transform: translateX(19px) !important; }
body[data-app="admin"] .starby-hour-switch span { min-width: 45px !important; color: #756b80 !important; font-size: 9px !important; font-weight: 900 !important; }
body[data-app="admin"] .starby-hour-periods { display: grid !important; gap: 8px !important; }
body[data-app="admin"] #hoursModal .period-row { display: grid !important; grid-template-columns: minmax(120px, 1fr) 28px minmax(120px, 1fr) 82px !important; gap: 9px !important; align-items: center !important; padding: 9px !important; border: 1px solid #eee8f2 !important; border-radius: 12px !important; background: #fff !important; }
body[data-app="admin"] #hoursModal .period-row > span { color: #8c8295 !important; font-size: 9px !important; font-weight: 800 !important; text-align: center !important; }
body[data-app="admin"] #hoursModal .period-row input { width: 100% !important; height: 38px !important; min-height: 38px !important; margin: 0 !important; padding: 0 10px !important; border: 1px solid #ddd4e5 !important; border-radius: 9px !important; background: #fff !important; font-size: 11px !important; }
body[data-app="admin"] #hoursModal .period-row .danger-light { min-height: 36px !important; padding: 0 9px !important; border: 1px solid #efc3ce !important; border-radius: 9px !important; color: #c83a60 !important; background: #fff5f7 !important; font-size: 9px !important; font-weight: 900 !important; }
body[data-app="admin"] #hoursModal .period-row .danger-light:disabled { opacity: .4 !important; }
body[data-app="admin"] .starby-hour-add-period { justify-self: start !important; min-height: 34px !important; padding: 0 11px !important; border: 1px solid #ddcfed !important; border-radius: 9px !important; color: #7140c4 !important; background: #fff !important; font-size: 9px !important; font-weight: 900 !important; }
body[data-app="admin"] .starby-hours-summary-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 14px !important; }
body[data-app="admin"] .starby-hours-summary-card { margin-bottom: 0 !important; }
body[data-app="admin"] #hoursModal :is(.special-hours-list,.long-closure-summary) { display: grid !important; gap: 8px !important; }
body[data-app="admin"] #hoursModal .special-hour-item,
body[data-app="admin"] #hoursModal .closure-badge { display: grid !important; grid-template-columns: minmax(0,1fr) auto !important; gap: 4px 10px !important; align-items: center !important; padding: 11px !important; border: 1px solid #ebe3f1 !important; border-radius: 12px !important; background: #fcfbfd !important; }
body[data-app="admin"] #hoursModal .special-hour-item strong,
body[data-app="admin"] #hoursModal .closure-badge strong { color: #3e2d4f !important; font-size: 11px !important; }
body[data-app="admin"] #hoursModal .special-hour-item span,
body[data-app="admin"] #hoursModal .closure-badge span { color: #6f33d3 !important; font-size: 10px !important; font-weight: 800 !important; text-align: right !important; }
body[data-app="admin"] #hoursModal .special-hour-item small,
body[data-app="admin"] #hoursModal .closure-badge small { color: #80778a !important; font-size: 9px !important; }
body[data-app="admin"] #hoursModal .special-hour-item button { grid-column: 2 !important; grid-row: 2 !important; min-height: 29px !important; padding: 0 9px !important; border: 1px solid #efc3ce !important; border-radius: 8px !important; color: #c83a60 !important; background: #fff5f7 !important; font-size: 8px !important; font-weight: 900 !important; }
body[data-app="admin"] #hoursModal .empty-list-hint { margin: 0 !important; padding: 16px !important; border: 1px dashed #dfd4e8 !important; border-radius: 12px !important; background: #fcfbfd !important; text-align: center !important; }

/* Cupons */
body[data-app="admin"] .starby-coupon-form-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 13px !important; }
body[data-app="admin"] .starby-coupon-form-footer { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 14px !important; margin-top: 16px !important; padding-top: 15px !important; border-top: 1px solid #eee7f3 !important; }
body[data-app="admin"] .starby-coupon-toggle { display: flex !important; align-items: center !important; gap: 12px !important; margin: 0 !important; cursor: pointer !important; }
body[data-app="admin"] .starby-coupon-toggle > span { min-width: 0 !important; }
body[data-app="admin"] .starby-coupon-toggle strong { display: block !important; color: #40304f !important; font-size: 11px !important; }
body[data-app="admin"] .starby-coupon-toggle small { display: block !important; margin-top: 2px !important; color: #82788d !important; font-size: 9px !important; }
body[data-app="admin"] .starby-coupon-toggle input { position: absolute !important; opacity: 0 !important; }
body[data-app="admin"] .starby-coupon-toggle i { position: relative !important; order: -1 !important; flex: 0 0 auto !important; width: 44px !important; height: 24px !important; border-radius: 999px !important; background: #d9d2df !important; }
body[data-app="admin"] .starby-coupon-toggle i::after { content: "" !important; position: absolute !important; top: 3px !important; left: 3px !important; width: 18px !important; height: 18px !important; border-radius: 50% !important; background: #fff !important; box-shadow: 0 3px 8px rgba(0,0,0,.16) !important; transition: .18s ease !important; }
body[data-app="admin"] .starby-coupon-toggle input:checked + i { background: linear-gradient(135deg, #8e59ee, #6e32d2) !important; }
body[data-app="admin"] .starby-coupon-toggle input:checked + i::after { transform: translateX(20px) !important; }
body[data-app="admin"] .starby-coupons-list { display: grid !important; gap: 10px !important; }
body[data-app="admin"] .starby-coupon-card { display: grid !important; grid-template-columns: 140px 120px minmax(0,1fr) auto !important; gap: 14px !important; align-items: center !important; padding: 14px !important; border: 1px solid #e8e0ef !important; border-left: 4px solid #8750e1 !important; border-radius: 15px !important; background: linear-gradient(135deg, #fff, #fcfaff) !important; }
body[data-app="admin"] .starby-coupon-card.is-paused { border-left-color: #b9aebf !important; opacity: .82 !important; }
body[data-app="admin"] .starby-coupon-card small { display: block !important; color: #958a9e !important; font-size: 8px !important; font-weight: 900 !important; letter-spacing: .08em !important; }
body[data-app="admin"] .starby-coupon-card-code strong { display: block !important; margin-top: 3px !important; color: #3a254d !important; font-size: 15px !important; letter-spacing: .03em !important; }
body[data-app="admin"] .starby-coupon-card-value strong { display: block !important; margin-top: 3px !important; color: #6f33d3 !important; font-size: 16px !important; }
body[data-app="admin"] .starby-coupon-card-details { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; }
body[data-app="admin"] .starby-coupon-card-details span { padding: 5px 8px !important; border-radius: 999px !important; color: #6f6478 !important; background: #f3eef7 !important; font-size: 8px !important; font-weight: 700 !important; }
body[data-app="admin"] .starby-coupon-card-actions { display: flex !important; align-items: center !important; gap: 7px !important; }
body[data-app="admin"] .starby-coupon-card-actions em { min-width: 56px !important; padding: 6px 8px !important; border-radius: 999px !important; font-size: 8px !important; font-style: normal !important; font-weight: 900 !important; text-align: center !important; }
body[data-app="admin"] .starby-coupon-card-actions em.active { color: #167b50 !important; background: #e8f8f0 !important; }
body[data-app="admin"] .starby-coupon-card-actions em.inactive { color: #736a78 !important; background: #eeeaf0 !important; }
body[data-app="admin"] .starby-coupon-card-actions button { min-height: 34px !important; padding: 0 10px !important; font-size: 9px !important; }
body[data-app="admin"] .starby-coupons-empty { display: grid !important; min-height: 190px !important; place-items: center !important; align-content: center !important; gap: 6px !important; padding: 24px !important; border: 1px dashed #d9cae8 !important; border-radius: 16px !important; color: #756b80 !important; background: #fcfaff !important; text-align: center !important; }
body[data-app="admin"] .starby-coupons-empty > span { font-size: 30px !important; }
body[data-app="admin"] .starby-coupons-empty strong { color: #453454 !important; font-size: 13px !important; }
body[data-app="admin"] .starby-coupons-empty p { max-width: 440px !important; margin: 0 !important; font-size: 10px !important; line-height: 1.45 !important; }

@media (max-width: 820px) {
  body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal).starby-config-modal { padding: 7px !important; align-items: flex-start !important; }
  body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-window { width: calc(100vw - 14px) !important; height: calc(100vh - 14px) !important; max-height: calc(100vh - 14px) !important; border-radius: 19px !important; }
  body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-header { grid-template-columns: 48px minmax(0,1fr) !important; min-height: 102px !important; padding: 18px 58px 18px 18px !important; }
  body[data-app="admin"] .starby-config-header-icon { width: 48px !important; height: 48px !important; border-radius: 15px !important; }
  body[data-app="admin"] .starby-config-header-badge { display: none !important; }
  body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-body { padding: 16px !important; }
  body[data-app="admin"] .starby-config-form-grid.two-columns,
  body[data-app="admin"] .starby-delivery-free-grid,
  body[data-app="admin"] .starby-hours-quick-actions,
  body[data-app="admin"] .starby-hours-summary-grid,
  body[data-app="admin"] .starby-coupon-form-grid { grid-template-columns: 1fr !important; }
  body[data-app="admin"] .starby-config-section-head { grid-template-columns: 38px minmax(0,1fr) !important; }
  body[data-app="admin"] .starby-config-section-head > :is(.starby-section-pill,.starby-config-secondary) { grid-column: 1 / -1 !important; justify-self: stretch !important; }
  body[data-app="admin"] #deliveryModal .delivery-fees-head { display: none !important; }
  body[data-app="admin"] #deliveryModal .delivery-tier-row { grid-template-columns: 1fr !important; }
  body[data-app="admin"] #deliveryModal .delivery-row-label { display: block !important; color: #8b8094 !important; font-size: 8px !important; font-weight: 900 !important; }
  body[data-app="admin"] #hoursModal .period-row { grid-template-columns: 1fr 24px 1fr !important; }
  body[data-app="admin"] #hoursModal .period-row .danger-light { grid-column: 1 / -1 !important; }
  body[data-app="admin"] .starby-coupon-form-footer { align-items: stretch !important; flex-direction: column !important; }
  body[data-app="admin"] .starby-coupon-card { grid-template-columns: 1fr 1fr !important; }
  body[data-app="admin"] .starby-coupon-card-details,
  body[data-app="admin"] .starby-coupon-card-actions { grid-column: 1 / -1 !important; }
  body[data-app="admin"] .starby-coupon-card-actions { flex-wrap: wrap !important; }
  body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-footer { padding: 12px 16px !important; }
  body[data-app="admin"] .starby-config-footer > span { display: none !important; }
  body[data-app="admin"] .starby-config-footer .starby-config-primary { width: 100% !important; }
}


/* Starby — acabamento roxo estelar nas janelas do admin (2026-08-06 v2) */
body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-window {
  border-color: rgba(164, 121, 245, .28) !important;
  background:
    radial-gradient(circle at top left, rgba(170, 118, 255, .18), transparent 26%),
    radial-gradient(circle at top right, rgba(104, 49, 206, .16), transparent 24%),
    linear-gradient(180deg, #29143f 0%, #1c0f2d 100%) !important;
  box-shadow: 0 40px 110px rgba(8, 2, 18, .56) !important;
}

body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-shell {
  background:
    radial-gradient(circle at 0% 0%, rgba(183, 138, 255, .18), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(109, 56, 213, .18), transparent 24%),
    linear-gradient(180deg, rgba(54, 27, 84, .96) 0%, rgba(31, 18, 49, .98) 100%) !important;
}

body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-header {
  border-bottom-color: rgba(203, 181, 239, .12) !important;
  background:
    linear-gradient(135deg, rgba(165, 118, 246, .22), rgba(79, 41, 146, .22) 40%, rgba(34, 19, 55, .1) 100%),
    rgba(34, 19, 55, .72) !important;
}

body[data-app="admin"] .starby-config-header-copy > span,
body[data-app="admin"] .starby-config-section-head > div:nth-child(2) > span,
body[data-app="admin"] .starby-modal-kicker,
body[data-app="admin"] .starby-config-header-badge,
body[data-app="admin"] .starby-section-pill {
  color: #e7d8ff !important;
}

body[data-app="admin"] .starby-config-header-copy h2,
body[data-app="admin"] .starby-config-section-head h3,
body[data-app="admin"] .starby-delivery-benefit-preview strong,
body[data-app="admin"] .starby-hours-action-card strong,
body[data-app="admin"] .starby-coupons-empty strong {
  color: #ffffff !important;
}

body[data-app="admin"] .starby-config-header-copy p,
body[data-app="admin"] .starby-config-section-head p,
body[data-app="admin"] .starby-config-field,
body[data-app="admin"] .starby-config-field > span,
body[data-app="admin"] .starby-config-field small,
body[data-app="admin"] .starby-delivery-benefit-preview p,
body[data-app="admin"] .starby-hours-action-card small,
body[data-app="admin"] .starby-coupons-empty p,
body[data-app="admin"] .starby-config-note p,
body[data-app="admin"] .starby-config-note strong,
body[data-app="admin"] .starby-delivery-benefit-preview span,
body[data-app="admin"] .starby-hours-action-card b,
body[data-app="admin"] .starby-hours-action-card > span,
body[data-app="admin"] .starby-hours-summary-card p,
body[data-app="admin"] .starby-hours-summary-card span,
body[data-app="admin"] .starby-hours-summary-card strong,
body[data-app="admin"] .starby-coupon-card p,
body[data-app="admin"] .starby-coupon-card small,
body[data-app="admin"] .starby-coupon-card strong,
body[data-app="admin"] .starby-coupon-card span {
  color: #e8e0f3 !important;
}

body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-body {
  scrollbar-color: #8c5be8 transparent !important;
}
body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-body::-webkit-scrollbar-thumb {
  background: #8c5be8 !important;
}

body[data-app="admin"] .starby-config-section,
body[data-app="admin"] .starby-config-note,
body[data-app="admin"] .starby-delivery-benefit-preview,
body[data-app="admin"] .starby-hours-action-card,
body[data-app="admin"] .starby-hours-summary-card,
body[data-app="admin"] .starby-coupon-card,
body[data-app="admin"] .starby-coupons-empty,
body[data-app="admin"] #hoursModal .special-hour-item,
body[data-app="admin"] #hoursModal .period-row,
body[data-app="admin"] #deliveryModal .delivery-tier-row,
body[data-app="admin"] #deliveryModal .delivery-section,
body[data-app="admin"] #storeModal .store-banner-preview,
body[data-app="admin"] #storeModal .store-logo-preview {
  border-color: rgba(203, 181, 239, .14) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)) !important;
  box-shadow: 0 16px 34px rgba(8, 2, 18, .18) !important;
}

body[data-app="admin"] .starby-config-section-head,
body[data-app="admin"] .starby-config-footer {
  border-color: rgba(203, 181, 239, .12) !important;
}

body[data-app="admin"] :is(#storeModal,#deliveryModal,#couponsModal) .starby-config-field input,
body[data-app="admin"] :is(#storeModal,#deliveryModal,#couponsModal) .starby-config-field select,
body[data-app="admin"] #hoursModal .period-row input,
body[data-app="admin"] #deliveryModal .delivery-tier-row input,
body[data-app="admin"] .starby-input-prefix,
body[data-app="admin"] #deliveryModal .delivery-input-with-prefix.small,
body[data-app="admin"] textarea {
  border-color: rgba(220, 204, 248, .18) !important;
  color: #ffffff !important;
  background: rgba(255,255,255,.08) !important;
}

body[data-app="admin"] :is(#storeModal,#deliveryModal,#couponsModal) .starby-config-field input::placeholder,
body[data-app="admin"] :is(#storeModal,#deliveryModal,#couponsModal) .starby-config-field select::placeholder,
body[data-app="admin"] #hoursModal .period-row input::placeholder,
body[data-app="admin"] #deliveryModal .delivery-tier-row input::placeholder,
body[data-app="admin"] textarea::placeholder {
  color: #bbaed0 !important;
}

body[data-app="admin"] .starby-input-prefix b,
body[data-app="admin"] #deliveryModal .delivery-input-with-prefix.small > span {
  color: #f3ebff !important;
  background: rgba(154, 101, 239, .34) !important;
}

body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-field input:focus,
body[data-app="admin"] :is(#storeModal,#deliveryModal,#couponsModal) .starby-config-field select:focus,
body[data-app="admin"] #hoursModal .period-row input:focus,
body[data-app="admin"] #deliveryModal .delivery-tier-row input:focus,
body[data-app="admin"] .starby-input-prefix:focus-within,
body[data-app="admin"] textarea:focus {
  border-color: #a976ff !important;
  box-shadow: 0 0 0 4px rgba(169, 118, 255, .18) !important;
  outline: none !important;
}

body[data-app="admin"] .starby-config-section-icon,
body[data-app="admin"] .starby-hours-action-card > span,
body[data-app="admin"] .starby-config-header-badge,
body[data-app="admin"] .starby-section-pill {
  background: linear-gradient(135deg, rgba(172, 124, 255, .34), rgba(116, 63, 220, .28)) !important;
  color: #ffffff !important;
  border-color: rgba(215, 195, 248, .18) !important;
}

body[data-app="admin"] .starby-config-secondary,
body[data-app="admin"] .starby-hour-add-period,
body[data-app="admin"] #hoursModal .danger-light,
body[data-app="admin"] #deliveryModal .delivery-remove-neighborhood,
body[data-app="admin"] .starby-config-danger,
body[data-app="admin"] .starby-coupon-card .secondary,
body[data-app="admin"] .starby-coupon-card .danger {
  color: #fff !important;
  border-color: rgba(226, 210, 250, .16) !important;
  background: rgba(255,255,255,.08) !important;
}

body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-footer {
  background: linear-gradient(180deg, rgba(58, 31, 90, .72), rgba(32, 18, 52, .92)) !important;
}

body[data-app="admin"] :is(#storeModal,#deliveryModal,#hoursModal,#couponsModal) .starby-config-footer button:not(.starby-config-secondary):not(.starby-config-danger),
body[data-app="admin"] .starby-coupons-actions button:not(.secondary):not(.danger),
body[data-app="admin"] .starby-hours-action-card button,
body[data-app="admin"] .starby-settings-action,
body[data-app="admin"] .starby-sales-channels-actions button:not(.secondary) {
  color: #fff !important;
  background: linear-gradient(135deg, #9e68ff, #6f33d3) !important;
  border: 1px solid rgba(205, 186, 245, .18) !important;
  box-shadow: 0 16px 30px rgba(90, 43, 173, .28) !important;
}

body[data-app="admin"] .starby-config-footer .secondary,
body[data-app="admin"] .starby-sales-channels-actions .secondary,
body[data-app="admin"] .starby-coupons-actions .secondary {
  color: #f2ecff !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(220, 204, 248, .16) !important;
  box-shadow: none !important;
}

body[data-app="admin"] .starby-coupon-toggle i,
body[data-app="admin"] .starby-hour-switch i {
  background: rgba(255,255,255,.16) !important;
}
body[data-app="admin"] .starby-coupon-toggle i::after,
body[data-app="admin"] .starby-hour-switch i::after {
  background: #ffffff !important;
}
body[data-app="admin"] .starby-coupon-toggle input:checked + i,
body[data-app="admin"] .starby-hour-switch input:checked + i {
  background: linear-gradient(135deg, #9e68ff, #6f33d3) !important;
}

body[data-app="admin"] #storeModal .store-logo-preview,
body[data-app="admin"] #storeModal .store-banner-preview,
body[data-app="admin"] .starby-coupons-empty {
  backdrop-filter: blur(6px);
}
