/**
 * Ürün stüdyosu — Slider Studio ile aynı DOM; tam ekran 100vh, kaydırma yok.
 */

html.awp-ps-html,
body.awp-ps-fullscreen-body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  background: #e8ecf1 !important;
}

/* Tüm sayfa (chrome + paneller + modallar) stüdyo ile aynı UI fontu.
   @font-face tanımları slider-design-studio.css içinde. */
body.awp-ps-fullscreen-body,
body.awp-ps-fullscreen-body button,
body.awp-ps-fullscreen-body input,
body.awp-ps-fullscreen-body select,
body.awp-ps-fullscreen-body textarea {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

body.awp-ps-fullscreen-body #wpadminbar {
  display: none !important;
}

body.awp-ps-fullscreen-body {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
}

.awp-ps-fs-chrome {
  --awp-ps-chrome-control-h: 28px;
  --awp-ps-chrome-gap: 18px;
  --awp-ps-chrome-line: 1px solid rgba(148, 163, 184, 0.28);
  position: relative;
  overflow: hidden;
  flex: 0 0 48px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: stretch;
  gap: 0;
  padding: 0 16px;
  padding-top: max(0px, env(safe-area-inset-top, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  background: #1e293b;
  color: #f8fafc;
  z-index: 40;
  margin: 0 !important;
  border: none;
  border-bottom: none;
  box-shadow: none;
}

.awp-ps-fs-chrome.is-compact.is-more-open,
.awp-ps-fs-chrome:has(.awp-ps-lang-switch.is-open),
.awp-ps-fs-chrome.is-lang-open {
  overflow: visible !important;
  z-index: 2147483000;
}

.awp-ps-fs-chrome-left,
.awp-ps-fs-chrome-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: max-content;
  height: auto;
  align-self: stretch;
  background: #1e293b;
  z-index: 2;
}

.awp-ps-fs-chrome-right:has(.awp-ps-lang-switch.is-open) {
  z-index: 2147483001;
  overflow: visible !important;
}

.awp-ps-fs-chrome-left {
  flex: 0 0 auto;
  justify-content: flex-start;
  justify-self: start;
  padding: 5px var(--awp-ps-chrome-gap) 5px 0;
}

.awp-ps-fs-chrome-alert-host {
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(420px, 42vw);
  max-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  overflow: hidden;
  pointer-events: none;
}

.awp-ps-fs-chrome-alert-host:empty {
  display: none;
}

.awp-ps-fs-chrome-right {
  justify-content: flex-end;
  justify-self: end;
  padding: 5px 0 5px var(--awp-ps-chrome-gap);
  margin: 0;
  border-left: var(--awp-ps-chrome-line);
  gap: 8px;
}

.awp-ps-lang-switch {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  z-index: 1;
  overflow: visible;
}

.awp-ps-lang-switch.is-open {
  z-index: 2147483001;
}

.awp-ps-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  height: 32px;
  padding: 0 10px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: none;
  font-family: inherit;
}

.awp-ps-lang-trigger:hover,
.awp-ps-lang-switch.is-open .awp-ps-lang-trigger {
  border-color: rgba(251, 146, 60, 0.45);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.awp-ps-lang-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.awp-ps-lang-code {
  line-height: 1;
}

.awp-ps-lang-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #94a3b8;
  margin-left: 2px;
}

.awp-ps-lang-menu {
  position: fixed;
  top: 54px;
  right: 16px;
  z-index: 2147483005;
  min-width: 168px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  background: #fff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  overflow: visible;
}

.awp-ps-lang-menu[hidden] {
  display: none !important;
}

.awp-ps-lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: none;
  border-radius: 3px;
  background: transparent;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none !important;
  text-align: left;
  cursor: pointer;
}

.awp-ps-lang-option:hover,
.awp-ps-lang-option:focus,
.awp-ps-lang-option:focus-visible,
.awp-ps-lang-option.is-active {
  background: #fff7ed !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

.awp-ps-lang-option-code {
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: 1.6em;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

.awp-ps-lang-option-label {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none !important;
}

/* Koyu chrome / tema button:hover beyaz fill — açık menü satırlarını ezmesin */
body.awp-ps-fullscreen-body .awp-ps-lang-option,
body.awp-ps-fullscreen-body .awp-ps-lang-option:hover,
body.awp-ps-fullscreen-body .awp-ps-lang-option:focus,
body.awp-ps-fullscreen-body .awp-ps-fs-chrome .awp-ps-lang-menu,
body.awp-ps-fullscreen-body .awp-ps-fs-chrome .awp-ps-lang-option,
body.awp-ps-fullscreen-body .awp-ps-fs-chrome .awp-ps-lang-option:hover,
body.awp-ps-fullscreen-body .awp-ps-fs-chrome .awp-ps-lang-option:focus,
body.awp-ps-fullscreen-body .awp-ps-fs-chrome .awp-ps-lang-option:focus-visible,
body.awp-ps-fullscreen-body .awp-ps-fs-chrome .awp-ps-lang-option.is-active,
body.awp-ps-fullscreen-body .awp-ps-fs-chrome .awp-ps-lang-option-code,
body.awp-ps-fullscreen-body .awp-ps-fs-chrome .awp-ps-lang-option:hover .awp-ps-lang-option-code,
body.awp-ps-fullscreen-body .awp-ps-fs-chrome .awp-ps-lang-option.is-active .awp-ps-lang-option-code {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  text-transform: none !important;
}

body.awp-ps-fullscreen-body .awp-ps-lang-option-label,
body.awp-ps-fullscreen-body .awp-ps-fs-chrome .awp-ps-lang-option-label,
body.awp-ps-fullscreen-body .awp-ps-fs-chrome .awp-ps-lang-option:hover .awp-ps-lang-option-label,
body.awp-ps-fullscreen-body .awp-ps-fs-chrome .awp-ps-lang-option.is-active .awp-ps-lang-option-label {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
  text-transform: none !important;
}

.awp-ps-fs-chrome-center {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  min-width: 0;
  width: auto;
  max-width: 100%;
  height: auto;
  align-self: stretch;
  justify-self: stretch;
  overflow: hidden;
  padding: 5px 0;
  margin: 0;
  border-left: var(--awp-ps-chrome-line);
}

.awp-ps-fs-chrome.is-compact .awp-ps-fs-chrome-center {
  overflow: visible;
  justify-self: stretch;
  width: auto;
  justify-content: flex-end;
  align-items: center;
  padding-right: var(--awp-ps-chrome-gap);
}

.awp-ps-fs-chrome-center::-webkit-scrollbar {
  display: none;
}

.awp-ps-chrome-more {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--awp-ps-chrome-control-h);
  min-width: var(--awp-ps-chrome-control-h);
  height: var(--awp-ps-chrome-control-h);
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.35);
  color: #e2e8f0;
  cursor: pointer;
}

.awp-ps-chrome-more:hover,
.awp-ps-chrome-more[aria-expanded="true"] {
  background: #fb923c;
  border-color: #fb923c;
  color: #0f172a;
}

.awp-ps-chrome-more .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 1;
}

.awp-ps-fs-chrome-cluster {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  width: max-content;
  max-width: none;
  height: 100%;
  min-height: var(--awp-ps-chrome-control-h);
  flex: 0 0 auto;
  white-space: nowrap;
}

.awp-ps-fs-chrome-cluster > * {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: auto;
  min-height: var(--awp-ps-chrome-control-h);
  padding: 0 var(--awp-ps-chrome-gap);
  box-sizing: border-box;
}

.awp-ps-fs-chrome-cluster > * + * {
  border-left: var(--awp-ps-chrome-line);
}

.awp-ps-fs-chrome-center .awp-ps-canvas-title {
  max-width: none;
  flex: 0 0 auto;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  padding: 0 28px;
  box-sizing: border-box;
}

.awp-ps-fs-chrome-center .awp-ps-canvas-title-name {
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: none;
}

.awp-ps-fs-chrome-center .awp-ps-canvas-title-size {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.15;
  white-space: nowrap;
}

.awp-ps-fs-chrome-center .awp-ps-size-editor {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: flex-end;
  margin: 0;
  padding: 0;
  gap: 0;
}

.awp-ps-fs-chrome-center .awp-ps-chrome-orient-tools {
  flex: 0 0 auto;
  align-self: flex-end;
  margin: 0 var(--awp-ps-chrome-gap) 0 0;
  height: var(--awp-ps-chrome-control-h);
  padding: 0 var(--awp-ps-chrome-gap) 0 var(--awp-ps-chrome-gap);
  box-sizing: border-box;
}

.awp-ps-fs-chrome-center .awp-ps-chrome-tool-btn {
  width: 24px;
  height: 24px;
}

.awp-ps-fs-chrome-center .awp-ps-size-field {
  min-width: max-content;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  height: auto;
  min-height: 0;
  padding: 0 var(--awp-ps-chrome-gap);
}

.awp-ps-fs-chrome-center .awp-ps-size-editor > * + * {
  border-left: var(--awp-ps-chrome-line);
}

.awp-ps-fs-chrome-center .awp-ps-size-field > span {
  color: #94a3b8;
  white-space: nowrap;
  width: 100%;
  flex-shrink: 0;
  font-size: 9px;
  line-height: 1;
  text-align: center;
}

.awp-ps-fs-chrome-center .awp-ps-size-field input,
.awp-ps-fs-chrome-center .awp-ps-size-field select {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
  flex-shrink: 0;
  width: 56px;
  height: var(--awp-ps-chrome-control-h) !important;
  min-height: var(--awp-ps-chrome-control-h) !important;
  max-height: var(--awp-ps-chrome-control-h) !important;
  padding: 0 6px !important;
  font-size: 12px !important;
}

.awp-ps-fs-chrome-center .awp-ps-size-field--unit select {
  width: 72px;
  min-width: 72px;
  padding: 0 22px 0 8px !important;
  text-align: left !important;
  text-align-last: left !important;
}

.awp-ps-fs-chrome-center .awp-ps-size-apply {
  background: #fb923c !important;
  border: 1px solid #fb923c !important;
  color: #0f172a !important;
  white-space: nowrap;
  flex: 0 0 auto;
  height: var(--awp-ps-chrome-control-h) !important;
  min-height: var(--awp-ps-chrome-control-h) !important;
  align-self: flex-end;
  margin: 0 var(--awp-ps-chrome-gap);
  padding: 0 10px !important;
  font-size: 12px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.awp-ps-fs-chrome-center .awp-ps-size-apply:hover,
.awp-ps-fs-chrome-center .awp-ps-size-apply:focus-visible {
  background: #fff !important;
  color: #9a3412 !important;
  border-color: #fff !important;
  box-shadow: 0 0 0 2px #fb923c !important;
}

.awp-ps-fs-chrome.is-compact .awp-ps-chrome-more {
  display: inline-flex;
  width: 32px;
  min-width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 3px;
  color: #cbd5e1;
  align-self: center;
}

.awp-ps-fs-chrome.is-compact .awp-ps-fs-ghost-label {
  display: none;
}

.awp-ps-fs-chrome.is-compact .awp-ps-fs-ghost {
  padding: 0 8px;
  gap: 0;
}

.awp-ps-fs-chrome.is-compact .awp-ps-fs-chrome-cluster {
  position: absolute;
  top: calc(100% + 6px);
  left: auto;
  right: 0;
  transform: none;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: min(320px, calc(100vw - 20px));
  height: auto;
  padding: 12px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 3px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.4);
  z-index: 90;
  white-space: normal;
}

.awp-ps-fs-chrome.is-compact.is-more-open .awp-ps-fs-chrome-cluster {
  display: flex;
}

.awp-ps-fs-chrome.is-compact .awp-ps-fs-chrome-cluster > * {
  display: flex;
  height: auto;
  min-height: 0;
  padding: 0;
  border: none;
}

.awp-ps-fs-chrome.is-compact .awp-ps-fs-chrome-cluster > * + * {
  border: none;
}

.awp-ps-fs-chrome.is-compact .awp-ps-canvas-title {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.awp-ps-fs-chrome.is-compact .awp-ps-canvas-title-name {
  max-width: 100%;
  font-size: 13px;
}

.awp-ps-fs-chrome.is-compact .awp-ps-canvas-title-size {
  font-size: 11px;
}

.awp-ps-fs-chrome.is-compact .awp-ps-size-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
}

.awp-ps-fs-chrome.is-compact .awp-ps-size-editor > * + * {
  border: none !important;
}

.awp-ps-fs-chrome.is-compact .awp-ps-size-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
  height: auto;
  min-width: 0;
  padding: 0 !important;
  border: none !important;
}

.awp-ps-fs-chrome.is-compact .awp-ps-size-field:not(.awp-ps-size-field--unit) {
  flex: 1 1 calc(50% - 4px);
  max-width: calc(50% - 4px);
}

.awp-ps-fs-chrome.is-compact .awp-ps-size-field > span {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 10px;
  line-height: 1.2;
  color: #94a3b8;
}

.awp-ps-fs-chrome.is-compact .awp-ps-size-field input,
.awp-ps-fs-chrome.is-compact .awp-ps-size-field select {
  width: 100% !important;
  max-width: none;
  height: 32px !important;
  min-height: 32px !important;
  text-align: left;
  padding: 0 8px !important;
}

.awp-ps-fs-chrome.is-compact .awp-ps-size-field--unit {
  flex: 0 0 72px;
  width: 72px;
  max-width: 72px;
}

.awp-ps-fs-chrome.is-compact .awp-ps-size-field--unit > span {
  display: none;
}

.awp-ps-fs-chrome.is-compact .awp-ps-size-field--unit select {
  width: 72px !important;
  max-width: 72px;
  padding: 0 22px 0 8px !important;
  font-size: 12px !important;
  text-align: left !important;
  text-align-last: left !important;
}

.awp-ps-fs-chrome.is-compact .awp-ps-size-apply {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  margin: 0 !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  font-size: 12px;
  align-self: flex-end;
}

.awp-ps-fs-chrome.is-compact .awp-ps-chrome-orient-tools {
  width: auto;
  flex: 0 0 auto;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-self: flex-end;
  background: transparent;
  border: none;
}

.awp-ps-fs-chrome.is-compact .awp-ps-chrome-tool-btn {
  width: 26px;
  height: 26px;
}

/* Üst chrome — tuval yatay / dikey */
.awp-ps-chrome-orient-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 0;
  padding: 0;
  height: var(--awp-ps-chrome-control-h, 36px);
  border-radius: 0;
  background: transparent;
  border: none;
  box-sizing: border-box;
}

.awp-ps-chrome-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.awp-ps-chrome-tool-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.awp-ps-chrome-tool-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.awp-ps-chrome-tool-btn.is-active {
  background: rgba(251, 146, 60, 0.22);
  color: #fb923c;
}

.awp-ps-canvas-orient-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.awp-ps-canvas-orient-icon--portrait::before,
.awp-ps-canvas-orient-icon--portrait::after {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 5px;
  border-radius: 1px;
  background: currentColor;
}

.awp-ps-canvas-orient-icon--portrait::before {
  left: 2px;
}

.awp-ps-canvas-orient-icon--portrait::after {
  right: 2px;
  opacity: 0.4;
}

.awp-ps-canvas-orient-icon--landscape::before,
.awp-ps-canvas-orient-icon--landscape::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  height: 5px;
  border-radius: 1px;
  background: currentColor;
}

.awp-ps-canvas-orient-icon--landscape::before {
  top: 2px;
}

.awp-ps-canvas-orient-icon--landscape::after {
  bottom: 2px;
  opacity: 0.4;
}

.awp-ps-fs-logo {
  display: block;
  height: 32px;
  max-height: 32px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

.awp-ps-fs-brand {
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
  background: transparent;
}

/* İnce, kibar, zemine (koyu lacivert) uygun "ghost" butonlar — başlıksız */
.awp-ps-fs-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.awp-ps-fs-ghost-icon {
  display: inline-flex;
  color: #94a3b8;
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.awp-ps-fs-ghost-label {
  white-space: nowrap;
}

.awp-ps-fs-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f8fafc !important;
}

.awp-ps-fs-ghost:hover .awp-ps-fs-ghost-icon {
  color: #fb923c;
}

.awp-ps-fs-ghost:active {
  background: rgba(255, 255, 255, 0.03);
}

.awp-ps-fs-ghost--primary {
  border-color: rgba(251, 146, 60, 0.35);
  color: #fed7aa !important;
}

.awp-ps-fs-ghost--primary .awp-ps-fs-ghost-icon {
  color: #fb923c;
}

.awp-ps-fs-ghost--primary:hover {
  background: rgba(251, 146, 60, 0.14);
  border-color: rgba(251, 146, 60, 0.55);
  color: #fff7ed !important;
}

.awp-ps-fs-ghost--primary:hover .awp-ps-fs-ghost-icon {
  color: #ffedd5;
}

#awp-ps-apply-return[hidden] {
  display: none !important;
}

/* Düzenleme araçları — flyout içinde tek kutu; dış çerçeve flyout’ta */
.awp-ps-edit-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.awp-ps-flyout .awp-ps-edit-tools {
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.awp-ps-edit-tools .awp-studio-toolbar-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  box-sizing: border-box;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.awp-ps-edit-tools .awp-studio-toolbar-icon:hover {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
}

.awp-ps-edit-tools .awp-studio-toolbar-icon:active {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff;
  box-shadow: none;
}

.awp-ps-edit-tools .awp-studio-toolbar-sep {
  height: 20px;
  margin: 0 2px;
  background: #e2e8f0;
}

#awp-ps-tool-orient .awp-ps-orient-icon--landscape,
.awp-ps-tool-orient-btn .awp-ps-orient-icon--landscape {
  display: none;
}

#awp-ps-tool-orient.is-landscape .awp-ps-orient-icon--portrait,
.awp-ps-tool-orient-btn.is-landscape .awp-ps-orient-icon--portrait {
  display: none;
}

#awp-ps-tool-orient.is-landscape .awp-ps-orient-icon--landscape,
.awp-ps-tool-orient-btn.is-landscape .awp-ps-orient-icon--landscape {
  display: block;
}

.awp-ps-orient-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: inherit;
}

.awp-studio-selection-tools-modal-grid .awp-ps-tool-orient-btn {
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.awp-ps-fs-size {
  font-size: 12px;
  color: #94a3b8;
}


/* Ortada ürün adı + ölçü — üst chrome’a taşındı; eski canvas-chrome gizli */
.awp-product-studio-mode .awp-studio-canvas-chrome[hidden],
.awp-product-studio-mode #awp-studio-canvas-chrome[hidden] {
  display: none !important;
}

.awp-ps-canvas-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: 2px;
  padding: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.awp-ps-canvas-title-name {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.awp-ps-canvas-title-size {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.25;
  font-weight: 600;
}

.awp-ps-size-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 0;
  flex: 1 1 auto;
}

.awp-ps-size-editor[hidden] {
  display: none !important;
}

.awp-ps-size-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  text-align: center;
}

.awp-ps-size-field > span {
  display: block;
  width: 100%;
  text-align: center;
  line-height: 1.2;
}

.awp-ps-size-field input,
.awp-ps-size-field select {
  width: 76px;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 3px !important;
  padding: 6px 8px !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: #0f172a !important;
  background: #fff !important;
  background-image: none !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  text-align: center;
  vertical-align: middle;
  -moz-appearance: textfield;
  appearance: auto;
}

.awp-ps-size-field input[type="number"]::-webkit-outer-spin-button,
.awp-ps-size-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.awp-ps-size-field--unit select {
  width: 76px;
  min-width: 76px;
  text-align: left !important;
  text-align-last: left !important;
  padding: 6px 22px 6px 10px !important;
}

.awp-ps-size-field--unit select option {
  text-align: left !important;
}

.awp-ps-size-field input:focus,
.awp-ps-size-field select:focus {
  outline: none !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
}

.awp-ps-size-apply {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  border: none !important;
  border-radius: 3px !important;
  background: #1e293b !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer;
  line-height: 1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18) !important;
}

.awp-ps-size-apply:hover,
.awp-ps-size-apply:focus-visible {
  background: #fff !important;
  color: #9a3412 !important;
  border: 1px solid #fb923c !important;
  box-shadow: 0 0 0 2px #fb923c !important;
}

.awp-ps-size-apply[hidden] {
  display: none !important;
}

.awp-ps-size-editor.is-size-locked .awp-ps-size-field input {
  cursor: not-allowed;
  opacity: 0.7;
}


.awp-ps-fs-studio {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  gap: 0 !important;
}

/* Tema / gizli input flex boşluğu oluşturmasın */
body.awp-ps-fullscreen-body > .awp-ps-fs-chrome,
body.awp-ps-fullscreen-body > .awp-ps-fs-studio,
body.awp-ps-fullscreen-body > #awp-ps-app {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  /* Üst logo/chrome zemini — saç teli boşluk koyu renkle kapanır */
  background-color: #1e293b !important;
}

body.awp-ps-fullscreen-body > .awp-ps-fs-studio,
body.awp-ps-fullscreen-body > #awp-ps-app {
  overflow: hidden !important;
  min-width: 0;
  min-height: 0;
}

#awp-ps-app > input[type="hidden"] {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Slider root: admin’deki max-height / vh-200 kısıtını kaldır */
body.awp-ps-fullscreen-body .awp-studio-root.awp-product-studio-mode,
body.awp-ps-fullscreen-body #awp-slider-studio.awp-product-studio-mode {
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  flex: 1 1 auto;
}

