.hw-price-preferences { font-family: var(--font-sans); color: var(--fg-strong); }
.hw-price-preferences [hidden] { display: none; }
.hw-price-preferences:not([data-guest-cookie]) button.hw-price-trigger {
  display: inline-flex; align-items: center; min-height: 32px; border: 1px solid var(--border);
  border-radius: 6px; background: transparent; padding: 2px 8px; color: var(--fg-strong);
  font: inherit; font-size: .75rem; white-space: nowrap; cursor: pointer;
}
/* The guest button sits next to the language menu in each checkout header. */
.hw-price-preferences[data-guest-cookie] { color: inherit; }
:where([data-guest-cookie]) > .hw-price-trigger {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
  border: 0; border-radius: var(--r-sm); background: transparent;
  font: inherit; color: inherit; white-space: nowrap; cursor: pointer;
}
.hw-v2-controls :where([data-guest-cookie]) > .hw-price-trigger:hover { background: var(--bg-muted); }
.hw-checkout-links :where([data-guest-cookie]) > .hw-price-trigger { font-size: 14px; color: var(--fg-strong); }
@media (max-width: 600px) {
  .hw-checkout-links :where([data-guest-cookie]) > .hw-price-trigger { font-size: 12px; }
  .hw-v2-top-header :where([data-guest-cookie]) > .hw-price-trigger { padding-inline: 4px; font-size: 12px; }
}
@media (max-width: 480px) {
  .hw-v2-site-header--compact :where([data-guest-cookie]) > .hw-price-trigger { padding-inline: 6px; font-size: 12px; }
}
.hw-price-preferences button.hw-price-trigger[hidden] { display: none; }
.hw-price-preferences dialog {
  inset: 0; margin: auto; width: min(28rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  box-sizing: border-box; overflow: auto; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); color: var(--fg-strong); padding: clamp(1.15rem, 3vw, 2rem);
  box-shadow: 0 12px 48px #132a3c48; text-align: start; white-space: normal;
}
.hw-price-preferences dialog::backdrop { background: #192e4190; }
.hw-price-preferences form.hw-price-display-switch { display: grid; gap: .6rem; font-size: .95rem; }
.hw-price-preferences h2 { color: var(--fg-strong); font-size: 1.35rem; margin: 0 0 .4rem; }
.hw-price-preferences label.hw-price-country, .hw-price-preferences .hw-price-account-country { display: grid; gap: .4rem; }
.hw-price-preferences label.hw-price-country, .hw-price-preferences label.hw-price-mode { font-weight: 650; color: var(--fg-strong); font-size: .95rem; }
.hw-price-preferences .hw-price-country select {
  display: block; width: 100%; color: var(--fg-strong); background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px; padding: .6rem; font: inherit; font-weight: 400;
}
.hw-price-preferences label.hw-price-mode { display: flex; align-items: center; gap: .65rem; min-height: 44px; cursor: pointer; }
.hw-price-preferences input.hw-price-toggle {
  appearance: none; -webkit-appearance: none; position: relative; display: inline-block; flex: none;
  box-sizing: border-box; margin: 0; padding: 0; width: 40px; height: 22px;
  border: 1px solid var(--fg-muted); border-radius: 20px; background: var(--bg-muted); cursor: pointer;
}
.hw-price-preferences input.hw-price-toggle::before {
  content: ''; position: absolute; inset: 2px auto auto 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--fg-strong);
}
.hw-price-preferences input.hw-price-toggle:checked { background: #fbde37; border-color: #2b4358; }
.hw-price-preferences input.hw-price-toggle:checked::before { transform: translateX(18px); background: #2b4358; }
.hw-price-preferences input.hw-price-toggle:disabled { opacity: .7; cursor: default; }
.hw-price-preferences :focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; }
.hw-price-preferences form p { color: var(--fg-muted); line-height: 1.5; margin: .25rem 0; font-size: .95rem; }
.hw-price-preferences .hw-price-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; margin-top: .5rem; }
.hw-price-preferences .hw-price-actions button {
  padding: .55rem .85rem; border: 1px solid var(--border); border-radius: 6px; background: transparent;
  color: var(--fg-strong); font: inherit; font-weight: 600; cursor: pointer;
}
.hw-price-preferences .hw-price-actions button[type=submit] { background: #fbde37; border-color: transparent; color: #233649; }
@media (max-width: 430px) { .hw-price-preferences:not([data-guest-cookie]) button.hw-price-trigger { min-height: 36px; padding-inline: 5px; font-size: .7rem; } }
@media (forced-colors: active) {
  .hw-price-preferences input.hw-price-toggle { forced-color-adjust: none; border-color: ButtonText; background: ButtonFace; }
  .hw-price-preferences input.hw-price-toggle::before { background: ButtonText; }
  .hw-price-preferences input.hw-price-toggle:checked { background: Highlight; }
  .hw-price-preferences input.hw-price-toggle:checked::before { background: HighlightText; }
}
