.phone-date-time-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: 1.15fr .85fr;
}

.rypo-dtp[hidden],
.rypo-dtp-clear[hidden] {
  display: none;
}

.rypo-dtp {
  inset: 0;
  position: fixed;
  z-index: 30000;
}

.rypo-dtp-backdrop {
  background: rgba(4, 20, 40, .62);
  border: 0;
  inset: 0;
  position: absolute;
  width: 100%;
}

.rypo-dtp-dialog {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(4, 25, 52, .3);
  left: 50%;
  max-height: calc(100vh - 36px);
  max-width: 880px;
  outline: 0;
  overflow: auto;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
}

.rypo-dtp-main {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
}

.rypo-dtp-date-pane,
.rypo-dtp-time-pane {
  padding: 26px;
}

.rypo-dtp-time-pane {
  background: #f5f8fc;
  border-left: 1px solid #e4ebf3;
}

.rypo-dtp h2 {
  align-items: center;
  color: #0b315c;
  display: flex;
  font-size: 20px;
  gap: 9px;
  margin: 0 0 6px;
}

.rypo-dtp h2 span {
  align-items: center;
  background: #ffedf0;
  border-radius: 50%;
  color: #f3263e;
  display: inline-flex;
  font-size: 13px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.rypo-dtp-field-name,
.rypo-dtp-time-pane > p {
  color: #71839a;
  font-size: 12px;
}

.rypo-dtp-field-name {
  margin: 0 0 17px;
}

.rypo-dtp-time-pane > p {
  margin: 0 0 14px;
}

.rypo-dtp-month-bar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rypo-dtp-month-bar strong {
  color: #0b315c;
  font-size: 17px;
}

.rypo-dtp-month-bar button {
  background: #fff;
  border: 1px solid #dce5ef;
  border-radius: 9px;
  color: #0b315c;
  cursor: pointer;
  font-size: 22px;
  height: 38px;
  margin-left: 6px;
  width: 38px;
}

.rypo-dtp-month-bar button:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.rypo-dtp-weekdays,
.rypo-dtp-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.rypo-dtp-weekdays span {
  color: #8190a4;
  font-size: 10px;
  font-weight: 800;
  padding: 8px 0;
}

.rypo-dtp-calendar button {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #173b65;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  height: 42px;
  margin: 2px;
}

.rypo-dtp-calendar button:hover:not(:disabled) {
  background: #eef4fb;
}

.rypo-dtp-calendar button.is-outside {
  color: #aab6c5;
}

.rypo-dtp-calendar button.is-today {
  box-shadow: inset 0 0 0 1px #ff4054;
}

.rypo-dtp-calendar button.is-selected {
  background: #f5243c;
  color: #fff;
  font-weight: 800;
}

.rypo-dtp-calendar button:disabled {
  color: #d1d8e1;
  cursor: not-allowed;
}

.rypo-dtp-exact {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.rypo-dtp-exact span {
  color: #526b86;
  font-size: 11px;
  font-weight: 800;
}

.rypo-dtp-exact input {
  background: #fff;
  border: 1px solid #dce5ef;
  border-radius: 9px;
  color: #173b65;
  font: inherit;
  font-size: 14px;
  min-height: 42px;
  padding: 8px 11px;
  width: 100%;
}

.rypo-dtp-slots {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.rypo-dtp-slots button {
  background: #fff;
  border: 1px solid #dce5ef;
  border-radius: 9px;
  color: #173b65;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 7px;
}

.rypo-dtp-slots button:hover:not(:disabled) {
  border-color: #ff4054;
}

.rypo-dtp-slots button.is-selected {
  background: #f5243c;
  border-color: #f5243c;
  color: #fff;
}

.rypo-dtp-slots button:disabled {
  background: #f1f3f6;
  color: #bdc6d1;
  cursor: not-allowed;
}

.rypo-dtp-summary {
  align-items: center;
  background: #f9fbfd;
  border-top: 1px solid #e4ebf3;
  color: #0b315c;
  display: flex;
  gap: 9px;
  justify-content: center;
  padding: 14px 26px;
  text-align: center;
}

.rypo-dtp-summary svg {
  fill: none;
  height: 20px;
  stroke: #f5243c;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.rypo-dtp-actions {
  align-items: center;
  border-top: 1px solid #e4ebf3;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 26px;
}

.rypo-dtp-actions > span {
  display: none;
}

.rypo-dtp-actions button {
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 11px 20px;
}

.rypo-dtp-clear {
  background: #fff;
  border: 1px solid #f1bdc3;
  color: #d9273b;
  margin-right: auto;
}

.rypo-dtp-cancel {
  background: #fff;
  border: 1px solid #dce5ef;
  color: #0b315c;
}

.rypo-dtp-confirm {
  background: #f5243c;
  border: 1px solid #f5243c;
  color: #fff;
}

.rypo-dtp-confirm:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.rypo-dtp.is-date-only .rypo-dtp-dialog {
  max-width: 500px;
}

.rypo-dtp.is-date-only .rypo-dtp-main {
  grid-template-columns: 1fr;
}

.rypo-dtp.is-date-only .rypo-dtp-time-pane {
  display: none;
}

body.rypo-dtp-open {
  overflow: hidden;
}

.rypo-dtp-control {
  cursor: pointer !important;
}

input.rypo-dtp-control::-webkit-calendar-picker-indicator {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .phone-date-time-fields,
  .rypo-dtp-main {
    grid-template-columns: 1fr;
  }

  .rypo-dtp-time-pane {
    border-left: 0;
    border-top: 1px solid #e4ebf3;
  }

  .rypo-dtp-dialog {
    border-radius: 16px;
  }

  .rypo-dtp-date-pane,
  .rypo-dtp-time-pane {
    padding: 20px;
  }

  .rypo-dtp-slots {
    max-height: 190px;
  }

  .rypo-dtp-actions {
    padding: 13px 16px;
  }

  .rypo-dtp-actions button {
    padding: 10px 13px;
  }
}