body.awp-ps-fullscreen-body .awp-studio-canvas-area {
  min-height: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

body.awp-ps-fullscreen-body .awp-studio-toolbar {
  padding: 6px 16px !important;
  justify-content: center !important;
  gap: 10px !important;
}

body.awp-ps-fullscreen-body .awp-studio-toolbar-group {
  margin: 0 !important;
}

body.awp-ps-fullscreen-body .awp-studio-device-nav {
  justify-content: flex-start !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.awp-ps-fullscreen-body .awp-studio-canvas-viewport {
  flex: 1 1 auto;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto; /* tuval dışı taşmada JS overflowX/Y ile yönetir */
  overscroll-behavior: contain;
  display: block;
  padding: 0 !important;
  background-color: #e8ebef;
  background-image: none;
}

body.awp-ps-fullscreen-body .awp-studio-device-nav {
  margin-top: 2px;
  gap: 8px;
}

.awp-product-studio-mode .awp-studio-device-nav {
  overflow: visible;
  padding-top: 6px;
  padding-bottom: 6px;
  align-items: center;
  position: relative;
  /* Araç rayı (30) ve mobil panel (80) Pixo'yu kapatmasın. Asistan katmanı daha üstte. */
  z-index: 100;
}

.awp-product-studio-mode .awp-studio-device-nav.awp-studio-device-nav--pages,
body.awp-ps-fullscreen-body .awp-studio-device-nav.awp-studio-device-nav--pages {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center !important;
  justify-content: stretch !important;
  gap: 10px !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 8px 12px !important;
  padding-right: calc(96px + var(--awp-panel-overlap-right, 0px)) !important;
  background: #e8edf4 !important;
  overflow-x: auto;
  overflow-y: hidden;
}

.awp-product-studio-mode .awp-studio-page-nav-side {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.awp-product-studio-mode .awp-studio-page-nav-side--end {
  justify-content: flex-end;
}

.awp-product-studio-mode .awp-studio-device-nav--pages .awp-studio-device-nav-btn:not(.awp-studio-device-nav-btn--ask) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  min-height: 36px;
  width: auto;
  max-width: none;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 3px !important;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none !important;
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: visible;
}

.awp-product-studio-mode .awp-studio-device-nav--pages .awp-studio-device-nav-btn:not(.awp-studio-device-nav-btn--ask):hover {
  background: #f8fafc;
  color: #334155;
  border-color: #dbe1ea;
}

.awp-product-studio-mode .awp-studio-device-nav--pages .awp-studio-nav-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
}

.awp-product-studio-mode .awp-studio-device-nav--pages .awp-studio-device-nav-btn:not(.awp-studio-device-nav-btn--ask) .awp-studio-device-nav-label {
  display: inline !important;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  line-height: 1;
}

.awp-product-studio-mode .awp-studio-page-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  min-width: 0;
  padding: 0 8px 0 10px;
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  justify-self: center;
}

.awp-product-studio-mode .awp-studio-page-chip-bar {
  width: 3px;
  height: 22px;
  border-radius: 3px;
  background: #6366f1;
  flex: 0 0 3px;
}

.awp-product-studio-mode .awp-studio-page-chip-icon {
  display: inline-flex;
  color: #64748b;
  flex: 0 0 auto;
}

.awp-product-studio-mode .awp-studio-page-chip-icon .awp-studio-nav-ico {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.awp-product-studio-mode .awp-studio-page-chip-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
}

.awp-product-studio-mode .awp-studio-page-chip-name {
  display: block;
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.awp-product-studio-mode .awp-studio-page-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 42px;
  height: 26px;
  padding: 0 6px;
  border-radius: 3px;
  background: #eef2ff;
  color: #6366f1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  flex: 0 0 auto;
}

.awp-product-studio-mode .awp-studio-page-jump {
  width: 3.1em;
  height: 18px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  color: #4338ca;
  font: inherit;
  font-weight: 700;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.awp-product-studio-mode .awp-studio-page-jump::-webkit-outer-spin-button,
.awp-product-studio-mode .awp-studio-page-jump::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.awp-product-studio-mode .awp-studio-page-jump:focus {
  outline: 2px solid #6366f1;
  outline-offset: 1px;
}

.awp-product-studio-mode .awp-studio-device-nav-btn--add {
  background: #fff !important;
  border-color: #e5e7eb !important;
  color: #4f46e5 !important;
}

.awp-product-studio-mode .awp-studio-device-nav-btn--add .awp-studio-device-nav-label,
.awp-product-studio-mode .awp-studio-device-nav-btn--add .awp-studio-nav-ico {
  color: #4f46e5;
}

.awp-product-studio-mode .awp-studio-device-nav-btn--add:hover {
  background: #f5f7ff !important;
  border-color: #c7d2fe !important;
  color: #4338ca !important;
}

.awp-product-studio-mode .awp-studio-device-nav-btn--new-design {
  background: #fff !important;
  border-color: #e5e7eb !important;
  color: #334155 !important;
}

.awp-product-studio-mode .awp-studio-device-nav-btn--new-design .awp-studio-device-nav-label,
.awp-product-studio-mode .awp-studio-device-nav-btn--new-design .awp-studio-nav-ico {
  color: #334155;
}

.awp-product-studio-mode .awp-studio-device-nav-btn--new-design:hover {
  background: #f8fafc !important;
  border-color: #dbe1ea !important;
  color: #0f172a !important;
}

.awp-product-studio-mode .awp-studio-device-nav-btn--del {
  background: #fff !important;
  border-color: #fecaca !important;
  color: #ef4444 !important;
}

.awp-product-studio-mode .awp-studio-device-nav-btn--del .awp-studio-device-nav-label,
.awp-product-studio-mode .awp-studio-device-nav-btn--del .awp-studio-nav-ico {
  color: #ef4444;
}

.awp-product-studio-mode .awp-studio-device-nav-btn--del:hover {
  background: #fff5f5 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

/* Pixo: sağ alt. Konum altta; araç çubuğu açılınca üstte kalması z-index ile. */
.awp-product-studio-mode .awp-studio-device-nav-btn--ask.awp-studio-ask-ai-btn {
  position: fixed;
  top: auto;
  right: calc(
    var(--awp-studio-tools-rail-width, 52px) + 8px +
      var(--awp-panel-overlap-right, 0px)
  );
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: auto;
  z-index: 2147483640;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 6px 0 4px !important;
  margin: 0 !important;
  overflow: visible;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  gap: 0;
  border-radius: 0 !important;
  isolation: isolate;
  vertical-align: bottom;
}

.awp-product-studio-mode .awp-studio-device-nav-btn--ask.awp-studio-ask-ai-btn:hover,
.awp-product-studio-mode .awp-studio-device-nav-btn--ask.awp-studio-ask-ai-btn:focus-visible,
.awp-product-studio-mode .awp-studio-device-nav-btn--ask.awp-studio-ask-ai-btn:active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none;
  color: inherit;
}

.awp-product-studio-mode .awp-studio-device-nav-btn--ask.awp-studio-ask-ai-btn:focus-visible {
  outline: none;
}

.awp-product-studio-mode .awp-studio-device-nav-btn--ask.awp-studio-ask-ai-btn:focus-visible .awp-studio-ask-ai-btn__img {
  filter: drop-shadow(0 0 0 2px #fff) drop-shadow(0 0 0 4px rgba(56, 189, 248, 0.85));
}

.awp-product-studio-mode .awp-studio-ask-ai-btn__name {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(100% + 6px);
  top: auto;
  transform: translateX(-50%);
  padding: 3px 9px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
  pointer-events: none;
}

.awp-product-studio-mode .awp-studio-ask-ai-btn__name::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  bottom: auto;
  width: 0;
  height: 0;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #ffffff;
  border-bottom-color: transparent;
}

.awp-product-studio-mode .awp-studio-ask-ai-btn__img {
  position: relative;
  z-index: 3;
  display: block;
  width: auto;
  height: 58px;
  max-height: 64px;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.awp-product-studio-mode .awp-studio-ask-ai-btn:hover .awp-studio-ask-ai-btn__img {
  transform: scale(1.05) translateY(-2px);
}

.awp-product-studio-mode .awp-studio-ask-ai-btn:active .awp-studio-ask-ai-btn__img {
  transform: scale(0.96) translateY(1px);
}

.awp-product-studio-mode .awp-studio-ask-ai-btn__halo {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 6px;
  width: 42px;
  height: 42px;
  margin-left: -21px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.55) 0%, rgba(14, 165, 233, 0.22) 42%, transparent 72%);
  animation: awp-ask-ai-halo 2.4s ease-in-out infinite;
  pointer-events: none;
}

.awp-product-studio-mode .awp-studio-ask-ai-btn__pulse {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 12px;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.78);
  box-shadow:
    0 0 14px rgba(34, 211, 238, 0.45),
    inset 0 0 8px rgba(56, 189, 248, 0.18);
  animation: awp-ask-ai-pulse-ring 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  pointer-events: none;
}

.awp-product-studio-mode .awp-studio-ask-ai-btn__pulse--delay {
  animation-delay: 1.1s;
  border-color: rgba(167, 139, 250, 0.58);
  box-shadow:
    0 0 12px rgba(167, 139, 250, 0.38),
    inset 0 0 6px rgba(167, 139, 250, 0.12);
}

.awp-product-studio-mode .awp-studio-ask-ai-btn__sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes awp-ask-ai-halo {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.9);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.1);
  }
}

@keyframes awp-ask-ai-pulse-ring {
  0% {
    opacity: 0.88;
    transform: scale(0.72);
  }

  65% {
    opacity: 0;
    transform: scale(1.62);
  }

  100% {
    opacity: 0;
    transform: scale(1.62);
  }
}

@media (prefers-reduced-motion: reduce) {
  .awp-product-studio-mode .awp-studio-ask-ai-btn__halo,
  .awp-product-studio-mode .awp-studio-ask-ai-btn__pulse {
    animation: none;
    opacity: 0.55;
  }
}

/* Ürün stüdyosu: yüzen Pixo FAB gizle — yalnızca nav’daki tek Pixo kalsın */
body.awp-ps-fullscreen-body .awp-assistant-fab,
html.awp-ps-html body.awp-ps-fullscreen-body .awp-assistant-fab,
body.awp-product-studio-mode .awp-assistant-fab,
html.awp-ps-html .awp-assistant-fab,
body.awp-ps-fullscreen-body #awp-assistant-toggle,
html.awp-ps-html #awp-assistant-toggle,
body.awp-product-studio-mode #awp-assistant-toggle,
html.awp-ps-html body #awp-assistant-toggle,
body.awp-ps-fullscreen-body .awp-assistant-fab-name,
html.awp-ps-html .awp-assistant-fab-name {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body.awp-ps-fullscreen-body #awp-assistant-root:not(.is-panel-open) #awp-assistant-panel,
body.awp-ps-fullscreen-body #awp-assistant-root:not(.is-panel-open) #awp-assistant-backdrop,
body.awp-ps-fullscreen-body #awp-assistant-root:not(.is-panel-open) #awp-assistant-panel > .awp-assistant-topbar {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.awp-ps-fullscreen-body .awp-assistant {
  bottom: 72px;
  right: 16px;
}

/* FAB ile nav’da çift “Sayfa ekle” olmasın */
.awp-product-studio-mode .awp-studio-page-fab {
  display: none;
}

/* Tuval etrafı: sıfır boşluk */
body.awp-ps-fullscreen-body .awp-studio-canvas-area {
  padding: 0 !important;
  gap: 0 !important;
}


body.awp-ps-fullscreen-body .awp-studio-toolbar {
  padding: 6px 16px !important;
  justify-content: center !important;
  gap: 10px !important;
}

/* Büyük ürün tuvalinde placeholder yazıları okunur kalsın */
.awp-product-studio-mode .awp-studio-image-placeholder {
  gap: 0.35em;
  padding: 0.6em;
  border-width: 0.08em;
  border-radius: 0.4em;
}

.awp-product-studio-mode .awp-studio-image-placeholder .dashicons {
  font-size: 1.6em !important;
  width: 1.6em !important;
  height: 1.6em !important;
}

.awp-product-studio-mode .awp-studio-image-placeholder-title {
  font-size: 0.85em;
  font-weight: 700;
}

.awp-product-studio-mode .awp-studio-image-placeholder-sub {
  font-size: 0.65em;
}

/* Kılavuz araçları (Grid / Kesim / Snap) */
.awp-ps-guide-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.awp-ps-guide-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.awp-ps-guide-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.awp-ps-guide-btn.is-active {
  border-color: #ea580c;
  background: #fff7ed;
  color: #9a3412;
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.25);
}

.awp-ps-guide-tools-wrap {
  position: relative;
}

.awp-ps-guide-settings-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 80;
  width: 248px;
  max-width: min(248px, calc(100vw - 72px));
  max-height: min(70vh, 360px);
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 14px 32px rgba(15, 23, 42, 0.14);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.awp-ps-guide-settings-panel[hidden] {
  display: none !important;
}

.awp-ps-guide-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  box-sizing: border-box;
}

.awp-ps-guide-settings-title {
  display: block;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.awp-ps-guide-settings-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.awp-ps-guide-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}

.awp-ps-guide-settings-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.awp-ps-guide-settings-row-label {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.awp-ps-guide-settings-row-sub {
  font-size: 10px;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.3;
}

.awp-ps-guide-switch {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 22px;
  display: inline-block;
}

.awp-ps-guide-switch input[type="checkbox"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.awp-ps-guide-switch-ui {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: background 0.18s ease;
  pointer-events: none;
}

.awp-ps-guide-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform 0.18s ease;
}

.awp-ps-guide-switch input[type="checkbox"]:checked + .awp-ps-guide-switch-ui {
  background: #ea580c;
}

.awp-ps-guide-switch input[type="checkbox"]:checked + .awp-ps-guide-switch-ui::after {
  transform: translateX(18px);
}

.awp-ps-guide-switch:focus-within .awp-ps-guide-switch-ui {
  outline: 2px solid rgba(234, 88, 12, 0.35);
  outline-offset: 2px;
}

.awp-ps-guide-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px 12px;
  box-sizing: border-box;
}

.awp-ps-guide-settings-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  font-size: 11px;
  color: #475569;
}

.awp-ps-guide-settings-field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.awp-ps-guide-settings-field-ctrl {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.awp-ps-guide-settings-field-ctrl:focus-within {
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.awp-ps-guide-settings-field .awp-ps-guide-num {
  width: 100%;
  min-width: 0;
  flex: 1;
  margin: 0;
  padding: 7px 8px;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  box-sizing: border-box;
  appearance: textfield;
  -moz-appearance: textfield;
}

.awp-ps-guide-settings-field .awp-ps-guide-num::-webkit-outer-spin-button,
.awp-ps-guide-settings-field .awp-ps-guide-num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.awp-ps-guide-settings-field .awp-ps-guide-num:disabled {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.awp-ps-guide-settings-field .awp-ps-guide-num:disabled + .awp-ps-guide-settings-unit,
.awp-ps-guide-settings-field-ctrl:has(.awp-ps-guide-num:disabled) {
  background: #f8fafc;
}

.awp-ps-guide-settings-unit {
  flex: 0 0 auto;
  padding: 0 8px 0 2px;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1;
}

.awp-ps-guide-settings-hint {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  font-size: 10px;
  line-height: 1.45;
  color: #64748b;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

/* Renk paleti — dişli/palet altında; sola+aşağı çok sütunlu */
.awp-ps-color-flyouts {
  position: absolute;
  top: 0;
  right: calc(100% + var(--awp-studio-dock-gap, 0px));
  z-index: 60;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 6px;
  max-width: min(420px, calc(100vw - 100px));
  pointer-events: none;
}

.awp-ps-color-palette-panel {
  display: none;
  pointer-events: auto;
  width: auto;
  min-width: 148px;
  max-width: min(220px, calc(100vw - 100px));
  max-height: min(78vh, 640px);
  padding: 8px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #1e293b;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.45);
  flex-direction: column;
  gap: 6px;
}

.awp-ps-color-palette-panel.is-open {
  display: flex;
}

.awp-ps-color-palette-panel--page {
  min-width: 108px;
}

.awp-ps-color-palette-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.awp-ps-color-palette-title {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
}

.awp-ps-color-palette-targets {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.awp-ps-color-target {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #475569;
  background: #0f172a;
  color: #94a3b8;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  padding: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.awp-ps-color-target .awp-studio-icon {
  margin: 0;
}

.awp-ps-color-target.is-active {
  border-color: #fb923c;
  background: #431407;
  color: #fdba74;
}

.awp-ps-color-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.awp-ps-color-swatches--cols {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: min(42vh, 320px);
  padding: 2px 2px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

.awp-ps-color-gradients {
  display: none;
  pointer-events: auto;
  flex-direction: column;
  gap: 6px;
  min-width: 108px;
  max-width: min(180px, calc(100vw - 100px));
  max-height: min(78vh, 640px);
  padding: 8px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #1e293b;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.45);
}

.awp-ps-color-gradients.is-open,
.awp-ps-color-flyouts.is-gradient-open .awp-ps-color-gradients {
  display: flex;
}

.awp-ps-color-gradients[hidden] {
  display: none !important;
}

.awp-ps-color-gradients-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #94a3b8;
  line-height: 1.2;
}

.awp-ps-color-gradient-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  max-height: min(28vh, 200px);
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: #64748b #0f172a;
}

.awp-ps-color-swatch--gradient {
  width: 100%;
  min-width: 28px;
  height: 22px;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
}

.awp-ps-color-swatch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
}

.awp-ps-color-swatch {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none;
  transform: none;
}

.awp-ps-color-swatch.is-selected {
  outline: 1px solid rgba(255, 255, 255, 0.92);
  outline-offset: 1px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.55);
}

.awp-ps-color-swatch.is-selected::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid var(--awp-swatch-fg, #fff);
  border-radius: 1px;
  pointer-events: none;
}

.awp-ps-color-swatch.is-light {
  border-color: #64748b;
}

.awp-ps-color-swatch.is-none {
  background: #fff !important;
  border-color: #94a3b8;
}

.awp-ps-color-swatch.is-none::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 1px),
    #ef4444 calc(50% - 1px),
    #ef4444 calc(50% + 1px),
    transparent calc(50% + 1px)
  );
  pointer-events: none;
}

.awp-ps-color-swatch.is-none.is-selected::before {
  border-color: #111827;
}

.awp-ps-color-swatch.awp-ps-color-swatch--gradient {
  width: 100%;
  min-width: 0;
  height: 28px;
}

.awp-ps-color-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  flex-shrink: 0;
}

.awp-ps-color-custom input[type="color"] {
  width: 36px;
  height: 26px;
  padding: 0;
  border: 1px solid #475569;
  border-radius: 5px;
  background: #0f172a;
  cursor: pointer;
}

.awp-product-studio-mode .awp-ps-guide-tools-wrap {
  position: relative;
}

.awp-product-studio-mode .awp-ps-color-flyouts {
  top: 0 !important;
  bottom: 0 !important;
  right: calc(100% + var(--awp-studio-dock-gap, 0px));
  width: var(--awp-studio-tools-rail-width);
  max-width: var(--awp-studio-tools-rail-width);
}

/* AI kart — compact form */
.awp-studio-ai-panel.awp-studio-content-section--active {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.awp-studio-ai-disabled {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}

.awp-studio-ai-label {
  display: block;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.awp-studio-ai-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #94a3b8;
}

.awp-ps-ai-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.awp-ps-ai-card[hidden] {
  display: none !important;
}

.awp-ps-ai-card-visual {
  position: relative;
  width: 100%;
  height: 56px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  flex: none;
  overflow: hidden;
}

.awp-ps-ai-thumb {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  box-shadow: none;
}

.awp-ps-ai-thumb--a {
  top: 10px;
  left: 12px;
  background-image: linear-gradient(135deg, #fdba74, #ea580c);
}

.awp-ps-ai-thumb--b {
  right: 12px;
  bottom: 10px;
  background-image: linear-gradient(135deg, #94a3b8, #0f172a);
}

.awp-ps-ai-prompt {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #0f172a;
  background: #fff;
  box-sizing: border-box;
  font-family: inherit;
  box-shadow: none;
}

.awp-ps-ai-prompt:focus {
  outline: none;
  border-color: #cbd5e1;
  box-shadow: none;
}

.awp-ps-ai-create {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  flex-shrink: 0;
  align-self: stretch;
  width: 100%;
  height: 36px;
  min-height: 36px;
  margin: 4px 0 0;
  padding: 0 12px;
  border: 1px solid #0f172a;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  overflow: visible;
}

.awp-ps-ai-create .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  color: inherit;
}

.awp-ps-ai-create:hover {
  background: #f8fafc;
  border-color: #0f172a;
  color: #0f172a;
}

.awp-ps-ai-create:disabled {
  opacity: 0.65;
  cursor: wait;
}

.awp-ps-ai-status {
  margin: 0;
  font-size: 11px;
  color: #64748b;
  min-height: 1.2em;
}

/* Tasarım stüdyosu tuvali: 5×5 mm ızgara (JS ile boyanır) */
/* Tasarım stüdyosu tuvali: 5×5 mm ızgara — ekranda sabit ince çizgi */
.awp-product-studio-mode .awp-studio-grid.awp-studio-grid--product {
  background-image:
    linear-gradient(
      to right,
      rgba(186, 194, 204, 0.2) calc(1px / var(--awp-canvas-scale, 1)),
      transparent calc(1px / var(--awp-canvas-scale, 1))
    ),
    linear-gradient(
      to bottom,
      rgba(186, 194, 204, 0.2) calc(1px / var(--awp-canvas-scale, 1)),
      transparent calc(1px / var(--awp-canvas-scale, 1))
    );
  background-size: var(--awp-grid-cell, 19px) var(--awp-grid-cell, 19px);
  background-position: 0 0;
}

.awp-product-studio-mode .awp-studio-canvas-inner.is-magnet-snap .awp-studio-grid {
  opacity: 1 !important;
}

.awp-product-studio-mode .awp-studio-grid-snap-marker {
  position: absolute;
  display: none;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 100;
  opacity: 0.95;
}

.awp-product-studio-mode .awp-studio-grid-snap-marker svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.awp-product-studio-mode .awp-studio-grid-snap-marker .awp-grid-snap-square {
  stroke: #ff00ff;
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.awp-product-studio-mode .awp-studio-grid-snap-marker .awp-grid-snap-cross-v,
.awp-product-studio-mode .awp-studio-grid-snap-marker .awp-grid-snap-cross-h {
  stroke: #ff00ff;
  fill: none;
  stroke-linecap: square;
}

.awp-product-studio-mode .awp-studio-canvas-inner.show-grid .awp-studio-grid,
.awp-product-studio-mode .awp-studio-canvas-inner .awp-studio-grid.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.awp-product-studio-mode .awp-studio-canvas-inner.show-safe .awp-studio-safe-area {
  opacity: 1;
}

.awp-ps-guide-tools-wrap,
.awp-ps-edit-tools {
  margin-right: 4px;
}

/* Metin araç çubuğu: her zaman aynı yeri kaplar — tuval zıplamasın */
.awp-product-studio-mode .awp-studio-contextual-bar {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  height: var(--awp-studio-chrome-row-height);
  min-height: var(--awp-studio-chrome-row-height);
  max-height: var(--awp-studio-chrome-row-height);
  box-sizing: border-box;
  margin: 0;
  padding: 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
  scrollbar-gutter: stable;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: none;
}

.awp-product-studio-mode .awp-studio-contextual-bar::-webkit-scrollbar {
  height: 3px;
}

.awp-product-studio-mode .awp-studio-contextual-bar::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.awp-product-studio-mode .awp-studio-contextual-bar::-webkit-scrollbar-track {
  background: transparent;
}

.awp-product-studio-mode .awp-studio-contextual-bar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.38);
  border-radius: 6px;
}

.awp-product-studio-mode .awp-studio-contextual-bar:hover::-webkit-scrollbar-thumb,
.awp-product-studio-mode .awp-studio-contextual-bar:focus-within::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.55);
}

