:root {
  --text: #07101f;
  --muted: #46506a;
  --border: #d6dce5;
  --field: #f3f6fa;
  --blue: #009ee2;
  --green: #05aa49;
  --green-dark: #008a3b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: #e9edf2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.page {
  display: flex;
  flex-direction: column;
  width: min(100%, 690px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 36px 32px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(10, 20, 30, 0.16);
}

.product {
  display: contents;
  text-align: center;
}

.landing-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.landing-top a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

h1 {
  margin: 0 0 22px;
  color: #2a2a2d;
  font-size: 40px;
  line-height: 1.1;
}

h1 span {
  color: #00920e;
}

.short-description {
  width: min(100%, 432px);
  margin: -10px auto 18px;
  color: var(--muted);
}

.product-image {
  width: 100%;
  max-width: 545px;
  margin: 0 auto;
}

.product-image-block {
  display: flex;
  justify-content: center;
  margin: 0 auto 14px;
}

.product-image-frame {
  width: 82%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fff;
}

.product-image-frame.is-fill {
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  overflow: visible;
}

.product-image-frame .product-image {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  object-position: center;
}

.product-image-frame.is-fill .product-image {
  height: auto;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  width: min(100%, 432px);
  margin: 0 auto 24px;
}

.product-thumbs button {
  aspect-ratio: 1;
  padding: 3px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.product-thumbs button.active {
  border-color: var(--blue);
}

.product-thumbs img {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  object-fit: cover;
}

.order-form {
  display: contents;
  width: min(100%, 432px);
  margin: 0 auto;
}

.order-form > .form-section,
.order-form > .summary-box,
.order-form > .submit-button,
.order-form > .recaptcha {
  width: min(100%, 432px);
  margin-left: auto;
  margin-right: auto;
}

.form-section {
  margin-top: 26px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-title::after {
  flex: 1;
  height: 2px;
  background: var(--border);
  content: "";
}

h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.package-option,
input,
select,
textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--field);
  color: var(--text);
  font: inherit;
}

.package-option {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 15px;
}

.package-options {
  display: grid;
  gap: 10px;
}

.package-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: #238cc5;
}

.package-option img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 4px;
  object-fit: cover;
}

.package-option span {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.package-option b {
  margin-left: auto;
  white-space: nowrap;
  font-size: 14px;
}

.package-option small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.package-option.with-detail {
  align-items: flex-start;
}

.benefit-list {
  display: grid;
  gap: 10px;
}

.benefit-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--text);
  font-size: 16px;
  line-height: 1.32;
}

.benefit-item span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.benefit-item p {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}

.faq-item summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #0f1f35;
  background: #f4f7fb;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary b {
  color: #64748b;
  font-size: 13px;
  transition: transform 0.18s ease;
}

.faq-item[open] summary b {
  transform: rotate(180deg);
}

.faq-item > div {
  padding: 14px;
  color: #25364d;
  line-height: 1.45;
}

.testimonial-list {
  display: grid;
  gap: 10px;
}

.testimonial-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #eef9fd;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: #9aa5b2;
  font-size: 18px;
  line-height: 1;
}

.testimonial-stars span.active {
  color: #f2a900;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-person img,
.testimonial-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: #d6dde6;
  color: #7b8794;
  object-fit: cover;
  font-size: 11px;
  font-weight: 800;
}

.testimonial-person strong,
.testimonial-person small {
  display: block;
}

.testimonial-person small {
  margin-top: 2px;
  color: #617089;
  font-size: 12px;
}

.testimonial-card p {
  margin: 0;
  color: #25364d;
  line-height: 1.45;
}

.checkout-field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: #263a55;
  font-weight: 800;
}

.checkout-field input {
  margin-bottom: 0;
  font-weight: 400;
}

.checkout-field.label-hidden {
  gap: 0;
}

.checkout-field.label-hidden span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.location-field {
  display: grid;
}

.location-field[hidden] {
  display: none;
}

input,
select,
textarea {
  display: block;
  min-height: 46px;
  margin-bottom: 16px;
  padding: 12px 13px;
  outline: none;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
}

.phone-field {
  display: grid;
  grid-template-columns: 96px 1fr;
  margin-bottom: 16px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--field);
}

.phone-field select,
.phone-field input {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.phone-field select {
  border-right: 1px solid var(--border);
}

.empty-note {
  margin: 0;
  color: var(--muted);
}

.payment-toggle {
  display: grid;
  width: 100%;
  min-height: 52px;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f4f7fb;
  color: #5f6b7a;
  font-weight: 800;
  cursor: pointer;
}

.payment-method-list {
  display: grid;
  gap: 10px;
}

.shipping-method-list {
  display: grid;
  gap: 10px;
}

.shipping-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f4f7fb;
}

.shipping-option.has-logo {
  grid-template-columns: auto auto 1fr auto;
}

.shipping-option input {
  min-height: auto;
  margin: 0;
}

.shipping-option strong,
.shipping-option small {
  display: block;
}

.shipping-option em {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  color: #047857;
  background: #d1fae5;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.shipping-option small {
  margin-top: 4px;
  color: var(--muted);
}

