.ceh-header-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(74, 25, 127, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff 0%, #f3ecfb 100%);
  color: #32065d !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(35, 12, 62, 0.12);
  white-space: nowrap;
}

.is-hidden {
  display: none !important;
}

.ceh-header-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(35, 12, 62, 0.16);
}

.ceh-header-cart__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
  fill: currentColor;
}

.ceh-header-cart__count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #32065d;
  color: #fff;
  font-size: 11px;
  line-height: 24px;
  text-align: center;
  letter-spacing: 0;
}

.ceh-cart-inline-note {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f6f0ff;
  color: #32244d;
  line-height: 1.7;
  display: none;
}

.ceh-cart-inline-note.is-visible {
  display: block;
}

.ceh-cart-inline-note__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.ceh-cart-inline-note__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ceh-cart-inline-note__actions a:first-child {
  background: #fff;
  color: #321752 !important;
  border: 1px solid rgba(50, 23, 82, 0.14);
}

.ceh-cart-inline-note__actions a:last-child {
  background: #321752;
  color: #fff !important;
}

.ceh-rental-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 9, 31, 0.72);
}

.ceh-rental-modal.is-open {
  display: flex;
}

.ceh-rental-modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 30px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 60px rgba(18, 9, 31, 0.25);
}

.ceh-rental-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #f2ecfb;
  color: #321752;
  font-size: 24px;
  cursor: pointer;
}

.ceh-rental-modal__kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #a96f2b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.ceh-rental-modal__title {
  margin: 0 0 8px;
  color: #241b3a;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.05;
}

.ceh-rental-modal__desc {
  margin: 0 0 20px;
  color: #5e566d;
  line-height: 1.7;
}

.ceh-rental-modal__grid {
  display: grid;
  gap: 16px;
}

.ceh-rental-modal__field label,
.ceh-rental-modal__legend {
  display: block;
  margin-bottom: 8px;
  color: #2d2344;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ceh-rental-modal__field input,
.ceh-rental-modal__field select,
.ceh-rental-modal__field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(50, 23, 82, 0.12);
  border-radius: 16px;
  background: #fff;
  color: #241b3a;
  font: inherit;
  box-sizing: border-box;
}

.ceh-rental-modal__durations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ceh-rental-modal__duration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(50, 23, 82, 0.14);
  border-radius: 16px;
  background: #fff;
  color: #2f2646;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.ceh-rental-modal__duration.is-active {
  border-color: #4d21c8;
  background: #f4efff;
  color: #4d21c8;
}

.ceh-rental-modal__rate,
.ceh-rental-modal__notice {
  padding: 16px 18px;
  border-radius: 18px;
}

.ceh-rental-modal__rate {
  background: #faf7ff;
  color: #2c2441;
}

.ceh-rental-modal__rate strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1.15;
}

.ceh-rental-modal__notice {
  background: #fff6e8;
  color: #5e4724;
  line-height: 1.7;
}

.ceh-rental-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ceh-rental-modal__actions button,
.ceh-rental-modal__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.ceh-rental-modal__submit {
  border: 0;
  background: linear-gradient(135deg, #4d21c8, #32065d);
  color: #fff;
  box-shadow: 0 14px 28px rgba(77, 33, 200, 0.22);
}

.ceh-rental-modal__cancel {
  border: 1px solid rgba(50, 23, 82, 0.14);
  background: #fff;
  color: #321752;
}

.ceh-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ceh-cart-badge--purchase {
  background: #efe8ff;
  color: #4d21c8;
}

.ceh-cart-badge--rental {
  background: #e8f5ff;
  color: #0b5a8a;
}

@media only screen and (max-width: 900px) {
  .ceh-site-header__actions {
    right: 66px;
  }

  .ceh-header-cart {
    min-height: 42px;
    min-width: 42px;
    padding: 0 10px;
    gap: 0;
  }

  .ceh-header-cart__label {
    display: none;
  }

  .ceh-header-cart__count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 10px;
  }

  .ceh-header-cart {
    position: relative;
  }

  .ceh-rental-modal {
    padding: 14px;
  }

  .ceh-rental-modal__dialog {
    padding: 24px 18px;
    max-height: calc(100vh - 28px);
  }

  .ceh-rental-modal__durations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