.awp-product-studio-mode .awp-studio-contextual-bar[hidden],
.awp-product-studio-mode .awp-studio-contextual-bar.is-placeholder {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  /* Yer tutucu: görünmez ama aynı kutu ölçüsü */
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.awp-product-studio-mode .awp-studio-contextual-bar:not([hidden]):not(.is-placeholder) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
}

.awp-product-studio-mode .awp-studio-contextual-bar .awp-studio-ctx-case {
  text-transform: none !important;
}

.awp-product-studio-mode .awp-studio-contextual-bar .awp-studio-ctx-case-glyph--upper {
  text-transform: uppercase !important;
}

.awp-product-studio-mode .awp-studio-contextual-bar .awp-studio-ctx-case-glyph--lower {
  text-transform: lowercase !important;
}

.awp-product-studio-mode
  .awp-studio-contextual-bar
  .awp-studio-ctx-case-glyph--cap
  .awp-studio-ctx-case-cap-rest {
  text-transform: lowercase !important;
}

/* Panel / galeri öğeleri — belirgin hover (metin şablonu stili) */
.awp-product-studio-mode .awp-studio-text-template-card-wrap:hover .awp-studio-text-template-card,
.awp-product-studio-mode .awp-studio-text-template-card:hover,
.awp-product-studio-mode .awp-studio-text-template-card:focus-visible,
.awp-product-studio-mode .awp-studio-template-item:hover,
.awp-product-studio-mode .awp-studio-template-item:focus-within,
.awp-product-studio-mode .awp-studio-clipart-item:hover:not(.selected),
.awp-product-studio-mode .awp-studio-shape-item:hover:not(.selected),
.awp-product-studio-mode .awp-studio-icon-card:hover:not(.selected),
.awp-product-studio-mode .awp-studio-icon-card:focus-visible:not(.selected),
.awp-product-studio-mode .awp-studio-media-card:hover,
.awp-product-studio-mode .awp-studio-media-card:focus-visible,
.awp-product-studio-mode .awp-studio-lib-card:hover,
.awp-product-studio-mode .awp-studio-my-design-item:hover,
.awp-product-studio-mode .awp-studio-add-card:hover,
.awp-product-studio-mode .awp-studio-mini-card:hover,
.awp-product-studio-mode .awp-studio-template-card:hover,
.awp-product-studio-mode .awp-studio-effect-chip:hover:not(.is-active),
.awp-product-studio-mode .awp-studio-align-chip:hover:not(.is-active),
.awp-product-studio-mode .awp-studio-fill-mode-tab:hover:not(.is-active),
.awp-product-studio-mode .awp-studio-bg-upload-btn:hover,
.awp-product-studio-mode .awp-studio-layer-row:hover,
.awp-product-studio-mode .awp-studio-layer-item:hover,
.awp-product-studio-mode .awp-studio-slide-item:hover,
.awp-product-studio-mode .awp-studio-preflight-item:hover,
.awp-product-studio-mode .awp-ps-ai-card:hover .awp-ps-ai-card-visual,
.awp-product-studio-mode .awp-ps-ai-card:focus-within .awp-ps-ai-card-visual,
.awp-product-studio-mode .awp-ps-codes-dl:hover {
  border-color: #6366f1 !important;
  background: #eef2ff !important;
  box-shadow:
    0 8px 22px rgba(79, 70, 229, 0.22),
    0 0 0 2px rgba(99, 102, 241, 0.34) !important;
  transform: translateY(-2px);
  z-index: 2;
}

/* Renk kutucukları — indigo hover (swatch rengi korunur) */
.awp-product-studio-mode .awp-studio-bg-swatch:hover:not(.is-active),
.awp-product-studio-mode .awp-studio-bg-swatch:focus-visible:not(.is-active),
.awp-product-studio-mode .awp-ps-color-swatch:hover:not(.is-selected),
.awp-product-studio-mode .awp-ps-color-swatch:focus-visible:not(.is-selected),
.awp-product-studio-mode .awp-ps-color-swatch--gradient:hover:not(.is-selected),
.awp-product-studio-mode .awp-ps-color-swatch--gradient:focus-visible:not(.is-selected) {
  border-color: #6366f1 !important;
  box-shadow:
    0 8px 22px rgba(79, 70, 229, 0.22),
    0 0 0 2px rgba(99, 102, 241, 0.34) !important;
  transform: translateY(-2px);
  z-index: 3;
}

/*
 * Sabit meta şerit (toolbar ↔ cetvel): contextual + uyarı aynı 48px yuvayı paylaşır.
 * Seçim aç/kapa viewport yüksekliğini değiştirmez → tuval ölçeği zıplamaz.
 */
.awp-product-studio-mode .awp-studio-meta-strip {
  display: block;
  position: relative;
  flex: 0 0 var(--awp-studio-chrome-row-height);
  height: var(--awp-studio-chrome-row-height);
  min-height: var(--awp-studio-chrome-row-height);
  max-height: var(--awp-studio-chrome-row-height);
  margin: 0;
  box-sizing: border-box;
  overflow: visible;
}

.awp-product-studio-mode .awp-studio-meta-strip .awp-studio-contextual-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--awp-panel-overlap-left, 0px);
  right: var(--awp-panel-overlap-right, 0px);
  width: auto;
  margin: 0 !important;
  z-index: 1;
  transition: none;
}

.awp-product-studio-mode .awp-studio-meta-strip .awp-studio-safe-toast {
  /* Ürün: üstten kayan modal (meta şeritte yer kaplamaz) */
  display: none;
}

.awp-product-studio-mode .awp-studio-meta-strip .awp-studio-safe-toast:not([hidden]),
.awp-product-studio-mode .awp-studio-meta-strip .awp-studio-safe-toast[hidden] {
  display: none !important;
}