.courier-logo {
  display: inline-flex;
  width: 58px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.courier-logo.jne {
  background: linear-gradient(135deg, #26377d 0 68%, #e31b23 68% 100%);
}

.courier-logo.jt {
  background: #ed1c24;
}

.courier-logo.sap {
  background: #f26b21;
}

.courier-logo.lion {
  background: #ed1c24;
}

.courier-logo.ninja {
  background: #f37021;
}

.courier-logo.anteraja {
  background: #f15a24;
}

.courier-logo.idexpress {
  background: #132b7c;
}

.courier-logo.sicepat {
  background: #e31b23;
}

.courier-logo.pos {
  background: #ff6600;
}

.courier-logo.default {
  background: #64748b;
}

.courier-logo-img {
  width: 66px;
  height: 34px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.courier-logo-img[src*="courier-pos"],
.courier-toggle-row img[src*="courier-pos"] {
  object-fit: contain;
  padding: 2px;
  background: #ffffff;
}

.payment-source-list {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d5dde8;
  border-radius: 4px;
  background: #f8fafc;
}

.payment-source-list > strong {
  color: #24364f;
  font-size: 13px;
}

.payment-source-list p {
  margin: 0;
  color: #7a8494;
  font-size: 13px;
}

.courier-source-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.courier-source-list > strong {
  color: #24364f;
  font-size: 13px;
}

.courier-toggle-row {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  background: #f1f5f9;
  font-weight: 800;
}

.courier-toggle-row > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.courier-toggle-row img {
  width: 38px;
  height: 20px;
  object-fit: contain;
  border-radius: 3px;
  background: #fff;
}

.courier-toggle-row .courier-switch {
  flex: 0 0 auto;
}

.payment-method-list.compact {
  gap: 3px;
}

.payment-method-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f4f7fb;
}

.payment-method-option.has-logo {
  grid-template-columns: auto auto 1fr;
}

.payment-method-logo {
  width: 54px;
  max-height: 34px;
  object-fit: contain;
}

.fake-radio {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #2c9fd6;
  border-radius: 50%;
}

.payment-method-option input {
  min-height: auto;
  margin: 0;
}

.payment-method-option strong,
.payment-method-option small {
  display: block;
}

.payment-method-option small {
  margin-top: 4px;
  color: var(--muted);
}

.payment-proof-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #f8d49b;
  border-radius: 4px;
  background: #fff7e8;
}

.payment-proof-box[hidden] {
  display: none;
}

.payment-proof-box p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
}

.payment-proof-warning {
  display: block;
  margin-top: 6px;
  color: #dc2626;
  font-weight: 800;
}

.proof-upload {
  display: grid;
  gap: 8px;
  color: #24364f;
  font-weight: 800;
}

.proof-upload input {
  min-height: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}

.proof-preview {
  max-width: 100%;
  max-height: 160px;
  border: 1px solid var(--border);
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
}

.summary-box {
  margin-top: 28px;
  padding: 17px 16px 14px;
  border: 2px solid var(--blue);
  border-radius: 4px;
}

.summary-title {
  margin: 0 0 12px;
  text-decoration: underline;
}

.summary-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 0 0 13px;
}

.summary-row strong {
  white-space: nowrap;
}

.summary-row.total {
  margin-top: 2px;
  padding: 13px 0 0;
  border-top: 1px solid #d8dde5;
  font-weight: 700;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 58px;
  margin-top: 24px;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
}

.submit-button[hidden] {
  display: none !important;
}

.submit-button.submit-small {
  min-height: 44px;
  font-size: 14px;
  padding: 8px 16px;
}

.submit-button.submit-normal {
  min-height: 52px;
  font-size: 15px;
  padding: 10px 18px;
}

.submit-button.submit-large {
  min-height: 58px;
  font-size: 16px;
  padding: 12px 24px;
}

.submit-button:active {
  background: var(--green-dark);
}

.wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 1em;
  line-height: 1;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 1.25em;
  vertical-align: middle;
}

.wa-icon:has(.submit-wa-img) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
}

.submit-wa-img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

[data-submit-label] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.submit-button .submit-wa-img {
  filter: brightness(0) invert(1);
}

.recaptcha {
  margin: 14px 0 0;
  color: #536178;
  font-size: 9px;
}

.recaptcha a {
  color: #0071bc;
  text-decoration: none;
}

.bottom-line {
  width: min(100%, 432px);
  height: 3px;
  margin: 34px auto 0;
  background: #333;
}

@media (max-width: 520px) {
  body {
    background: #fff;
  }

  .page {
    padding: 28px 14px 28px;
    box-shadow: none;
  }

  h1 {
    font-size: 36px;
  }

  .order-form,
  .bottom-line {
    width: 100%;
  }

  .phone-field {
    grid-template-columns: 86px 1fr;
  }

  .summary-row {
    gap: 10px;
  }
}

.admin-body {
  display: grid;
  grid-template-columns: 252px 1fr;
  min-height: 100vh;
  background: #f1f5f9;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 20px;
  border-right: 1px solid #d8e0ea;
  background: #fff;
}

.store-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.store-logo {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a {
  padding: 12px 14px;
  border-radius: 4px;
  color: #34445c;
  font-weight: 700;
  text-decoration: none;
}

.side-nav a.active,
.side-nav a:hover {
  color: #fff;
  background: #2bb6e8;
}

.create-menu {
  position: relative;
}

.landing-menu {
  position: absolute;
  top: 44px;
  left: 0;
  z-index: 3;
  display: grid;
  width: 220px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(10, 20, 30, 0.14);
}

.landing-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: #5c6878;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.landing-menu button:not(:disabled):hover {
  color: #008bd2;
  background: #f5f9fd;
}

.landing-menu span {
  padding: 2px 8px;
  border-radius: 4px;
  color: #0698d1;
  background: #e1f5ff;
  font-size: 11px;
}

.admin-shell {
  padding: 22px 34px 60px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d8e0ea;
}

