/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
     ========================================================================== */

/**
   * Remove the margin in all browsers.
   */

body {
  margin: 0;
}

/**
   * Render the `main` element consistently in IE.
   */

main {
  display: block;
}

/**
   * Correct the font size and margin on `h1` elements within `section` and
   * `article` contexts in Chrome, Firefox, and Safari.
   */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
     ========================================================================== */

/**
   * 1. Add the correct box sizing in Firefox.
   * 2. Show the overflow in Edge and IE.
   */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
     ========================================================================== */

/**
   * Remove the gray background on active links in IE 10.
   */

a {
  background-color: transparent;
}

/**
   * 1. Remove the bottom border in Chrome 57-
   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
   */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted; /* 2 */
}

/**
   * Add the correct font weight in Chrome, Edge, and Safari.
   */

b,
strong {
  font-weight: bolder;
}

/**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
   * Add the correct font size in all browsers.
   */

small {
  font-size: 80%;
}

/**
   * Prevent `sub` and `sup` elements from affecting the line height in
   * all browsers.
   */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
     ========================================================================== */

/**
   * Remove the border on images inside links in IE 10.
   */

img {
  border-style: none;
}

/* Forms
     ========================================================================== */

/**
   * 1. Change the font styles in all browsers.
   * 2. Remove the margin in Firefox and Safari.
   */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
   * Show the overflow in IE.
   * 1. Show the overflow in Edge.
   */

button,
input {
  /* 1 */
  overflow: visible;
}

/**
   * Remove the inheritance of text transform in Edge, Firefox, and IE.
   * 1. Remove the inheritance of text transform in Firefox.
   */

button,
select {
  /* 1 */
  text-transform: none;
}

/**
   * Correct the inability to style clickable types in iOS and Safari.
   */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
   * Remove the inner border and padding in Firefox.
   */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
   * Restore the focus styles unset by the previous rule.
   */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
   * Correct the padding in Firefox.
   */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
   * 1. Correct the text wrapping in Edge and IE.
   * 2. Correct the color inheritance from `fieldset` elements in IE.
   * 3. Remove the padding so developers are not caught out when they zero out
   *    `fieldset` elements in all browsers.
   */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
   * Add the correct vertical alignment in Chrome, Firefox, and Opera.
   */

progress {
  vertical-align: baseline;
}

/**
   * Remove the default vertical scrollbar in IE 10+.
   */

textarea {
  overflow: auto;
}

/**
   * 1. Add the correct box sizing in IE 10.
   * 2. Remove the padding in IE 10.
   */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
   * Correct the cursor style of increment and decrement buttons in Chrome.
   */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
   * 1. Correct the odd appearance in Chrome and Safari.
   * 2. Correct the outline style in Safari.
   */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
   * Remove the inner padding in Chrome and Safari on macOS.
   */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
   * 1. Correct the inability to style clickable types in iOS and Safari.
   * 2. Change font properties to `inherit` in Safari.
   */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
     ========================================================================== */

/*
   * Add the correct display in Edge, IE 10+, and Firefox.
   */

details {
  display: block;
}

/*
   * Add the correct display in all browsers.
   */

summary {
  display: list-item;
}

/* Misc
     ========================================================================== */

/**
   * Add the correct display in IE 10+.
   */

template {
  display: none;
}

/**
   * Add the correct display in IE 10.
   */

[hidden] {
  display: none;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font-style: inherit;
  vertical-align: baseline;
}


/**
*
  @prop --ic-z-index-calendar: z-index of calendar.
*/
:host(.ic-date-picker-above) .calendar-container {
  bottom: calc(var(--ic-space-xxl) - var(--ic-space-xxs));
}

:host(.ic-date-picker-calendar) .calendar-container {
  position: absolute;
  min-width: 19rem;
  max-width: 23.5rem;
  width: var(--input-width);
  margin-top: var(--ic-space-xxxs);
  animation: fade-in-calendar var(--ic-transition-duration-slow);
  box-shadow: var(--ic-calendar-elevation);
}

:host .calendar-container {
  display: flex;
  flex-direction: column;
  gap: var(--ic-space-xs);
  width: -moz-fit-content;
  width: fit-content;
  border: var(--ic-border-default);
  border-color: var(--ic-calendar-border);
  border-radius: var(--ic-border-radius);
  align-items: center;
  background-color: var(--ic-calendar-bg);
  z-index: var(--ic-z-index-calendar);
  box-sizing: border-box;
  padding: var(--ic-space-xs);
}

:host(.ic-calendar-small) .calendar-container {
  min-width: 17rem;
  max-width: 21.5rem;
}