/* Kesim alanı uyarısı — üst chrome’un altında (sarı çizgi alanı) */
.awp-product-studio-mode .awp-studio-safe-toast.awp-studio-safe-toast--modal,
body.awp-ps-fullscreen-body .awp-studio-safe-toast.awp-studio-safe-toast--modal {
  position: fixed !important;
  top: var(--awp-ps-chrome-bottom, 72px) !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  inset: auto !important;
  z-index: 100090 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: min(560px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px !important;
  background: #fff7ed !important;
  color: #9a3412 !important;
  border: 1px solid #fdba74 !important;
  border-top: none !important;
  box-shadow: 0 10px 24px rgba(154, 52, 18, 0.16);
  pointer-events: none !important;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  font-size: 12.5px;
  font-weight: 600;
  transform: translate(-50%, -12px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.awp-product-studio-mode .awp-studio-safe-toast.awp-studio-safe-toast--modal.is-open,
body.awp-ps-fullscreen-body .awp-studio-safe-toast.awp-studio-safe-toast--modal.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
}

.awp-product-studio-mode .awp-studio-safe-toast.awp-studio-safe-toast--modal[hidden] {
  display: none !important;
}

/* Ürün: uyarı üst chrome içinde — logo ile başlık arası (ek2) */
.awp-product-studio-mode .awp-studio-safe-toast.awp-studio-safe-toast--chrome,
body.awp-ps-fullscreen-body .awp-studio-safe-toast.awp-studio-safe-toast--chrome {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  background: rgba(251, 191, 36, 0.14) !important;
  color: #fde68a !important;
  border: 1px solid rgba(251, 191, 36, 0.45) !important;
  box-shadow: none !important;
  font-size: 11.5px !important;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 32px;
  transform: none !important;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.awp-product-studio-mode .awp-studio-safe-toast.awp-studio-safe-toast--chrome.is-open,
body.awp-ps-fullscreen-body .awp-studio-safe-toast.awp-studio-safe-toast--chrome.is-open {
  transform: none !important;
  opacity: 1;
}

.awp-product-studio-mode .awp-studio-safe-toast.awp-studio-safe-toast--chrome:not([hidden]),
body.awp-ps-fullscreen-body .awp-studio-safe-toast.awp-studio-safe-toast--chrome:not([hidden]) {
  display: flex !important;
}

.awp-product-studio-mode .awp-studio-safe-toast.awp-studio-safe-toast--chrome[hidden] {
  display: none !important;
}

.awp-studio-safe-toast-msg {
  flex: 1 1 auto;
  min-width: 0;
}

/* Toolbar altı sıra — dikey raya geçildi; order ile üstte tutma */
.awp-product-studio-mode .awp-studio-canvas-chrome {
  order: unset;
}
.awp-product-studio-mode .awp-studio-toolbar {
  order: unset;
}
.awp-product-studio-mode .awp-studio-meta-strip {
  order: unset;
}
.awp-product-studio-mode .awp-studio-canvas-viewport {
  order: unset;
  /* Boş scrollbar oluğu gösterme — tuval sığınca gri şerit kalıyordu */
  scrollbar-gutter: auto;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.awp-product-studio-mode .awp-studio-device-nav {
  order: unset;
}
.awp-product-studio-mode .awp-studio-page-fab {
  order: unset;
  display: none;
}

/* Biçim boyacısı aktifken imleç */
.awp-product-studio-mode.awp-studio-format-painter-armed .awp-studio-canvas-viewport,
.awp-product-studio-mode.awp-studio-format-painter-armed .awp-studio-canvas-inner {
  cursor: copy !important;
}

.awp-product-studio-mode.awp-studio-eyedropper-armed .awp-studio-canvas-viewport,
.awp-product-studio-mode.awp-studio-eyedropper-armed .awp-studio-canvas-inner {
  cursor: crosshair !important;
}

.awp-product-studio-mode.awp-studio-eyedropper-armed .awp-studio-selection-float-toolbar,
.awp-product-studio-mode.awp-studio-eyedropper-armed .awp-studio-selection-rotate,
.awp-product-studio-mode.awp-studio-eyedropper-armed .awp-studio-selection-chrome-cluster,
.awp-product-studio-mode.awp-studio-eyedropper-armed .awp-resize-handle {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Başlık / alt başlık / gövde / alıntı / sütun kartları */
/* ── Metin ekleme alanı: iki gruplu hizalama ─────────────────────────────── */

.awp-product-studio-mode .awp-studio-add-stack--product-tiles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Grup kapsayıcı */
.awp-product-studio-mode .awp-studio-add-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Grup etiketi */
.awp-product-studio-mode .awp-studio-add-group-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

/* Grup etiketinin yanındaki ince çizgi */
.awp-product-studio-mode .awp-studio-add-group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #f1f5f9;
  display: block;
  min-width: 12px;
}

/* 3 sütunlu ızgara */
.awp-product-studio-mode .awp-studio-add-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

/* Kart tabanı */
.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e8edf4;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  text-align: center;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

/* Üstteki turuncu çizgiyi kaldır */
.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card::before {
  display: none;
}

.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card:hover {
  border-color: #6366f1 !important;
  background: #eef2ff !important;
  box-shadow:
    0 8px 22px rgba(79, 70, 229, 0.22),
    0 0 0 2px rgba(99, 102, 241, 0.34) !important;
  transform: translateY(-2px);
}

/* Gizlenen span'lar */
.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card-head,
.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card-sub {
  display: none;
}

/* Kart başlığı */
.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card-title {
  display: block;
  padding: 5px 4px 7px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sample alanı — ortak */
.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card-sample {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 46px;
  max-height: 46px;
  padding: 6px 8px;
  color: #4f46e5;
  background: #f5f3ff;
  overflow: hidden;
  border-bottom: 1px solid #ede9fe;
}

/* Başlık örneği */
.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card-sample--heading {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #3730a3;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}

/* Alt başlık örneği */
.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card-sample--sub {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #4f46e5;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
}

/* Gövde metni örneği — 5 satırlı paragraf görünümü */
.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card-sample--body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 8px 10px;
  background: #f8f8ff;
}

.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card-sample--body i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #818cf8, #c4b5fd);
  width: 100%;
}

.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card-sample--body i:nth-child(2) {
  opacity: 0.85;
}

.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card-sample--body i:nth-child(3) {
  opacity: 0.85;
}

.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card-sample--body i:nth-child(4) {
  opacity: 0.7;
}

/* Son satır kısa — paragraf bitiş etkisi */
.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card-sample--body i:nth-child(5) {
  width: 55%;
  opacity: 0.45;
}

/* Kavisli yazı örneği */
.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card-sample--arc {
  color: #6366f1;
  background: linear-gradient(135deg, #f0f4ff 0%, #ede9fe 100%);
}

.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card-sample--arc svg {
  display: block;
  width: 100%;
  height: 26px;
}

/* Çift sütun örneği */
.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card-sample--columns2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 9px 8px;
  align-items: stretch;
  height: 46px;
  max-height: 46px;
  background: #f5f3ff;
}

.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card-sample--columns2 b {
  display: block;
  height: 100%;
  border-radius: 2px;
  background:
    repeating-linear-gradient(
      to bottom,
      #a5b4fc 0,
      #a5b4fc 2px,
      transparent 2px,
      transparent 5px
    );
}

/* Dört kutu akış örneği */
.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card-sample--thread4 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  height: 46px;
  max-height: 46px;
  padding: 9px 7px;
  box-sizing: border-box;
  overflow: hidden;
  background: #f5f3ff;
}

.awp-product-studio-mode .awp-studio-add-stack--product-tiles .awp-studio-add-card-sample--thread4 i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: #fff;
  border: 1px solid #c4b5fd;
  box-shadow: inset 0 8px 0 0 #ede9fe;
}

/* Admin yüklenen AI kart görseli */
.awp-ps-ai-card-visual.has-custom-image {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.awp-ps-ai-card-visual.has-custom-image .awp-ps-ai-thumb {
  display: none;
}

/* Slider (ürün dışı) için yeni span'lar gizlensin */
.awp-studio-add-card-head,
.awp-studio-add-card-sample {
  display: none;
}

/* ek5: sol ray — header ile sıfır boşluk; 4 kenar eşit boşluk + 6px radius */
.awp-product-studio-mode .awp-studio-left-toolbar {
  background: linear-gradient(180deg, #0f20a2 0%, #007bff 100%) !important;
  border-right: none !important;
  border-top: none !important;
  margin: 0 !important;
  padding: 8px !important;
  gap: 8px !important;
  border-radius: 0 !important;
  align-self: stretch;
  box-sizing: border-box;
  position: relative;
  z-index: 90;
}

.awp-product-studio-mode .awp-studio-left-toolbar > .awp-studio-toolbar-icon {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 58px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 6px 4px 4px !important;
  border-radius: 6px !important;
  box-sizing: border-box;
  flex: 0 0 auto;
  justify-content: flex-start !important;
}

.awp-product-studio-mode .awp-studio-left-toolbar > .awp-studio-toolbar-icon[data-panel="preflight"] {
  margin-top: auto !important;
  overflow: visible !important;
}

.awp-product-studio-mode .awp-studio-right-panel-wrap {
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  gap: 0 !important;
  align-items: stretch;
  align-self: stretch;
  max-height: none;
  box-sizing: border-box;
  width: auto !important;
}

.awp-product-studio-mode .awp-studio-right-panel {
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  border-right: 1px solid #e5e7eb !important;
  box-shadow: none !important;
  height: 100% !important;
}

/* Sağ kapat: panel kenarında pill (slider-design-studio.css) */
.awp-product-studio-mode .awp-studio-panel-collapse-btn {
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  border-radius: 999px !important;
}

.awp-product-studio-mode .awp-studio-toolbar {
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  margin: 0 !important;
}

.awp-product-studio-mode .awp-studio-device-nav {
  border-radius: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-left: var(--awp-panel-overlap-left, 0px) !important;
  margin-right: var(--awp-panel-overlap-right, 0px) !important;
  width: auto !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  transition: margin-left 0.2s ease, margin-right 0.2s ease;
}

body.awp-ps-fullscreen-body .awp-studio-root.awp-product-studio-mode {
  gap: 0 !important;
  background: #e8ecf1 !important;
}

.awp-product-studio-mode .awp-studio-template-thumb.is-page-spread {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: var(--tpl-ratio, 2 / 1) !important;
}

/* Studio geneli: 6px radius (butonlar ayrı sistemde) */
.awp-product-studio-mode .awp-studio-toolbar-icon,
.awp-product-studio-mode .awp-studio-toolbar-group,
.awp-product-studio-mode .awp-studio-add-card,
.awp-product-studio-mode .awp-studio-mini-card,
.awp-product-studio-mode .awp-studio-contextual-bar,
.awp-product-studio-mode .awp-studio-meta-strip .awp-studio-safe-toast,
.awp-product-studio-mode .awp-studio-selection-float-toolbar,
.awp-product-studio-mode .awp-ps-fs-ghost,
.awp-product-studio-mode .awp-studio-clipart-search,
.awp-product-studio-mode .awp-studio-clipart-select,
.awp-product-studio-mode .awp-studio-template-item,
.awp-product-studio-mode .awp-studio-template-thumb,
.awp-product-studio-mode .awp-studio-lib-card,
.awp-product-studio-mode .awp-studio-my-design-item,
.awp-product-studio-mode .awp-studio-pending-row,
.awp-product-studio-mode .awp-studio-tpl-action,
.awp-product-studio-mode .awp-studio-tpl-tabs,
.awp-product-studio-mode .awp-studio-tpl-icon-btn,
.awp-product-studio-mode .awp-studio-text-template-card,
.awp-product-studio-mode .awp-studio-text-template-tabs,
.awp-product-studio-mode .awp-studio-text-template-filter-chips,
.awp-product-studio-mode .awp-studio-clipart-item,
.awp-product-studio-mode .awp-studio-clipart-quick-filters,
.awp-product-studio-mode .awp-studio-shape-item,
.awp-product-studio-mode .awp-studio-icon-card,
.awp-product-studio-mode .awp-studio-shapes-tabs,
.awp-product-studio-mode .awp-studio-media-card,
.awp-product-studio-mode .awp-studio-media-toolbar,
.awp-product-studio-mode .awp-ps-ai-prompt,
.awp-product-studio-mode .awp-ps-ai-create,
.awp-product-studio-mode .awp-ps-ai-card-visual,
.awp-product-studio-mode .awp-ps-codes-tabs,
.awp-product-studio-mode .awp-ps-codes-btn,
.awp-product-studio-mode .awp-ps-codes-dl,
.awp-product-studio-mode .awp-ps-codes-preview-box,
.awp-product-studio-mode .awp-studio-prop-group-header,
.awp-product-studio-mode .awp-studio-prop-btn,
.awp-product-studio-mode .awp-studio-effect-chip,
.awp-product-studio-mode .awp-studio-align-chip,
.awp-product-studio-mode .awp-studio-format-toggle,
.awp-product-studio-mode .awp-studio-prop-select-trigger,
.awp-product-studio-mode .awp-studio-layer-row,
.awp-product-studio-mode .awp-studio-slide-item,
.awp-product-studio-mode .awp-studio-layer-thumb,
.awp-product-studio-mode .awp-studio-lib-upload-btn,
.awp-product-studio-mode .awp-studio-preflight-status,
.awp-product-studio-mode .awp-studio-preflight-item,
.awp-product-studio-mode input,
.awp-product-studio-mode select,
.awp-product-studio-mode textarea {
  border-radius: 6px !important;
}

/* Üst chrome: tüm yuvarlatılmış kontroller 3px */
.awp-ps-fs-chrome .awp-ps-fs-ghost,
.awp-ps-fs-chrome .awp-ps-lang-trigger,
.awp-ps-fs-chrome .awp-ps-chrome-more,
.awp-ps-fs-chrome .awp-ps-chrome-tool-btn,
.awp-ps-fs-chrome .awp-ps-size-field input,
.awp-ps-fs-chrome .awp-ps-size-field select,
.awp-ps-fs-chrome .awp-ps-size-apply,
.awp-ps-fs-chrome .awp-ps-fs-chrome-cluster,
.awp-ps-fs-chrome .awp-studio-help-btn,
.awp-product-studio-mode .awp-ps-fs-chrome input,
.awp-product-studio-mode .awp-ps-fs-chrome select,
.awp-product-studio-mode .awp-ps-fs-chrome .awp-ps-fs-ghost,
body.awp-ps-fullscreen-body .awp-ps-lang-menu,
body.awp-ps-fullscreen-body .awp-ps-lang-option,
body.awp-ps-fullscreen-body .awp-studio-help-menu,
body.awp-ps-fullscreen-body .awp-studio-help-menu__item {
  border-radius: 10px !important;
  font-family: "Inter", sans-serif !important;
}

body.awp-ps-fullscreen-body .awp-studio-help-modal__close,
body.awp-ps-fullscreen-body .awp-studio-help-modal .awp-studio-help-modal__close,
body.awp-ps-fullscreen-body .awp-studio-help-modal__close:hover,
body.awp-ps-fullscreen-body .awp-studio-help-modal__close:focus,
body.awp-ps-fullscreen-body .awp-studio-help-modal__close:focus-visible {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #fff1f2 !important;
  background-image: none !important;
  color: #9f1239 !important;
  -webkit-text-fill-color: #9f1239 !important;
  border: 1px solid #fbcfe8 !important;
  box-shadow: none !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-family: "Inter", sans-serif !important;
}

body.awp-ps-fullscreen-body .awp-studio-help-modal__close .awp-studio-help-modal__close-x,
body.awp-ps-fullscreen-body .awp-studio-help-modal__close:hover .awp-studio-help-modal__close-x {
  color: #9f1239 !important;
  -webkit-text-fill-color: #9f1239 !important;
  font-size: 22px !important;
  font-family: "Inter", sans-serif !important;
}

body.awp-ps-fullscreen-body .awp-studio-help-tips-list button,
body.awp-ps-fullscreen-body .awp-studio-help-tips-list button:hover,
body.awp-ps-fullscreen-body .awp-studio-help-tips-list button:focus,
body.awp-ps-fullscreen-body .awp-studio-help-tips-list button:focus-visible {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  background-image: none !important;
  font-family: "Inter", sans-serif !important;
}

body.awp-ps-fullscreen-body .awp-studio-help-tips-list button:hover,
body.awp-ps-fullscreen-body .awp-studio-help-tips-list button:focus-visible {
  background: #e0eaff !important;
  border-color: #a8bfff !important;
  color: #312e81 !important;
  -webkit-text-fill-color: #312e81 !important;
}

body.awp-ps-fullscreen-body .awp-studio-help-tips-list button strong,
body.awp-ps-fullscreen-body .awp-studio-help-tips-list button:hover strong {
  color: #3730a3 !important;
  -webkit-text-fill-color: #3730a3 !important;
  font-family: "Inter", sans-serif !important;
}

body.awp-ps-fullscreen-body .awp-studio-help-tips-list button span,
body.awp-ps-fullscreen-body .awp-studio-help-tips-list button:hover span {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
  font-family: "Inter", sans-serif !important;
}

body.awp-ps-fullscreen-body .awp-studio-help-modal,
body.awp-ps-fullscreen-body .awp-studio-help-modal *,
body.awp-ps-fullscreen-body .awp-studio-help-menu,
body.awp-ps-fullscreen-body .awp-studio-help-menu * {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
}

.awp-product-studio-mode .awp-studio-tpl-action,
.awp-product-studio-mode .awp-studio-tpl-icon-btn {
  min-height: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.awp-product-studio-mode .awp-studio-tpl-action {
  height: 32px !important;
  padding: 0 8px !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

.awp-product-studio-mode .awp-studio-tpl-action--primary {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #fff !important;
}

.awp-product-studio-mode #awp-studio-shapes-pane-maps #awp-studio-maps-go.awp-studio-tpl-action,
.awp-product-studio-mode #awp-studio-shapes-pane-icons #awp-studio-icons-go.awp-studio-tpl-action {
  width: auto !important;
  max-width: 72px !important;
  flex: 0 0 auto !important;
}

.awp-product-studio-mode .awp-studio-maps-result:hover {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #f8fafc !important;
}

.awp-product-studio-mode .awp-studio-maps-result.is-active {
  background: #1e3a8a !important;
  border-color: #2563eb !important;
  color: #eff6ff !important;
}

.awp-product-studio-mode .awp-studio-media-action {
  height: auto !important;
  min-height: 44px !important;
  padding: 6px 8px !important;
  text-transform: none !important;
}

.awp-product-studio-mode .awp-studio-color-popover .awp-studio-fill-mode-tab,
.awp-product-studio-mode .awp-studio-color-popover .awp-studio-color-panel__space {
  height: auto !important;
  min-height: 26px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
}

.awp-product-studio-mode .awp-studio-color-popover .awp-studio-color-panel__space {
  white-space: nowrap !important;
}

.awp-product-studio-mode .awp-studio-color-popover .awp-studio-color-panel__tools {
  gap: 6px !important;
  flex-wrap: wrap !important;
  max-width: 100% !important;
}

.awp-product-studio-mode .awp-studio-color-popover .awp-studio-color-panel__eyedropper,
.awp-product-studio-mode .awp-studio-color-popover .awp-studio-color-panel__apply-chip,
.awp-product-studio-mode .awp-studio-color-popover .awp-studio-color-panel__quick-swatch {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.awp-product-studio-mode .awp-studio-color-popover .awp-studio-color-panel__eyedropper,
.awp-product-studio-mode .awp-studio-color-popover .awp-studio-color-panel__apply-chip {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
}

.awp-product-studio-mode .awp-studio-color-popover .awp-studio-color-panel__quick-swatch {
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
}

.awp-product-studio-mode .awp-studio-prop-btn {
  min-height: 0 !important;
  height: 32px !important;
  padding: 0 8px !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.awp-product-studio-mode .awp-studio-prop-btn:hover:not(.awp-studio-prop-btn--primary) {
  border-color: #6366f1 !important;
  background: #eef2ff !important;
  color: #0f172a !important;
  box-shadow:
    0 8px 22px rgba(79, 70, 229, 0.22),
    0 0 0 2px rgba(99, 102, 241, 0.34) !important;
  transform: translateY(-2px);
}

.awp-product-studio-mode .awp-studio-color-clear {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  height: 32px !important;
  min-height: 32px !important;
  min-width: 0 !important;
}

.awp-product-studio-mode .awp-studio-prop-btn--primary {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #fff !important;
}

.awp-product-studio-mode .awp-studio-prop-btn--primary:hover {
  background: #1e293b !important;
  border-color: #1e293b !important;
  color: #fff !important;
}

.awp-product-studio-mode .awp-studio-image-prop-actions .awp-studio-prop-btn,
.awp-product-studio-mode .awp-studio-text-frame-controls .awp-studio-prop-btn {
  height: auto !important;
  min-height: 32px !important;
  white-space: normal !important;
  padding: 6px 8px !important;
}

.awp-product-studio-mode .awp-studio-preflight-actions .awp-studio-prop-btn {
  height: 28px !important;
  min-height: 28px !important;
  white-space: nowrap !important;
  padding: 0 8px !important;
}

.awp-product-studio-mode .awp-studio-lib-card-actions .awp-studio-prop-btn {
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 28px !important;
  padding: 6px 8px !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: normal !important;
  overflow: visible !important;
  text-align: center !important;
  border-radius: 3px !important;
}

.awp-product-studio-mode .awp-studio-lib-card,
.awp-product-studio-mode .awp-studio-my-design-item {
  border-radius: 3px !important;
  overflow: hidden;
}

.awp-product-studio-mode .awp-studio-lib-card:hover,
.awp-product-studio-mode .awp-studio-my-design-item:hover {
  transform: none !important;
}

.awp-product-studio-mode .awp-studio-lib-thumb {
  padding: 6px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 3px 3px 0 0;
}

.awp-product-studio-mode .awp-studio-lib-thumb img,
.awp-product-studio-mode .awp-studio-lib-thumb-canvas {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.awp-product-studio-mode .awp-studio-lib-card-actions .awp-studio-prop-btn--primary {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.awp-product-studio-mode .awp-studio-lib-card-actions .awp-studio-prop-btn--primary:hover {
  background: #3730a3 !important;
  border-color: #3730a3 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.45) !important;
}

.awp-product-studio-mode .awp-studio-lib-card-actions .awp-studio-prop-btn:not(.awp-studio-prop-btn--primary):hover {
  background: #fff1f2 !important;
  border-color: #e11d48 !important;
  color: #be123c !important;
  -webkit-text-fill-color: #be123c !important;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.28) !important;
}

.awp-product-studio-mode .awp-studio-lib-card-actions .awp-studio-prop-btn[data-tip]::after {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.awp-product-studio-mode .awp-studio-lib-upload-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  background: #0f172a !important;
  border: 1px solid #0f172a !important;
  color: #fff !important;
  box-shadow: none !important;
  line-height: 1 !important;
}

.awp-product-studio-mode .awp-studio-lib-upload-btn:hover {
  background: #1e293b !important;
  border-color: #1e293b !important;
  color: #fff !important;
}

.awp-product-studio-mode .awp-studio-layers-toolbar #awp-studio-add-slide {
  height: 28px !important;
  min-height: 28px !important;
  width: auto !important;
  flex: 0 0 auto !important;
  padding: 0 10px !important;
}

.awp-product-studio-mode .awp-studio-layer-btn {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.awp-product-studio-mode .awp-studio-layer-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.awp-product-studio-mode .awp-ps-ai-create {
  flex: none !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  background: #fff !important;
  border: 1px solid #0f172a !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

.awp-product-studio-mode .awp-ps-ai-create:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.awp-product-studio-mode .awp-ps-codes-btn {
  flex: none !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  background: #fff !important;
  border: 1px solid #0f172a !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

.awp-product-studio-mode .awp-ps-codes-btn:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.awp-product-studio-mode .awp-ps-codes-btn--primary {
  background: #0f172a !important;
  color: #fff !important;
}

.awp-product-studio-mode .awp-ps-codes-btn--primary:hover {
  background: #1e293b !important;
  color: #fff !important;
}

.awp-product-studio-mode .awp-studio-tpl-tab,
.awp-product-studio-mode .awp-studio-text-template-tab,
.awp-product-studio-mode .awp-studio-text-template-filter-chip,
.awp-product-studio-mode .awp-studio-clipart-chip,
.awp-product-studio-mode .awp-studio-shapes-tab,
.awp-product-studio-mode .awp-studio-bg-tab,
.awp-product-studio-mode .awp-ps-codes-tab {
  border-radius: 4px !important;
  box-shadow: none !important;
}

.awp-product-studio-mode .awp-studio-tpl-tab.is-active,
.awp-product-studio-mode .awp-studio-text-template-tab.is-active,
.awp-product-studio-mode .awp-studio-text-template-filter-chip.is-active,
.awp-product-studio-mode .awp-studio-clipart-chip.is-active,
.awp-product-studio-mode .awp-studio-shapes-tab.is-active,
.awp-product-studio-mode .awp-studio-bg-tab.is-active,
.awp-product-studio-mode .awp-ps-codes-tab.is-active {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
}

/* Sağ panel: üst/alt radius yok (görsel 2) */
.awp-product-studio-mode .awp-studio-right-panel-wrap,
.awp-product-studio-mode .awp-studio-right-panel,
.awp-product-studio-mode .awp-studio-right-panel-header,
.awp-product-studio-mode .awp-studio-right-panel-content {
  border-radius: 0 !important;
}

.awp-product-studio-mode .awp-studio-right-panel-header {
  background: #dc2626;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--awp-studio-chrome-row-height);
  min-height: var(--awp-studio-chrome-row-height);
  max-height: var(--awp-studio-chrome-row-height);
  padding: 0 12px;
  box-sizing: border-box;
  border-bottom: none !important;
  box-shadow: none !important;
}

.awp-product-studio-mode .awp-studio-right-panel-content {
  border-top: none;
  overflow-x: visible;
  min-width: 0;
  padding-top: 10px;
}

.awp-product-studio-mode .awp-studio-prop-field-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  width: 100%;
  max-width: 100%;
}

.awp-product-studio-mode .awp-studio-prop-field-row--type {
  grid-template-columns: minmax(72px, 0.85fr) minmax(0, 1.2fr) !important;
}

.awp-product-studio-mode .awp-studio-prop-field-row--color-format,
.awp-product-studio-mode .awp-studio-prop-field-row--pair-cards {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: stretch;
}

.awp-product-studio-mode .awp-studio-prop-field-row--shadow {
  grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: start;
}

.awp-product-studio-mode .awp-studio-prop-field-row--stroke {
  display: flex !important;
  grid-template-columns: none !important;
}

.awp-product-studio-mode .awp-studio-properties-content .awp-studio-format-toggle,
.awp-product-studio-mode .awp-studio-prop-field-row--color-format .awp-studio-format-toggle {
  flex: 1 1 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  white-space: nowrap !important;
  background: #fff !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
}

.awp-product-studio-mode .awp-studio-prop-field-row--color-format .awp-studio-format-toggle-row {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
}

.awp-product-studio-mode .awp-studio-prop-field-row--color-format .awp-studio-prop-color-swatch {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 36px !important;
  min-height: 36px !important;
}

.awp-product-studio-mode .awp-studio-prop-field-row--color-format > .awp-studio-color-field--swatch,
.awp-product-studio-mode .awp-studio-prop-field-row--color-format > .awp-studio-format-toggles,
.awp-product-studio-mode .awp-studio-prop-field-row--pair-cards > .awp-studio-color-field--swatch,
.awp-product-studio-mode .awp-studio-prop-field-row--pair-cards > .awp-studio-format-toggles,
.awp-product-studio-mode .awp-studio-prop-field-row--pair-cards > .awp-studio-prop-icon-toggles {
  grid-template-rows: auto minmax(36px, 36px) !important;
  padding: 10px !important;
  gap: 8px !important;
}

.awp-product-studio-mode
  .awp-studio-prop-field-row--color-format
  > .awp-studio-color-field--swatch
  .awp-studio-color-row {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 36px !important;
  height: 36px !important;
  max-height: 36px !important;
}

.awp-product-studio-mode
  .awp-studio-prop-field-row--color-format
  > .awp-studio-color-field--swatch:not(.awp-studio-color-field--inline),
.awp-product-studio-mode
  .awp-studio-prop-field-row--pair-cards
  > .awp-studio-color-field--swatch:not(.awp-studio-color-field--inline) {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 10px !important;
  box-sizing: border-box !important;
}

.awp-product-studio-mode
  .awp-studio-prop-field-row--pair-cards
  > .awp-studio-color-field--swatch
  .awp-studio-color-row {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 36px !important;
  height: 36px !important;
  max-height: 36px !important;
}

.awp-product-studio-mode .awp-studio-prop-field-row--pair-cards .awp-studio-prop-color-swatch,
.awp-product-studio-mode .awp-studio-prop-field-row--color-format .awp-studio-prop-color-swatch {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 36px !important;
  min-height: 36px !important;
}

.awp-product-studio-mode .awp-studio-prop-btn--curves {
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 8px !important;
  text-transform: none !important;
  transform: none !important;
}

.awp-product-studio-mode .awp-studio-properties-content .awp-studio-prop-btn--curves:hover:not(:disabled),
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-prop-btn--curves:focus-visible:not(:disabled) {
  border-color: #6366f1 !important;
  background: #eef2ff !important;
  color: #0f172a !important;
  box-shadow: inset 0 0 0 1px #6366f1 !important;
  transform: none !important;
}

.awp-product-studio-mode .awp-studio-properties-content .awp-studio-format-toggle.is-active,
.awp-product-studio-mode .awp-studio-prop-field-row--color-format .awp-studio-format-toggle.is-active {
  background: #0f172a !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: #0f172a !important;
}

.awp-product-studio-mode .awp-studio-properties-content .awp-studio-prop-select-trigger,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-font-picker-trigger,
.awp-product-studio-mode .awp-studio-properties-content select,
.awp-product-studio-mode .awp-studio-prop-select-option,
.awp-product-studio-mode .awp-studio-font-picker-option,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-stroke-style-btn:not(.awp-studio-stroke-join-btn),
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-align-chip,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-effect-chip,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-fill-mode-tab,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-prop-btn:not(.awp-studio-prop-btn--primary),
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-color-clear {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

.awp-product-studio-mode .awp-studio-properties-content .awp-studio-stroke-style-btn:not(.is-active):not(.awp-studio-stroke-join-btn),
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-align-chip:not(.is-active),
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-effect-chip:not(.is-active),
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-fill-mode-tab:not(.is-active),
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-prop-btn:not(.awp-studio-prop-btn--primary),
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-color-clear,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-prop-select-trigger,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-font-picker-trigger,
.awp-product-studio-mode .awp-studio-properties-content select {
  background-color: #fff !important;
}

.awp-product-studio-mode .awp-studio-properties-content .awp-studio-format-toggle:hover:not(.is-active),
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-stroke-style-btn:not(.is-active):not(.awp-studio-stroke-join-btn):hover,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-stroke-join-btn:not(.is-active):hover,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-align-chip:not(.is-active):hover,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-effect-chip:not(.is-active):hover,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-fill-mode-tab:not(.is-active):hover,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-prop-btn:not(.awp-studio-prop-btn--primary):hover,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-color-clear:hover,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-prop-select-trigger:hover,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-font-picker-trigger:hover,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-prop-select.is-open .awp-studio-prop-select-trigger,
.awp-product-studio-mode .awp-studio-properties-content select:hover {
  background-color: #eef2ff !important;
  border-color: #6366f1 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  box-shadow: inset 0 0 0 1px #6366f1 !important;
  transform: none !important;
}

.awp-product-studio-mode .awp-studio-properties-content .awp-studio-prop-color-swatch:hover:not([aria-expanded="true"]) {
  border-color: #6366f1 !important;
  box-shadow:
    inset 0 0 0 2px #6366f1,
    0 0 0 1px rgba(99, 102, 241, 0.35) !important;
  transform: none !important;
}

.awp-product-studio-mode .awp-studio-properties-content .awp-studio-stroke-style-btn.is-active:not(.awp-studio-stroke-join-btn),
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-align-chip.is-active,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-effect-chip.is-active,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-prop-btn--primary {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background-color: #0f172a !important;
}

.awp-product-studio-mode .awp-studio-properties-content .awp-studio-stroke-join-btn:not(.is-active) {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  background-color: #1a2130 !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
}

.awp-product-studio-mode .awp-studio-properties-content .awp-studio-stroke-join-btn:not(.is-active):hover {
  background-color: #252d40 !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.awp-product-studio-mode .awp-studio-properties-content .awp-studio-stroke-join-btn.is-active,
.awp-product-studio-mode .awp-studio-properties-content .awp-studio-stroke-join-btn.is-active:hover {
  color: #121620 !important;
  -webkit-text-fill-color: #121620 !important;
  background-color: #fff !important;
  border-color: #fff !important;
}

.awp-product-studio-mode .awp-studio-properties-content .awp-studio-fill-mode-tab.is-active {
  color: #3730a3 !important;
  -webkit-text-fill-color: #3730a3 !important;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff) !important;
}

.awp-product-studio-mode .awp-studio-range-input,
.awp-product-studio-mode .awp-studio-properties-content input[type="range"]:not(.awp-studio-color-panel__hue),
.awp-product-studio-mode .awp-studio-animation-content .awp-studio-range {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  height: calc(
    var(--awp-studio-slider-track-h, 8px) + var(--awp-studio-slider-frame, 6px) *
      2
  ) !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: var(--awp-studio-slider-frame, 6px) solid
    var(--awp-studio-slider-frame-bg, #c5ccd6) !important;
  border-radius: 999px !important;
  box-shadow:
    inset 0 1px 2px var(--awp-studio-slider-frame-sh, rgba(15, 23, 42, 0.38)),
    inset 0 -1px 1px var(--awp-studio-slider-frame-hi, rgba(255, 255, 255, 0.72)),
    0 1px 0 var(--awp-studio-slider-frame-hi, rgba(255, 255, 255, 0.72)),
    0 -1px 1px var(--awp-studio-slider-frame-sh, rgba(15, 23, 42, 0.38)) !important;
  accent-color: transparent !important;
}

.awp-product-studio-mode .awp-studio-range-input::-webkit-slider-runnable-track,
.awp-product-studio-mode .awp-studio-properties-content input[type="range"]:not(.awp-studio-color-panel__hue)::-webkit-slider-runnable-track,
.awp-product-studio-mode .awp-studio-animation-content .awp-studio-range::-webkit-slider-runnable-track {
  height: var(--awp-studio-slider-track-h, 8px) !important;
  border-radius: 999px !important;
  background: var(--awp-studio-slider-track, #722428) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.awp-product-studio-mode .awp-studio-range-input::-webkit-slider-thumb,
.awp-product-studio-mode .awp-studio-properties-content input[type="range"]:not(.awp-studio-color-panel__hue)::-webkit-slider-thumb,
.awp-product-studio-mode .awp-studio-animation-content .awp-studio-range::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: var(--awp-studio-slider-thumb-size, 16px) !important;
  height: var(--awp-studio-slider-thumb-size, 16px) !important;
  margin-top: calc((var(--awp-studio-slider-track-h, 8px) - var(--awp-studio-slider-thumb-size, 16px)) / 2) !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--awp-studio-slider-thumb, #ff5c61) !important;
  box-shadow: none !important;
}

.awp-product-studio-mode .awp-studio-range-input::-moz-range-track,
.awp-product-studio-mode .awp-studio-properties-content input[type="range"]:not(.awp-studio-color-panel__hue)::-moz-range-track {
  height: var(--awp-studio-slider-track-h, 8px) !important;
  background: var(--awp-studio-slider-track, #722428) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.awp-product-studio-mode .awp-studio-range-input::-moz-range-thumb,
.awp-product-studio-mode .awp-studio-properties-content input[type="range"]:not(.awp-studio-color-panel__hue)::-moz-range-thumb {
  width: var(--awp-studio-slider-thumb-size, 16px) !important;
  height: var(--awp-studio-slider-thumb-size, 16px) !important;
  border: 0 !important;
  background: var(--awp-studio-slider-thumb, #ff5c61) !important;
  box-shadow: none !important;
}

.awp-product-studio-mode .awp-studio-range-well input[type="range"]:not(.awp-studio-color-panel__hue) {
  height: var(--awp-studio-slider-track-h, 8px) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.awp-product-studio-mode .awp-studio-prop-field-row .button,
.awp-product-studio-mode .awp-studio-prop-field-row .awp-studio-prop-btn,
.awp-product-studio-mode .awp-studio-image-prop-actions .button,
.awp-product-studio-mode .awp-studio-image-prop-actions .awp-studio-prop-btn,
.awp-product-studio-mode .awp-studio-text-frame-controls .awp-studio-prop-btn {
  width: 100%;
  max-width: 100%;
  white-space: normal !important;
  text-align: center;
  min-width: 0 !important;
}

.awp-product-studio-mode .awp-studio-right-panel-title {
  color: #fff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.awp-product-studio-mode .awp-studio-right-panel-header,
.awp-product-studio-mode .awp-studio-right-panel-header * {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
}

/* Başlık Inter kullansa bile kapat ikonu CSS × ile fonttan bağımsız */
.awp-product-studio-mode .awp-studio-right-panel-header .dashicons,
.awp-product-studio-mode .awp-studio-right-panel-header .dashicons::before {
  display: none !important;
}

.awp-product-studio-mode .awp-studio-right-panel-close {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  width: 28px;
  height: 28px;
  align-self: center;
}

.awp-product-studio-mode .awp-studio-right-panel-close__x {
  width: 12px;
  height: 12px;
}

.awp-product-studio-mode .awp-studio-right-panel-close__x::before,
.awp-product-studio-mode .awp-studio-right-panel-close__x::after {
  width: 12px;
  height: 2px;
  background: #fff;
}

.awp-product-studio-mode .awp-studio-right-panel-close__icon {
  display: none !important;
}

/*
 * WP / tema .button (Win95 / sert gölge) → modern stüdyo butonu
 * Export, panel, medya vb. tüm .button kullanımları
 */
body.awp-ps-fullscreen-body .button,
body.awp-ps-fullscreen-body .button-primary,
body.awp-ps-fullscreen-body .button-secondary,
body.awp-ps-fullscreen-body .button-small,
.awp-product-studio-mode .button,
.awp-product-studio-mode .button-primary,
.awp-product-studio-mode .button-secondary,
.awp-product-studio-mode .button-small {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  min-height: 34px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 7px 14px !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease,
    transform 0.1s ease !important;
}

body.awp-ps-fullscreen-body .button::before,
body.awp-ps-fullscreen-body .button::after,
.awp-product-studio-mode .button::before,
.awp-product-studio-mode .button::after {
  content: none !important;
  display: none !important;
}

body.awp-ps-fullscreen-body .button:hover,
body.awp-ps-fullscreen-body .button:focus,
.awp-product-studio-mode .button:hover,
.awp-product-studio-mode .button:focus {
  background: #f8fafc !important;
  background-image: none !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1) !important;
}

body.awp-ps-fullscreen-body .button:focus-visible,
.awp-product-studio-mode .button:focus-visible {
  outline: none !important;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(37, 99, 235, 0.55) !important;
}

body.awp-ps-fullscreen-body .button:active,
.awp-product-studio-mode .button:active {
  transform: translateY(1px) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
}

body.awp-ps-fullscreen-body .button:disabled,
body.awp-ps-fullscreen-body .button[disabled],
.awp-product-studio-mode .button:disabled,
.awp-product-studio-mode .button[disabled] {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

body.awp-ps-fullscreen-body .button-primary,
.awp-product-studio-mode .button-primary {
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.32) !important;
}

body.awp-ps-fullscreen-body .button-primary:hover,
body.awp-ps-fullscreen-body .button-primary:focus,
.awp-product-studio-mode .button-primary:hover,
.awp-product-studio-mode .button-primary:focus {
  background: linear-gradient(180deg, #fb923c 0%, #f97316 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4) !important;
}

body.awp-ps-fullscreen-body .button-small,
.awp-product-studio-mode .button-small {
  min-height: 30px !important;
  padding: 5px 10px !important;
  font-size: 11px !important;
  border-radius: 7px !important;
}

body.awp-ps-fullscreen-body .button-link-delete,
.awp-product-studio-mode .button-link-delete {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: #dc2626 !important;
  min-height: auto !important;
  padding: 4px 6px !important;
}

body.awp-ps-fullscreen-body .button-link-delete:hover,
.awp-product-studio-mode .button-link-delete:hover {
  background: rgba(220, 38, 38, 0.08) !important;
  color: #b91c1c !important;
  box-shadow: none !important;
}

/* Export satırı: koyu CTA; hover turuncu (siyah gölge yok) */
body.awp-ps-fullscreen-body .awp-studio-export .button,
.awp-product-studio-mode .awp-studio-export .button {
  min-height: 36px !important;
  padding: 8px 14px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: #1e293b !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  box-shadow: none !important;
}

body.awp-ps-fullscreen-body .awp-studio-export .button:hover,
body.awp-ps-fullscreen-body .awp-studio-export .button:focus,
.awp-product-studio-mode .awp-studio-export .button:hover,
.awp-product-studio-mode .awp-studio-export .button:focus {
  background: #334155 !important;
  border-color: transparent !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  box-shadow: none !important;
}

body.awp-ps-fullscreen-body .awp-studio-export .button[data-export="pdf"],
body.awp-ps-fullscreen-body .awp-studio-export .button[data-export="pdf-print"],
.awp-product-studio-mode .awp-studio-export .button[data-export="pdf"],
.awp-product-studio-mode .awp-studio-export .button[data-export="pdf-print"] {
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: none !important;
}

body.awp-ps-fullscreen-body .awp-studio-export .button[data-export="pdf"]:hover,
body.awp-ps-fullscreen-body .awp-studio-export .button[data-export="pdf"]:focus,
body.awp-ps-fullscreen-body .awp-studio-export .button[data-export="pdf-print"]:hover,
body.awp-ps-fullscreen-body .awp-studio-export .button[data-export="pdf-print"]:focus,
.awp-product-studio-mode .awp-studio-export .button[data-export="pdf"]:hover,
.awp-product-studio-mode .awp-studio-export .button[data-export="pdf"]:focus,
.awp-product-studio-mode .awp-studio-export .button[data-export="pdf-print"]:hover,
.awp-product-studio-mode .awp-studio-export .button[data-export="pdf-print"]:focus {
  background: linear-gradient(180deg, #fb923c 0%, #f97316 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
}

/* HQ indirme kilidi — abonelik yoksa */
body.awp-ps-fullscreen-body .awp-studio-export .button.is-hq-locked,
.awp-product-studio-mode .awp-studio-export .button.is-hq-locked {
  opacity: 0.72 !important;
  position: relative;
  box-shadow: none !important;
}
body.awp-ps-fullscreen-body .awp-studio-export .button.is-hq-locked::after,
.awp-product-studio-mode .awp-studio-export .button.is-hq-locked::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 6px;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 1a5 5 0 00-5 5v3H6a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2v-8a2 2 0 00-2-2h-1V6a5 5 0 00-5-5zm-3 5a3 3 0 116 0v3H9V6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 1a5 5 0 00-5 5v3H6a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2v-8a2 2 0 00-2-2h-1V6a5 5 0 00-5-5zm-3 5a3 3 0 116 0v3H9V6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.awp-ps-fullscreen-body .awp-studio-export .button.is-hq-locked[data-export="pdf"],
body.awp-ps-fullscreen-body .awp-studio-export .button.is-hq-locked[data-export="pdf-print"],
.awp-product-studio-mode .awp-studio-export .button.is-hq-locked[data-export="pdf"],
.awp-product-studio-mode .awp-studio-export .button.is-hq-locked[data-export="pdf-print"] {
  opacity: 0.78 !important;
}

body.awp-ps-fullscreen-body .awp-studio-preflight-item,
body.awp-ps-fullscreen-body .awp-studio-preflight-item:hover,
body.awp-ps-fullscreen-body .awp-studio-preflight-item strong,
body.awp-ps-fullscreen-body .awp-studio-preflight-item span {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

body.awp-ps-fullscreen-body .awp-studio-preflight-item,
body.awp-ps-fullscreen-body .awp-studio-preflight-item:hover {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

body.awp-ps-fullscreen-body .awp-studio-preflight-item-body span {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
}

body.awp-ps-fullscreen-body .awp-studio-preflight-item-body .awp-studio-preflight-fix {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

body.awp-ps-fullscreen-body .awp-studio-context-menu > button,
body.awp-ps-fullscreen-body .awp-studio-context-menu > button:hover,
body.awp-ps-fullscreen-body .awp-studio-context-menu > button:focus {
  text-transform: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  letter-spacing: 0 !important;
}

body.awp-ps-fullscreen-body .awp-studio-context-menu > button:hover,
body.awp-ps-fullscreen-body .awp-studio-context-menu > button:focus {
  background: rgba(255, 255, 255, 0.18) !important;
}

body.awp-ps-fullscreen-body .awp-studio-context-menu > button[data-action="ungroup"]:hover:not(:disabled):not(.is-disabled),
body.awp-ps-fullscreen-body .awp-studio-context-menu > button[data-action="ungroup"]:focus-visible:not(:disabled):not(.is-disabled) {
  background: #4f46e5 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 700 !important;
  box-shadow: inset 4px 0 0 #e0e7ff !important;
}

body.awp-ps-fullscreen-body .awp-studio-context-menu > button.is-disabled,
body.awp-ps-fullscreen-body .awp-studio-context-menu > button:disabled {
  color: rgba(255, 255, 255, 0.45) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.45) !important;
}

/* Mobil / dokunmatik sağ tık menüsü — koyu panele uyumlu ince scrollbar */
.awp-product-studio-mode .awp-studio-context-menu.is-touch,
.awp-product-studio-mode .awp-studio-context-menu.is-scrollable,
.awp-product-studio-mode .awp-studio-context-submenu.is-scrollable,
body.awp-ps-fullscreen-body .awp-studio-context-menu.is-touch,
body.awp-ps-fullscreen-body .awp-studio-context-menu.is-scrollable,
body.awp-ps-fullscreen-body .awp-studio-context-submenu.is-scrollable {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.awp-product-studio-mode .awp-studio-context-menu.is-touch::-webkit-scrollbar,
.awp-product-studio-mode .awp-studio-context-menu.is-scrollable::-webkit-scrollbar,
.awp-product-studio-mode .awp-studio-context-submenu.is-scrollable::-webkit-scrollbar,
body.awp-ps-fullscreen-body .awp-studio-context-menu.is-touch::-webkit-scrollbar,
body.awp-ps-fullscreen-body .awp-studio-context-menu.is-scrollable::-webkit-scrollbar,
body.awp-ps-fullscreen-body .awp-studio-context-submenu.is-scrollable::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.awp-product-studio-mode .awp-studio-context-menu.is-touch::-webkit-scrollbar-track,
.awp-product-studio-mode .awp-studio-context-menu.is-scrollable::-webkit-scrollbar-track,
.awp-product-studio-mode .awp-studio-context-submenu.is-scrollable::-webkit-scrollbar-track,
body.awp-ps-fullscreen-body .awp-studio-context-menu.is-touch::-webkit-scrollbar-track,
body.awp-ps-fullscreen-body .awp-studio-context-menu.is-scrollable::-webkit-scrollbar-track,
body.awp-ps-fullscreen-body .awp-studio-context-submenu.is-scrollable::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.35);
  border-radius: 999px;
}

.awp-product-studio-mode .awp-studio-context-menu.is-touch::-webkit-scrollbar-thumb,
.awp-product-studio-mode .awp-studio-context-menu.is-scrollable::-webkit-scrollbar-thumb,
.awp-product-studio-mode .awp-studio-context-submenu.is-scrollable::-webkit-scrollbar-thumb,
body.awp-ps-fullscreen-body .awp-studio-context-menu.is-touch::-webkit-scrollbar-thumb,
body.awp-ps-fullscreen-body .awp-studio-context-menu.is-scrollable::-webkit-scrollbar-thumb,
body.awp-ps-fullscreen-body .awp-studio-context-submenu.is-scrollable::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.awp-product-studio-mode .awp-studio-context-menu.is-touch::-webkit-scrollbar-thumb:hover,
.awp-product-studio-mode .awp-studio-context-menu.is-scrollable::-webkit-scrollbar-thumb:hover,
.awp-product-studio-mode .awp-studio-context-submenu.is-scrollable::-webkit-scrollbar-thumb:hover,
body.awp-ps-fullscreen-body .awp-studio-context-menu.is-touch::-webkit-scrollbar-thumb:hover,
body.awp-ps-fullscreen-body .awp-studio-context-menu.is-scrollable::-webkit-scrollbar-thumb:hover,
body.awp-ps-fullscreen-body .awp-studio-context-submenu.is-scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(226, 232, 240, 0.7);
  background-clip: padding-box;
}

body.awp-ps-fullscreen-body .awp-product-modal-overlay {
  z-index: 10000250 !important;
}
body.awp-ps-fullscreen-body .awp-product-modal,
body.awp-ps-fullscreen-body #awp-product-modal {
  z-index: 10000260 !important;
}

/* Ürün modal kapat: daire + koyu X (tema/stüdyo button stilleri oval/beyaz yapmasın) */
body.awp-ps-fullscreen-body .awp-product-modal-close,
body.awp-ps-fullscreen-body .awp-product-modal-close:hover,
body.awp-ps-fullscreen-body .awp-product-modal-close:focus {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1.5px solid #94a3b8 !important;
  background: #f1f5f9 !important;
  background-image: none !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  white-space: normal !important;
}

body.awp-ps-fullscreen-body .awp-product-modal-close:hover,
body.awp-ps-fullscreen-body .awp-product-modal-close:focus {
  background: #e2e8f0 !important;
  border-color: #64748b !important;
}

body.awp-ps-fullscreen-body .awp-product-modal-close svg {
  width: 16px !important;
  height: 16px !important;
  stroke: currentColor !important;
  color: #0f172a !important;
}
body.awp-ps-fullscreen-body .awp-mini-cart-overlay,
body.awp-ps-fullscreen-body .awp-checkout-overlay {
  z-index: 10000270 !important;
}
body.awp-ps-fullscreen-body .awp-mini-cart-modal,
body.awp-ps-fullscreen-body #awp-checkout-screen,
body.awp-ps-fullscreen-body .awp-checkout-screen-modal {
  z-index: 10000280 !important;
}

.awp-product-studio-mode .awp-studio-toolbar {
  gap: 8px !important;
}

.awp-product-studio-mode .awp-studio-toolbar-group {
  gap: 6px !important;
  padding: 4px !important;
}

.awp-product-studio-mode .awp-studio-left-toolbar > .awp-studio-toolbar-icon {
  color: #fff !important;
}

.awp-product-studio-mode .awp-studio-left-toolbar > .awp-studio-toolbar-icon:not([aria-pressed="true"]):hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

.awp-product-studio-mode .awp-studio-left-toolbar > .awp-studio-toolbar-icon[aria-pressed="true"] {
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%) !important;
  color: #fff !important;
  box-shadow:
    0 2px 10px rgba(234, 88, 12, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.awp-product-studio-mode .awp-studio-left-toolbar > .awp-studio-toolbar-icon[aria-pressed="true"]:hover {
  background: linear-gradient(180deg, #fb923c 0%, #f97316 100%) !important;
  color: #fff !important;
}

.awp-product-studio-mode .awp-studio-left-toolbar > .awp-studio-toolbar-icon[aria-pressed="true"] .dashicons,
.awp-product-studio-mode .awp-studio-left-toolbar > .awp-studio-toolbar-icon[aria-pressed="true"] .awp-studio-rail-icon,
.awp-product-studio-mode .awp-studio-left-toolbar > .awp-studio-toolbar-icon[aria-pressed="true"] .awp-studio-icon,
.awp-product-studio-mode .awp-studio-left-toolbar > .awp-studio-toolbar-icon[aria-pressed="true"] svg,
.awp-product-studio-mode .awp-studio-left-toolbar > .awp-studio-toolbar-icon[aria-pressed="true"] .awp-studio-rail-label {
  color: #fff !important;
}

.awp-product-studio-mode .awp-studio-left-toolbar > .awp-studio-toolbar-icon:not([aria-pressed="true"]) .awp-studio-icon,
.awp-product-studio-mode .awp-studio-left-toolbar > .awp-studio-toolbar-icon:not([aria-pressed="true"]) svg {
  color: #fff !important;
}

.awp-product-studio-mode .awp-studio-left-toolbar .awp-studio-rail-icon {
  color: #fff;
}

.awp-product-studio-mode .awp-studio-left-toolbar img.awp-studio-icon--custom {
  filter: none;
}

.awp-product-studio-mode .awp-studio-left-toolbar > .awp-studio-toolbar-icon:not([aria-pressed="true"]) .awp-studio-rail-label {
  color: #fff !important;
}

.awp-product-studio-mode .awp-studio-right-panel-close {
  color: #fff;
}

.awp-product-studio-mode .awp-studio-section-label {
  color: #64748b;
}


/* 4K / yüksek ekran: admin max-height kırılımlarını ezer */
@media (min-width: 1600px) {
  body.awp-ps-fullscreen-body .awp-studio-root.awp-product-studio-mode,
  body.awp-ps-fullscreen-body #awp-slider-studio.awp-product-studio-mode {
    height: 100% !important;
    max-height: none !important;
  }
}

/* Ürün modunda banner boyutu / fullwidth gizle — ölçü profil kilitli */
body.awp-ps-fullscreen-body.awp-ps-can-design .awp-studio-toolbar-group--size,
body.awp-ps-fullscreen-body.awp-ps-can-design #awp-studio-toggle-fullwidth,
body.awp-ps-fullscreen-body.awp-ps-can-design #awp-studio-resize-btn {
  display: none !important;
}

/* Slider cihaz / önizleme seçicileri ürün müşterisine faydasız */
.awp-product-studio-mode #awp-studio-device,
.awp-product-studio-mode #awp-studio-preview-size {
  display: none !important;
}

/* Cetvel — ferah cm/mm görünümü */
.awp-product-studio-mode .awp-studio-ruler-corner,
.awp-product-studio-mode .awp-studio-ruler-top,
.awp-product-studio-mode .awp-studio-ruler-left {
  overflow: hidden;
  background: #f8fafc;
  z-index: 20 !important;
  position: relative;
}

.awp-product-studio-mode .awp-studio-ruler-corner {
  background: #f1f5f9;
  border-right-color: #e2e8f0;
  border-bottom-color: #e2e8f0;
  font-size: 8px;
  font-weight: 500;
  color: #94a3b8;
}

.awp-product-studio-mode .awp-studio-ruler-top {
  border-bottom-color: #e2e8f0;
}

.awp-product-studio-mode .awp-studio-ruler-left {
  border-right-color: #e2e8f0;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
}

.awp-product-studio-mode .awp-studio-canvas-container,
.awp-product-studio-mode .awp-studio-canvas-wrapper,
.awp-product-studio-mode .awp-studio-canvas-inner {
  z-index: 40;
  overflow: visible !important;
}

.awp-product-studio-mode #awp-printwise-root svg.awp-studio-text-path-svg,
.awp-product-studio-mode .awp-studio-element > svg.awp-studio-text-path-svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex-shrink: 1 !important;
  vertical-align: top !important;
  overflow: visible !important;
}

.awp-product-studio-mode .awp-studio-ruler-label {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 9px;
  font-weight: 400;
  color: #64748b;
  letter-spacing: 0.01em;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.awp-product-studio-mode .awp-studio-ruler-top .awp-studio-ruler-label:not(.is-origin) {
  top: 5px;
}

.awp-product-studio-mode .awp-studio-ruler-left .awp-studio-ruler-label:not(.is-origin) {
  left: 4px;
}

/* Küçük tuval: tick boyutu sabit kalır, yoğunluk JS ile azaltılır */
.awp-product-studio-mode .awp-studio-ruler-top,
.awp-product-studio-mode .awp-studio-ruler-left {
  --awp-ruler-scale: 1;
}

.awp-product-studio-mode .awp-studio-ruler-tick.is-minor {
  height: 3px;
  background: #dbe2ea;
}

.awp-product-studio-mode .awp-studio-ruler-tick.is-medium {
  height: clamp(5px, calc(6px / var(--awp-ruler-scale, 1)), 8px);
  background: #b0bcc9;
}

.awp-product-studio-mode .awp-studio-ruler-tick.is-major {
  height: clamp(8px, calc(9px / var(--awp-ruler-scale, 1)), 11px);
  background: #94a3b8;
}

.awp-product-studio-mode .awp-studio-ruler-tick.is-label,
.awp-product-studio-mode .awp-studio-ruler-tick.awp-studio-ruler-origin {
  height: clamp(9px, calc(10px / var(--awp-ruler-scale, 1)), 12px);
  background: #64748b;
}

.awp-product-studio-mode .awp-studio-ruler-tick-vertical.is-minor {
  width: 4px;
  background: #dbe2ea;
}

.awp-product-studio-mode .awp-studio-ruler-tick-vertical.is-medium {
  width: clamp(5px, calc(6px / var(--awp-ruler-scale, 1)), 8px);
  background: #b0bcc9;
}

.awp-product-studio-mode .awp-studio-ruler-tick-vertical.is-major {
  width: clamp(8px, calc(9px / var(--awp-ruler-scale, 1)), 11px);
  background: #94a3b8;
}

.awp-product-studio-mode .awp-studio-ruler-tick-vertical.is-label,
.awp-product-studio-mode .awp-studio-ruler-tick-vertical.awp-studio-ruler-origin {
  width: clamp(9px, calc(10px / var(--awp-ruler-scale, 1)), 12px);
  background: #64748b;
}

/* Cetvelden sürüklenen referans çizgileri (CorelDRAW tarzı) */
.awp-product-studio-mode .awp-studio-ruler-top.is-guide-drag {
  cursor: row-resize;
}

.awp-product-studio-mode .awp-studio-ruler-left.is-guide-drag {
  cursor: col-resize;
}

.awp-studio-reference-guides-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: visible;
}

.awp-studio-ref-guide {
  position: absolute;
  pointer-events: none;
  box-sizing: border-box;
  width: 0;
  height: 0;
  z-index: 1;
}

.awp-studio-ref-guide-rotator {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  pointer-events: none;
}

.awp-studio-ref-guide-line {
  position: absolute;
  left: 50%;
  top: 0;
  height: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.awp-studio-ref-guide--from-h .awp-studio-ref-guide-line {
  border-top: 2px dashed #2563eb;
  filter: drop-shadow(0 0 1px rgba(37, 99, 235, 0.55));
}

.awp-studio-ref-guide--from-v .awp-studio-ref-guide-line {
  border-top: 2px dashed #e11d48;
  filter: drop-shadow(0 0 1px rgba(225, 29, 72, 0.55));
}

.awp-studio-ref-guide-hit {
  position: absolute;
  left: 50%;
  top: 0;
  height: 12px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: move;
}

.awp-studio-ref-guide-pivot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 60px;
  height: 60px;
  padding: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 7px solid #0f172a;
  background: #fff;
  box-shadow:
    0 0 0 4px #fff,
    0 4px 16px rgba(15, 23, 42, 0.38);
  display: none;
  pointer-events: none;
  z-index: 9;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  cursor: grab;
}

.awp-studio-ref-guide-pivot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #0f172a;
}

.awp-studio-ref-guide-pivot:active {
  cursor: grabbing;
}

.awp-studio-ref-guide-rot-handle {
  position: absolute;
  left: 50%;
  top: 0;
  width: 72px;
  height: 84px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: #fff center / 60px 78px no-repeat;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95);
  cursor: grab;
  display: none;
  pointer-events: auto;
  z-index: 8;
}

.awp-studio-ref-guide-rot-handle--start {
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 28' fill='none'%3E%3Cpath d='M14.5 4.5C9 8.5 9 19.5 14.5 23.5' stroke='%230f172a' stroke-width='2.25' stroke-linecap='round'/%3E%3Cpath d='M12.5 4.5 14.5 6.5 12.5 8.5' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12.5 23.5 14.5 21.5 12.5 19.5' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.awp-studio-ref-guide-rot-handle--end {
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 28' fill='none'%3E%3Cpath d='M5.5 4.5C11 8.5 11 19.5 5.5 23.5' stroke='%230f172a' stroke-width='2.25' stroke-linecap='round'/%3E%3Cpath d='M7.5 4.5 5.5 6.5 7.5 8.5' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M7.5 23.5 5.5 21.5 7.5 19.5' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.awp-studio-ref-guide-rot-handle:active {
  cursor: grabbing;
}

.awp-studio-ref-guide.is-rotate-mode .awp-studio-ref-guide-pivot,
.awp-studio-ref-guide.is-rotate-mode .awp-studio-ref-guide-rot-handle {
  display: block;
}

.awp-studio-ref-guide.is-rotate-mode .awp-studio-ref-guide-pivot {
  pointer-events: auto;
}

.awp-studio-ref-guide.is-rotate-mode .awp-studio-ref-guide-hit {
  cursor: default;
  pointer-events: auto;
  height: 36px;
}

.awp-studio-ref-guide.is-preview {
  opacity: 0.72;
  pointer-events: none;
}

.awp-studio-ref-guide.is-preview .awp-studio-ref-guide-line {
  width: 100% !important;
  left: 0;
  transform: none;
}

.awp-studio-ref-guide.is-selected .awp-studio-ref-guide-line {
  border-top-width: 3px;
  border-top-style: solid;
}

.awp-studio-ref-guide.is-selected.awp-studio-ref-guide--from-h .awp-studio-ref-guide-line {
  border-top-color: #1d4ed8;
  filter: none;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.28);
}

.awp-studio-ref-guide.is-selected.awp-studio-ref-guide--from-v .awp-studio-ref-guide-line {
  border-top-color: #be123c;
  filter: none;
  box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.28);
}

.awp-studio-ref-guide.is-rotate-mode.is-selected .awp-studio-ref-guide-pivot {
  border-color: #0f172a;
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 12px rgba(37, 99, 235, 0.28),
    0 4px 20px rgba(15, 23, 42, 0.35);
}

.awp-studio-ref-guide.is-rotate-mode.is-selected.awp-studio-ref-guide--from-v .awp-studio-ref-guide-pivot {
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 12px rgba(225, 29, 72, 0.28),
    0 4px 20px rgba(15, 23, 42, 0.35);
}

.awp-studio-ref-guide.is-rotate-mode.is-selected.awp-studio-ref-guide--from-h .awp-studio-ref-guide-pivot::after {
  background: #1d4ed8;
}

.awp-studio-ref-guide.is-rotate-mode.is-selected.awp-studio-ref-guide--from-v .awp-studio-ref-guide-pivot::after {
  background: #be123c;
}

.awp-studio-ref-guide.is-rotate-mode.is-selected .awp-studio-ref-guide-pivot:hover,
.awp-studio-ref-guide.is-rotate-mode.is-selected .awp-studio-ref-guide-pivot:focus-visible {
  border-color: #ea580c;
  outline: none;
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 12px rgba(234, 88, 12, 0.35),
    0 4px 20px rgba(15, 23, 42, 0.35);
}

.awp-product-studio-mode .awp-studio-canvas-inner {
  --awp-artboard-shadow-offset: calc(14px / var(--awp-canvas-scale, 1));
  --awp-artboard-shadow-color: #adb5c0;
  box-shadow:
    var(--awp-artboard-shadow-offset) var(--awp-artboard-shadow-offset) 0 0
    var(--awp-artboard-shadow-color);
}

.awp-ps-gate-overlay {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #0f172a;
}

.awp-ps-gate-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 24px;
}

.awp-ps-gate-card h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #0f172a;
}

.awp-ps-gate-card > p {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.45;
}

.awp-ps-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}

.awp-ps-gate-actions .button {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.awp-ps-gate-actions .button:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.awp-ps-gate-actions .button-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.awp-ps-gate-actions .button-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

/* Modal (aynı sekme overlay) */
.awp-ps-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #0f172a;
  display: none;
}

.awp-ps-modal.is-open {
  display: block;
}

.awp-ps-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Ön izleme toggle */
.awp-ps-preview-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

.awp-ps-preview-toggle .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 1;
}

/* Salt okunur önizleme: tam sayfa, ortalı tuval */
body.awp-ps-previewing .awp-ps-fs-chrome {
  display: none !important;
}

body.awp-ps-previewing .awp-ps-preview-exit-bar {
  display: flex !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100100;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.72) 0%,
    rgba(15, 23, 42, 0.35) 70%,
    transparent 100%
  );
}

body.awp-ps-previewing .awp-ps-preview-exit-bar[hidden] {
  display: none !important;
}

.awp-ps-preview-exit-bar {
  display: none;
}

.awp-ps-preview-exit-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.92);
  color: #f8fafc !important;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.awp-ps-preview-exit-btn:hover {
  background: rgba(51, 65, 85, 0.96);
  border-color: rgba(251, 146, 60, 0.55);
}

.awp-ps-preview-exit-btn .awp-ps-fs-ghost-icon {
  color: #fb923c;
}

body.awp-ps-previewing .awp-ps-fs-studio,
body.awp-ps-previewing #awp-ps-app {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
}

body.awp-ps-previewing .awp-studio-root.awp-product-studio-mode,
body.awp-ps-previewing #awp-slider-studio.awp-product-studio-mode {
  height: 100% !important;
  max-height: 100% !important;
}

body.awp-ps-previewing .awp-studio-tools-rail,
body.awp-ps-previewing .awp-studio-toolbar,
body.awp-ps-previewing .awp-studio-meta-strip,
body.awp-ps-previewing .awp-studio-ruler-top,
body.awp-ps-previewing .awp-studio-ruler-left,
body.awp-ps-previewing .awp-studio-ruler-corner {
  display: none !important;
}

body.awp-ps-previewing .awp-studio-canvas-area {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  height: 100% !important;
}

body.awp-ps-previewing .awp-studio-left-toolbar,
body.awp-ps-previewing .awp-studio-right-panel-wrap,
body.awp-ps-previewing .awp-ps-edit-tools,
body.awp-ps-previewing .awp-ps-guide-tools-wrap,
body.awp-ps-previewing .awp-studio-align-toolbar,
body.awp-ps-previewing #awp-studio-undo,
body.awp-ps-previewing #awp-studio-redo,
body.awp-ps-previewing .awp-studio-contextual-bar,
body.awp-ps-previewing .awp-studio-safe-toast,
body.awp-ps-previewing .awp-ps-size-editor,
body.awp-ps-previewing .awp-studio-device-nav,
body.awp-ps-previewing .awp-studio-selection-overlay {
  display: none !important;
}

/* Ürün stüdyosu: hover overlay (zoom bağımsız) — eleman CSS border hover yok */
body.awp-ps-previewing .awp-studio-hover-box {
  display: none !important;
}

body.awp-ps-previewing .awp-studio-canvas-viewport {
  background: #ffffff !important;
  background-image: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: auto !important;
  grid-row: 1 !important;
  grid-column: 1 !important;
}

body.awp-ps-previewing .awp-studio-canvas-wrapper,
body.awp-ps-previewing .awp-studio-editor-wrapper {
  margin: auto !important;
}

body.awp-ps-previewing .awp-studio-canvas-inner {
  --awp-artboard-shadow-offset: calc(14px / var(--awp-canvas-scale, 1));
  --awp-artboard-shadow-color: #adb5c0;
  box-shadow:
    var(--awp-artboard-shadow-offset) var(--awp-artboard-shadow-offset) 0 0
    var(--awp-artboard-shadow-color);
  border: none;
}

body.awp-ps-previewing .awp-studio-canvas-wrapper {
  box-shadow: none;
  border: none;
}

/* Forma dönüş / indirme / PDF preloader — tüm modüller Inter */
.awp-studio-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 100080;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(1.5px);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
}

/* Ürün stüdyosu: alt sayfa çubuğu (z-index ~2147483002) busy overlay’in üstünde kalmasın */
.awp-product-studio-mode .awp-studio-busy-overlay,
body.awp-ps-fullscreen-body .awp-studio-busy-overlay {
  z-index: 2147483645 !important;
  background: rgba(15, 23, 42, 0.78) !important;
  backdrop-filter: blur(12px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
}

.awp-studio-busy-overlay[hidden] {
  display: none !important;
}

.awp-studio-busy-overlay__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  padding: 24px 28px;
  border-radius: 10px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  text-align: center;
  line-height: 1.4;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
}

.awp-studio-busy-overlay__mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.awp-studio-busy-overlay__mark::after {
  content: none;
}

.awp-studio-busy-overlay__logo {
  position: absolute;
  inset: 8px;
  width: 20px;
  height: 20px;
  margin: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.awp-studio-busy-overlay__title,
.awp-studio-busy-overlay__sub,
.awp-studio-busy-overlay__hint {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.awp-studio-busy-overlay__title {
  color: #f8fafc;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.awp-studio-busy-overlay__sub {
  color: #94a3b8;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
  font-size: 12px;
  line-height: 1.4;
}

.awp-studio-busy-overlay__spinner {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2.5px solid rgba(148, 163, 184, 0.25);
  border-top-color: #fb923c;
  animation: awp-studio-busy-spin 0.75s linear infinite;
}

@keyframes awp-studio-busy-spin {
  to {
    transform: rotate(360deg);
  }
}

.awp-studio-busy-overlay--print .awp-studio-busy-overlay__card {
  min-width: min(420px, calc(100vw - 32px));
  max-width: 440px;
  padding: 28px 28px 22px;
  gap: 12px;
}

.awp-studio-busy-overlay__hint {
  margin: 0;
  color: #fdba74;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
  font-size: 12px;
  font-weight: 600;
}

.awp-studio-busy-overlay__stages {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  width: 100%;
  text-align: left;
  display: grid;
  gap: 8px;
}

.awp-studio-busy-overlay__stage {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
  font-size: 13px;
  color: #64748b;
}

.awp-studio-busy-overlay__stage.is-done {
  color: #86efac;
}

.awp-studio-busy-overlay__stage.is-active {
  color: #f8fafc;
  font-weight: 650;
}

.awp-studio-busy-overlay__stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
  background: #475569;
}

.awp-studio-busy-overlay__stage.is-done .awp-studio-busy-overlay__stage-dot {
  background: #22c55e;
}

.awp-studio-busy-overlay__stage.is-active .awp-studio-busy-overlay__stage-dot {
  background: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.22);
}

.awp-studio-busy-overlay--print .awp-studio-busy-overlay__stage {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) 96px;
  align-items: center;
  column-gap: 10px;
}

.awp-studio-busy-overlay__stage-label {
  min-width: 0;
  line-height: 1.3;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
}

.awp-studio-busy-overlay__stage-bar {
  display: block;
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: #334155;
  overflow: hidden;
  flex: 0 0 96px;
}

.awp-studio-busy-overlay__stage-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #fb923c;
  transform: translateZ(0);
  transition: width 0.18s ease-out;
}

.awp-studio-busy-overlay__stage.is-error {
  color: #fca5a5;
}

.awp-studio-busy-overlay__stage.is-error .awp-studio-busy-overlay__stage-dot {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

.awp-studio-busy-overlay__stage.is-error .awp-studio-busy-overlay__stage-fill {
  background: #ef4444;
}

/* Vazgeç — taslak kaydet onay modalı */
.awp-ps-leave-modal {
  position: fixed;
  inset: 0;
  z-index: 100090;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.awp-ps-leave-modal.is-open {
  display: flex;
}

.awp-ps-leave-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}

.awp-ps-leave-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
  box-sizing: border-box;
}

.awp-ps-leave-modal__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.awp-ps-leave-modal__text {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #475569;
}

.awp-ps-leave-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.awp-ps-leave-modal__btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none !important;
  cursor: pointer;
  font-family: inherit;
  box-shadow: none !important;
}

.awp-ps-leave-modal__btn--primary,
body.awp-ps-fullscreen-body .awp-ps-leave-modal__btn--primary {
  background: #f97316 !important;
  background-image: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 0 !important;
}

.awp-ps-leave-modal__btn--primary:hover,
.awp-ps-leave-modal__btn--primary:focus,
body.awp-ps-fullscreen-body .awp-ps-leave-modal__btn--primary:hover,
body.awp-ps-fullscreen-body .awp-ps-leave-modal__btn--primary:focus {
  background: #ea580c !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.awp-ps-leave-modal__btn--danger,
body.awp-ps-fullscreen-body .awp-ps-leave-modal__btn--danger {
  background: #fff !important;
  background-image: none !important;
  color: #b91c1c !important;
  -webkit-text-fill-color: #b91c1c !important;
  border: 1px solid #fecaca !important;
}

.awp-ps-leave-modal__btn--danger:hover,
.awp-ps-leave-modal__btn--danger:focus,
body.awp-ps-fullscreen-body .awp-ps-leave-modal__btn--danger:hover,
body.awp-ps-fullscreen-body .awp-ps-leave-modal__btn--danger:focus {
  background: #fef2f2 !important;
  color: #991b1b !important;
  -webkit-text-fill-color: #991b1b !important;
  border-color: #fca5a5 !important;
}

.awp-ps-leave-modal__btn--ghost,
body.awp-ps-fullscreen-body .awp-ps-leave-modal__btn--ghost {
  background: #f8fafc !important;
  background-image: none !important;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
}

.awp-ps-leave-modal__btn--ghost:hover,
.awp-ps-leave-modal__btn--ghost:focus,
body.awp-ps-fullscreen-body .awp-ps-leave-modal__btn--ghost:hover,
body.awp-ps-fullscreen-body .awp-ps-leave-modal__btn--ghost:focus {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

body.awp-ps-previewing .awp-studio-safe-area,
body.awp-ps-previewing .awp-studio-grid,
body.awp-ps-previewing .awp-studio-guide-layer,
body.awp-ps-previewing .awp-studio-smart-guides-layer {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

body.awp-ps-previewing .awp-ps-canvas-title {
  pointer-events: none;
}

body.awp-ps-previewing #awp-ps-preview-toggle.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

body.awp-product-studio-mode #awp-assistant-root,
html.awp-ps-html #awp-assistant-root {
  z-index: 2147483646 !important;
}

body.awp-product-studio-mode .awp-assistant-fab,
html.awp-ps-html .awp-assistant-fab,
body.awp-product-studio-mode #awp-assistant-toggle,
html.awp-ps-html #awp-assistant-toggle {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Tasarım stüdyosu (tam sayfa): yüzen WhatsApp ikonunu gizle — mobile-ux !important’ını ezer */
html.awp-ps-html body.awp-ps-fullscreen-body #wa,
html.awp-ps-html body.awp-ps-fullscreen-body #wa.wa__widget_container,
html.awp-ps-html body #wa,
html.awp-ps-html body #wa.wa__widget_container,
html.awp-ps-html #wa,
html.awp-ps-html #wa.wa__widget_container,
html.awp-ps-html .wa__btn_popup,
html.awp-ps-html .wa__popup_chat_box,
html.awp-ps-html .wa__btn_popup_icon,
body.awp-ps-fullscreen-body #wa,
body.awp-ps-fullscreen-body #wa.wa__widget_container,
body.awp-ps-fullscreen-body .wa__btn_popup,
body.awp-ps-fullscreen-body .wa__popup_chat_box,
body.awp-product-studio-mode #wa,
body.awp-product-studio-mode #wa.wa__widget_container,
body.awp-product-studio-mode .wa__btn_popup,
html.awp-ps-html a.whatsapp-float,
html.awp-ps-html .whatsapp-float,
html.awp-ps-html #whatsapp-chat,
html.awp-ps-html .joinchat,
html.awp-ps-html .ht-ctc,
html.awp-ps-html .floating-wpp,
html.awp-ps-html a[href*="wa.me"],
html.awp-ps-html a[href*="api.whatsapp.com"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  z-index: -1 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  transform: scale(0) !important;
}

/* QR / Barkod paneli — compact */
.awp-studio-codes-panel.awp-studio-content-section--active {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.awp-ps-codes-tabs {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 2px;
  background: #f1f5f9;
  border-radius: 6px;
}

.awp-ps-codes-tab {
  flex: 1 1 0;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.awp-ps-codes-tab.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.awp-ps-codes-pane {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.awp-ps-codes-pane.is-active {
  display: flex;
}

.awp-ps-codes-pane[hidden] {
  display: none !important;
}

.awp-ps-codes-pane .awp-studio-label {
  margin: 2px 0 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.awp-ps-codes-pane .awp-studio-input,
.awp-ps-codes-pane input[type="text"] {
  width: 100%;
  height: 32px;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
  color: #0f172a;
  background: #fff;
  box-shadow: none;
}

.awp-ps-codes-pane .awp-studio-input:focus,
.awp-ps-codes-pane input[type="text"]:focus {
  outline: none;
  border-color: #cbd5e1;
}

.awp-ps-codes-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #94a3b8;
}

.awp-ps-codes-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  flex-shrink: 0;
  align-self: stretch;
  width: 100%;
  height: 36px;
  min-height: 36px;
  margin: 2px 0 0;
  padding: 0 12px;
  border: 1px solid #0f172a;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.awp-ps-codes-btn:hover {
  background: #f8fafc;
}

.awp-ps-codes-btn--primary {
  background: #0f172a;
  color: #fff;
}

.awp-ps-codes-btn--primary:hover {
  background: #1e293b;
  color: #fff;
}

.awp-ps-codes-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.awp-ps-codes-preview[hidden] {
  display: none !important;
}

.awp-ps-codes-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.awp-ps-codes-preview-box svg {
  max-width: 100%;
  height: auto;
}

.awp-ps-codes-actions {
  display: flex;
  gap: 6px;
  margin: 0;
}

.awp-ps-codes-dl {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 0;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.awp-ps-codes-dl:hover {
  border-color: #fdba74;
  background: #fff7ed;
  color: #0f172a;
}

.awp-ps-codes-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 11px;
  line-height: 1.4;
  color: #64748b;
}

/* ——— Sağ dikey araç rayı: Text toolbar ile aynı üst hizada ——— */
.awp-product-studio-mode .awp-studio-canvas-area,
body.awp-ps-fullscreen-body .awp-product-studio-mode .awp-studio-canvas-area,
body.awp-ps-fullscreen-body .awp-studio-canvas-area {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) var(--awp-studio-tools-rail-width) !important;
  grid-template-rows: var(--awp-studio-chrome-row-height) minmax(0, 1fr) auto !important;
  align-content: stretch !important;
  gap: 0 !important;
  overflow: hidden !important;
  min-width: 0;
}

.awp-product-studio-mode .awp-studio-canvas-chrome,
body.awp-ps-fullscreen-body .awp-studio-canvas-chrome {
  grid-column: 1 !important;
  grid-row: 1 !important;
  order: unset !important;
}

.awp-product-studio-mode .awp-studio-canvas-chrome[hidden] {
  display: none !important;
  grid-row: unset !important;
}

.awp-product-studio-mode .awp-studio-meta-strip,
body.awp-ps-fullscreen-body .awp-studio-meta-strip {
  grid-column: 1 !important;
  grid-row: 1 !important;
  order: unset !important;
  z-index: 20;
  overflow: visible;
}

.awp-product-studio-mode .awp-studio-canvas-viewport,
body.awp-ps-fullscreen-body .awp-studio-canvas-viewport {
  grid-column: 1 !important;
  grid-row: 2 !important;
  order: unset !important;
  min-height: 0 !important;
}

.awp-product-studio-mode .awp-studio-device-nav,
body.awp-ps-fullscreen-body .awp-studio-device-nav {
  grid-column: 1 !important;
  grid-row: 3 !important;
  order: unset !important;
  align-self: end !important;
  padding-bottom: max(4px, env(safe-area-inset-bottom, 0px)) !important;
  z-index: 100;
}

.awp-product-studio-mode .awp-studio-page-fab {
  display: none !important;
}

.awp-product-studio-mode .awp-studio-toolbar,
.awp-product-studio-mode .awp-studio-tools-rail,
body.awp-ps-fullscreen-body .awp-studio-toolbar {
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  align-self: stretch !important;
  order: unset !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: var(--awp-studio-tools-rail-width) !important;
  min-width: var(--awp-studio-tools-rail-width) !important;
  max-width: var(--awp-studio-tools-rail-width) !important;
  height: auto !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow-x: visible !important;
  overflow-y: auto !important;
  padding: 0 !important;
  gap: var(--awp-studio-rail-btn-gap) !important;
  margin: 0 !important;
  border: none !important;
  border-left: 1px solid #dbe2ea !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
  z-index: 4;
}

.awp-product-studio-mode .awp-studio-toolbar-group,
body.awp-ps-fullscreen-body .awp-studio-toolbar-group {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: var(--awp-studio-rail-btn-gap) !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: none !important;
  background: transparent !important;
  box-sizing: border-box;
}

.awp-product-studio-mode .awp-studio-toolbar-group:last-child {
  border-bottom: none;
}

.awp-product-studio-mode .awp-studio-tools-rail .awp-studio-toolbar-sep,
body.awp-ps-fullscreen-body .awp-studio-tools-rail .awp-studio-toolbar-sep {
  width: calc(100% - 16px) !important;
  max-width: 32px !important;
  height: 1px !important;
  margin: 8px 0 !important;
  align-self: center !important;
  background: #e2e8f0 !important;
  border: none !important;
  opacity: 1;
}

.awp-product-studio-mode .awp-ps-guide-tools {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--awp-studio-rail-btn-gap) !important;
  align-items: center !important;
  width: 100%;
}

.awp-product-studio-mode .awp-studio-toolbar .awp-studio-toolbar-icon,
.awp-product-studio-mode .awp-studio-toolbar .awp-ps-guide-btn,
.awp-product-studio-mode .awp-ps-edit-tools .awp-studio-toolbar-icon {
  width: var(--awp-studio-rail-btn-size) !important;
  height: var(--awp-studio-rail-btn-size) !important;
  min-width: var(--awp-studio-rail-btn-size) !important;
  min-height: var(--awp-studio-rail-btn-size) !important;
  flex: 0 0 var(--awp-studio-rail-btn-size) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 8px !important;
  color: #334155;
}

.awp-product-studio-mode .awp-studio-tools-rail .awp-studio-icon,
.awp-product-studio-mode .awp-ps-key .awp-studio-icon,
.awp-product-studio-mode .awp-ps-keys-palette-host .awp-studio-icon,
.awp-product-studio-mode .awp-ps-keys-more-host .awp-studio-icon,
.awp-product-studio-mode .awp-ps-flyout .awp-studio-icon,
.awp-product-studio-mode .awp-ps-color-palette-panel .awp-studio-icon {
  width: var(--awp-studio-rail-icon-size, 22px);
  height: var(--awp-studio-rail-icon-size, 22px);
}

.awp-product-studio-mode .awp-ps-zoom-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  gap: 4px !important;
  padding: 2px 0 !important;
  overflow: visible !important;
}

.awp-product-studio-mode .awp-ps-zoom-stack .awp-studio-range-well--zoom {
  display: flex;
  width: 64px !important;
  min-width: 64px !important;
  height: calc(
    var(--awp-studio-slider-track-h, 8px) + var(--awp-studio-slider-frame, 6px) *
      2
  );
  margin: 24px -24px !important;
  padding: var(--awp-studio-slider-frame, 6px);
  transform: rotate(-90deg);
  transform-origin: center;
}

.awp-product-studio-mode .awp-ps-zoom-stack .awp-studio-zoom-range {
  -webkit-appearance: none;
  appearance: none;
  writing-mode: horizontal-tb;
  direction: ltr;
  width: 100% !important;
  min-width: 0 !important;
  height: var(--awp-studio-slider-track-h, 8px) !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  transform: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  accent-color: transparent;
  cursor: pointer;
}

.awp-product-studio-mode .awp-ps-zoom-stack .awp-studio-zoom-display {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: center !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  color: #475569 !important;
  writing-mode: horizontal-tb;
  margin: 0 !important;
  padding: 0 !important;
}

.awp-product-studio-mode .awp-studio-zoom-range {
  -webkit-appearance: none;
  appearance: none;
  writing-mode: horizontal-tb;
  direction: ltr;
  width: 100% !important;
  min-width: 0 !important;
  height: var(--awp-studio-slider-track-h, 8px) !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  accent-color: transparent;
  cursor: pointer;
}

.awp-product-studio-mode .awp-studio-zoom-range::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: var(--awp-studio-slider-track, #722428);
  border: 0;
  box-shadow: none;
}

.awp-product-studio-mode .awp-studio-zoom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -4px;
  margin-left: 0;
  border: 0;
  border-radius: 50%;
  background: var(--awp-studio-slider-thumb, #ff5c61);
  box-shadow: none;
  cursor: grab;
}

.awp-product-studio-mode .awp-studio-zoom-range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: var(--awp-studio-slider-track, #722428);
  border: 0;
  box-shadow: none;
}

.awp-product-studio-mode .awp-studio-zoom-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--awp-studio-slider-thumb, #ff5c61);
  box-shadow: none;
}

.awp-product-studio-mode .awp-studio-zoom-display {
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  color: #475569 !important;
  writing-mode: horizontal-tb;
}

.awp-product-studio-mode .awp-ps-preview-toggle {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  flex-direction: row !important;
  gap: 0 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-align: center !important;
}

.awp-product-studio-mode .awp-ps-preview-toggle .dashicons {
  font-size: 18px !important;
  width: 18px !important;
  height: 18px !important;
}

.awp-product-studio-mode .awp-ps-preview-toggle-label {
  display: none !important;
}

.awp-product-studio-mode .awp-studio-export {
  gap: 3px !important;
  padding-top: 2px !important;
}

.awp-product-studio-mode .awp-studio-export .button,
body.awp-ps-fullscreen-body .awp-studio-export .button {
  width: 48px !important;
  min-width: 48px !important;
  min-height: 36px !important;
  padding: 6px 2px !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  text-align: center !important;
}

.awp-product-studio-mode .awp-studio-toolbar-group--size,
.awp-product-studio-mode .awp-studio-toolbar .awp-studio-label {
  display: none !important;
}

/* ——— Sağ 3 anahtar (Frisbee) ———
 * Sabit 58px anahtar sütunu; flyout overlay → tuval layout’u sıçramaz.
 */
.awp-product-studio-mode .awp-studio-tools-rail.awp-ps-keys-ready {
  position: relative !important;
  overflow: visible !important;
  padding: 0 !important;
  gap: 0 !important;
  z-index: 30;
  background: #fff !important;
}

.awp-product-studio-mode .awp-ps-keys {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--awp-studio-rail-btn-gap);
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  z-index: 2;
  padding: calc((var(--awp-studio-chrome-row-height) - var(--awp-studio-rail-btn-size)) / 2) 0 8px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
  overflow-x: visible;
  overflow-y: auto;
  scrollbar-width: none;
}

.awp-product-studio-mode .awp-ps-keys::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.awp-product-studio-mode .awp-ps-key {
  width: var(--awp-studio-rail-btn-size);
  height: var(--awp-studio-rail-btn-size);
  min-width: var(--awp-studio-rail-btn-size);
  min-height: var(--awp-studio-rail-btn-size);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  padding: 0;
  box-sizing: border-box;
}

.awp-product-studio-mode .awp-ps-key:hover {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
}

.awp-product-studio-mode .awp-ps-key:focus-visible {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.18);
}