.admin-header.compact {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-header h1 {
  margin: 0;
  font-size: 20px;
}

.admin-header p {
  margin: 4px 0 0;
  color: #6b7484;
}

.admin-button,
.ghost-button {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
}

.admin-button {
  padding: 0 18px;
  color: #fff;
  background: #0698d1;
}

.ghost-button {
  padding: 0 14px;
  color: #34445c;
  background: #edf2f7;
}

.product-table-panel,
.create-panel {
  max-width: 980px;
  border-radius: 4px;
  background: #fff;
}

.product-table-panel {
  padding: 18px 16px;
}

.table-toolbar,
.table-head,
.product-row {
  display: grid;
  grid-template-columns: 1.5fr 0.55fr 0.65fr 0.8fr 0.55fr;
  gap: 18px;
  align-items: center;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.table-toolbar h2 {
  font-size: 16px;
}

.table-toolbar span,
.table-head {
  color: #7a8494;
  font-size: 12px;
}

.table-head {
  padding: 0 14px 10px;
}

.product-row {
  min-height: 88px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 4px;
  background: #f8fafc;
}

.landing-head,
.landing-row {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.45fr 0.55fr 0.55fr;
  gap: 18px;
  align-items: center;
}

.store-head,
.store-row {
  display: grid;
  grid-template-columns: 1.2fr 0.75fr 0.75fr 1fr 0.45fr 0.8fr 0.5fr;
  gap: 18px;
  align-items: center;
}

.table-head,
.product-row {
  grid-template-columns: 1.3fr 0.7fr 0.55fr 0.55fr 0.8fr 0.75fr;
}

.store-head {
  padding: 0 14px 10px;
  color: #7a8494;
  font-size: 12px;
}

.store-row {
  min-height: 82px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 4px;
  background: #f8fafc;
}

.store-row strong {
  color: #008bd2;
}

.store-row small {
  display: block;
  margin-top: 6px;
  color: #7a8494;
}

.order-table-wrap {
  overflow-x: auto;
}

.order-head,
.order-row {
  display: grid;
  min-width: 1180px;
  grid-template-columns: 1fr 0.9fr 1.15fr 0.65fr 0.8fr 0.75fr 0.75fr 0.65fr 0.7fr;
  gap: 18px;
  align-items: center;
}

.order-head {
  padding: 0 14px 10px;
  color: #7a8494;
  font-size: 12px;
}

.order-row {
  min-height: 82px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 4px;
  background: #f8fafc;
}

.order-row strong {
  color: #008bd2;
}

.order-row small {
  display: block;
  margin-top: 5px;
  color: #5d6878;
}

.order-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 4px;
  background: #fff4d6;
  color: #b7791f;
  font-size: 12px;
  font-weight: 800;
}

.order-badge.success {
  color: #047857;
  background: #d1fae5;
}

.order-badge.danger {
  color: #b42318;
  background: #fee2e2;
}

.order-badge.neutral {
  color: #475467;
  background: #e7ebf0;
}

.order-status-select {
  width: fit-content;
  min-height: 32px;
  padding: 0 28px 0 9px;
  border: 0;
  border-radius: 4px;
  color: #b7791f;
  background: #fff4d6;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.order-status-select.success {
  color: #047857;
  background: #d1fae5;
}

.order-status-select.danger {
  color: #b42318;
  background: #fee2e2;
}

.order-status-select.neutral {
  color: #475467;
  background: #e7ebf0;
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
}

.order-modal.is-hidden {
  display: none;
}

.order-modal-dialog {
  width: min(860px, 100%);
  max-height: 86vh;
  overflow: auto;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
}

.order-modal-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.order-modal-dialog header button {
  border: 0;
  background: transparent;
  color: #008bd2;
  font-weight: 800;
  cursor: pointer;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
}

.order-operational {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.order-operational label {
  display: grid;
  gap: 7px;
  color: #24364f;
  font-size: 13px;
  font-weight: 800;
}

.order-operational input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.order-operational select {
  font: inherit;
}

.order-operational-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-operational-actions button,
.order-wa-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: #09a7e8;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.order-wa-button {
  background: #0bb34f;
}

.order-wa-button.is-disabled {
  background: #aeb8c5;
  cursor: not-allowed;
}

.order-operational small {
  color: #64748b;
}

.order-detail-field {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f8fafc;
}

.order-detail-field span,
.order-proof small {
  color: #7a8494;
  font-size: 12px;
}

.order-proof {
  display: grid;
  gap: 10px;
  padding: 0 20px 20px;
}

.order-proof img {
  max-width: 100%;
  max-height: 420px;
  border: 1px solid var(--border);
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
}

.landing-head {
  padding: 0 14px 10px;
  color: #7a8494;
  font-size: 12px;
}

.landing-row {
  min-height: 82px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 4px;
  background: #f8fafc;
}

.landing-row strong,
.landing-row a {
  color: #008bd2;
  text-decoration: none;
}

.landing-row small {
  display: block;
  margin-top: 8px;
  color: #5d6878;
}

.mode-badge,
.status-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.mode-badge {
  color: #5b6471;
  background: #e7ebf0;
}

.status-badge {
  color: #078c43;
  background: #dff7e9;
}

.name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.name-cell img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
}

.name-cell strong {
  display: block;
  color: #008bd2;
}

.name-cell small {
  color: #7a8494;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  color: #0c8b43;
  background: #dff7e9;
  font-size: 12px;
  font-weight: 800;
}

.product-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.product-actions a,
.product-actions button {
  border: 0;
  color: #008bd2;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.create-panel {
  margin-top: 22px;
  padding: 26px 24px;
}

.is-hidden {
  display: none;
}

.product-editor {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.product-editor label {
  display: grid;
  gap: 8px;
  color: #24364f;
  font-weight: 700;
}

.field-help {
  color: #7a8494;
  font-weight: 400;
}

.form-status {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 4px;
  font-weight: 700;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  color: #9b1c1c;
  background: #fee2e2;
}

.form-status.is-success {
  color: #047857;
  background: #d1fae5;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
}

.preview-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f8fafc;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.preview-card:active {
  cursor: grabbing;
}

.preview-card.is-dragging {
  border-color: var(--blue);
  opacity: 0.58;
}

.preview-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
}

.preview-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.preview-image-wrap span {
  position: absolute;
  top: 6px;
  left: 6px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0698d1;
  font-size: 12px;
  font-weight: 800;
}

.preview-card strong,
.preview-card small,
.preview-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-card strong {
  margin-top: 8px;
  font-size: 12px;
}

.preview-card small {
  color: #7a8494;
  font-size: 11px;
}

.preview-card em {
  margin-top: 7px;
  color: #0698d1;
  font-size: 11px;
  font-style: normal;
}

.product-editor input,
.product-editor select,
.product-editor textarea {
  margin: 0;
  font-weight: 400;
}

.payment-editor {
  display: grid;
  gap: 14px;
  margin: 4px 0 0;
  padding: 16px;
  border: 1px solid #d5dde8;
  border-radius: 4px;
}

.payment-editor legend {
  padding: 0 6px;
  color: #24364f;
  font-weight: 800;
}

.payment-bank-fields {
  display: grid;
  gap: 14px;
  padding: 12px;
  border-radius: 4px;
  background: #f8fafc;
}