:host(.ic-calendar-large) .calendar-container {
  min-width: 21rem;
  max-width: 25.5rem;
}

:host(.ic-calendar-large) {
  --month-button-width: 6.3125rem;
}

:host(.ic-calendar-small) {
  --month-button-width: 6.25rem;
}

:host .month-year-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

:host .month-year-nav-container.hidden {
  display: none;
}

:host .month-year-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1 0 0;
}

:host .month-picker,
:host .year-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 17.5rem;
  -moz-column-gap: var(--ic-space-xs);
       column-gap: var(--ic-space-xs);
  row-gap: var(--ic-space-xxs);
}

:host(.ic-calendar-small) .month-picker,
:host(.ic-calendar-small) .year-picker {
  width: 13.125rem;
}

:host(.ic-calendar-large) .month-picker,
:host(.ic-calendar-large) .year-picker {
  width: 20rem;
}

:host .month-picker .month-picker-row,
:host .year-picker .year-picker-row {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: var(--ic-space-xs);
}

:host(.ic-calendar-small) .month-picker .month-picker-row,
:host(.ic-calendar-small) .year-picker .year-picker-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

:host .month-picker-button,
:host .year-picker-button {
  width: 5rem;

  --min-width: 5rem;
}

:host .month-button,
:host .year-button {
  width: var(--month-button-width);
}

:host .month-button.focussed,
:host .year-button.focussed {
  z-index: 1;
}

:host .month-button::part(button),
:host .year-button::part(button) {
  min-width: var(--month-button-width);
  padding: var(--ic-space-xs) auto;
}

:host .prev-decade.year-button svg {
  margin-right: calc(-1 * var(--ic-space-xs));

  --icon-width: var(--ic-space-md);
  --icon-height: var(--ic-space-md);
}

:host(.ic-calendar-small) .prev-decade.year-button svg {
  margin-right: calc(-1 * calc(var(--ic-space-md) + var(--ic-space-1px)));
}

:host(.ic-calendar-large) .prev-decade.year-button svg {
  margin-right: calc(-1 * calc(var(--ic-space-md) + var(--ic-space-xxs)));
}

:host .prev-decade.year-button::part(button) {
  padding-left: 0;
  padding-right: var(--ic-space-lg);
  gap: var(--ic-space-xxxs);
  display: inline-grid;
  grid-template-columns: 1.5rem 1fr;
}

:host(.ic-calendar-small) .prev-decade.year-button::part(button) {
  padding-left: 0;
  padding-right: calc(var(--ic-space-lg) + var(--ic-space-xxs));
}

:host .next-decade.year-button svg {
  margin-left: calc(-1 * var(--ic-space-lg));

  --icon-width: var(--ic-space-md);
  --icon-height: var(--ic-space-md);
}

:host(.ic-calendar-small) .next-decade.year-button svg,
:host(.ic-calendar-large) .next-decade.year-button svg {
  margin-left: calc(
    -1 * (var(--ic-space-lg) + var(--ic-space-xs) + var(--ic-space-1px))
  );
}

:host .next-decade.year-button::part(button) {
  padding-right: 0;
  padding-left: var(--ic-space-lg);
  gap: var(--ic-space-xxxs);
  display: inline-grid;
  grid-template-columns: 1fr 1.5rem;
}

:host(.ic-calendar-small) .next-decade.year-button::part(button),
:host(.ic-calendar-large) .next-decade.year-button::part(button) {
  padding-left: calc(var(--ic-space-xl) - var(--ic-space-xxs));
}

:host .bottom-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  animation: fade-in-buttons var(--ic-transition-duration-slow);
}

:host .bottom-buttons.no-today {
  align-items: flex-end;
  flex-direction: column;
}

:host .bottom-buttons.hidden {
  display: none;
}

:host .calendar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 15.75rem;
  animation: fade-in-buttons var(--ic-transition-duration-slow);
}

:host(.ic-calendar-large) .calendar {
  width: 19.25rem;
}

:host(.ic-calendar-small) .calendar {
  padding-bottom: var(--ic-space-xxs);
  width: 14rem;
}

:host .hidden {
  display: none;
}

:host .weekdays-container {
  display: flex;
  align-self: stretch;
}

:host .weekdays {
  display: flex;
  flex-grow: 1;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: var(--ic-space-xs);
}

:host .calendar-days-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: var(--ic-space-xs);
  padding: var(--ic-space-xxs) 0;
  min-height: 16rem;
  align-content: flex-start;
}

:host(.ic-calendar-small) .calendar-days-container {
  padding: var(--ic-space-xxxs) 0;
  min-height: 14.5rem;
}

:host(.ic-calendar-large) .calendar-days-container {
  padding: var(--ic-space-xs) 0;
  min-height: 17.5rem;
}

