.block-right.c4m-enhanced {
  --c4m-green: #20ad32;
  --c4m-green-dark: #167925;
  --c4m-green-soft: #edf8ee;
  --c4m-text: #202622;
  --c4m-muted: #657068;
  --c4m-border: #dce4dd;
  --c4m-surface: #fafcfa;
  --c4m-danger: #b42318;
  max-width: 460px;
}

.c4m-legacy-booking {
  display: none !important;
}

.c4m-booking-panel,
.c4m-booking-panel * {
  box-sizing: border-box;
}

.c4m-booking-panel {
  background: #fff;
  border: 1px solid var(--c4m-border);
  border-radius: 16px;
  box-shadow: 0 10px 34px rgba(32, 65, 37, .08);
  color: var(--c4m-text);
  display: grid;
  font-family: "Inter", Arial, sans-serif;
  gap: 16px;
  margin: 0 0 24px;
  padding: 20px;
}

.c4m-booking-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.c4m-booking-heading h3,
.c4m-event-card h4,
.c4m-service-card h4,
.c4m-optionals h4,
.c4m-contact-details h4,
.c4m-calculation h4 {
  color: var(--c4m-text);
  font-family: inherit !important;
  font-weight: 750;
  margin: 0;
}

.c4m-booking-heading h3 {
  color: var(--c4m-green-dark);
  font-size: 21px;
  line-height: 1.25;
}

.c4m-event-grid,
.c4m-service-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.c4m-event-card,
.c4m-service-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0;
}

.c4m-event-card h4,
.c4m-service-card h4,
.c4m-optionals h4,
.c4m-contact-details h4,
.c4m-calculation h4 {
  font-size: 14px;
  line-height: 1.3;
}

.c4m-date-time-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 94px;
}

