.statement-date-filter-host {
  position: relative;
  overflow: visible;
}

.statement-date-trigger {
  position: relative;
  z-index: 2;
  outline: none;
}

.statement-date-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(95, 91, 196, 0.2);
}

.statement-date-trigger.is-open {
  border-color: #a8a8a8;
}

.statement-date-trigger.is-open .iconArrow___tcvAR {
  transform: rotate(180deg);
}

.statement-date-panel,
.statement-date-panel * {
  box-sizing: border-box;
}

.statement-date-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 1200;
  width: 344px;
  padding: 16px;
  color: #1a1a1a;
  background: #fff;
  border-top: 3px solid #ebf8ff;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(28, 33, 48, 0.18);
}

.statement-date-panel[hidden] {
  display: none;
}

.statement-date-presets {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.statement-date-preset {
  height: 40px;
  padding: 0 16px;
  color: #1a1a1a;
  font: inherit;
  font-size: 14px;
  line-height: 38px;
  background: #fff;
  border: 1px solid #a8a8a8;
  border-radius: 22px;
  cursor: pointer;
}

.statement-date-preset:hover {
  border-color: #5f5bc4;
}

.statement-date-preset.is-active {
  padding: 0 15px;
  color: #1a1a1a;
  border: 2px solid #5f5bc4;
  line-height: 36px;
}

.statement-date-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.statement-date-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  color: #1a1a1a;
  font: inherit;
  font-size: 14px;
  text-align: left;
  background: #fff;
  border: 1px solid #a8a8a8;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
}

.statement-date-field:hover {
  border-color: #5f5bc4;
}

.statement-date-field.is-focused,
.statement-date-field:focus-visible {
  padding: 0 11px;
  border: 2px solid #5f5bc4;
  box-shadow: 0 0 0 2px rgba(95, 91, 196, 0.06);
}

.statement-date-calendar-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.statement-date-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.statement-date-cancel,
.statement-date-save {
  min-width: 80px;
  height: 40px;
  padding: 0 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  border-radius: 22px;
  cursor: pointer;
}

.statement-date-cancel {
  color: #1a1a1a;
  background: #f3f3f7;
}

.statement-date-cancel:hover {
  background: #e9e9ef;
}

.statement-date-save {
  color: #fff;
  background: #ff0046;
}

.statement-date-save:hover {
  background: #e6003f;
}

.statement-calendar {
  position: absolute;
  left: 16px;
  z-index: 3;
  width: 304px;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(28, 33, 48, 0.2);
}

.statement-calendar.is-start {
  top: 118px;
}

.statement-calendar.is-end {
  top: 170px;
}

.statement-calendar-header {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  min-height: 42px;
  padding: 0 8px;
  border-bottom: 1px solid #e8e8e8;
}

.statement-calendar-nav {
  width: 32px;
  height: 32px;
  padding: 0;
  color: #8a8a8a;
  font: inherit;
  font-size: 26px;
  line-height: 30px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.statement-calendar-nav:hover:not(:disabled) {
  color: #5f5bc4;
  background: #f4f3ff;
}

.statement-calendar-nav:disabled {
  color: #d6d6d6;
  cursor: not-allowed;
}

.statement-calendar-selects {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.statement-calendar-selects label {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.statement-calendar-selects label::after {
  width: 0;
  height: 0;
  margin-left: -14px;
  pointer-events: none;
  content: "";
  border-top: 6px solid #5f5bc4;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
}

.statement-calendar-selects select {
  padding: 4px 20px 4px 6px;
  color: #5f5bc4;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
  appearance: none;
}

.statement-calendar-weekdays,
.statement-calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.statement-calendar-weekdays {
  padding: 10px 12px 4px;
  color: #383838;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.statement-calendar-grid {
  padding: 0 12px 12px;
}

.statement-calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0;
  color: #1a1a1a;
  font: inherit;
  font-size: 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.statement-calendar-day span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.statement-calendar-day:hover:not(:disabled) span {
  color: #5f5bc4;
  background: #f0efff;
}

.statement-calendar-day.is-outside {
  color: #cfcfcf;
}

.statement-calendar-day.is-today:not(.is-selected) span {
  box-shadow: inset 0 0 0 1px #5f5bc4;
}

.statement-calendar-day.is-selected span {
  color: #fff;
  background: #625dc8;
}

.statement-calendar-day.is-disabled {
  color: #d0d0d0;
  background: #f6f6f6;
  cursor: not-allowed;
}

.statement-calendar-day.is-disabled span {
  box-shadow: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .statement-date-panel {
    width: min(344px, calc(100vw - 32px));
  }

  .statement-calendar {
    width: calc(100% - 32px);
  }

  .statement-date-presets {
    gap: 8px;
  }

  .statement-date-preset {
    flex: 1 1 auto;
    padding: 0 10px;
  }
}