.awp-product-studio-mode .awp-ps-key[aria-pressed="true"] {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  box-shadow: none;
  transform: none;
}

.awp-product-studio-mode .awp-ps-key .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 1;
}

.awp-product-studio-mode .awp-ps-key .awp-ps-key-icon,
.awp-product-studio-mode .awp-ps-keys-palette-host .awp-ps-key-icon {
  width: var(--awp-studio-rail-icon-size, 22px);
  height: var(--awp-studio-rail-icon-size, 22px);
  display: block;
  flex: 0 0 auto;
  pointer-events: none;
}

/* Grid / kılavuz / zoom / undo: 3 nokta yerine doğrudan ray */
.awp-product-studio-mode .awp-ps-keys-more-host {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--awp-studio-rail-btn-gap);
  width: 100%;
  margin-top: 4px;
  padding-top: var(--awp-studio-rail-group-gap);
  border-top: 1px solid #e2e8f0;
  box-sizing: border-box;
}

.awp-product-studio-mode .awp-ps-keys-more-host .awp-studio-toolbar-group {
  padding: 0 0 var(--awp-studio-rail-group-gap) !important;
  margin: 0 !important;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
}

.awp-product-studio-mode .awp-ps-keys-more-host .awp-studio-toolbar-group:last-child {
  border-bottom: none;
  padding-bottom: 0 !important;
}

