/* ManilaStay v1-2-8: picker popover clipping/click fix support. */
body > .ms-picker-popover {
  position: fixed;
  z-index: 2147483000;
  width: min(18rem, calc(100vw - 2rem));
}
body > .ms-time-picker-popover {
  width: min(20rem, calc(100vw - 2rem));
}
.ms-picker-popover.is-above {
  transform-origin: bottom left;
}
.ms-picker-time-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 196, 202, 0.48) rgba(10, 18, 26, 0.92);
}
.ms-picker-time-list::-webkit-scrollbar {
  width: 0.6rem;
}
.ms-picker-time-list::-webkit-scrollbar-track {
  background: rgba(10, 18, 26, 0.92);
  border-radius: 999px;
}
.ms-picker-time-list::-webkit-scrollbar-thumb {
  background: rgba(184, 196, 202, 0.46);
  border: 2px solid rgba(10, 18, 26, 0.92);
  border-radius: 999px;
}
.ms-picker-time-list::-webkit-scrollbar-thumb:hover {
  background: rgba(184, 196, 202, 0.68);
}


/* ManilaStay v1-3-2: contact-form picker parity and reliable linked cards. */
.ms-services-card--link {
  color: inherit;
  text-decoration: none;
}

.ms-services-card--link:visited,
.ms-services-card--link:hover,
.ms-services-card--link:focus {
  color: inherit;
  text-decoration: none;
}

.ms-contact-form .ms-picker-input {
  cursor: pointer;
  caret-color: transparent;
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.05rem 1.05rem;
  padding-right: 2.75rem;
}

.ms-contact-form .ms-date-picker-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23475b66' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='3.5' y='4.5' width='17' height='16' rx='2.5'/%3E%3Cpath d='M8 2.8v4M16 2.8v4M3.5 9h17'/%3E%3C/svg%3E");
}

.ms-contact-form .ms-time-picker-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23475b66' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3.2 2'/%3E%3C/svg%3E");
}

.ms-picker-popover--light {
  background: #ffffff;
  border-color: rgba(71, 91, 102, 0.24);
  box-shadow: 0 18px 45px rgba(31, 31, 31, 0.18);
  color: #1f1f1f;
}

.ms-picker-popover--light .ms-picker-title {
  color: #1f1f1f;
}

.ms-picker-popover--light .ms-picker-nav,
.ms-picker-popover--light .ms-picker-day,
.ms-picker-popover--light .ms-picker-time-option {
  background: #ffffff;
  border-color: rgba(71, 91, 102, 0.22);
  color: #1f1f1f;
}

.ms-picker-popover--light .ms-picker-weekday {
  color: rgba(31, 31, 31, 0.62);
}

.ms-picker-popover--light .ms-picker-day:hover,
.ms-picker-popover--light .ms-picker-day:focus-visible,
.ms-picker-popover--light .ms-picker-time-option:hover,
.ms-picker-popover--light .ms-picker-time-option:focus-visible {
  border-color: rgba(213, 75, 15, 0.85);
}

.ms-picker-popover--light .ms-picker-day.is-selected,
.ms-picker-popover--light .ms-picker-time-option.is-selected {
  background: #d54b0f;
  border-color: #d54b0f;
  color: #ffffff;
}

.ms-picker-popover--light .ms-picker-time-list {
  scrollbar-color: #475b66 #ececee;
}

.ms-picker-popover--light .ms-picker-time-list::-webkit-scrollbar-track {
  background: #ececee;
}

.ms-picker-popover--light .ms-picker-time-list::-webkit-scrollbar-thumb {
  background: #475b66;
}