.bank-picker {
  position: relative;
}

.bank-picker-button,
.bank-picker-menu button {
  display: grid;
  width: 100%;
  min-height: 46px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #d5dde8;
  border-radius: 4px;
  background: #f8fafc;
  color: #101828;
  text-align: left;
  cursor: pointer;
}

.bank-picker-button > span:first-child,
.bank-picker-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bank-picker-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 280px;
  gap: 6px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #d5dde8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.14);
}

.bank-picker-menu.is-hidden {
  display: none;
}

.bank-picker-menu button {
  grid-template-columns: auto 1fr;
  background: #fff;
}

.bank-picker-menu button:hover {
  border-color: #09a7e8;
  background: #f0f9ff;
}

.bank-logo {
  display: inline-flex;
  min-width: 54px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.bank-logo.bca,
.bank-logo.bri,
.bank-logo.bni,
.bank-logo.btn-bank {
  background: #004a9f;
}

.bank-logo.mandiri {
  color: #173b75;
  background: #ffd43b;
}

.bank-logo.bsi {
  background: #16a085;
}

.bank-logo.seabank {
  background: #f97316;
}

.bank-logo.cimb {
  background: #c8102e;
}

.bank-logo.permata {
  background: #5b2d90;
}

.bank-logo.danamon,
.bank-logo.maybank {
  color: #101828;
  background: #ffd400;
}

.bank-logo.ocbc {
  background: #d71920;
}

.bank-logo.jago {
  color: #101828;
  background: #facc15;
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 860px) {
  .admin-body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

  .side-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-shell {
    padding: 18px 14px 40px;
  }

  .admin-header,
  .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .table-head {
    display: none;
  }

  .product-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .landing-head {
    display: none;
  }

  .store-head {
    display: none;
  }

  .landing-row {
    grid-template-columns: 1fr;
  }

  .store-row {
    grid-template-columns: 1fr;
  }

  .product-actions {
    justify-content: flex-start;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }
}

.builder-body {
  display: grid;
  grid-template-columns: 394px 1fr;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #edf2f8;
}

.builder-panel {
  height: 100vh;
  overflow: auto;
  border-right: 1px solid #d5dde8;
  background: #fff;
}

.builder-tabs {
  display: flex;
  gap: 18px;
  height: 44px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
}

.builder-tabs button {
  height: 44px;
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.builder-tabs button.active {
  border-bottom-color: #16aee5;
}

.component-list {
  display: grid;
  gap: 12px;
  padding: 18px 12px 10px;
}

.add-component-wrap {
  padding: 0 12px 18px;
}

.add-component-button {
  display: grid;
  width: 100%;
  min-height: 48px;
  place-items: center;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  color: #009bdd;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.add-component-button:hover {
  border-color: #16aee5;
  background: #f7fbff;
}

.component-shell {
  display: grid;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.component-shell.active {
  overflow: hidden;
  border: 2px solid #09a7e8;
  border-radius: 4px;
  background: #fff;
}

.component-item {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  column-gap: 8px;
  min-height: 46px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
}

.component-item.active {
  border-color: #16aee5;
  box-shadow: inset 3px 0 0 #16aee5;
}

.component-shell.active .component-item {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.component-move {
  display: flex;
  width: 48px;
  height: 28px;
  margin-left: 10px;
  align-items: center;
  overflow: hidden;
  border-radius: 4px;
}

.component-move button {
  display: grid;
  width: 22px;
  height: 28px;
  place-items: center;
  border: 0;
  border-right: 1px solid #bcc7d4;
  color: #506074;
  background: #d4dde8;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.component-move button:last-child {
  border-right: 0;
}

.component-move button:disabled {
  color: #9aa5b2;
  cursor: not-allowed;
  opacity: 0.55;
}

.component-item em {
  padding-right: 12px;
  color: #6b7484;
  font-style: normal;
}

.inline-editor-slot {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: grid-template-rows 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.inline-editor-slot > .component-editor {
  min-height: 0;
}

.component-shell.active .component-editor {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
}

.component-shell.is-open .inline-editor-slot {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

.component-editor {
  margin: 0 12px 24px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}

.component-editor-title {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
}

.component-editor label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: #263a55;
  font-weight: 800;
}

.component-editor textarea,
.component-editor input,
.component-editor select {
  margin: 0;
}

.rich-editor {
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rich-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px 8px;
  background: #ffffff;
}

.dark-toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}

.dark-toggle-switch input {
  display: none;
}

.switch-slider {
  position: relative;
  width: 36px;
  height: 20px;
  background-color: #cbd5e1;
  border-radius: 20px;
  transition: background-color 0.2s ease;
}

.switch-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dark-toggle-switch input:checked + .switch-slider {
  background-color: #475569;
}

.dark-toggle-switch input:checked + .switch-slider::before {
  transform: translateX(16px);
}

.rich-toolbar.icon-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 10px;
  gap: 2px;
  border-bottom: 1px solid #f1f5f9;
}

.rich-toolbar.icon-row button,
.rich-toolbar.icon-row label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #374151;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
  margin: 0;
  padding: 0;
}

.rich-toolbar.icon-row button:hover,
.rich-toolbar.icon-row label:hover {
  background: #f1f5f9;
  color: #111827;
}

.rich-icon-color-btn,
.rich-icon-bg-btn {
  position: relative;
  overflow: hidden;
}

.rich-icon-color-btn input,
.rich-icon-bg-btn input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.color-icon-text,
.bg-icon-text {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.color-icon-bar {
  position: absolute;
  bottom: 3px;
  left: 5px;
  right: 5px;
  height: 3px;
  border-radius: 1px;
}

.rich-icon-bg-btn {
  background: repeating-linear-gradient(45deg, #e2e8f0, #e2e8f0 3px, #ffffff 3px, #ffffff 6px);
}

.rich-toolbar.options-row {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
}

.select-grid-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
}

.select-wrapper select {
  width: 100%;
  padding: 5px 22px 5px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #ffffff;
  font-size: 13px;
  color: #334155;
  appearance: none;
  cursor: pointer;
  outline: none;
  font-weight: 500;
}

.select-wrapper select:focus {
  border-color: #94a3b8;
}

.custom-arrow {
  position: absolute;
  right: 6px;
  pointer-events: none;
  font-size: 11px;
  color: #64748b;
}

.util-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #475569;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}

.util-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.rich-canvas {
  min-height: 210px;
  padding: 20px 16px;
  background: #dbe2ea;
  color: #1f2937;
  outline: none;
  overflow-wrap: anywhere;
  transition: background 0.2s ease, color 0.2s ease;
}

.rich-canvas span {
  color: #00920e;
}

.rich-canvas:empty::before {
  content: "Tulis text di sini...";
  color: #7a8494;
  font-size: 16px;
  font-weight: 400;
}

.image-component-editor {
  padding: 0;
}

.product-component-editor {
  display: grid;
  gap: 14px;
}

.list-component-editor {
  display: grid;
  gap: 14px;
}

.form-component-editor {
  display: grid;
  gap: 14px;
}

.product-component-editor.is-hidden {
  display: none;
}

.list-component-editor.is-hidden {
  display: none;
}

.form-component-editor.is-hidden {
  display: none;
}

.product-component-editor select:disabled,
.product-component-editor button:disabled {
  color: #7a8494;
  background: #f3f6fa;
}

.selected-product-card {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.picker-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: #263a55;
  font-weight: 800;
}

.picker-field > button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--field);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.selected-product-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  min-height: 48px;
  align-items: center;
  padding-right: 10px;
  border-radius: 4px;
  background: #eef2f7;
}

.selected-product-item span {
  color: #93a0b1;
  text-align: center;
  font-weight: 800;
}

.selected-product-item strong {
  color: #34445c;
  font-size: 13px;
  line-height: 1.2;
}

.list-item-editor,
.faq-item-editor,
.testimonial-item-editor {
  display: grid;
  gap: 12px;
}

.list-edit-card,
.faq-edit-card,
.testimonial-edit-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f8fafc;
}