/* Kılavuz + palet: dışa aktarın hemen altı */
.awp-product-studio-mode .awp-ps-keys-palette-host {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--awp-studio-rail-btn-gap);
  width: 100%;
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
  box-sizing: border-box;
  overflow: visible;
}

.awp-product-studio-mode .awp-ps-keys-palette-host .awp-ps-guide-btn,
.awp-product-studio-mode .awp-ps-keys-palette-host .awp-ps-key-tool,
.awp-product-studio-mode .awp-ps-keys-more-host .awp-ps-guide-btn {
  width: var(--awp-studio-rail-btn-size) !important;
  height: var(--awp-studio-rail-btn-size) !important;
  min-width: var(--awp-studio-rail-btn-size) !important;
  min-height: var(--awp-studio-rail-btn-size) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #334155 !important;
  box-shadow: none !important;
  padding: 0 !important;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease !important;
}

.awp-product-studio-mode .awp-ps-keys-palette-host .awp-ps-guide-btn:hover,
.awp-product-studio-mode .awp-ps-keys-palette-host .awp-ps-key-tool:hover,
.awp-product-studio-mode .awp-ps-keys-more-host .awp-ps-guide-btn:hover,
.awp-product-studio-mode .awp-ps-keys-more-host .awp-studio-toolbar-icon:hover {
  background: #0f172a !important;
  color: #fff !important;
  border-color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22) !important;
}

