body.woocommerce-checkout.etobalon-delivery-flow-enabled .etobalon-delivery-flow__field--hidden,
body.woocommerce-checkout.etobalon-delivery-flow-enabled .etobalon-delivery-flow__provider-ui--hidden {
  display: none !important;
}

.etobalon-delivery-flow__local-pickup--hidden {
  display: none !important;
}

.etobalon-delivery-flow__shipping-meta--hidden,
.etobalon-delivery-flow__ozon-note[hidden] {
  display: none !important;
}

body.woocommerce-checkout.etobalon-delivery-flow--pickup .checkout__address-helper,
body.woocommerce-checkout.etobalon-delivery-flow--local_pickup .checkout__address-helper,
body.woocommerce-checkout.etobalon-delivery-flow--ozon .checkout__address-helper {
  display: none !important;
}

.etobalon-delivery-flow__pickup-helper {
  display: none;
  margin: 0 0 12px;
  color: #4b6060;
  font-size: 14px;
  line-height: 1.45;
}

body.woocommerce-checkout.etobalon-delivery-flow--pickup .etobalon-delivery-flow__pickup-helper {
  display: block;
}

.etobalon-delivery-flow__cart-shipping-note,
.etobalon-delivery-flow__ozon-note,
.etobalon-delivery-flow__availability-message {
  margin: 8px 0 0;
  color: #4b6060;
  font-size: 12px;
  line-height: 1.4;
}

.etobalon-delivery-flow__availability-message {
  color: #a52424;
}

.etobalon-delivery-flow__local-pickup {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(0, 131, 138, 0.18);
  border-radius: 8px;
  background: rgba(0, 131, 138, 0.06);
  color: #263b3c;
  font-size: 14px;
  line-height: 1.45;
}

.etobalon-delivery-flow__local-pickup-title {
  color: #045a5f;
  font-size: 15px;
  font-weight: 700;
}

.cart__order_select-wrapper .cart__order_shipping-meta[data-shipping-rate^="ozonpay_shipping"] .ozonpay-checkout-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin-top: 12px !important;
  padding: 14px 16px;
  border: 0;
  border-radius: 999rem;
  background: #00838a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.cart__order_select-wrapper .cart__order_shipping-meta[data-shipping-rate^="ozonpay_shipping"] .ozonpay-checkout-btn:hover,
