.home-widget-demo {
  background: #f6f8fb;
  color: #0f172a;
  font-family: Inter, Arial, Helvetica, sans-serif;
  padding: 30px 18px 34px;
}

.home-widget-demo__inner {
  background: #fff;
  border: 1px solid #d7e3f3;
  border-radius: 8px;
  box-shadow: 0 20px 46px rgba(15, 23, 42, .08);
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1320px;
  padding: 28px 30px;
}

.home-widget-demo__header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.home-widget-demo__header-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.home-widget-demo__header-actions .ui-button {
  white-space: nowrap;
}

.home-widget-demo__eyebrow {
  align-items: center;
  background: #eef6ff;
  border-radius: 999px;
  color: #0053b8;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  justify-self: start;
  padding: 8px 12px;
}

.home-widget-demo__eyebrow i {
  color: #009b72;
}

.home-widget-demo h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
  max-width: none;
}

.home-widget-demo p {
  color: #42526d;
  flex-basis: 100%;
  font-size: 16px;
  line-height: 1.45;
  margin: 0;
  max-width: none;
  white-space: nowrap;
}

.home-widget-demo__features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.home-widget-demo__features span {
  align-items: center;
  border: 1px solid #d7e3f3;
  border-radius: 8px;
  color: #0f2a4d;
  display: flex;
  flex: 1 1 0;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  min-height: 40px;
  padding: 9px 12px;
}

.home-widget-demo__features i {
  color: #f5b700;
  width: 16px;
}

.home-widget-demo__workspace {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(420px, .9fr) minmax(560px, 1.1fr);
  margin-top: 10px;
}

.home-widget-demo__customize,
.home-widget-demo__preview {
  border: 1px solid #d7e3f3;
  border-radius: 8px;
  box-sizing: border-box;
  min-height: 300px;
}

.home-widget-demo__customize {
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  display: grid;
  gap: 10px;
  grid-template-rows: auto auto auto auto;
  overflow: visible;
  padding: 12px 16px 16px;
}

.home-widget-demo__customize-head {
  display: grid;
}

.home-widget-demo__customize-toggle {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #d7e3f3;
  border-radius: 8px;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  font: inherit;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 12px;
  width: 100%;
}

.home-widget-demo__customize-toggle:hover,
.home-widget-demo__customize-toggle:focus-visible {
  background: #eef6ff;
  border-color: #9fc7ff;
  outline: 0;
}

.home-widget-demo__customize-toggle strong {
  color: #0f172a;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
}

.home-widget-demo__customize-toggle span {
  align-items: center;
  color: #0053b8;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
}

.home-widget-demo__customize-toggle i {
  transition: transform .18s ease;
}

.home-widget-demo__customize-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.home-widget-demo__customize-controls {
  display: grid;
  gap: 10px;
}

.home-widget-demo__customize-controls[hidden] {
  display: none;
}

