.gpwmm2-root {
  --gp-navy: #0b3c5d;
  --gp-teal: #1589a2;
  --gp-orange: #f4a340;
  --gp-bg: #f3f6fb;
  --gp-line: #dde5ec;
  --gp-text: #111827;
  max-width: 1500px;
  margin: 24px auto 48px;
  color: var(--gp-text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.45;
}
.gpwmm2-root,
.gpwmm2-root * {
  box-sizing: border-box;
}
.gpwmm2-app {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(390px, 0.75fr);
  gap: 20px;
  align-items: start;
}
.gpwmm2-preview,
.gpwmm2-editor {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gp-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(11, 60, 93, 0.08);
}
.gpwmm2-preview {
  position: sticky;
  top: 18px;
}
.gpwmm2-previewbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--gp-line);
  color: var(--gp-navy);
}
.gpwmm2-previewbar > span {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gpwmm2-previewbar > div {
  display: flex;
  gap: 5px;
}
.gpwmm2-previewbar button {
  min-width: 44px;
  padding: 6px;
}
.gpwmm2-preview > p {
  margin: 0;
  padding: 8px 12px;
  color: #667085;
  font-size: 11px;
}
.gpwmm2-map,
#gpwmm2-map {
  line-height: 0;
  background: #f7fafc;
}
#gpwmm2-map svg {
  display: block;
  width: 100%;
  height: auto;
}
.gpwmm2-country {
  cursor: pointer;
  transition: filter 0.12s;
}
.gpwmm2-country:hover,
.gpwmm2-country:focus {
  filter: brightness(0.86);
  outline: none;
}
.gpwmm2-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--gp-line);
  background: #f8fafc;
}
.gpwmm2-steps button {
  min-height: 52px;
  padding: 8px 4px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #52606d;
  font-size: 12px;
  font-weight: 800;
}
.gpwmm2-steps button.is-active {
  border-color: var(--gp-orange);
  background: #fff;
  color: var(--gp-navy);
}
.gpwmm2-step-short {
  display: none;
}
.gpwmm2-panel {
  display: none;
  padding: 18px;
}
.gpwmm2-panel.is-active {
  display: block;
}
.gpwmm2-panel h2 {
  margin: 0 0 8px;
  color: var(--gp-navy);
  font:
    700 22px Poppins,
    Inter,
    sans-serif;
}
.gpwmm2-panel h3 {
  margin: 24px 0 10px;
  color: var(--gp-navy);
  font:
    700 17px Poppins,
    Inter,
    sans-serif;
}
.gpwmm2-intro,
.gpwmm2-note {
  color: #5f6c7b;
  font-size: 13px;
  line-height: 1.55;
}
.gpwmm2-note {
  margin: 8px 0 14px;
  font-size: 12px;
}
.gpwmm2-root label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
  color: var(--gp-navy);
  font-size: 13px;
  font-weight: 750;
}
.gpwmm2-root input,
.gpwmm2-root select,
.gpwmm2-root textarea,
.gpwmm2-root button,
.gpwmm2-file {
  max-width: 100%;
  font: inherit;
}
.gpwmm2-root input[type="text"],
.gpwmm2-root input[type="search"],
.gpwmm2-root select,
.gpwmm2-root textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #c9d4df;
  border-radius: 8px;
  background: #fff;
  color: var(--gp-text);
}
.gpwmm2-root textarea {
  line-height: 1.5;
  resize: vertical;
}
.gpwmm2-root input[type="color"] {
  width: 100%;
  height: 44px;
  padding: 3px;
  border: 1px solid #c9d4df;
  border-radius: 8px;
  background: #fff;
}
.gpwmm2-root button,
.gpwmm2-file {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #c9d4df;
  border-radius: 8px;
  background: #fff;
  color: var(--gp-navy);
  font-weight: 750;
  cursor: pointer;
}
.gpwmm2-root button:hover,
.gpwmm2-file:hover {
  background: #f3f6fb;
}
.gpwmm2-root button:focus-visible,
.gpwmm2-root input:focus-visible,
.gpwmm2-root select:focus-visible,
.gpwmm2-root textarea:focus-visible,
.gpwmm2-file:focus-within {
  outline: 3px solid rgba(244, 163, 64, 0.48);
  outline-offset: 2px;
}
.gpwmm2-root button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
.gpwmm2-root .gpwmm2-primary {
  border-color: var(--gp-teal);
  background: var(--gp-teal);
  color: #fff;
}
.gpwmm2-root .gpwmm2-primary:hover {
  background: #11768b;
}
.gpwmm2-wide,
.gpwmm2-add {
  width: 100%;
}
.gpwmm2-add {
  border-style: dashed !important;
}
.gpwmm2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gpwmm2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gpwmm2-stack {
  display: grid;
  gap: 8px;
}
.gpwmm2-file {
  display: block;
  text-align: center;
}
.gpwmm2-file input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.gpwmm2-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin: 3px 0 15px;
}
.gpwmm2-checks label {
  min-height: 44px;
  flex-direction: row;
  align-items: center;
  margin: 0;
  font-weight: 650;
}
.gpwmm2-checks input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.gpwmm2-group {
  margin: 12px 0;
  padding: 13px;
  border: 1px solid var(--gp-line);
  border-radius: 10px;
  background: #fafcfd;
}
.gpwmm2-group.is-selected {
  border-color: var(--gp-teal);
  box-shadow: 0 0 0 2px rgba(21, 137, 162, 0.13);
}
.gpwmm2-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--gp-navy);
}
.gpwmm2-group-head span {
  color: #667085;
  font-size: 11px;
}
.gpwmm2-color-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}
.gpwmm2-group-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 44px auto;
  gap: 6px;
}
.gpwmm2-group-buttons button[aria-pressed="true"] {
  border-color: var(--gp-navy);
  background: var(--gp-navy);
  color: #fff;
}
.gpwmm2-group-buttons button:last-child {
  color: #9f321f;
}
.gpwmm2-group-feedback {
  display: grid;
  gap: 3px;
  min-height: 8px;
  margin: 8px 2px;
  color: #256b45;
  font-size: 12px;
}
.gpwmm2-group-feedback span {
  color: #a13b28;
}
.gpwmm2-assigned {
  margin: 8px 0 12px;
  padding: 9px;
  border-radius: 7px;
  background: #eef4f7;
  color: #52606d;
  font-size: 11px;
  line-height: 1.5;
}
.gpwmm2-picker {
  min-width: 0;
}
.gpwmm2-picker-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  margin: -3px 0 9px;
}
.gpwmm2-picker-meta strong {
  color: var(--gp-navy);
  font-size: 13px;
}
.gpwmm2-picker-meta button {
  min-height: 38px;
  padding: 6px 9px;
  font-size: 12px;
}
.gpwmm2-picker-actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.gpwmm2-country-list {
  max-height: 360px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--gp-line);
  border-radius: 9px;
  background: #fff;
}
.gpwmm2-country-row {
  display: grid !important;
  width: 100%;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 7px 9px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--gp-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--gp-text) !important;
  font-weight: 650 !important;
  text-align: left;
}
.gpwmm2-country-row:last-child {
  border-bottom: 0 !important;
}
.gpwmm2-country-row:hover,
.gpwmm2-country-row.is-selected {
  background: #eef8fa !important;
}
.gpwmm2-country-check {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #b8c7d3;
  border-radius: 6px;
  background: #fff;
  color: #fff;
  font-size: 15px;
}
.gpwmm2-country-row.is-selected .gpwmm2-country-check {
  border-color: var(--gp-teal);
  background: var(--gp-teal);
}
.gpwmm2-country-row small {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 130px;
  overflow: hidden;
  color: #667085;
  font-size: 11px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gpwmm2-country-row small i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
}
.gpwmm2-empty {
  margin: 0;
  padding: 22px 12px;
  color: #667085;
  text-align: center;
}
.gpwmm2-danger-link {
  width: 100%;
  margin-top: 12px;
  color: #9f321f !important;
}
.gpwmm2-summary {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--gp-line);
  border-radius: 9px;
  background: #f8fafc;
}
.gpwmm2-summary > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gp-navy);
}
.gpwmm2-summary > div {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}
.gpwmm2-summary > div > span:first-child {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}
.gpwmm2-summary small {
  color: #667085;
}
.gpwmm2-root hr {
  height: 1px;
  margin: 22px 0;
  border: 0;
  background: var(--gp-line);
}
.gpwmm2-root code {
  padding: 2px 4px;
  border-radius: 4px;
  background: #edf2f6;
}
.gpwmm2-loading,
.gpwmm2-error {
  padding: 30px;
  border: 1px solid var(--gp-line);
  border-radius: 12px;
  background: #fff;
}
.gpwmm2-error {
  color: #a13b28;
}
.gpwmm2-guide {
  max-width: 900px;
  margin: 52px auto 0;
  padding: 28px;
  border: 1px solid var(--gp-line);
  border-radius: 12px;
  background: #fff;
  color: #25313c;
  line-height: 1.7;
}
.gpwmm2-guide h2 {
  margin: 30px 0 10px;
  color: var(--gp-navy);
  font:
    700 26px Poppins,
    Inter,
    sans-serif;
}
.gpwmm2-guide h2:first-child {
  margin-top: 0;
}
.gpwmm2-guide h3 {
  margin: 22px 0 6px;
  color: var(--gp-navy);
  font:
    700 18px Poppins,
    Inter,
    sans-serif;
}
@media (max-width: 1050px) {
  .gpwmm2-app {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
  }
}
@media (max-width: 860px) {
  .gpwmm2-app {
    grid-template-columns: 1fr;
  }
  .gpwmm2-preview {
    position: sticky;
    top: 6px;
    z-index: 5;
  }
  .gpwmm2-preview > p {
    display: none;
  }
  .gpwmm2-editor {
    position: relative;
    z-index: 2;
  }
}
@media (max-width: 520px) {
  .gpwmm2-root {
    width: 100%;
    margin: 12px 0 36px;
    overflow: clip;
  }
  .gpwmm2-app {
    gap: 12px;
  }
  .gpwmm2-preview,
  .gpwmm2-editor {
    border-radius: 10px;
  }
  .gpwmm2-preview {
    position: static;
    top: auto;
    z-index: auto;
  }
  .gpwmm2-previewbar {
    grid-template-columns: 1fr auto;
    min-height: 48px;
  }
  .gpwmm2-previewbar > span {
    grid-column: 1/3;
    grid-row: 2;
    text-align: left;
  }
  .gpwmm2-previewbar > strong {
    align-self: center;
  }
  .gpwmm2-steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .gpwmm2-steps button {
    min-width: 0;
    min-height: 48px;
    padding: 7px 2px;
    font-size: 11px;
  }
  .gpwmm2-step-full {
    display: none;
  }
  .gpwmm2-step-short {
    display: inline;
  }
  .gpwmm2-panel {
    padding: 14px;
  }
  .gpwmm2-panel h2 {
    font-size: 20px;
  }
  .gpwmm2-root input[type="text"],
  .gpwmm2-root input[type="search"],
  .gpwmm2-root select,
  .gpwmm2-root textarea {
    font-size: 16px;
  }
  .gpwmm2-grid,
  .gpwmm2-checks {
    grid-template-columns: 1fr;
  }
  .gpwmm2-colors {
    grid-template-columns: 1fr 1fr;
  }
  .gpwmm2-group-buttons {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .gpwmm2-group-buttons button:first-child {
    grid-column: 1/4;
  }
  .gpwmm2-country-row {
    grid-template-columns: 26px minmax(0, 1fr);
    min-height: 52px !important;
  }
  .gpwmm2-country-row small {
    grid-column: 2;
    max-width: 100%;
    margin-top: -5px;
  }
  .gpwmm2-picker-meta {
    grid-template-columns: 1fr 1fr;
  }
  .gpwmm2-picker-meta strong {
    grid-column: 1/3;
  }
  .gpwmm2-picker-actions {
    grid-template-columns: 1fr;
  }
  .gpwmm2-guide {
    padding: 20px 16px;
  }
  .gpwmm2-guide h2 {
    font-size: 22px;
  }
}
@media (max-width: 340px) {
  .gpwmm2-colors,
  .gpwmm2-color-row {
    grid-template-columns: 1fr;
  }
  .gpwmm2-panel {
    padding: 12px;
  }
  .gpwmm2-steps button {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gpwmm2-country {
    transition: none;
  }
}
