.hw-widgets, .hw-widgets * , .hw-overlay, .hw-overlay * { box-sizing: border-box; }
.hw-widgets { width: 100%; padding: 12px 8px 14px; display: none; gap: 10px; flex: 0 0 auto; touch-action: pan-y; }
.hw-widgets.hw-widgets--visible { display: grid; }
.hw-widgets.hw-widgets--visible::before, .hw-widgets.hw-widgets--visible::after, .hw-widgets__divider { content: ''; display: block; height: 1px; margin: 3px 6px; background: linear-gradient(90deg, #ff6700 0 28px, #737373 28px 100%); }
.hw-widgets * { touch-action: auto !important; }
.sidebar > .sidebar-nav { min-height: 0; flex: 0 1 auto; }
@media (min-width: 1200px) {
  .sidebar > .hw-widgets.hw-widgets--visible { flex: 1 0 auto; align-content: center; grid-auto-rows: max-content; }
  .sidebar > .hw-widgets.hw-widgets--visible + .sidebar-menu { flex: 0 0 auto; }
}
.hw-card { display: block; width: 100%; padding: 11px 12px; border: 1px solid #696969; border-radius: 10px; background: #393939; color: #fff; text-align: left; font: inherit; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.hw-card:hover, .hw-card:focus-visible { border-color: #ff6700; background: #4a4a4a; transform: none; }
.hw-card:disabled { cursor: wait; opacity: .8; }
.hw-card__heading { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; line-height: 1.2; }
.hw-card__icon { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; background: #ff6700; color: #fff; font-size: 13px; }
.hw-card__icon img { display: block; width: 14px; height: 14px; }
.hw-card__chevron { margin-left: auto; color: #ff6700; font-size: 21px; line-height: .8; }
.hw-card__main { display: block; margin-top: 8px; font-size: 17px; line-height: 1.25; font-weight: 700; }
.hw-card__main--rates { margin-top: 7px; font-size: 12px; font-weight: 500; }
.hw-card__rate { display: flex; justify-content: space-between; gap: 5px; padding-top: 3px; }
.hw-card__rate strong { color: #fff; font-weight: 700; }
.hw-card__sub { display: block; margin-top: 5px; color: #d2d2d2; font-size: 11px; line-height: 1.35; }
.hw-overlay[hidden] { display: none !important; }
.hw-overlay { position: fixed; z-index: 10001; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .64); touch-action: auto; }
.hw-dialog { width: min(100%, 640px); max-height: min(90vh, 760px); overflow-y: auto; border-radius: 16px; background: #fff; color: #303030; box-shadow: 0 16px 48px rgba(0, 0, 0, .25); touch-action: pan-y; }
.hw-dialog__header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 12px; border-bottom: 1px solid #ececec; background: #fff; }
.hw-dialog__header h2 { margin: 0; font: 700 22px/1.2 Roboto, Arial, sans-serif; text-transform: none; }
.hw-dialog__close { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #f2f2f2; color: #333; font-size: 25px; line-height: 1; cursor: pointer; }
.hw-dialog__close:hover, .hw-dialog__close:focus-visible { background: #ff6700; color: #fff; }
.hw-dialog__content { padding: 18px 22px 22px; }
.hw-modal-lead { margin: 0 0 15px; color: #666; font-size: 13px; }
.hw-city-picker { display: grid; gap: 6px; margin-bottom: 15px; font-size: 13px; font-weight: 600; }
.hw-city-picker select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #cfcfcf; border-radius: 7px; background: #fff; color: #303030; font: inherit; }
.hw-city-picker select:focus-visible { border-color: #ff6700; outline: 2px solid rgba(255, 103, 0, .22) !important; }
.hw-modal-current { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 18px; padding: 14px; border-radius: 10px; background: #f6f6f6; }
.hw-modal-current__temp { color: #ff6700; font-size: 30px; font-weight: 700; line-height: 1; }
.hw-modal-current__details { font-size: 14px; line-height: 1.5; }
.hw-forecast { list-style: none; margin: 0; padding: 0; }
.hw-forecast__day { display: grid; grid-template-columns: 100px minmax(115px, 1fr) 90px minmax(130px, 1.2fr); align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #ececec; font-size: 13px; }
.hw-forecast__day:last-child { border-bottom: 0; }
.hw-forecast__date { font-weight: 700; }
.hw-forecast__temp { white-space: nowrap; font-weight: 700; }
.hw-forecast__temp strong { color: #ff6700; }
.hw-forecast__details { color: #666; }
.hw-source { margin: 17px 0 0; color: #777; font-size: 12px; }
.hw-source a { color: #e65d00; text-decoration: underline; }
.hw-rates { width: 100%; border-collapse: collapse; font-size: 14px; }
.hw-rates th, .hw-rates td { padding: 9px 5px; border-bottom: 1px solid #ececec; text-align: left; }
.hw-rates th:last-child, .hw-rates td:last-child { text-align: right; }
.hw-calculator { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 22px; }
.hw-calculator__title { grid-column: 1 / -1; margin: 0; font-size: 18px; font-weight: 700; }
.hw-calculator label { display: grid; gap: 5px; margin: 0; font-size: 13px; font-weight: 600; }
.hw-calculator__pair { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: end; gap: 10px; }
.hw-calculator__swap { width: 44px; height: 44px; padding: 0; border: 1px solid #ff6700; border-radius: 50%; background: #fff; color: #ff6700; display: grid; place-items: center; cursor: pointer; appearance: none; transition: background .2s, color .2s, box-shadow .2s; }
.hw-calculator__swap svg { display: block; width: 22px; height: 22px; }
.hw-calculator__swap:hover { background: #fff3eb !important; box-shadow: 0 0 0 2px rgba(255, 103, 0, .12); }
.hw-calculator input, .hw-calculator select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #cfcfcf; border-radius: 7px; background: #fff; color: #303030; font: inherit; }
.hw-calculator input:focus-visible, .hw-calculator select:focus-visible { border-color: #ff6700; outline: 2px solid rgba(255, 103, 0, .22) !important; }
.hw-calculator__swap:focus-visible { outline: 2px solid #ff6700 !important; outline-offset: 2px; }
.hw-calculator__result { grid-column: 1 / -1; min-height: 52px; padding: 12px; border-radius: 8px; background: #fff3eb; color: #303030; font-size: 18px; font-weight: 700; }
.hw-calculator__result strong { color: #e65d00; }
.hw-card:focus-visible, .hw-dialog__close:focus-visible { outline: 2px solid #ff6700 !important; outline-offset: 2px; }
@media (max-width: 1199px) {
  .sidebar { max-height: 100vh; max-height: 100dvh; overflow-y: auto; touch-action: pan-y; }
  .hw-widgets [data-hw-open="weather"], .hw-widgets__divider { display: none; }
}
@media (max-width: 767px) {
  .hw-overlay { padding: 12px; align-items: flex-start; }
  .hw-dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 16px; }
  .hw-dialog__header { padding: 16px; }
  .hw-dialog__content { padding: 16px; }
  .hw-forecast__day { grid-template-columns: 1fr 1fr; gap: 4px 10px; }
  .hw-forecast__details { text-align: right; }
}