:host .calendar-days-container tr {
  display: flex;
  flex-grow: 1;
  justify-content: space-between;
  border-spacing: 0;
}

:host .calendar-day-header {
  display: flex;
  width: 2rem;
  padding: var(--ic-space-xxs) 0;
  justify-content: center;
  align-items: center;
  color: var(--ic-typography-color, var(--ic-color-text-primary));

  --ic-typography-color: var(--ic-calendar-label);

  text-align: center;
  font: var(--ic-font-caption);
  letter-spacing: var(--ic-font-letter-spacing-0pt0025);
}

:host(.ic-calendar-large) .calendar-day-header {
  padding: var(--ic-space-xxs);
}

:host .day-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2.25rem;
  height: 2.25rem;
}

:host(.ic-calendar-small) .day-button-container {
  width: 2rem;
  height: 2rem;
}

:host(.ic-calendar-large) .day-button-container {
  width: 2.5rem;
  height: 2.5rem;
}

:host .day-button {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 2rem;
  background-color: var(--ic-calendar-bg);
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  transition: var(--ic-easing-transition-fast);
  z-index: 0;
}

:host .day-button.disabled {
  cursor: default;
}

:host(.ic-calendar-large) .day-button {
  width: 2.25rem;
  height: 2.25rem;
}

:host(.ic-calendar-small) .day-button {
  width: 1.75rem;
  height: 1.75rem;
}

:host .day-button ic-typography {
  width: 1.75rem;

  --ic-typography-color: var(--ic-calendar-date-label-default);
}

:host .day-button.outside-range ic-typography {
  --ic-typography-color: var(--ic-calendar-date-label-disabled);
}

:host .day-button.outside-month ic-typography {
  font-weight: var(--ic-font-weight-regular) !important;
}

:host
  .day-button.outside-month:not(.outside-range):not(.selected)
  ic-typography {
  --ic-typography-color: var(--ic-calendar-date-label-default);
}

:host .day-button:hover:not(.disabled) {
  background-color: var(--ic-calendar-date-default-bg-hover);
}

:host .day-button:active:not(.disabled) {
  background-color: var(--ic-calendar-date-default-bg-pressed);
}

@media (prefers-reduced-motion: no-preference) {
  :host .day-button:hover:not(.disabled):not(.focussed),
  :host .day-button:active:not(.disabled):not(.focussed) {
    transition: background-color var(--ic-transition-duration-slow) ease-in-out;
  }
}

:host .day-button.selected:not(.hidden) {
  background-color: var(--ic-calendar-date-active-bg-default);
}

:host .day-button.selected ic-typography {
  --ic-typography-color: var(--ic-calendar-date-label-selected);
}

:host .day-button.selected:not(.hidden):hover {
  background-color: var(--ic-calendar-date-active-bg-hover);
}

:host .day-button.selected:not(.hidden):active {
  background-color: var(--ic-calendar-date-active-bg-pressed);
}

:host .day-button.focussed {
  z-index: 1;
}

:host .day-button:focus {
  outline: none;
}

:host .day-button.focussed:focus {
  box-shadow: var(--ic-border-focus);
}

:host .day-button.today:not(.hidden)::after {
  content: "";
  position: absolute;
  width: 0.875rem;
  height: 0.125rem;
  bottom: 0.4rem;
  border-radius: var(--ic-border-radius);
  background-color: var(--ic-calendar-default-underline);
}

:host(.ic-calendar-small) .day-button.today::after {
  bottom: 0.35rem;
}

:host(.ic-calendar-large) .day-button.today::after {
  width: 1rem;
}

:host .day-button.today.selected::after {
  background-color: var(--ic-calendar-selected-underline);
}

:host #select-month-hint,
:host #select-year-hint {
  display: none;
}

.sr-only {
  position: absolute;
  left: -9999px;
}

@media (prefers-reduced-motion: reduce) {
  :host .calendar-container,
  :host .calendar,
  :host .bottom-buttons {
    animation: none;
  }

  :host .day-button {
    transition: none;
  }
}

@keyframes fade-in-buttons {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fade-in-calendar {
  0% {
    display: flex;
    max-height: 0;
  }

  100% {
    display: flex;
    max-height: 600px;
  }
}

@media (forced-colors: active) {
  :host .day-button.today:not(.hidden)::after {
    background-color: highlight;
  }

  :host .day-button.selected:not(.hidden) {
    background-color: highlight;
  }

  :host .day-button.focussed:focus {
    border: var(--ic-border-hc);
  }

  :host .month-button.selected::part(button),
  :host .year-button.selected::part(button) {
    background-color: highlight;
  }
}