.list-edit-card header,
.faq-edit-card header,
.testimonial-edit-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.list-edit-card header button,
.faq-edit-card header button,
.testimonial-edit-card header button {
  border: 0;
  color: #667085;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.list-edit-card textarea,
.faq-edit-card textarea,
.testimonial-edit-card textarea {
  min-height: 82px;
  resize: vertical;
}

.testimonial-image-editor {
  position: relative;
  display: grid;
  min-height: 150px;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: #d1d5db;
}

.testimonial-image-editor::before {
  position: absolute;
  inset: 32px 28px 22px;
  background:
    radial-gradient(circle at 28% 25%, #b8bec7 0 18px, transparent 19px),
    linear-gradient(135deg, transparent 0 42%, #b8bec7 43% 70%, transparent 71%),
    linear-gradient(45deg, transparent 0 32%, #b8bec7 33% 74%, transparent 75%);
  content: "";
  opacity: 0.75;
}

.testimonial-image-editor.has-image::before {
  display: none;
}

.testimonial-image-editor img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-image-editor > span {
  position: relative;
  z-index: 1;
  color: #7b8794;
  font-weight: 900;
}

.testimonial-image-editor div {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.testimonial-image-editor button {
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  color: #007cba;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.rating-picker {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.rating-picker button {
  border: 0;
  color: #9aa5b2;
  background: transparent;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.rating-picker button.active {
  color: #f2a900;
}

.color-palette {
  display: flex;
  gap: 8px;
}

.color-palette button {
  width: 24px;
  height: 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}

.color-palette button.active {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px #dff3ff;
}

.segmented-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.segmented-options button {
  min-height: 52px;
  border: 1px solid #d1d8e2;
  border-radius: 4px;
  color: #111827;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.segmented-options button.active {
  border-color: #00a3e0;
  box-shadow: inset 0 0 0 1px #00a3e0;
}

.range-with-value {
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: 10px;
  align-items: center;
}

.range-with-value input[type="range"] {
  min-height: auto;
  padding: 0;
  accent-color: #0ea5df;
}

.range-with-value span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid #d1d8e2;
  border-radius: 4px;
  background: #f8fafc;
  color: #111827;
  font-weight: 700;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  padding: 10px;
  border-radius: 4px;
  background: #e6ebf1;
}

.icon-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #d1d8e2;
  border-radius: 4px;
  color: #08a45c;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.icon-grid button.active {
  border-color: #00a3e0;
  box-shadow: inset 0 0 0 1px #00a3e0;
}

.submit-icon-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid #d8e0ea;
  background: #fff;
}

.submit-icon-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  color: #667085;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.submit-icon-grid .submit-wa-img {
  width: 18px;
  height: 18px;
}

.submit-icon-grid button.active {
  color: #0b5f87;
  border-color: #00a3e0;
  box-shadow: inset 0 0 0 1px #00a3e0;
}

.form-field-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}

.form-field-card .form-field-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px 0 8px;
  background: #f3f6fa;
}

.form-field-move {
  display: flex;
  flex-direction: row;
  gap: 2px;
  flex-shrink: 0;
}

.form-move-btn {
  background: #dce2ea;
  border: none;
  border-radius: 3px;
  width: 22px;
  height: 22px;
  font-size: 11px;
  cursor: pointer;
  color: #667085;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.form-move-btn:hover {
  background: #c9d3df;
}
.form-move-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.form-field-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.form-field-chevron {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}
.form-field-chevron:hover {
  color: #374151;
  background: #e5e7eb;
}
.form-field-chevron.is-open {
  transform: rotate(180deg);
}

.form-field-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}
.form-field-panel.is-collapsed {
  display: none;
}

/* Legacy: keep old header > span style for non-updated panels */
.form-field-card header > span {
  display: grid;
  width: 34px;
  height: 28px;
  place-items: center;
  border-radius: 4px;
  background: #c9d3df;
  color: #667085;
  font-weight: 900;
}