.c4m-date-time-row label,
.c4m-address,
.c4m-contact-grid label,
.c4m-tariff-label {
  display: grid;
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.c4m-date-time-row label > span,
.c4m-address > span,
.c4m-contact-grid label > span,
.c4m-tariff-label > span {
  color: var(--c4m-muted);
  font-size: 11px;
  font-weight: 650;
}

.c4m-date-time-row input,
.c4m-address input,
.c4m-contact-grid input,
.c4m-tariff-label select {
  appearance: auto;
  background: #fff;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  color: var(--c4m-text);
  font: inherit;
  font-size: 13px;
  height: 43px;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  min-inline-size: 0;
  outline: 0;
  padding: 8px 9px;
  width: 100%;
}

.c4m-date-time-row input:focus,
.c4m-address input:focus,
.c4m-contact-grid input:focus,
.c4m-tariff-label select:focus {
  border-color: var(--c4m-green);
  box-shadow: 0 0 0 3px rgba(32, 173, 50, .11);
}

.c4m-fee-hint {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #56615a;
  display: grid;
  font-size: 12px;
  gap: 7px;
  line-height: 1.5;
  padding: 0;
}

.c4m-fee-hint strong {
  color: #29312b;
  font-size: 14px;
}

.c4m-fee-hint b {
  color: inherit;
  font-weight: 700;
}

.c4m-time-rules {
  display: grid;
  gap: 3px;
}

.c4m-rule-columns,
.c4m-rule-column {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.c4m-time-rules b {
  font-variant-numeric: tabular-nums;
}

.c4m-service-toggle {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  gap: 10px;
  margin: 0;
}

.c4m-service-toggle input {
  accent-color: var(--c4m-green);
  flex: 0 0 auto;
  height: 20px;
  margin: 0;
  width: 20px;
}

.c4m-service-toggle > span {
  color: #323a34;
  font-size: 12px;
  line-height: 1.45;
}

.c4m-service-toggle b {
  color: var(--c4m-green-dark);
  font-weight: 750;
  white-space: nowrap;
}

.c4m-address[hidden],
.c4m-optionals[hidden] {
  display: none !important;
}

.c4m-optionals {
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 10px;
  padding: 0;
}

.c4m-optionals > div {
  display: grid;
  gap: 9px;
}

.c4m-optional-toggle {
  border-top: 1px solid #edf0ed;
  padding-top: 9px;
}

.c4m-optional-toggle:first-child {
  border-top: 0;
  padding-top: 0;
}

.c4m-tariff-label select:disabled {
  background: #f2f4f2;
  color: #777;
}

.c4m-contact-details {
  display: grid;
  gap: 10px;
}

.c4m-contact-grid {
  display: grid;
  gap: 10px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.c4m-contact-grid label {
  min-width: 0;
}

.c4m-contact-grid label > span b {
  color: var(--c4m-danger);
}

.c4m-phone-control {
  align-items: center;
  background: #fff;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  display: flex;
  height: 43px;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.c4m-phone-control:focus-within {
  border-color: var(--c4m-green);
  box-shadow: 0 0 0 3px rgba(32, 173, 50, .11);
}

.c4m-phone-prefix {
  color: var(--c4m-text);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 650;
  padding-left: 9px;
  white-space: nowrap;
}

.c4m-phone-control input[data-c4m-phone-input] {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  flex: 1 1 auto;
  height: 41px;
  min-width: 0;
  padding-left: 5px;
}

.c4m-phone-control input[data-c4m-phone-input]:focus {
  border: 0;
  box-shadow: none;
}

@keyframes c4m-autofill-detected {
  from { opacity: .999; }
  to { opacity: 1; }
}

.c4m-contact-grid input:-webkit-autofill {
  animation-duration: .01s;
  animation-name: c4m-autofill-detected;
}

.c4m-contact-email {
  grid-column: 1 / -1;
}

.c4m-calculation {
  background: #f7f9f7;
  border: 1px solid var(--c4m-border);
  border-radius: 13px;
  display: grid;
  gap: 9px;
  padding: 15px;
}

.c4m-calculation-lines {
  display: grid;
  gap: 7px;
  padding-top: 2px;
}

.c4m-calc-placeholder {
  color: var(--c4m-muted);
  font-size: 12px;
  margin: 0;
}

.c4m-price-line,
.c4m-total-row,
.c4m-deposit-row,
.c4m-cash-row {
  align-items: baseline;
  display: flex;
  font-size: 12px;
  gap: 12px;
  justify-content: space-between;
}

.c4m-price-line span,
.c4m-deposit-row span {
  color: #5f6962;
}

.c4m-price-line strong,
.c4m-deposit-row strong {
  color: #303733;
  flex: 0 0 auto;
  font-weight: 700;
}

.c4m-price-line.is-service {
  border-left: 2px solid #cfe3d1;
  padding-left: 9px;
}

.c4m-total-row {
  border-top: 1px solid #d7ded8;
  font-size: 14px;
  font-weight: 750;
  margin-top: 2px;
  padding-top: 11px;
}

.c4m-total-row strong {
  color: var(--c4m-green-dark);
  font-size: 20px;
}

.c4m-deposit-row {
  border-top: 1px dashed #d7ded8;
  margin-top: 2px;
  padding-top: 9px;
}

.c4m-deposit-row,
.c4m-cash-row {
  color: #202622;
  font-size: 13px;
  font-weight: 750;
}

.c4m-deposit-row span,
.c4m-cash-row span {
  color: #202622;
}

.c4m-deposit-row strong,
.c4m-cash-row strong {
  color: #202622;
  font-size: 17px;
  font-weight: 750;
}

.c4m-tariff-details {
  border-top: 1px solid #d7ded8;
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding-top: 10px;
}

.c4m-tariff-detail-row {
  align-items: baseline;
  color: #202622;
  display: flex;
  font-size: 13px;
  flex-wrap: wrap;
  font-weight: 750;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.c4m-tariff-detail-row[hidden] {
  display: none;
}

.c4m-tariff-detail-row > span {
  min-width: 0;
}

.c4m-tariff-detail-row strong {
  color: #202622;
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 750;
  margin-left: auto;
  text-align: right;
}

.c4m-tariff-detail-row.is-mileage strong {
  color: var(--c4m-green-dark);
}

.c4m-booking-status {
  border-radius: 9px;
  display: none;
  font-size: 12px;
  line-height: 1.4;
  margin: -3px 0 0;
  padding: 9px 11px;
}

.c4m-booking-status:not(:empty) {
  display: block;
}

.c4m-booking-status.is-loading {
  background: #f2f5f2;
  color: #5c655f;
}

.c4m-booking-status.is-success {
  background: var(--c4m-green-dark);
  border: 1px solid #0e641a;
  box-shadow: 0 6px 18px rgba(22, 121, 37, .2);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  margin-top: 0;
  padding: 14px;
  text-align: center;
}

.c4m-booking-status.is-error {
  background: #fff0ef;
  color: var(--c4m-danger);
}

.c4m-order-button {
  background: var(--c4m-green);
  border: 0;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  min-height: 48px;
  padding: 11px 18px;
  transition: background .15s ease, opacity .15s ease;
  width: 100%;
}

.c4m-order-button:hover:not(:disabled),
.c4m-order-button:focus-visible:not(:disabled) {
  background: #188d28;
}

.c4m-order-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.c4m-booking-panel.is-loading .c4m-calculation {
  opacity: .68;
}

@media (min-width: 1280px) {
  .c4m-booking-page-width {
    max-width: none !important;
    width: min(1280px, calc(100vw - 40px)) !important;
  }

  .c4m-booking-page-width .main-car-block,
  .c4m-booking-layout {
    max-width: none !important;
    width: 100% !important;
  }

  .c4m-booking-layout {
    align-items: flex-start;
    display: flex;
    gap: 20px !important;
    justify-content: space-between;
  }

  .c4m-booking-layout > .block-slider {
    flex: 1 1 660px;
    max-width: 660px;
    min-width: 0;
    width: auto !important;
  }

  .c4m-booking-layout > .block-right.c4m-enhanced {
    flex: 0 0 600px;
    max-width: 600px;
    min-width: 0;
    width: 600px;
  }

  .c4m-booking-layout .c4m-event-grid,
  .c4m-booking-layout .c4m-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .c4m-booking-layout .c4m-rule-columns {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .block-right.c4m-enhanced {
    max-width: 660px;
  }

  .c4m-event-grid,
  .c4m-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .block-right.c4m-enhanced {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .c4m-booking-panel {
    border-radius: 13px;
    padding: 14px;
  }

  .c4m-event-grid,
  .c4m-service-grid {
    grid-template-columns: 1fr;
  }

  .c4m-date-time-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .c4m-date-time-row label,
  .c4m-date-time-row input {
    max-width: 100%;
    min-width: 0;
    min-inline-size: 0;
  }

  .c4m-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .c4m-contact-email {
    grid-column: auto;
  }
}

@media (max-width: 390px) {
  .c4m-date-time-row {
    grid-template-columns: 1fr;
  }

  .c4m-booking-heading h3 {
    font-size: 18px;
  }
}