.awp-product-studio-mode .awp-ps-keys-more-host .awp-studio-toolbar-icon {
  width: var(--awp-studio-rail-btn-size) !important;
  height: var(--awp-studio-rail-btn-size) !important;
  min-width: var(--awp-studio-rail-btn-size) !important;
  min-height: var(--awp-studio-rail-btn-size) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #334155 !important;
  box-sizing: border-box !important;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease !important;
}

.awp-product-studio-mode .awp-ps-keys-palette-host .awp-ps-guide-btn.is-active,
.awp-product-studio-mode .awp-ps-keys-palette-host .awp-ps-guide-btn[aria-expanded="true"],
.awp-product-studio-mode .awp-ps-keys-more-host .awp-ps-guide-btn.is-active,
.awp-product-studio-mode .awp-ps-keys-more-host .awp-ps-guide-btn[aria-pressed="true"] {
  background: #0f172a !important;
  color: #fff !important;
  border-color: #0f172a !important;
  box-shadow: none !important;
}

.awp-product-studio-mode .awp-ps-color-flyouts {
  position: absolute;
  top: 0 !important;
  bottom: 0 !important;
  right: calc(100% + var(--awp-studio-dock-gap, 0px)) !important;
  left: auto !important;
  width: var(--awp-studio-tools-rail-width);
  max-width: var(--awp-studio-tools-rail-width);
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  z-index: 70;
  pointer-events: none;
  overflow: visible !important;
}

.awp-product-studio-mode .awp-ps-color-palette-panel.is-open {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 100%;
  max-height: none !important;
  overflow: hidden;
  pointer-events: auto;
  padding: calc((var(--awp-studio-chrome-row-height) - var(--awp-studio-rail-btn-size)) / 2) 0 8px;
  border-radius: 8px 0 0 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-right: none;
  box-shadow: -4px 0 16px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
  gap: 6px;
}

.awp-product-studio-mode .awp-ps-color-palette-panel--page {
  display: none !important;
}

.awp-product-studio-mode .awp-ps-color-palette-head {
  width: 100%;
  padding: 0 6px;
  box-sizing: border-box;
  flex: 0 0 auto;
}

html.awp-studio-palette-sheet-open .awp-product-studio-mode .awp-ps-color-custom input[type="color"] {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
}

.awp-product-studio-mode .awp-ps-color-palette-title {
  display: none;
}

.awp-product-studio-mode .awp-ps-color-palette-targets {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 4px;
  width: 100%;
  align-items: center;
}

.awp-product-studio-mode .awp-ps-color-target {
  flex: 0 0 auto;
  width: var(--awp-studio-rail-btn-size);
  min-width: var(--awp-studio-rail-btn-size);
  min-height: var(--awp-studio-rail-btn-size);
  height: var(--awp-studio-rail-btn-size);
  align-self: center;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 0;
  line-height: 0;
}

.awp-product-studio-mode .awp-ps-color-target .awp-studio-icon {
  display: block;
  margin: 0;
  flex: 0 0 auto;
}

.awp-product-studio-mode .awp-ps-color-target.is-active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.awp-product-studio-mode .awp-ps-color-target.is-disabled,
.awp-product-studio-mode .awp-ps-color-target:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  filter: grayscale(0.85);
  pointer-events: none;
  background: #f1f5f9;
  color: #94a3b8;
}

.awp-product-studio-mode .awp-ps-color-palette-panel.is-palette-locked .awp-ps-color-swatch-rail,
.awp-product-studio-mode .awp-ps-color-palette-panel.is-palette-locked .awp-ps-color-custom,
.awp-product-studio-mode .awp-ps-color-gradients.is-palette-locked {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(0.7);
}

.awp-product-studio-mode .awp-ps-color-swatch-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  gap: 4px;
}

.awp-product-studio-mode .awp-ps-color-scroll {
  flex: 0 0 28px;
  width: var(--awp-studio-rail-btn-size);
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.awp-product-studio-mode .awp-ps-color-scroll:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.awp-product-studio-mode .awp-ps-color-palette-panel .awp-ps-color-swatches--cols[hidden],
.awp-product-studio-mode .awp-ps-color-gradients[hidden],
.awp-product-studio-mode .awp-ps-color-custom[hidden] {
  display: none !important;
}

.awp-product-studio-mode .awp-ps-color-palette-panel .awp-ps-color-swatches--cols {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  width: 100%;
  gap: 2px;
  padding: 0 4px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: y mandatory;
}

.awp-product-studio-mode .awp-ps-color-palette-panel .awp-ps-color-swatches--cols::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.awp-product-studio-mode .awp-ps-color-swatch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  width: 100%;
}

.awp-product-studio-mode .awp-ps-color-swatch {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border-radius: 2px;
  border-color: #cbd5e1;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.awp-product-studio-mode .awp-ps-color-gradients {
  position: absolute;
  top: 0;
  bottom: 0;
  right: calc(100% + var(--awp-studio-dock-gap, 0px));
  left: auto;
  width: var(--awp-studio-tools-rail-width);
  max-width: var(--awp-studio-tools-rail-width);
  min-width: 0;
  max-height: none;
  display: none;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: calc((var(--awp-studio-chrome-row-height) - var(--awp-studio-rail-btn-size)) / 2) 0 8px;
  border: 1px solid #e2e8f0;
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: #fff;
  box-shadow: -4px 0 16px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.awp-product-studio-mode .awp-ps-color-flyouts.is-gradient-open .awp-ps-color-gradients,
.awp-product-studio-mode .awp-ps-color-gradients.is-open {
  display: flex;
  pointer-events: auto;
}

.awp-product-studio-mode .awp-ps-color-gradients[hidden] {
  display: none !important;
}

.awp-product-studio-mode .awp-ps-color-gradients-label {
  display: none;
}

.awp-product-studio-mode .awp-ps-color-gradient-swatches {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  gap: 2px;
  padding: 0 4px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: y mandatory;
  max-height: none;
}

.awp-product-studio-mode .awp-ps-color-gradient-swatches::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.awp-product-studio-mode .awp-ps-color-swatch--gradient {
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
}

.awp-product-studio-mode .awp-ps-color-custom {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 4px 6px 0;
  color: #64748b;
}

.awp-product-studio-mode .awp-ps-color-custom span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.awp-product-studio-mode .awp-ps-color-custom input[type="color"] {
  width: var(--awp-studio-rail-btn-size);
  height: var(--awp-studio-rail-btn-size);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.awp-product-studio-mode .awp-ps-keys-palette-host .awp-ps-guide-settings-panel,
.awp-product-studio-mode .awp-studio-tools-rail > .awp-ps-guide-settings-panel {
  top: 0;
  right: calc(100% + var(--awp-studio-dock-gap, 0px));
  left: auto;
  bottom: auto;
  z-index: 80;
  width: 248px;
  max-width: min(248px, calc(100vw - 96px));
  max-height: min(72vh, 380px);
}

.awp-product-studio-mode .awp-ps-flyouts {
  position: absolute;
  top: 0;
  right: calc(100% + var(--awp-studio-dock-gap, 0px));
  bottom: 0;
  width: var(--awp-studio-tools-rail-width);
  pointer-events: none;
  z-index: 1;
}

.awp-product-studio-mode .awp-ps-flyout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--awp-studio-rail-btn-gap);
  padding: calc((var(--awp-studio-chrome-row-height) - var(--awp-studio-rail-btn-size)) / 2) 0 8px;
  border-radius: 8px 0 0 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-right: none;
  box-shadow: -4px 0 16px rgba(15, 23, 42, 0.08);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.5) transparent;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
  visibility: hidden;
  box-sizing: border-box;
}

.awp-product-studio-mode .awp-ps-flyout.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

.awp-product-studio-mode .awp-ps-flyout .awp-studio-toolbar-group {
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 0 0 var(--awp-studio-rail-group-gap) !important;
  margin: 0 0 var(--awp-studio-rail-group-gap) !important;
  width: 100% !important;
  gap: var(--awp-studio-rail-btn-gap) !important;
}

.awp-product-studio-mode .awp-ps-flyout .awp-studio-toolbar-group:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.awp-product-studio-mode .awp-ps-flyout .awp-ps-edit-tools,
.awp-product-studio-mode .awp-ps-flyout .awp-studio-align-toolbar {
  background: transparent !important;
  box-shadow: none !important;
}

.awp-product-studio-mode .awp-ps-flyout .awp-studio-toolbar-sep {
  width: calc(100% - 18px) !important;
  max-width: 28px !important;
  margin: 8px 0 !important;
}

.awp-product-studio-mode .awp-ps-flyout #awp-ps-tool-delete:hover:not(:disabled) {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.28);
}

.awp-product-studio-mode .awp-ps-flyout .awp-studio-toolbar-icon {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.awp-product-studio-mode .awp-ps-flyout .awp-studio-toolbar-icon:hover:not(:disabled) {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
}

.awp-product-studio-mode .awp-ps-keys-ready > .awp-studio-toolbar-group {
  display: none !important;
}

body.awp-ps-previewing .awp-ps-keys,
body.awp-ps-previewing .awp-ps-flyouts {
  display: none !important;
}

/* Tuval / panel / sağ ray — görünür kaydırma çubuğu */
.awp-product-studio-mode .awp-studio-tools-rail::-webkit-scrollbar,
.awp-product-studio-mode .awp-ps-flyout::-webkit-scrollbar,
.awp-product-studio-mode .awp-ps-color-swatches--cols::-webkit-scrollbar,
.awp-product-studio-mode .awp-ps-color-gradient-swatches::-webkit-scrollbar,
.awp-product-studio-mode .awp-studio-right-panel-content::-webkit-scrollbar,
.awp-product-studio-mode .awp-studio-cliparts-grid::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.awp-product-studio-mode .awp-studio-tools-rail::-webkit-scrollbar-track,
.awp-product-studio-mode .awp-ps-flyout::-webkit-scrollbar-track,
.awp-product-studio-mode .awp-ps-color-swatches--cols::-webkit-scrollbar-track,
.awp-product-studio-mode .awp-ps-color-gradient-swatches::-webkit-scrollbar-track,
.awp-product-studio-mode .awp-studio-right-panel-content::-webkit-scrollbar-track,
.awp-product-studio-mode .awp-studio-cliparts-grid::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 6px;
}

.awp-product-studio-mode .awp-studio-tools-rail::-webkit-scrollbar-thumb,
.awp-product-studio-mode .awp-ps-flyout::-webkit-scrollbar-thumb,
.awp-product-studio-mode .awp-ps-color-swatches--cols::-webkit-scrollbar-thumb,
.awp-product-studio-mode .awp-ps-color-gradient-swatches::-webkit-scrollbar-thumb,
.awp-product-studio-mode .awp-studio-right-panel-content::-webkit-scrollbar-thumb,
.awp-product-studio-mode .awp-studio-cliparts-grid::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.45);
  border-radius: 6px;
  border: 1px solid transparent;
}

/* Tuval: boş oluk gösterme; thumb yalnızca hover + gerçek overflow */
.awp-product-studio-mode .awp-studio-canvas-viewport::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.awp-product-studio-mode .awp-studio-canvas-viewport::-webkit-scrollbar-track {
  background: transparent;
}

.awp-product-studio-mode .awp-studio-canvas-viewport::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 6px;
}

.awp-product-studio-mode .awp-studio-canvas-viewport:hover {
  scrollbar-color: rgba(100, 116, 139, 0.45) transparent;
}

.awp-product-studio-mode .awp-studio-canvas-viewport:hover::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.45);
}

.awp-product-studio-mode .awp-studio-right-panel-content {
  scrollbar-width: thin;
  scrollbar-color: #64748b #e8ecf1;
}