.form-field-card > div:not(.form-field-panel) {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.form-field-card > div.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.notice-box {
  padding: 14px;
  border-radius: 4px;
  background: #fff7e8;
  color: #344054;
  line-height: 1.35;
}

.notice-box strong {
  color: #008bd2;
}

.notice-box a {
  color: #008bd2;
  font-weight: 800;
  text-decoration: none;
}

.mini-switch {
  display: inline-flex !important;
  margin: 0 !important;
  align-items: center;
}

.mini-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mini-switch span {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #a8afb9;
  cursor: pointer;
  position: relative;
}

.mini-switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 0.16s ease;
}

.mini-switch input:checked + span {
  background: #0ea5df;
}

.mini-switch input:checked + span::after {
  transform: translateX(16px);
}

.switch-button {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.switch-button > span {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #a8afb9;
}

.switch-button > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 0.16s ease;
}

.switch-button[aria-pressed="true"] > span {
  background: #0ea5df;
}

.switch-button[aria-pressed="true"] > span::after {
  transform: translateX(16px);
}

.product-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 22;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
}

.component-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: start center;
  padding: 44px 16px;
  background: rgba(15, 23, 42, 0.18);
}

.component-picker-modal.is-hidden {
  display: none;
}

.component-picker-dialog {
  width: min(430px, 100%);
  max-height: calc(100vh - 88px);
  overflow: auto;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.component-picker-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}

.component-picker-dialog header strong {
  font-size: 18px;
}

.component-picker-dialog header button {
  border: 0;
  color: #ef4444;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0;
  font-weight: 900;
}

.component-picker-dialog header button::before {
  content: "x";
  font-size: 24px;
}

.component-picker-group {
  padding: 0 16px 18px;
}

.component-picker-group h3 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d9e1ea;
  color: #4b5563;
  font-size: 17px;
}

.component-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.component-picker-grid button {
  display: grid;
  min-height: 70px;
  place-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #344256;
  background: #f2f6fb;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.component-picker-grid button:hover {
  border-color: #16aee5;
  color: #009bdd;
  background: #eef8ff;
}

.component-picker-grid button span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #4b5563;
  transition: color 0.15s, transform 0.15s;
}

.component-picker-grid button:hover span {
  color: #009bdd;
  transform: translateY(-2px);
}

.product-picker-modal.is-hidden {
  display: none;
}

.product-picker-dialog {
  width: min(520px, 94vw);
  max-height: 82vh;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.28);
}

.product-picker-dialog header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.product-picker-dialog header button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: #edf2f7;
  cursor: pointer;
  font-weight: 800;
}

.product-picker-list {
  display: grid;
  gap: 10px;
  max-height: calc(82vh - 58px);
  overflow: auto;
  padding: 14px;
}

.product-picker-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 9px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
}

.product-picker-item.active {
  border-color: var(--blue);
  box-shadow: inset 3px 0 0 var(--blue);
}

.product-picker-item img {
  width: 58px;
  height: 58px;
  border-radius: 4px;
  object-fit: cover;
}

.product-picker-item span {
  display: grid;
  gap: 3px;
}

.product-picker-item small {
  color: #647084;
}

.image-editor-preview {
  position: relative;
  display: flex;
  min-height: 430px;
  margin: 16px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
  background: #f3f5f7;
}

.image-editor-preview::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  content: "";
}

.image-preview-frame {
  position: relative;
  z-index: 1;
  width: 82%;
  max-width: 100%;
  max-height: 430px;
  overflow: hidden;
  background: #fff;
}

.image-preview-frame.is-fill {
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  overflow: visible;
}

.image-editor-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-position: center;
}

.image-preview-frame.is-fill img {
  height: auto;
}

