/* Public controls opt in; account forms, editors and map data keep their own styles. */
body.nakmap-public [data-experience-controls] :is(button, a[href], summary),
body.nakmap-public :is(button, a[href], summary)[data-experience-control] {
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  border-radius: 8px;
  font-family: inherit;
  line-height: 1.4;
  touch-action: manipulation;
}

body.nakmap-public [data-experience-controls] a[href],
body.nakmap-public a[href][data-experience-control] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  text-align: center;
  text-underline-offset: 3px;
}

body.nakmap-public [data-experience-controls] :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]), select),
body.nakmap-public :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]), select)[data-experience-control] {
  box-sizing: border-box;
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  border-radius: 8px;
  font-family: inherit;
}

body.nakmap-public [data-experience-controls] :is(a, button, input, select, summary):focus-visible,
body.nakmap-public [data-experience-control]:focus-visible {
  outline: 3px solid #1279ce;
  outline-offset: 3px;
}

body.nakmap-public [data-experience-controls] :is(button:disabled, input:disabled, select:disabled, [aria-disabled="true"]),
body.nakmap-public [data-experience-control]:is(:disabled, [aria-disabled="true"]) {
  cursor: not-allowed;
  opacity: .6;
}

body.nakmap-public :is(.platform-filter, .shop-filter)[data-experience-controls] {
  flex-wrap: wrap;
  gap: 12px;
}

body.nakmap-public :is(.platform-filter, .shop-filter)[data-experience-controls] label {
  min-width: 0;
}

body.nakmap-public :is(.platform-filter, .shop-filter)[data-experience-controls] button[type="submit"],
body.nakmap-public [data-experience-primary] {
  background: #1279ce;
  border-color: #1279ce;
  color: #fff;
  font-weight: 700;
}

body.nakmap-public :is(.platform-filter, .shop-filter)[data-experience-controls] button[type="submit"]:hover:not(:disabled),
body.nakmap-public [data-experience-primary]:hover:not(:disabled):not([aria-disabled="true"]) {
  background: #0965af;
  border-color: #0965af;
}

body.nakmap-public .catalog-status {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}

body.nakmap-public #wx-search[data-experience-controls] {
  height: 44px;
  min-height: 44px;
}

@media (max-width: 600px) {
  body.nakmap-public :is(.platform-filter, .shop-filter)[data-experience-controls] {
    gap: 10px;
  }

  body.nakmap-public :is(.platform-filter, .shop-filter)[data-experience-controls] label {
    flex: 1 1 120px;
  }

  body.nakmap-public :is(.platform-filter, .shop-filter)[data-experience-controls] :is(.platform-query, .shop-query) {
    flex-basis: 100%;
  }

  body.nakmap-public [data-experience-controls] :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]), select),
  body.nakmap-public :is(input, select)[data-experience-control] {
    font-size: 16px;
  }
}