.home-widget-demo__tabs {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.home-widget-demo__tab {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.home-widget-demo__tab.is-active {
  background: #fffaf0;
  border-bottom: 2px solid #f6c400;
  color: #0b53b7;
}

.home-widget-demo__tab:hover {
  background: #f1f7ff;
  color: #0053b8;
  transform: translateY(-1px);
}

.home-widget-demo__panel {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2px;
}

.home-widget-demo__panel.is-hidden {
  display: none;
}

.home-widget-demo__panel label {
  align-content: center;
  background: #f8fbff;
  border: 1px solid #d7e3f3;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
  display: grid;
  gap: 9px;
  min-height: 76px;
  padding: 11px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-widget-demo__panel--params label {
  background: #f7faff;
  min-height: 68px;
}

.home-widget-demo__param-tabs {
  background: #eef2f7;
  border-radius: 9px;
  display: grid;
  gap: 4px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
}

.home-widget-demo__param-tabs button {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #475569;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  min-height: 36px;
  padding: 7px 10px;
}

.home-widget-demo__param-tabs button.is-active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .09);
  color: #0b53b7;
}

.home-widget-demo__param-subpanel {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-widget-demo__param-subpanel.is-hidden {
  display: none;
}

.home-widget-demo__panel label:hover,
.home-widget-demo__panel label:focus-within {
  border-color: #9fc7ff;
  box-shadow: 0 14px 30px rgba(15, 83, 183, .1);
  transform: translateY(-1px);
}

.home-widget-demo__panel label span {
  color: #0f2a4d;
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.home-widget-demo__panel label span small {
  color: #64748b;
  font-size: .82em;
  font-weight: 500;
  margin-left: 5px;
  white-space: nowrap;
}

.home-widget-demo__panel input[type="text"],
.home-widget-demo__panel textarea,
.home-widget-demo__panel select {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  color: #0f172a;
  font: inherit;
  height: 40px;
  min-width: 0;
  padding: 0 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.home-widget-demo__panel textarea {
  height: auto;
  min-height: 68px;
  padding: 9px 10px;
  resize: vertical;
}

.home-widget-demo__domains-field {
  grid-column: 1 / -1;
  margin-bottom: 12px;
}
.home-widget-demo__domains-field > small { color: #64748b; font-size: 11px; }
.home-widget-demo__domains-field > small.is-error { color: #b42318; }

.home-widget-demo__services-field {
  background: #f7faff;
  border: 1px solid #d7e3f3;
  border-radius: 8px;
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px;
}

.home-widget-demo__services-field legend {
  color: #0f2a4d;
  font-size: 13px;
  font-weight: 800;
  padding: 0 5px;
}

.home-widget-demo__services-field legend small,
.home-widget-demo__services-field > small {
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
}

.home-widget-demo__services-field > small.is-error {
  color: #b42318;
}

.home-widget-demo__services-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 4px 0 8px;
}

.home-widget-demo__panel .home-widget-demo__services-grid label {
  align-items: center;
  background: #fff;
  border: 1px solid #d7e3f3;
  border-radius: 7px;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  gap: 7px;
  min-height: 34px;
  padding: 6px 8px;
}

.home-widget-demo__panel .home-widget-demo__services-grid label:hover,
.home-widget-demo__panel .home-widget-demo__services-grid label:focus-within {
  border-color: #0b68ff;
  box-shadow: 0 0 0 2px rgba(11, 104, 255, .09);
  transform: none;
}

.home-widget-demo__services-grid input {
  accent-color: #0b68ff;
  height: 16px;
  margin: 0;
  width: 16px;
}

.home-widget-demo__panel .home-widget-demo__services-grid span {
  font-size: 11px;
  line-height: 1.2;
}

.home-widget-demo__panel .home-widget-demo__integration-field > label {
  box-shadow: none;
  min-height: 0;
}

.home-widget-demo__option-switch {
  align-items: center !important;
  cursor: pointer;
  display: flex !important;
  grid-column: 1 / -1;
  padding: 8px 10px !important;
}

.home-widget-demo__option-switch input {
  accent-color: #0b68ff;
  height: 17px;
  margin: 0;
  width: 17px;
}

.home-widget-demo__radio-name {
  grid-column: 1 / -1;
}

.home-widget-demo__radio-name code {
  color: #0b53b7;
  font-size: .95em;
}

.home-widget-demo__radio-name input:disabled {
  background: #eef2f7;
  color: #94a3b8;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .home-widget-demo__services-grid {
    grid-template-columns: 1fr;
  }

  .home-widget-demo__param-subpanel {
    grid-template-columns: 1fr;
  }
}

.home-widget-demo__panel input[type="text"]:focus,
.home-widget-demo__panel textarea:focus,
.home-widget-demo__panel select:focus {
  border-color: #0b68ff;
  box-shadow: 0 0 0 3px rgba(11, 104, 255, .12);
  outline: 0;
}

.home-widget-color-field {
  overflow: visible;
  position: relative;
}

.home-widget-color {
  position: relative;
  width: 100%;
}

.home-widget-color > [data-color-picker] {
  display: none;
}

.home-widget-color__trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #17233b;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 9px;
  grid-template-columns: 32px 1fr auto;
  min-height: 42px;
  padding: 4px 10px 4px 5px;
  text-align: left;
  width: 100%;
}

.home-widget-color__trigger:hover,
.home-widget-color__trigger:focus-visible,
.home-widget-color__trigger[aria-expanded="true"] {
  border-color: #0b68ff;
  box-shadow: 0 0 0 3px rgba(11, 104, 255, .12);
  outline: 0;
}

.home-widget-color__trigger small {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.home-widget-color__swatch {
  border: 1px solid rgba(15, 23, 42, .18);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  display: block;
  height: 30px;
  width: 32px;
}

.home-widget-color__popover {
  --picker-hue: #f6c400;
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, .32);
  display: grid;
  gap: 15px;
  left: 50%;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(380px, calc(100vw - 32px));
  z-index: 1001;
}

.home-widget-color__popover[hidden] {
  display: none;
}

.home-widget-color__backdrop {
  background: rgba(15, 23, 42, .58);
  inset: 0;
  position: fixed;
  z-index: 1000;
}

.home-widget-color__backdrop[hidden] {
  display: none;
}

.home-widget-color__header {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  margin: -2px -2px 0;
  padding: 0 0 13px;
}

.home-widget-color__header > span {
  display: grid;
  gap: 2px;
}

.home-widget-color__header small {
  color: #0b68ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
}

.home-widget-color__header strong {
  color: #0f172a;
  font-size: 19px;
}

.home-widget-color__close {
  align-items: center;
  background: #f1f5f9;
  border: 0;
  border-radius: 9px;
  color: #41506b;
  cursor: pointer;
  display: inline-flex;
  font-size: 25px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

.home-widget-color__close:hover,
.home-widget-color__close:focus-visible {
  background: #e2e8f0;
  color: #0f172a;
  outline: 2px solid rgba(11, 104, 255, .2);
}

.home-widget-color__top {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: 46px 1fr;
}

.home-widget-color__preview {
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: 9px;
  display: block;
  height: 42px;
}

.home-widget-color__hex {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  box-sizing: border-box;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
  height: 42px;
  padding: 9px 11px;
  text-transform: uppercase;
  width: 100%;
}

.home-widget-color__hex:focus {
  border-color: #0b68ff;
  box-shadow: 0 0 0 3px rgba(11, 104, 255, .12);
  outline: 0;
}

.home-widget-color__hex.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .1);
}

.home-widget-color__formats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.home-widget-color__format {
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 24px 1fr;
  overflow: hidden;
}

.home-widget-color__format small {
  color: #41506b;
  font-size: 11px;
  font-weight: 900;
  padding-left: 9px;
}

.home-widget-color__format input {
  appearance: textfield;
  background: #fff;
  border: 0;
  color: #0f172a;
  font: 800 13px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  height: 36px;
  min-width: 0;
  outline: 0;
  padding: 7px 7px 7px 2px;
  width: 100%;
}

.home-widget-color__format input::-webkit-inner-spin-button,
.home-widget-color__format input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.home-widget-color__format:focus-within {
  border-color: #0b68ff;
  box-shadow: 0 0 0 3px rgba(11, 104, 255, .1);
}

.home-widget-color__palette {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(8, 1fr);
}

.home-widget-color__preset {
  background: var(--preset-color);
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: 7px;
  cursor: pointer;
  height: 27px;
  padding: 0;
}

.home-widget-color__preset:hover,
.home-widget-color__preset:focus-visible {
  outline: 2px solid #0b68ff;
  outline-offset: 2px;
}

.home-widget-color__control {
  color: #41506b;
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 4px;
}

.home-widget-color__control input[type="range"] {
  appearance: none;
  border-radius: 999px;
  height: 10px;
  margin: 0;
}

.home-widget-color__control input[type="range"]::-webkit-slider-runnable-track {
  background: transparent;
  border-radius: 999px;
  height: 10px;
}

.home-widget-color__hue {
  background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}

.home-widget-color__saturation {
  background: linear-gradient(90deg, #b8b8b8, var(--picker-hue));
}

.home-widget-color__lightness {
  background: linear-gradient(90deg, #000, var(--picker-hue), #fff);
}

.home-widget-color__control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  background: #fff;
  border: 2px solid #17233b;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
  height: 19px;
  margin-top: -5px;
  width: 19px;
}

.home-widget-color__control input[type="range"]::-moz-range-track {
  background: transparent;
  border: 0;
  height: 10px;
}

.home-widget-color__control input[type="range"]::-moz-range-thumb {
  background: #fff;
  border: 2px solid #17233b;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
  height: 17px;
  width: 17px;
}

.home-widget-color__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.home-widget-color__actions button {
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  padding: 7px 11px;
}

.home-widget-color__eyedropper {
  background: #fff;
  color: #17233b;
}

.home-widget-color__done {
  background: #0b68ff;
  border-color: #0b68ff !important;
  color: #fff;
}

@media (max-width: 560px) {
  .home-widget-color__popover {
    padding: 16px;
  }
}

.home-widget-demo__panel input[type="range"] {
  accent-color: #f6c400;
  cursor: pointer;
  width: 100%;
}

.home-widget-demo__domains-gate {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  color: #41506b;
  display: flex;
  gap: 10px;
  grid-column: 1 / -1;
  min-height: 58px;
  padding: 11px 13px;
}

.home-widget-demo__domains-gate > i {
  color: #0b68ff;
  font-size: 20px;
}

.home-widget-demo__domains-gate > span {
  display: grid;
  font-size: 12px;
  gap: 2px;
  line-height: 1.35;
}

.home-widget-demo__domains-gate strong {
  color: #0f2a4d;
  font-size: 13px;
}

.home-widget-demo__install-intro {
  align-items: center;
  background: linear-gradient(135deg, #fff8d8, #fffdf2);
  border: 1px solid #f6c400;
  border-radius: 9px;
  color: #5f4b00;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}

.home-widget-demo__install-intro > i {
  color: #d39f00;
  font-size: 19px;
}

.home-widget-demo__install-intro > span {
  display: grid;
  font-size: 14px;
  gap: 1px;
  line-height: 1.35;
}

.home-widget-demo__install-intro strong {
  color: #17233b;
  font-size: 13px;
}

.home-widget-demo__panel--domains {
  display: block;
}

.home-widget-demo__panel--domains.is-hidden {
  display: none;
}

.home-widget-demo__domains-gate.is-warning {
  background: #fff8e1;
  border-color: #f6c400;
}

.home-widget-demo__domains-gate.is-warning > i {
  color: #9a6b00;
}

.home-widget-demo__domains-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.home-widget-demo__domains-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 13px;
}

.home-widget-demo__domains-heading > span {
  color: #64748b;
  display: grid;
  font-size: 11px;
  gap: 2px;
}

.home-widget-demo__domains-heading strong {
  color: #0f172a;
  font-size: 15px;
}

.home-widget-demo__domains-heading > small {
  background: #eff6ff;
  border-radius: 999px;
  color: #0b53b7;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 9px;
}

.home-widget-demo__panel--domains .widget-panel__domain-form {
  display: grid;
  gap: 0;
}

.home-widget-demo__panel--domains .widget-panel__domain-form .home-widget-demo__domains-field {
  margin-bottom: 10px;
}

.home-widget-demo__panel--domains .widget-panel__domain-form textarea {
  box-sizing: border-box;
  min-height: 92px;
  width: 100%;
}

.home-widget-demo__domains-save {
  display: flex;
  justify-content: flex-end;
}

.home-widget-demo__domains-save .ui-button {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  min-height: 40px;
}

.home-widget-demo__ip-warning {
  align-items: flex-start;
  background: #fff8e1;
  border: 1px solid #f6c400;
  border-radius: 9px;
  color: #6f5600;
  display: flex;
  gap: 10px;
  margin-bottom: 11px;
  padding: 10px 12px;
}

.home-widget-demo__ip-warning > i {
  color: #c58b00;
  margin-top: 2px;
}

.home-widget-demo__ip-warning > span {
  display: grid;
  font-size: 11px;
  gap: 2px;
  line-height: 1.4;
}

.home-widget-demo__ip-warning strong {
  color: #614900;
  font-size: 12px;
}

.home-widget-demo__reset-all {
  align-items: center;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 2px;
  padding-top: 12px;
}

.home-widget-demo__reset-all small {
  color: #64748b;
  font-size: 10px;
  order: -1;
}

.home-widget-demo__reset--all {
  border-color: #fecaca !important;
  color: #b42318 !important;
}

.home-widget-demo__reset--all:hover,
.home-widget-demo__reset--all:focus-visible {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
}

@media (max-width: 560px) {
  .home-widget-demo__reset-all {
    align-items: stretch;
    flex-direction: column;
  }

  .home-widget-demo__reset-all small {
    order: 0;
  }
}

.home-widget-demo__draft-imported {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  color: #065f46;
  display: flex;
  gap: 10px;
  margin-bottom: 13px;
  padding: 11px 14px;
}

.home-widget-demo__draft-imported > i {
  font-size: 18px;
}

.home-widget-demo__draft-imported > span {
  display: grid;
  font-size: 12px;
  gap: 2px;
}

.home-widget-demo__code {
  background: #0f172a;
  border: 1px solid #1f2a44;
  border-radius: 8px;
  color: #dbeafe;
  display: grid;
  gap: 8px;
  grid-template-rows: auto auto auto;
  margin-top: 2px;
  padding: 12px;
}

.home-widget-demo__code-footer {
  align-items: center;
  border-top: 1px solid #334155;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 10px;
}

.home-widget-demo__code-footer small {
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.35;
}

.home-widget-demo__code-actions { display: flex; align-items: center; gap: 8px; }

.layout-alert__inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.layout-alert__inline-actions .ui-button {
  flex: 1 1 170px;
  justify-content: center;
  text-decoration: none;
}
.home-widget-demo__panel-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.home-widget-demo__panel-actions .home-widget-demo__reset { background: #fff; border: 1px solid #cbd5e1; color: #41506b; }
.home-widget-demo__panel-actions .home-widget-demo__reset:hover,
.home-widget-demo__panel-actions .home-widget-demo__reset:focus-visible { background: #f8fafc; border-color: #94a3b8; color: #102445; box-shadow: none; }
.home-widget-demo__code-footer .home-widget-demo__reset { border-color: #64748b; color: #cbd5e1; }
.home-widget-demo__code-footer .home-widget-demo__reset:hover,
.home-widget-demo__code-footer .home-widget-demo__reset:focus-visible { background: #334155; border-color: #94a3b8; color: #fff; box-shadow: none; }

.home-widget-demo__code-footer .ui-button {
  align-items: center;
  background: rgba(246, 196, 0, .08);
  border: 1px solid #f6c400;
  border-radius: 7px;
  box-shadow: none;
  color: #ffd83d;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  text-transform: uppercase;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-widget-demo__code-footer .ui-button:hover,
.home-widget-demo__code-footer .ui-button:focus-visible {
  background: #f6c400;
  box-shadow: 0 8px 22px rgba(246, 196, 0, .22);
  color: #111827;
  outline: 0;
  transform: translateY(-1px);
}

.home-widget-demo__code-footer .ui-button:active {
  box-shadow: none;
  transform: translateY(0);
}

.home-widget-demo__code span {
  color: #f6c400;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-widget-demo__code code {
  color: #eef6ff;
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  overflow: visible;
  white-space: pre-wrap;
  word-break: break-word;
}

.home-widget-demo__preview {
  --demo-widget-button-bg: #f6c400;
  --demo-widget-button-text: #111827;
  --demo-widget-font: Inter, Arial, Helvetica, sans-serif;
  --demo-widget-input: #cbd5e1;
  --demo-widget-label-color: #0f2a4d;
  --demo-widget-label-size: 13px;
  --demo-widget-radius: 8px;
  --demo-widget-text: #0f172a;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  padding: 10px 12px 12px;
  position: relative;
}

.home-widget-demo__preview-label {
  border-bottom: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 12px;
  padding-bottom: 9px;
  text-transform: uppercase;
}

.home-widget-demo__watermark {
  align-items: center;
  background: rgba(255, 248, 216, .94);
  border: 1px solid #f6c400;
  border-radius: 999px;
  color: #725500;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  margin: 0 0 12px;
  padding: 7px 11px;
  text-transform: uppercase;
}

.home-widget-demo__locked {
  background: #fff8d8;
  border: 1px solid #f6c400;
  border-radius: 9px;
  color: #523f00;
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 12px 14px;
}

.home-widget-demo__locked span { font-size: 13px; }

.home-widget-demo__demo-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.home-widget-demo__demo-head span {
  color: #9a6700;
  font-size: 12px;
  font-weight: 800;
}

.home-widget-demo__demo-option {
  background: #fff;
  border-style: dashed;
  opacity: .92;
}


.home-widget-demo__preview .cc-widget {
  border: 0;
  color: var(--demo-widget-text);
  font-family: var(--demo-widget-font);
  box-shadow: none;
  padding: 0;
}

.home-widget-demo__preview .cc-grid {
  gap: 10px;
  margin-bottom: 10px;
  min-width: 0;
}

.home-widget-demo__preview .cc-field {
  min-width: 0;
}

.home-widget-demo__preview .cc-title {
  display: none;
  color: var(--demo-widget-text);
  font-size: 22px;
  margin-bottom: 16px;
}

.home-widget-demo__preview .cc-input {
  border-color: var(--demo-widget-input);
  border-radius: var(--demo-widget-radius);
  box-sizing: border-box;
  color: var(--demo-widget-text);
  font-family: var(--demo-widget-font);
  height: 42px;
  min-width: 0;
  width: 100%;
}

.home-widget-demo__preview .cc-brand img {
  max-width: 100px;
}

.home-widget-demo__preview .cc-field > span {
  color: var(--demo-widget-label-color);
  font-size: var(--demo-widget-label-size);
}

.home-widget-demo__preview .cc-button {
  background: var(--demo-widget-button-bg);
  border-color: var(--demo-widget-button-bg);
  border-radius: var(--demo-widget-radius);
  color: var(--demo-widget-button-text);
  font-family: var(--demo-widget-font);
  font-size: 16px;
  font-weight: 700;
  min-height: 42px;
}

.home-widget-demo__preview .cc-result {
  background: #fff;
  padding: 10px 12px;
}

.home-widget-demo__preview .cc-result-grid {
  gap: 10px;
}

.home-widget-demo__preview .cc-result-main {
  gap: 8px;
}

.home-widget-demo__preview .cc-service-name--jadlog-suffix {
  margin-left: -4px;
}

.home-widget-demo__preview .cc-address {
  padding: 10px;
}

.home-widget-demo__preview .cc-shipment-summary {
  padding: 7px 8px;
}

.home-widget-demo__preview-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.home-widget-demo__preview-actions .ui-button {
  width: 100%;
}

.home-widget-demo__preview-actions .ui-button:only-child {
  grid-column: 1 / -1;
}

.home-widget-demo__empty {
  border: 1px dashed #b7c8df;
  border-radius: 8px;
  color: #475569;
  padding: 20px;
}

body.has-widget-plans-modal { overflow: hidden; }

.home-widget-plans[hidden] { display: none; }

.home-widget-plans {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 10050;
}

.home-widget-plans__backdrop {
  background: rgba(10, 18, 32, .72);
  inset: 0;
  position: absolute;
}

.home-widget-plans__dialog {
  background: #f6f8fb;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(2, 8, 23, .3);
  max-height: calc(100vh - 48px);
  max-width: 1240px;
  overflow: auto;
  padding: 24px;
  position: relative;
  width: 100%;
}

.home-widget-plans__dialog > header {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.home-widget-plans__dialog > header span { color: #08795c; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.home-widget-plans__dialog > header h2 { font-size: 28px; margin: 4px 0; }
.home-widget-plans__dialog > header p { color: #52647d; font-size: 14px; white-space: normal; }
.home-widget-plans__dialog > header button { background: #fff; border: 1px solid #d7e3f3; border-radius: 8px; cursor: pointer; height: 40px; width: 40px; }

.home-widget-plans__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.home-widget-plan {
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  border-top: 4px solid #94a3b8;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 16px;
}

.home-widget-plan.is-free { border-top-color: #0aa77d; }
.home-widget-plan.is-bronze { border-top-color: #c97835; }
.home-widget-plan.is-silver { border-top-color: #94a3b8; }
.home-widget-plan.is-gold { border-top-color: #f3c400; }
.home-widget-plan.is-diamond { border-top-color: #00a982; }
.home-widget-plan.is-pearl { border-top-color: #eed4ae; }
.home-widget-plan.is-flex { border-top-color: #1d66b4; }
.home-widget-plan > span { color: #586a84; font-size: 11px; font-weight: 700; }
.home-widget-plan h3 { font-size: 20px; margin: 3px 0 10px; }
.home-widget-plan strong { font-size: 14px; font-weight: 700; }
.home-widget-plan b { font-size: 15px; margin-top: 10px; }
.home-widget-plan p { color: #52647d; flex: 1; font-size: 12px; line-height: 1.45; margin: 12px 0 16px; white-space: normal; }
.home-widget-plan .ui-button { min-height: 42px; width: 100%; }

@media (max-width: 980px) {
  .home-widget-demo__workspace {
    grid-template-columns: 1fr;
  }

  .home-widget-demo__customize {
    height: auto !important;
    overflow-y: visible;
  }

  .home-widget-plans__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .home-widget-demo {
    padding: 22px 12px 28px;
  }

  .home-widget-demo__inner {
    padding: 18px;
  }

  .home-widget-demo h2 {
    font-size: 24px;
  }

  .home-widget-demo__header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-left: 0;
    width: 100%;
  }

  .home-widget-demo__features {
    display: grid;
  }

  .home-widget-demo__preview-actions {
    grid-template-columns: 1fr;
  }

  .home-widget-demo__preview-actions .ui-button:only-child {
    grid-column: auto;
  }

  .home-widget-demo p {
    white-space: normal;
  }

  .home-widget-demo__panel {
    grid-template-columns: 1fr;
  }

  .home-widget-demo__code-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .home-widget-plans { padding: 10px; }
  .home-widget-plans__dialog { max-height: calc(100vh - 20px); padding: 16px; }
  .home-widget-plans__grid { grid-template-columns: 1fr; }

}