.image-empty-note {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 14px 18px;
  border: 1px dashed #94a3b8;
  border-radius: 4px;
  color: #475569;
  background: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.image-overlay-actions {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.image-overlay-actions button {
  min-width: 62px;
  height: 36px;
  border: 0;
  border-radius: 4px;
  color: #334155;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.hidden-file-input {
  display: none !important;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.74);
}

.image-modal.is-hidden {
  display: none;
}

.image-modal button {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.image-modal img {
  max-width: min(920px, 92vw);
  max-height: 86vh;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.advance-panel {
  border-top: 1px solid var(--border);
}

.advance-panel summary {
  min-height: 52px;
  padding: 16px;
  cursor: pointer;
  font-weight: 800;
}

.control-group {
  display: grid;
  gap: 12px;
  padding: 0 16px 18px;
  border-bottom: 1px solid var(--border);
}

.control-group > span,
.control-group label {
  color: #24364f;
}

.segmented-control,
.fit-grid,
.ratio-grid,
.background-row,
.device-pills {
  display: grid;
  gap: 14px;
}

.segmented-control {
  grid-template-columns: repeat(3, 1fr);
}

.segmented-control button,
.ratio-grid button,
.background-row button,
.device-pills button,
.fit-grid button {
  min-height: 48px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.segmented-control button.active,
.ratio-grid button.active,
.device-pills button.active,
.fit-grid button.active {
  border-color: var(--blue);
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 54px 22px;
  gap: 8px;
  align-items: center;
}

.range-row input[type="range"] {
  padding: 0;
}

.range-row input[type="number"] {
  min-height: 42px;
  text-align: center;
}

.fit-grid {
  grid-template-columns: 1fr 1fr;
}

.fit-grid button {
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 136px;
}

.fit-icon {
  display: block;
  width: 126px;
  height: 64px;
  border-radius: 4px;
  background: #aeb8c4;
}

.fit-icon.fit {
  border-inline: 14px solid #d8dee6;
}

.ratio-grid {
  grid-template-columns: repeat(4, 1fr);
}

.background-row {
  grid-template-columns: 44px 1fr 1fr;
}

.background-row label {
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  min-height: 48px;
  padding: 0 10px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: #fff;
  text-align: center;
}

.background-row input {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
}

.device-pills {
  grid-template-columns: repeat(3, 1fr);
}

.padding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.padding-grid label {
  display: grid;
  gap: 8px;
}

.padding-grid input {
  min-height: 42px;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.toggle-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
}

.builder-main {
  height: 100vh;
  min-width: 0;
  overflow: auto;
}

.builder-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-decoration: none;
}

.device-toggle {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.device-toggle span {
  width: 32px;
  height: 28px;
  border-right: 1px solid var(--border);
  background: #fff;
}

.device-toggle span.active {
  background: #e7f4fb;
}

.builder-actions {
  display: flex;
  gap: 12px;
}

.phone-stage {
  display: grid;
  min-height: calc(100vh - 57px);
  place-items: start center;
  padding: 18px 20px 60px;
}

.phone-preview {
  width: 452px;
  min-height: 780px;
  padding: 28px 16px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(10, 20, 30, 0.24);
}

.lp-text {
  margin: 0;
  font-weight: 400;
  line-height: 1.08;
}

.builder-image-frame {
  width: 82%;
  max-width: 380px;
  margin: 0 0 24px;
  overflow: hidden;
  background: #fff;
}

.builder-image-frame.is-fill {
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  overflow: visible;
}

.builder-product-image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-position: center;
}

.builder-image-frame.is-fill .builder-product-image {
  height: auto;
}

.builder-package {
  margin-top: 12px;
}

.builder-list-block,
.builder-faq-block,
.builder-testimonial-block {
  margin-top: 18px;
}

.builder-form-block {
  margin-top: 24px;
}

.builder-placeholder {
  margin-top: 24px;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 4px;
  color: #6b7484;
  text-align: center;
}

.builder-divider {
  margin: 24px 0;
  border: 0;
  border-top: 2px solid var(--border);
}

@media (max-width: 980px) {
  .builder-body {
    grid-template-columns: 1fr;
    height: auto;
    overflow: auto;
  }

  .builder-panel {
    height: auto;
    overflow: visible;
  }

  .builder-main {
    height: auto;
    overflow: visible;
  }

  .builder-topbar {
    flex-wrap: wrap;
  }

  .phone-preview {
    width: min(100%, 452px);
  }
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  top: 70px;
  right: 20px;
  background: #f0fdf4;
  border: 1px solid #4ade80;
  border-radius: 4px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.toast-icon {
  background: #4ade80;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.toast-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
  fill: none;
}
.toast-message {
  color: #374151;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
}
.toast-close {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  line-height: 1;
}
.toast-close:hover {
  color: #374151;
}

/* Publish Modal */
.publish-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.publish-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.publish-modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 480px;
  padding: 32px 24px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.publish-modal-overlay.show .publish-modal-content {
  transform: translateY(0);
}
.publish-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #ef4444;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.publish-modal-icon {
  width: 56px;
  height: 56px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.publish-modal-title {
  font-size: 22px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}
.publish-modal-desc {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.publish-modal-url-box {
  display: flex;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}
.publish-modal-url {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: #f9fafb;
  color: #111827;
  font-size: 14px;
  outline: none;
}
.publish-modal-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  background: #f3f4f6;
  border: none;
  border-left: 1px solid #d1d5db;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.publish-modal-copy:hover {
  background: #e5e7eb;
}
.publish-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.publish-modal-view {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0ea5e9;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.publish-modal-view:hover {
  text-decoration: underline;
}
.publish-modal-finish {
  background: #0ea5e9;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.publish-modal-finish:hover {
  background: #0284c7;
}

/* Component Context Menu */
.component-menu-wrap {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}
.component-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  font-size: 18px;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.component-menu-btn:hover {
  background: #f3f4f6;
  color: #374151;
}
.component-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 500;
  min-width: 180px;
  overflow: hidden;
}
.component-dropdown.open {
  display: block;
}
.component-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  transition: background 0.15s;
}
.component-dropdown-item:last-child {
  border-bottom: none;
}
.component-dropdown-item:hover {
  background: #f9fafb;
}
.component-dropdown-item.danger {
  color: #ef4444;
}
.component-dropdown-item.danger:hover {
  background: #fef2f2;
}

/* Rename Component Modal */
.rename-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.rename-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.rename-modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 420px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transform: translateY(16px);
  transition: transform 0.25s ease;
}
.rename-modal-overlay.show .rename-modal-content {
  transform: translateY(0);
}
.rename-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.rename-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.rename-modal-close {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.rename-modal-desc {
  color: #6b7280;
  font-size: 13px;
  margin: 0 0 20px;
}
.rename-modal-field {
  margin-bottom: 24px;
}
.rename-modal-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.rename-modal-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 14px;
  color: #111827;
  background: #f9fafb;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}
.rename-modal-input:focus {
  border-color: #0ea5e9;
  background: white;
}
.rename-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.rename-modal-cancel {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 9px 20px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}
.rename-modal-cancel:hover {
  background: #f3f4f6;
}
.rename-modal-save {
  background: #0ea5e9;
  border: none;
  border-radius: 4px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  cursor: pointer;
}
.rename-modal-save:hover {
  background: #0284c7;
}

/* Builder Design Tab Panel */
.design-tab-panel, .settings-tab-panel {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.design-tab-panel.is-hidden, .settings-tab-panel.is-hidden, [data-tab-panel].is-hidden {
  display: none !important;
}
.design-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.design-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.color-swatch-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.color-swatch-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  padding: 0;
}
.color-swatch-btn:hover {
  transform: scale(1.1);
}
.color-swatch-btn.active {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.4);
}
.color-picker-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
  cursor: pointer;
  display: inline-block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  transition: transform 0.15s;
}
.color-picker-btn:hover {
  transform: scale(1.1);
}
.color-picker-btn input[type="color"] {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 50px;
  height: 50px;
  opacity: 0;
  cursor: pointer;
}
.design-font-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f9fafb;
  font-size: 14px;
  color: #111827;
  outline: none;
  cursor: pointer;
}
.design-font-select:focus {
  border-color: #0ea5e9;
  background: #ffffff;
}

/* Delete Component Custom Modal */
.delete-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 16px;
}

.delete-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.delete-modal-content {
  background: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transform: translateY(-10px);
  transition: transform 0.2s ease;
  font-family: inherit;
}

.delete-modal-overlay.show .delete-modal-content {
  transform: translateY(0);
}

