/* Shared storefront dialogs. Keep Revolution/Bootstrap markup and handlers. */
:is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification, .modal .modal-content) {
  --akb-dialog-ink: #142b45;
  --akb-dialog-muted: #637287;
  --akb-dialog-border: #e0e6ed;
  box-sizing: border-box;
  color: var(--akb-dialog-ink);
  background: #fff;
  border: 1px solid var(--akb-dialog-border);
  border-radius: 20px;
  box-shadow: 0 14px 48px #142b4526;
  text-align: left;
}
:is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification) {
  width: calc(100% - 32px);
  max-width: 800px;
  margin: 24px auto;
  position: relative;
}
#popup-order-okno.popphone, #popup-order-okno.account_login, .popup_notification:not(.modalokno) { max-width: 530px; }
#popup-view-wrapper { max-width: 1000px; }
:is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification) :is(.popup-heading, .popup_notification_heading),
.modal .modal-header {
  min-height: 72px;
  height: auto;
  padding: 22px 76px 20px 24px;
  border: 0;
  border-bottom: 1px solid var(--akb-dialog-border);
  border-radius: 20px 20px 0 0;
  background: #fff;
  color: var(--akb-dialog-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.modal .modal-title { color: #142b45; font-size: 22px; font-weight: 700; line-height: 1.3; }
:is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification) :is(.popup-center, .popup_notification_message),
.modal .modal-body { padding: 24px; background: transparent; color: #142b45; border-radius: 0 0 20px 20px; }
:is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification) .popup-footer,
.modal .modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  height: auto;
  padding: 0 24px 24px;
  margin: 0;
  border: 0;
  background: transparent;
}
:is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification) .popup-footer > :is(button, a),
.modal .modal-footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 180px;
  float: none;
  width: auto;
  min-width: 0;
  min-height: 48px;
  height: auto;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #dfe5ed;
  border-radius: 12px;
  color: #142b45;
  background: #f5f7fa;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: none;
  white-space: normal;
  cursor: pointer;
  text-decoration: none;
}
:is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification) .popup-footer > a,
#popup-okno .popup-footer button.quickorder_b, .modal .modal-footer .btn-primary {
  color: #fff;
  background: #2787f5;
  border-color: #2787f5;
}
:is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification) .popup-footer > button:hover,
.modal .modal-footer .btn-default:hover { background: #eaf0f7; border-color: #c9d5e3; }
:is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification) .popup-footer > a:hover,
#popup-okno .popup-footer button.quickorder_b:hover, .modal .modal-footer .btn-primary:hover { background: #1f76de; border-color: #1f76de; }
:is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification) .mfp-close,
.modal .modal-header .close, .prmn-cmngr-cities__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e9ee;
  border-radius: 12px;
  background: #f5f7fa;
  color: #637287;
  font: 28px/42px Arial, sans-serif;
  opacity: 1;
  text-shadow: none;
}
:is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification) .mfp-close:hover,
.modal .close:hover, .prmn-cmngr-cities__close:hover { background: #eaf0f7; color: #142b45; opacity: 1; }
#popup-order-okno .payment-info { padding: 0; }
#popup-order-okno .payment-info > div { display: block; width: 100%; }
#popup-order-okno .payment-info > div + div { margin-top: 16px; }
#popup-order-okno .payment-info > div > label {
  display: block;
  float: none;
  width: 100%;
  margin: 0 0 6px;
  padding: 0;
  color: #142b45;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}
#popup-order-okno .payment-info input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]),
#popup-order-okno .payment-info textarea,
:is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .modal .modal-content) .form-control {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  background: #f8fafc;
  color: #142b45;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
}
#popup-order-okno .payment-info textarea { min-height: 96px; }
#popup-order-okno .payment-info :is(input, textarea):focus,
:is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .modal .modal-content) .form-control:focus { border-color: #2787f5; outline: 2px solid #2787f540; outline-offset: 1px; }
#popup-view-wrapper .product-info { padding: 18px; border: 1px solid #e0e6ed; border-radius: 14px; background: #f8fafc; }
#popup-view-wrapper .product-info #button-cart { min-height: 48px; padding: 12px 16px; border-radius: 12px; background: #2787f5; color: #fff; }
#popup-view-wrapper .product-info #button-cart:hover { background: #1f76de; }
#popup-order-okno .payment-info .error_style { border-color: #ef3124 !important; }
#popup-order-okno .text-danger { margin-top: 6px; color: #c32b20; font-size: 13px; }
#popup-order-okno .rev_pol_konf {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 10px;
  float: none !important;
  width: 100%;
  margin-top: 18px;
  text-align: left;
  color: #637287;
  font-size: 13px;
  line-height: 1.6;
}
#popup-order-okno .rev_pol_konf span { flex: 1; min-width: 0; }
#popup-order-okno .rev_pol_konf input[type=checkbox] { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #2787f5; }
#popup-order-okno .payment-info .help-block { color: #637287; font-size: 13px; }
#popup-order-okno .akb-field-hint { display: block; margin-top: 6px; color: #637287; font-size: 13px; line-height: 1.5; }
#popup-order-okno .payment-info > [id^=recaptcha] { float: none !important; }
:is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification) .alert { border-radius: 12px; }
:is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification, .modal) :is(button, a, input):focus-visible,
.prmn-cmngr__confirm-btn:focus-visible { outline: 3px solid #2787f5; outline-offset: 3px; }
/* City confirmation is a popover; retain the module's show/hide behavior. */
.prmn-cmngr .prmn-cmngr__confirm {
  box-sizing: border-box;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  min-width: 0;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 22px;
  border: 1px solid #e0e6ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 48px #142b4526;
  color: #142b45;
  font-size: 18px;
  line-height: 1.45;
}
.prmn-cmngr .prmn-cmngr__confirm-city { white-space: normal; font-weight: 700; }
.prmn-cmngr .prmn-cmngr__confirm-btns { display: flex; gap: 10px; margin-top: 18px; }
.prmn-cmngr .prmn-cmngr__confirm-btn {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid #dfe5ed;
  border-radius: 12px;
  background: #f5f7fa;
  color: #142b45;
  font-size: 15px;
  text-shadow: none;
  box-shadow: none;
}
.prmn-cmngr .prmn-cmngr__confirm-btn[data-value=yes] { background: #2787f5; border-color: #2787f5; color: #fff; }
.prmn-cmngr .prmn-cmngr__confirm-btn:hover { background: #eaf0f7; }
.prmn-cmngr .prmn-cmngr__confirm-btn[data-value=yes]:hover { background: #1f76de; }
.prmn-cmngr-cities .modal-dialog { width: 640px; max-width: calc(100% - 32px); margin: 40px auto; }
.prmn-cmngr-cities .modal-body { padding-top: 24px; }
.prmn-cmngr-cities .modal-body > .row { max-height: 55vh; overflow-y: auto; }
.prmn-cmngr-cities__title { margin: 0 52px 24px 0; color: #142b45; font-size: 22px; font-weight: 700; line-height: 1.4; }
.prmn-cmngr-cities__search { max-width: none; }
.prmn-cmngr-cities__city-name { display: inline-block; padding: 10px 0; color: #2787f5; line-height: 1.4; overflow-wrap: anywhere; }
.prmn-cmngr-cities__search-item_selected { background: #2787f5; }
@media (max-width: 767px) {
  /* Bootstrap's .row still had -15px margins after its columns became a grid. */
  #content .row.akb-product-layout { margin-left: 0; margin-right: 0; width: 100%; }
  :is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification) { width: calc(100% - 24px); margin: 12px auto; }
  :is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification) :is(.popup-heading, .popup_notification_heading),
  .modal .modal-header { padding: 22px 68px 20px 18px; font-size: 20px; }
  :is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification) :is(.popup-center, .popup_notification_message),
  .modal .modal-body { padding: 18px; }
  :is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification) .popup-footer,
  .modal .modal-footer { padding: 0 18px 18px; }
  :is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification) .popup-footer > :is(a, button) { flex-basis: 100%; }
  #popup-order-okno .popup-footer > #popup-checkout-button { order: -1; }
  .prmn-cmngr .prmn-cmngr__confirm { position: fixed; top: 80px; left: 50%; margin: 0; }
  .prmn-cmngr-cities .modal-dialog { margin: 16px auto; }
  .prmn-cmngr-cities__title { font-size: 20px; }
  .prmn-cmngr-cities .col-xs-4 { width: 100%; }
}
@media (max-width: 380px) {
  /* Google's normal widget has a fixed 304px width. Scale its visual surface only. */
  #popup-order-okno .payment-info > [id^=recaptcha] > div,
  #popup-order-okno .g-recaptcha > div { zoom: .8; }
}
@media (prefers-reduced-motion: reduce) {
  :is(#popup-order-okno, #popup-okno, #popup-view-wrapper, .popup_notification, .prmn-cmngr-cities) *,
  .prmn-cmngr__confirm * { transition: none !important; animation: none !important; }
}