.cart__order_select-wrapper .cart__order_shipping-meta[data-shipping-rate^="ozonpay_shipping"] .ozonpay-checkout-btn:focus-visible {
  background: #045a5f;
  color: #fff;
  outline: none;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled .etobalon-delivery-flow__cdek-pickup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(0, 131, 138, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled .etobalon-delivery-flow__cdek-pickup-label {
  color: #045a5f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled .etobalon-delivery-flow__cdek-pickup-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled .etobalon-delivery-flow__cdek-pickup .open-pvz-btn {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled .etobalon-delivery-flow__cdek-pickup .open-pvz-btn > a,
body.woocommerce-checkout.etobalon-delivery-flow-enabled .balon-yandex-pickup button.wc-yandex-choose-pickup-point {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 999rem;
  background: #00838a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled .etobalon-delivery-flow__cdek-pickup .open-pvz-btn > a:hover,
body.woocommerce-checkout.etobalon-delivery-flow-enabled .etobalon-delivery-flow__cdek-pickup .open-pvz-btn > a:focus-visible,
body.woocommerce-checkout.etobalon-delivery-flow-enabled .balon-yandex-pickup button.wc-yandex-choose-pickup-point:hover,
body.woocommerce-checkout.etobalon-delivery-flow-enabled .balon-yandex-pickup button.wc-yandex-choose-pickup-point:focus-visible {
  background: #045a5f;
  box-shadow: 0 8px 16px rgba(0, 95, 95, 0.18);
  outline: none;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled .etobalon-delivery-flow__cdek-pickup .open-pvz-btn > a:active,
body.woocommerce-checkout.etobalon-delivery-flow-enabled .balon-yandex-pickup button.wc-yandex-choose-pickup-point:active {
  transform: translateY(1px);
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled:has(#yandex-delivery-map-content) .wc-backbone-modal-backdrop {
  background: rgba(4, 36, 38, 0.72);
  opacity: 1;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled .wc-backbone-modal .wc-backbone-modal-content#yandex-delivery-map-content {
  width: min(1024px, calc(100vw - 48px));
  min-width: 0;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled #yandex-delivery-map-content .wc-backbone-modal-main {
  border-radius: inherit;
  overflow: hidden;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled #yandex-delivery-map-content .wc-backbone-modal-header {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px 64px 16px 20px;
  border: 0;
  background: #045a5f;
  color: #fff;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled #yandex-delivery-map-content .wc-backbone-modal-header h1 {
  margin: 0;
  color: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled #yandex-delivery-map-content .wc-backbone-modal-header .modal-close-link {
  display: flex;
  align-items: center;
  justify-content: center;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled #yandex-delivery-map-content .wc-backbone-modal-header .modal-close-link:hover,
body.woocommerce-checkout.etobalon-delivery-flow-enabled #yandex-delivery-map-content .wc-backbone-modal-header .modal-close-link:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled #yandex-delivery-map-container {
  width: 100% !important;
  height: min(608px, calc(100vh - 112px)) !important;
  max-height: calc(100vh - 112px) !important;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled .cdek-map > div {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  padding: 24px !important;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled .cdek-map > div.cdek-wa75fd {
  display: none !important;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled .cdek-map > div > div:first-child {
  box-sizing: border-box !important;
  width: min(1024px, calc(100vw - 48px)) !important;
  max-width: calc(100vw - 48px) !important;
  height: min(672px, calc(100vh - 48px)) !important;
  max-height: calc(100vh - 48px) !important;
  padding: 64px 16px 16px !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32) !important;
  overflow: hidden !important;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled .cdek-map > div > div:first-child::before {
  content: "Выберите пункт выдачи CDEK";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 64px;
  padding: 16px 64px 16px 20px;
  background: #045a5f;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled .cdek-map > div > div:first-child > a:first-child {
  top: 18px !important;
  right: 20px !important;
  z-index: 100002 !important;
  width: 28px !important;
  height: 28px !important;
  background-color: #fff !important;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled .cdek-map > div > div:first-child > div {
  width: 100% !important;
  height: min(592px, calc(100vh - 128px)) !important;
  max-height: calc(100vh - 128px) !important;
}

body.woocommerce-checkout.etobalon-delivery-flow-enabled .cdek-map > div > div:last-child {
  background: rgba(4, 36, 38, 0.72) !important;
  opacity: 1 !important;
}

@media (max-width: 768px) {
  body.woocommerce-checkout.etobalon-delivery-flow-enabled .etobalon-delivery-flow__cdek-pickup {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
  }

  body.woocommerce-checkout.etobalon-delivery-flow-enabled .etobalon-delivery-flow__cdek-pickup .open-pvz-btn > a,
  body.woocommerce-checkout.etobalon-delivery-flow-enabled .balon-yandex-pickup button.wc-yandex-choose-pickup-point {
    min-height: 52px;
    padding: 14px;
  }

  body.woocommerce-checkout.etobalon-delivery-flow-enabled .wc-backbone-modal .wc-backbone-modal-content#yandex-delivery-map-content {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    border-radius: 14px;
  }

  body.woocommerce-checkout.etobalon-delivery-flow-enabled #yandex-delivery-map-content .wc-backbone-modal-header,
  body.woocommerce-checkout.etobalon-delivery-flow-enabled .cdek-map > div > div:first-child::before {
    min-height: 56px;
    padding: 14px 56px 14px 16px;
  }

  body.woocommerce-checkout.etobalon-delivery-flow-enabled #yandex-delivery-map-content .wc-backbone-modal-header h1,
  body.woocommerce-checkout.etobalon-delivery-flow-enabled .cdek-map > div > div:first-child::before {
    font-size: 16px;
  }

  body.woocommerce-checkout.etobalon-delivery-flow-enabled #yandex-delivery-map-content .wc-backbone-modal-header .modal-close-link {
    top: 10px;
    right: 10px;
  }

  body.woocommerce-checkout.etobalon-delivery-flow-enabled #yandex-delivery-map-container {
    height: calc(100vh - 80px) !important;
    max-height: calc(100vh - 80px) !important;
  }

  body.woocommerce-checkout.etobalon-delivery-flow-enabled .cdek-map > div {
    padding: 12px !important;
  }

  body.woocommerce-checkout.etobalon-delivery-flow-enabled .cdek-map > div > div:first-child {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    height: calc(100vh - 24px) !important;
    max-height: calc(100vh - 24px) !important;
    padding: 56px 12px 12px !important;
    border-radius: 14px !important;
  }

  body.woocommerce-checkout.etobalon-delivery-flow-enabled .cdek-map > div > div:first-child > a:first-child {
    top: 14px !important;
    right: 14px !important;
  }

  body.woocommerce-checkout.etobalon-delivery-flow-enabled .cdek-map > div > div:first-child > div {
    height: calc(100vh - 92px) !important;
    max-height: calc(100vh - 92px) !important;
  }
}
