:root {
  --dar-market-ink: #0b0b0b;
  --dar-market-gold: #b08d57;
  --dar-market-ivory: #f7f2e8;
  --dar-market-page: #e2d9c5;
  --dar-market-surface: #fff9ef;
}

.dar-market-dialog[hidden] { display: none; }
.dar-market-dialog { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 20px; }
.dar-market-dialog__backdrop { position: absolute; inset: 0; background: rgba(11, 11, 11, .78); }
.dar-market-dialog__panel { position: relative; width: min(560px, 100%); padding: 36px; border: 1px solid rgba(176, 141, 87, .5); border-radius: 8px; background: var(--dar-market-page); color: var(--dar-market-ink); text-align: right; box-shadow: 0 24px 80px rgba(0, 0, 0, .28); }
.dar-market-dialog__panel h2 { margin: 0 0 10px; font-size: 34px; line-height: 1.25; }
.dar-market-dialog__eyebrow { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 8px; color: var(--dar-market-gold); font-size: 13px; }
.dar-market-dialog__copy { margin: 0 0 24px; color: #6b665e; }
.dar-market-dialog__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dar-market-dialog__choices form { margin: 0; }
.dar-market-choice { width: 100%; min-height: 92px; display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid rgba(176, 141, 87, .45); border-radius: 8px; background: var(--dar-market-surface); color: var(--dar-market-ink); text-align: right; cursor: pointer; }
.dar-market-choice:hover, .dar-market-choice:focus-visible { border-color: var(--dar-market-gold); outline: 2px solid transparent; box-shadow: 0 0 0 3px rgba(176, 141, 87, .2); }
.dar-market-choice__code { flex: 0 0 46px; display: grid; place-items: center; min-width: 46px; font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; font-size: 38px; line-height: 1; }
.dar-market-choice__code img { width: 36px; height: 24px; border-radius: 2px; object-fit: cover; }
.dar-market-choice strong, .dar-market-choice small { display: block; }
.dar-market-choice strong { margin-bottom: 4px; font-size: 18px; }
.dar-market-choice small { color: var(--dar-market-gold); }
.dar-market-choice:hover small { color: var(--dar-market-ink); }
.dar-market-dialog__close { position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--dar-market-ink); font-size: 28px; cursor: pointer; }
.dar-market-switcher { position: relative; display: inline-block; color: inherit; }
.dar-market-header-slot { display: flex; align-items: center; }
.dar-market-mobile-menu-slot { padding: 16px 20px; border-top: 1px solid rgba(11, 11, 11, .1); }
.dar-market-mobile-menu-slot .dar-market-switcher { display: block; }
.dar-market-mobile-menu-slot .dar-market-switcher__toggle { width: 100%; color: var(--dar-market-ink); }
.dar-market-mobile-menu-slot .dar-market-switcher__arrow { margin-inline-start: auto; }
.dar-market-mobile-menu-slot .dar-market-switcher__menu { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
.dar-market-switcher__toggle { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(176, 141, 87, .55); border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
#site-footer .dar-market-switcher__current { color: #fff; }
.dar-market-switcher__flag { display: grid; place-items: center; min-width: 24px; font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; font-size: 20px; line-height: 1; }
.dar-market-switcher__flag img { width: 24px; height: 16px; border-radius: 2px; object-fit: cover; }
.dar-market-switcher__toggle:hover, .dar-market-switcher__toggle:focus-visible { border-color: var(--dar-market-gold); outline: none; }
.dar-market-switcher__arrow { width: 7px; height: 7px; border-inline-end: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.dar-market-switcher__menu { position: absolute; z-index: 1000; inset-block-start: calc(100% + 8px); inset-inline-end: 0; width: 210px; padding: 6px; border: 1px solid rgba(176, 141, 87, .45); border-radius: 6px; background: var(--dar-market-surface); box-shadow: 0 14px 35px rgba(0, 0, 0, .22); }
.dar-market-switcher__menu[hidden] { display: none; }
.dar-market-switcher__menu form { margin: 0; }
.dar-market-switcher__choice { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 4px; background: transparent; color: var(--dar-market-ink); text-align: right; cursor: pointer; }
.dar-market-switcher__choice:hover, .dar-market-switcher__choice:focus-visible { background: var(--dar-market-page); outline: none; }
.dar-market-switcher__choice .dar-market-choice__code { flex-basis: 30px; min-width: 30px; font-size: 25px; }
.dar-market-switcher__choice strong { font-size: 14px; font-weight: 600; }

@media (max-width: 560px) {
  .dar-market-dialog { padding: 14px; }
  .dar-market-dialog__panel { padding: 28px 18px 20px; }
  .dar-market-dialog__panel h2 { font-size: 27px; }
  .dar-market-dialog__choices { grid-template-columns: 1fr; }
  .dar-market-switcher__menu { width: min(210px, calc(100vw - 28px)); }
  .dar-market-mobile-menu-slot .dar-market-switcher__menu { width: 100%; }
}

@media (min-width: 1200px) {
  .dar-market-mobile-menu-slot { display: none; }
}