/* Mobil + tablet: sağ/sol ray ve sırayla açılan ikon çubukları dar. */
@media (max-width: 1180px) {
  .awp-product-studio-mode.awp-studio-root,
  body.awp-ps-fullscreen-body .awp-studio-root.awp-product-studio-mode,
  .awp-product-studio-mode .awp-studio-canvas-area,
  body.awp-ps-fullscreen-body .awp-studio-canvas-area {
    --awp-studio-tools-rail-width: 44px;
    --awp-studio-rail-btn-size: 32px;
    --awp-studio-rail-btn-gap: 6px;
    --awp-studio-rail-group-gap: 8px;
    --awp-studio-rail-icon-size: 18px;
  }

  .awp-product-studio-mode .awp-studio-tools-rail .awp-studio-icon,
  .awp-product-studio-mode .awp-ps-key .awp-studio-icon,
  .awp-product-studio-mode .awp-ps-keys-palette-host .awp-studio-icon,
  .awp-product-studio-mode .awp-ps-keys-more-host .awp-studio-icon,
  .awp-product-studio-mode .awp-ps-flyout .awp-studio-icon,
  .awp-product-studio-mode .awp-ps-color-palette-panel .awp-studio-icon,
  .awp-product-studio-mode .awp-ps-key-icon {
    width: var(--awp-studio-rail-icon-size) !important;
    height: var(--awp-studio-rail-icon-size) !important;
  }

  .awp-product-studio-mode .awp-studio-left-toolbar .awp-studio-icon,
  .awp-product-studio-mode .awp-studio-left-toolbar .awp-studio-rail-icon,
  .awp-product-studio-mode .awp-studio-left-toolbar > .awp-studio-toolbar-icon svg {
    width: var(--awp-studio-rail-btn-icon-size, var(--awp-studio-rail-icon-size)) !important;
    height: var(--awp-studio-rail-btn-icon-size, var(--awp-studio-rail-icon-size)) !important;
  }

  .awp-product-studio-mode .awp-ps-key .dashicons,
  .awp-product-studio-mode .awp-ps-preview-toggle .dashicons,
  .awp-product-studio-mode .awp-studio-tools-rail .dashicons {
    font-size: var(--awp-studio-rail-icon-size) !important;
    width: var(--awp-studio-rail-icon-size) !important;
    height: var(--awp-studio-rail-icon-size) !important;
  }

  .awp-product-studio-mode .awp-studio-toolbar-group {
    padding: 4px 0 !important;
  }

  .awp-product-studio-mode .awp-ps-preview-toggle {
    width: var(--awp-studio-rail-btn-size) !important;
    min-width: var(--awp-studio-rail-btn-size) !important;
    height: var(--awp-studio-rail-btn-size) !important;
    min-height: var(--awp-studio-rail-btn-size) !important;
  }

  .awp-product-studio-mode .awp-studio-export .button,
  body.awp-ps-fullscreen-body .awp-studio-export .button {
    width: calc(var(--awp-studio-tools-rail-width) - 6px) !important;
    min-width: 0 !important;
    min-height: var(--awp-studio-rail-btn-size) !important;
    padding: 4px 1px !important;
    font-size: 9px !important;
  }

  .awp-product-studio-mode .awp-ps-zoom-stack .awp-studio-range-well--zoom {
    width: 48px !important;
    min-width: 48px !important;
    margin: 16px -16px !important;
  }

  .awp-product-studio-mode .awp-ps-zoom-stack .awp-studio-zoom-display {
    font-size: 9px !important;
  }

  .awp-product-studio-mode .awp-ps-flyout,
  .awp-product-studio-mode .awp-ps-color-palette-panel.is-open {
    width: var(--awp-studio-tools-rail-width) !important;
    max-width: var(--awp-studio-tools-rail-width) !important;
  }

  .awp-product-studio-mode .awp-ps-color-target {
    width: var(--awp-studio-rail-btn-size) !important;
    min-width: var(--awp-studio-rail-btn-size) !important;
    height: var(--awp-studio-rail-btn-size) !important;
    min-height: var(--awp-studio-rail-btn-size) !important;
    border-radius: 6px !important;
  }

  .awp-product-studio-mode .awp-studio-selection-float-toolbar .awp-studio-toolbar-icon {
    width: var(--awp-studio-rail-btn-size) !important;
    height: var(--awp-studio-rail-btn-size) !important;
    min-width: var(--awp-studio-rail-btn-size) !important;
    min-height: var(--awp-studio-rail-btn-size) !important;
  }
}

/* —— Mobil tuval: chrome tek satır, ikon ray, alt sheet, max stage —— */
@media (max-width: 768px) {
  .awp-product-studio-mode.awp-studio-root,
  body.awp-ps-fullscreen-body .awp-studio-root.awp-product-studio-mode {
    --awp-studio-chrome-row-height: 40px;
    --awp-studio-tools-rail-width: 36px;
    --awp-studio-rail-btn-size: 28px;
    --awp-studio-rail-btn-gap: 2px;
    --awp-studio-rail-icon-size: 16px;
    --awp-studio-left-rail-width: 40px;
  }

  .awp-ps-fs-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    height: auto;
    padding: 6px 10px;
    padding-top: max(6px, env(safe-area-inset-top, 0px));
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
  }

  .awp-ps-fs-chrome-left {
    flex: 0 0 auto;
    min-width: 0;
    height: auto;
    border-left: none;
    margin-left: 0;
    padding-right: var(--awp-ps-chrome-gap);
    padding-left: 0;
  }

  .awp-ps-fs-chrome-right {
    flex: 0 0 auto;
    min-width: 0;
    height: auto;
    border-left: var(--awp-ps-chrome-line);
    margin-left: 0;
    padding-left: var(--awp-ps-chrome-gap);
    padding-right: 0;
  }

  .awp-ps-fs-chrome-center {
    display: flex !important;
    flex: 1 1 auto;
    border-left: var(--awp-ps-chrome-line);
    margin-left: 0;
    padding: 0 var(--awp-ps-chrome-gap) 0 0;
    height: auto;
    overflow: visible;
    justify-content: flex-end;
    align-items: center;
  }

  .awp-ps-fs-chrome-alert-host {
    display: none !important;
  }

  .awp-ps-fs-logo {
    height: 28px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
  }

  .awp-ps-fs-brand {
    font-size: 13px;
  }

  .awp-ps-fs-ghost {
    height: 36px;
    padding: 0 8px;
    gap: 0;
    border-radius: 3px !important;
  }

  .awp-ps-fs-ghost-label {
    display: none;
  }

  .awp-ps-fs-ghost--primary .awp-ps-fs-ghost-label {
    display: inline;
    font-size: 12px;
    font-weight: 700;
  }

  .awp-ps-fs-ghost--primary {
    padding: 0 10px;
  }

  /* Sol ray: yalnızca ikon */
  .awp-product-studio-mode .awp-studio-left-toolbar {
    width: var(--awp-studio-left-rail-width, 40px) !important;
    min-width: var(--awp-studio-left-rail-width, 40px) !important;
    flex: 0 0 var(--awp-studio-left-rail-width, 40px) !important;
    padding: 3px !important;
    gap: 2px !important;
  }

  .awp-product-studio-mode .awp-studio-left-toolbar > .awp-studio-toolbar-icon {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    overflow: visible !important;
  }

  .awp-product-studio-mode .awp-studio-left-toolbar .awp-studio-rail-label {
    display: none !important;
  }

  .awp-product-studio-mode .awp-studio-canvas-area,
  body.awp-ps-fullscreen-body .awp-studio-canvas-area {
    --awp-studio-tools-rail-width: 36px;
    --awp-studio-rail-btn-size: 28px;
    --awp-studio-rail-icon-size: 16px;
    min-height: 0 !important;
    padding: 0 !important;
  }

  .awp-product-studio-mode .awp-studio-toolbar,
  .awp-product-studio-mode .awp-studio-tools-rail,
  body.awp-ps-fullscreen-body .awp-studio-toolbar {
    width: var(--awp-studio-tools-rail-width) !important;
    min-width: var(--awp-studio-tools-rail-width) !important;
    max-width: var(--awp-studio-tools-rail-width) !important;
  }

  .awp-product-studio-mode .awp-studio-left-toolbar .awp-studio-toolbar-icon,
  .awp-product-studio-mode .awp-studio-tools-rail .awp-studio-toolbar-icon,
  .awp-product-studio-mode .awp-studio-tools-rail .awp-ps-guide-btn,
  .awp-product-studio-mode .awp-ps-key {
    width: var(--awp-studio-rail-btn-size) !important;
    height: var(--awp-studio-rail-btn-size) !important;
    min-width: var(--awp-studio-rail-btn-size) !important;
    min-height: var(--awp-studio-rail-btn-size) !important;
    border-radius: 6px !important;
  }

  .awp-product-studio-mode .awp-studio-canvas-viewport,
  body.awp-ps-fullscreen-body .awp-studio-canvas-viewport {
    min-height: 0 !important;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
  }

  /* Sayfa çubuğu: etiketler görünür kalır, yatay kayar */
  .awp-product-studio-mode .awp-studio-device-nav,
  body.awp-ps-fullscreen-body .awp-studio-device-nav {
    grid-column: 1 / -1 !important;
    gap: 8px !important;
    padding: 6px 8px !important;
    padding-right: calc(84px + var(--awp-panel-overlap-right, 0px)) !important;
    padding-bottom: max(6px, env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: auto;
    overflow-y: hidden;
    background: #e8edf4 !important;
    border: none !important;
    border-top: 1px solid #e2e8f0 !important;
    scrollbar-width: none;
  }

  .awp-product-studio-mode .awp-studio-device-nav.awp-studio-device-nav--pages,
  body.awp-ps-fullscreen-body .awp-studio-device-nav.awp-studio-device-nav--pages {
    display: grid !important;
    grid-template-columns: max-content auto max-content;
    justify-content: space-between !important;
    width: max-content !important;
    min-width: 100%;
  }

  .awp-product-studio-mode .awp-studio-device-nav::-webkit-scrollbar {
    display: none;
  }

  .awp-product-studio-mode .awp-studio-device-nav--pages .awp-studio-device-nav-btn:not(.awp-studio-device-nav-btn--ask) .awp-studio-device-nav-label {
    display: inline !important;
  }

  .awp-product-studio-mode .awp-studio-device-nav--pages .awp-studio-device-nav-btn:not(.awp-studio-device-nav-btn--ask) {
    height: 34px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 3px !important;
    box-shadow: none !important;
  }

  .awp-product-studio-mode .awp-studio-device-nav-btn--add {
    background: #fff !important;
    border-color: #e5e7eb !important;
    color: #4f46e5 !important;
  }

  .awp-product-studio-mode .awp-studio-device-nav-btn--add .awp-studio-nav-ico {
    color: #4f46e5 !important;
  }

  .awp-product-studio-mode .awp-studio-device-nav-btn--ask.awp-studio-ask-ai-btn {
    position: fixed !important;
    top: auto !important;
    right: calc(
      var(--awp-studio-tools-rail-width, 36px) + 4px +
        var(--awp-panel-overlap-right, 0px)
    ) !important;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    left: auto !important;
    background: transparent !important;
    border: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 2px !important;
    margin: 0 !important;
    z-index: 2147483640 !important;
  }

  .awp-product-studio-mode .awp-studio-ask-ai-btn__img {
    height: 44px;
    max-height: 48px;
  }

  .awp-product-studio-mode .awp-studio-ask-ai-btn__halo {
    width: 32px;
    height: 32px;
    margin-left: -16px;
    bottom: 4px;
  }

  .awp-product-studio-mode .awp-studio-ask-ai-btn__pulse {
    width: 28px;
    height: 28px;
    margin-left: -14px;
    bottom: 8px;
  }

  /* Sağ panel: alttan sheet — tuval üstte kalır */
  body.awp-ps-fullscreen-body .awp-studio-right-panel-wrap,
  .awp-product-studio-mode .awp-studio-right-panel-wrap {
    position: fixed !important;
    top: auto !important;
    right: 0 !important;
    left: var(--awp-studio-left-rail-width, 40px) !important;
    bottom: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: min(62dvh, 520px) !important;
    max-height: calc(100dvh - 96px) !important;
    z-index: 80 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: none !important;
    border-top: 1px solid #e2e8f0 !important;
    border-radius: 6px 6px 0 0 !important;
    box-shadow: none !important;
    transform: translateY(0);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
  }

  body.awp-ps-fullscreen-body .awp-studio-right-panel-wrap.awp-studio-right-panel--closed,
  .awp-product-studio-mode .awp-studio-right-panel-wrap.awp-studio-right-panel--closed {
    transform: translateY(105%) !important;
    pointer-events: none;
    box-shadow: none !important;
  }

  .awp-product-studio-mode .awp-studio-panel-collapse-btn {
    display: none !important;
  }

  .awp-product-studio-mode .awp-studio-right-panel,
  .awp-product-studio-mode .awp-studio-right-panel-wrap .awp-studio-right-panel {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    border: none !important;
    border-radius: 6px 6px 0 0 !important;
    box-shadow: none !important;
  }

  .awp-product-studio-mode .awp-studio-right-panel-header {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-radius: 6px 6px 0 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
  }

  .awp-product-studio-mode .awp-studio-right-panel-header::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 36px;
    height: 3px;
    margin-left: -18px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.45);
    pointer-events: none;
  }

  .awp-product-studio-mode .awp-studio-right-panel-title,
  .awp-product-studio-mode .awp-studio-right-panel-close {
    position: relative;
    z-index: 1;
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .awp-product-studio-mode .awp-studio-right-panel-content {
    touch-action: pan-y;
    flex: 1 1 auto;
    min-height: 0;
  }

  .awp-product-studio-mode .awp-ps-flyout,
  .awp-product-studio-mode .awp-ps-color-palette-panel.is-open {
    position: fixed !important;
    left: auto !important;
    right: 4px !important;
    top: calc(max(48px, var(--awp-ps-chrome-bottom, 48px)) + 4px) !important;
    bottom: calc(48px + env(safe-area-inset-bottom, 0px)) !important;
    width: var(--awp-studio-tools-rail-width) !important;
    max-width: var(--awp-studio-tools-rail-width) !important;
    max-height: none !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    box-shadow: -4px 0 16px rgba(15, 23, 42, 0.12) !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 6px 4px !important;
    transform: none !important;
  }

  .awp-product-studio-mode .awp-ps-flyout.is-open {
    transform: none !important;
  }

  .awp-product-studio-mode .awp-ps-flyouts {
    position: static !important;
    width: 0 !important;
    pointer-events: none;
  }

  .awp-product-studio-mode .awp-ps-flyout[data-ps-flyout="element"] {
    display: none !important;
  }

  .awp-product-studio-mode .awp-studio-selection-float-toolbar {
    border-radius: 6px !important;
    box-shadow: none !important;
    padding: 4px 6px;
    gap: 4px;
  }

  .awp-product-studio-mode .awp-studio-selection-float-toolbar .awp-studio-toolbar-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #334155 !important;
    box-sizing: border-box !important;
  }

  .awp-product-studio-mode .awp-studio-selection-float-toolbar .awp-studio-toolbar-icon:hover:not(.awp-studio-float-color):not(:disabled),
  .awp-product-studio-mode .awp-studio-selection-float-toolbar .awp-studio-toolbar-icon:focus-visible:not(.awp-studio-float-color):not(:disabled) {
    background: #0f172a !important;
    color: #fff !important;
    border-color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22) !important;
  }

  .awp-product-studio-mode .awp-studio-selection-float-toolbar .awp-studio-float-color {
    background: var(--awp-swatch-bg, #111827) !important;
    color: var(--awp-swatch-fg, #ffffff) !important;
  }

  .awp-product-studio-mode .awp-studio-selection-tools-modal,
  .awp-product-studio-mode .awp-studio-selection-tools-flyout,
  .awp-studio-selection-tools-modal,
  .awp-studio-selection-tools-flyout {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
  }

  .awp-product-studio-mode .awp-ps-zoom-stack {
    gap: 2px;
  }

  .awp-product-studio-mode .awp-ps-zoom-stack .awp-studio-toolbar-icon,
  .awp-product-studio-mode .awp-ps-zoom-stack #awp-studio-zoom-reset {
    min-width: var(--awp-studio-rail-btn-size) !important;
    min-height: var(--awp-studio-rail-btn-size) !important;
    width: var(--awp-studio-rail-btn-size) !important;
    height: var(--awp-studio-rail-btn-size) !important;
  }

  html.awp-studio-palette-sheet-open .awp-product-studio-mode .awp-ps-color-flyouts,
  html.awp-studio-palette-sheet-open .awp-ps-color-flyouts.is-palette-open {
    position: fixed !important;
    top: auto !important;
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    z-index: 100080 !important;
    pointer-events: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  html.awp-studio-palette-sheet-open .awp-product-studio-mode .awp-ps-color-palette-panel.is-open,
  html.awp-studio-palette-sheet-open .awp-product-studio-mode .awp-ps-flyout.awp-ps-color-palette-panel.is-open {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: min(68dvh, 560px) !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    transform: none !important;
  }

  html.awp-studio-palette-sheet-open .awp-product-studio-mode .awp-ps-color-target {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  html.awp-studio-palette-sheet-open .awp-product-studio-mode .awp-ps-color-gradients.is-open,
  html.awp-studio-palette-sheet-open .awp-product-studio-mode .awp-ps-color-flyouts.is-gradient-open .awp-ps-color-gradients {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
  }
}

/* Tablet / HP x2 sınıfı: geniş alt sheet yerine kompakt yan panel. */
@media (min-width: 769px) and (max-width: 1180px) {
  .awp-product-studio-mode.awp-studio-root,
  body.awp-ps-fullscreen-body .awp-studio-root.awp-product-studio-mode,
  .awp-product-studio-mode .awp-studio-canvas-area,
  body.awp-ps-fullscreen-body .awp-studio-canvas-area {
    --awp-studio-tools-rail-width: 44px;
    --awp-studio-rail-btn-size: 32px;
    --awp-studio-rail-btn-gap: 6px;
    --awp-studio-rail-icon-size: 18px;
  }

  .awp-product-studio-mode.awp-studio-root:not([data-ui-density="compact"]),
  body.awp-ps-fullscreen-body .awp-studio-root.awp-product-studio-mode:not([data-ui-density="compact"]) {
    --awp-studio-left-rail-width: 52px;
  }

  .awp-product-studio-mode .awp-studio-left-toolbar {
    width: var(--awp-studio-left-rail-width) !important;
    min-width: var(--awp-studio-left-rail-width) !important;
    flex: 0 0 var(--awp-studio-left-rail-width) !important;
    padding: 4px 3px !important;
    gap: 4px !important;
  }

  .awp-product-studio-mode .awp-studio-left-toolbar > .awp-studio-toolbar-icon {
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 !important;
  }

  .awp-product-studio-mode .awp-studio-left-toolbar .awp-studio-rail-label {
    font-size: 8px !important;
    flex: 0 0 1.2em;
    height: 1.2em;
    max-height: 1.2em;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .awp-product-studio-mode .awp-studio-right-panel-wrap {
    width: auto !important;
  }

  .awp-product-studio-mode .awp-studio-right-panel {
    width: min(300px, 34vw) !important;
  }

  .awp-product-studio-mode .awp-studio-toolbar,
  .awp-product-studio-mode .awp-studio-tools-rail,
  body.awp-ps-fullscreen-body .awp-studio-toolbar {
    width: var(--awp-studio-tools-rail-width) !important;
    min-width: var(--awp-studio-tools-rail-width) !important;
    max-width: var(--awp-studio-tools-rail-width) !important;
  }

  .awp-product-studio-mode .awp-studio-tools-rail .awp-studio-toolbar-icon,
  .awp-product-studio-mode .awp-studio-tools-rail .awp-ps-guide-btn,
  .awp-product-studio-mode .awp-ps-key {
    width: var(--awp-studio-rail-btn-size) !important;
    height: var(--awp-studio-rail-btn-size) !important;
    min-width: var(--awp-studio-rail-btn-size) !important;
    min-height: var(--awp-studio-rail-btn-size) !important;
    border-radius: 6px !important;
  }
}

/* Legion / 1366–1599 dizüstü sınıfı: paneller kompakt, tuval öncelikli. */
@media (min-width: 1181px) and (max-width: 1599px) {
  .awp-product-studio-mode.awp-studio-root:not([data-ui-density="compact"]),
  body.awp-ps-fullscreen-body .awp-studio-root.awp-product-studio-mode:not([data-ui-density="compact"]) {
    --awp-studio-left-rail-width: 76px;
  }

  .awp-product-studio-mode .awp-studio-left-toolbar {
    width: var(--awp-studio-left-rail-width) !important;
    min-width: var(--awp-studio-left-rail-width) !important;
    flex: 0 0 var(--awp-studio-left-rail-width) !important;
  }

  .awp-product-studio-mode .awp-studio-right-panel-wrap {
    width: auto !important;
  }

  .awp-product-studio-mode .awp-studio-right-panel {
    width: min(320px, 25vw) !important;
  }
}

@media (pointer: coarse) and (min-width: 1181px) {
  .awp-product-studio-mode .awp-studio-left-toolbar .awp-studio-toolbar-icon,
  .awp-product-studio-mode .awp-studio-toolbar .awp-studio-toolbar-icon,
  .awp-product-studio-mode .awp-ps-guide-btn,
  .awp-product-studio-mode .awp-ps-key {
    min-width: 40px;
    min-height: 40px;
  }

  .awp-product-studio-mode .awp-studio-selection-float-toolbar .awp-studio-toolbar-icon {
    min-width: 40px !important;
    min-height: 40px !important;
  }

  .awp-product-studio-mode .awp-studio-selection-float-toolbar .awp-studio-toolbar-icon.awp-studio-rotate-preset {
    width: auto !important;
    min-width: 40px !important;
    padding: 0 6px !important;
  }
}

.awp-product-studio-mode .awp-studio-selection-float-toolbar .awp-studio-toolbar-icon.awp-studio-rotate-preset {
  width: auto !important;
  min-width: 36px !important;
  padding: 0 6px !important;
}

/* Kişiselleştirme — Bilgilerinizi doldurun */
.awp-studio-fill-fields {
  position: absolute;
  top: calc(100% + 8px);
  left: 12px;
  z-index: 40;
  width: min(320px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.awp-studio-fill-fields--portal {
  position: fixed !important;
  top: auto;
  left: auto;
  z-index: 100070 !important;
  width: min(320px, calc(100vw - 24px));
  max-height: min(70dvh, 480px);
  overflow: auto;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}

.awp-studio-fill-fields[hidden] {
  display: none !important;
}

.awp-studio-toolbar {
  position: relative;
}

.awp-studio-fill-fields__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.awp-studio-fill-fields__head strong {
  font-size: 13px;
  color: #0f172a;
}

.awp-studio-fill-fields__close {
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.awp-studio-fill-fields__hint,
.awp-studio-fill-fields__empty {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #64748b;
}

.awp-studio-fill-fields__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
}

.awp-studio-fill-fields__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.awp-studio-fill-fields__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.awp-studio-fill-fields__input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  font-size: 13px;
}

.awp-studio-fill-fields__actions {
  display: flex;
  justify-content: flex-end;
}

#awp-ps-tool-fill-fields.is-active {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}