.delete-modal-header {
  padding: 20px 24px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.delete-modal-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.delete-modal-subtitle {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.delete-modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  color: #ef4444;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin-left: 12px;
}

.delete-modal-close:hover {
  color: #dc2626;
}

.delete-modal-body {
  padding: 16px 24px 20px;
  margin-top: 4px;
}

.delete-modal-desc {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}

.delete-modal-footer {
  padding: 14px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #ffffff;
}

.delete-modal-cancel {
  padding: 8px 18px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.delete-modal-cancel:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.delete-modal-confirm {
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.delete-modal-confirm:hover {
  background: #dc2626;
}

/* Emoji Picker Popover */
.emoji-picker-popover.is-hidden {
  display: none !important;
}

.emoji-picker-popover {
  position: absolute;
  top: 90px;
  right: 12px;
  width: 290px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: inherit;
}

.emoji-picker-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.emoji-search-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  background: #ffffff;
  color: #1e293b;
}

.emoji-search-input:focus {
  border-color: #0ea5e9;
}

.emoji-picker-close {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}

.emoji-picker-close:hover {
  color: #ef4444;
}

.emoji-categories {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 6px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.emoji-categories .category-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.emoji-categories .category-btn.active,
.emoji-categories .category-btn:hover {
  background: #e2e8f0;
}

.emoji-grid-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 8px;
  max-height: 210px;
  overflow-y: auto;
  background: #ffffff;
}

.emoji-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
}

.emoji-btn:hover {
  background: #f1f5f9;
  transform: scale(1.2);
}

/* Custom Text Background Color Palette Popover */
.color-palette-popover.is-hidden {
  display: none !important;
}

.color-palette-popover {
  position: absolute;
  top: 34px;
  left: 0;
  width: 224px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  padding: 8px;
  z-index: 1000;
}

.color-swatch-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.swatch-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, border-color 0.1s ease;
}

.swatch-btn:hover {
  transform: scale(1.15);
  border-color: #0ea5e9;
  z-index: 2;
}

.swatch-btn.no-color {
  background: #ffffff;
  border: 2px solid #1f2937;
  color: #ef4444;
  font-weight: 900;
  font-size: 16px;
}

.no-color-x {
  color: #ef4444;
  font-weight: bold;
}

/* ── Sync Banner & Badges ─────────────────────────────────────── */
.sync-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #1e40af;
}

.sync-banner strong {
  color: #1d4ed8;
}

.origin-id-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-family: monospace;
  cursor: default;
}

.action-icon-btn.delete-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.logout-link {
  margin-top: auto !important;
  color: #ef4444 !important;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px !important;
  font-weight: 600;
}
.logout-link:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}


.sync-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.sync-btn:hover {
  background: #dbeafe;
}

.sync-btn:active {
  transform: scale(0.96);
}

.sync-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Toast Notification ───────────────────────────────────────── */
.sync-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  color: #f8fafc;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  max-width: 480px;
  text-align: center;
  pointer-events: none;
}

.sync-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sync-toast--error {
  background: #991b1b;
}

/* ── Arrow Pointer Animations ─────────────────────────────── */
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

@keyframes arrowFade {
  0%, 100% { opacity: 0.35; transform: translateY(-3px); }
  50% { opacity: 1; transform: translateY(3px); }
}

.arrow-component-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0;
}

.arrow-component-wrap.align-left { justify-content: flex-start; }
.arrow-component-wrap.align-center { justify-content: center; }
.arrow-component-wrap.align-right { justify-content: flex-end; }

.arrow-component-wrap svg {
  display: block;
  height: auto;
  overflow: visible;
}

.arrow-component-wrap.size-small svg { width: 90px; }
.arrow-component-wrap.size-normal svg { width: 140px; }
.arrow-component-wrap.size-large svg { width: 220px; }

.anim-bounce { animation: arrowBounce var(--anim-speed, 1.2s) infinite ease-in-out; }
.anim-pulse-1 { animation: arrowPulse var(--anim-speed, 1.2s) infinite ease-in-out 0s; }
.anim-pulse-2 { animation: arrowPulse var(--anim-speed, 1.2s) infinite ease-in-out calc(var(--anim-speed, 1.2s) * 0.25); }
.anim-pulse-3 { animation: arrowPulse var(--anim-speed, 1.2s) infinite ease-in-out calc(var(--anim-speed, 1.2s) * 0.5); }
.anim-fade { animation: arrowFade var(--anim-speed, 1.4s) infinite ease-in-out; }

/* ── Dynamic Order Status Badge Colors ─────────────────────── */
.order-status-select {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 180px;
  min-height: 34px;
  padding: 6px 28px 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 12px 12px !important;
  font-family: inherit;
  box-sizing: border-box;
}

.order-status-select option {
  background: #ffffff;
  color: #1f2937;
  font-weight: 600;
  padding: 6px;
}

/* 1. Baru -> BIRU Vibes */
.order-status-select.status-baru,
.order-badge.status-baru {
  background-color: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230369a1'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

/* 2. Diproses -> KUNING Vibes */
.order-status-select.status-diproses,
.order-badge.status-diproses {
  background-color: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23b45309'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

/* 3. Dikirim -> HIJAU TUA Vibes */
.order-status-select.status-dikirim,
.order-badge.status-dikirim {
  background-color: #047857;
  color: #ffffff;
  border-color: #065f46;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

/* 4. Selesai -> HIJAU MUDA Vibes */
.order-status-select.status-selesai,
.order-badge.status-selesai {
  background-color: #dcfce7;
  color: #15803d;
  border-color: #86efac;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2315803d'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

/* 5. Batal -> MERAH Vibes */
.order-status-select.status-batal,
.order-badge.status-batal {
  background-color: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23b91c1c'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

/* ── Table Action Icon Buttons ────────────────────────────── */
.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475467;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  box-sizing: border-color;
  padding: 0;
}

.action-icon-btn svg {
  display: block;
  flex-shrink: 0;
}

.action-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.action-icon-btn.action-view:hover {
  color: #0284c7;
  border-color: #38bdf8;
  background: #f0f9ff;
}

.action-icon-btn.action-edit:hover {
  color: #0d9488;
  border-color: #5eead4;
  background: #f0fdfa;
}

.action-icon-btn.action-delete:hover {
  color: #ef4444;
  border-color: #fca5a5;
  background: #fef2f2;
}


