/* Use a smaller circular radius when the browser cannot draw a continuous corner. */
:root {
  --control-corner: 12px;
}

@supports (corner-shape: squircle) {
  :root {
    --control-corner: 20px;
  }
}

.categories a,
.categories button,
.find-toggle,
.rail-buttons button,
.step button,
.add,
.remove,
.primary,
.secondary,
#basket-shortcut:not(.at-basket),
#back-to-menu,
#pickup-date,
#pickup-time,
#find-dish,
#customer,
.button,
.mode-tabs button,
.mobile-order button,
.close-dialog,
.card-close,
.card-action,
.home-loyalty .trail-play,
.customer-account button {
  border-radius: var(--control-corner);
  corner-shape: squircle;
}

.add,
.step button,
.remove {
  min-width: 44px;
  min-height: 44px;
}

#pickup-date,
#pickup-time {
  appearance: none;
  padding-inline-end: 2.5rem;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23174d34' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E") right .75rem center / 18px no-repeat;
  cursor: pointer;
}

#pickup-date {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23174d34' stroke-width='1.75' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 3v4m10-4v4M3 10h18'/%3E%3C/svg%3E");
}

#pickup-time:disabled {
  cursor: default;
}

@media (forced-colors: active) {
  #pickup-date,
  #pickup-time {
    appearance: auto;
    background-image: none;
  }
}
