.dropdown-menu {
    overflow: hidden;
}

.swal2-container.swal2-center>.swal2-popup {
    display: grid!important;
}

.swal2-title {
    margin-top: 20px;
    font-size: 1.25rem;
}

.swal2-icon.swal2-success {
    background: var(--success);
    border-color: var(--success);
}

.custom-scrollbars ::-webkit-scrollbar-track {
    border-radius: .5rem;
}

.custom-scrollbars ::-webkit-scrollbar-thumb {
    background-color: var(--primary);
}

/* popup bitrix */
.popup-window {
    border-radius: var(--border-radius-lg);
    font: 1rem var(--body-font-family);
}

.popup-window-close-icon {
    width: 3rem;
    height: 3rem;
}

.popup-window-close-icon:after {
    width: 1.375rem;
    height: 1.375rem;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 20 20' fill='%23202122'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

.popup-window-button {
    --popup-window-button-border-radius: var(--border-radius-sm);
    height: 3.25rem;
    line-height: 3.25rem;
    margin-right: 1.5rem;
    background: var(--primary);
    color: var(--white-100);
    font-size: 1rem;
    padding-inline: calc(2rem - 2px);
    font-family: var(--body-font-family);
    font-weight: 400;
    text-transform: initial;
    -webkit-box-shadow: none;
            box-shadow: none;
    border: 1px solid var(--primary);
}

.popup-window-button:hover {
    background: var(--primary-hover);
    color: var(--white-100);
}

.popup-window-button-link {
    height: 3.25rem;
    padding-inline: calc(2rem - 2px);
    line-height: 3.25rem;
    border-bottom-color: var(--primary);
    border-radius: var(--border-radius-sm);
    color: var(--primary);
    background: var(--white-100);
}

.popup-window-button-link:hover,
.popup-window-button-link:active {
    height: 3.25rem;
    line-height: 3.25rem;
    color: var(--primary-hover);
    background: var(--whit-100);
    border-color: var(--primary-hover);
}
/* /popup bitrix */

.page-content {
  overflow-y: auto;
}

.content-inner {
	overflow-y: inherit;
	height: auto;
	flex-grow: 1;
}
.content-inner--scroll-x {
    overflow-y: scroll;
}

/* ====== Ordering ====== */

.ordering__switch {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-radius: 0.5rem;
    overflow: hidden;
    min-height: 3.05rem;
}

.ordering__switch-tab {
    width: 100%;
    background-color: var(--el-light-grey);
    align-content: center;
    text-align: center;
    transition: background-color var(--base-transition);
    font-size: 14px;
    font-weight: 500;
    line-height: 140%;
    color: var(--text-light-green);
}

.ordering__switch-tab label {
    pointer-events: none;
}

.bx-soa-section--ordering {
    margin: 0 !important;
}

.ordering__switch-tab._active {
    background-color: var(--primary);
    color: var(--text-white);
}
@media (hover: hover) {
    .ordering__switch-tab:hover {
        background-color: var(--el-grey);
        cursor: pointer;
    }

    .ordering__switch-tab._active:hover {
        background-color: var(--primary);
    }
}

.ordering {
    margin: 0;
    border-radius: var(--border-radius-lg);
    background: var(--white-100);
    padding: 1.5rem 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.ordering__tab-content {
    display: none;
}

.ordering__tab-content._active {
    display: block;
}

.ordering__content {
    padding: 2.5rem 0 0;
}

.ordering__content:first-child {
    padding: 0;
}

.ordering__content--slim {
    padding: 0;
}

.ordering-pickup {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ordering-pickup__title {
    padding: 0;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 140%;
    display: none;
}

.ordering-pickup__wrapper {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1.5rem;
    border: 1px solid var(--el-light-grey-green);
    border-radius: 0.5rem;
}


.ordering-pickup__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ordering-pickup__placeholder {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5rem;
    color: var(--grey-600);
}

.ordering-pickup__text {
    font-size: 1.125rem;
    line-height: 1.5rem;
    color: var(--text-dark-green);
}

.ordering__content--address,
.ordering__content--address-comment {
    display: grid;
    gap: 2.5rem;
}

.ordering__info-block {
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 150%;
    position: relative;
    background-color: var(--el-yellow);
    border-radius: 0.5rem;
    color: var(--text-dark-green);
}

.ordering__info-block a {
    color: var(--text-red);
    text-decoration: none;
    cursor: pointer;
    transition: color var(--base-transition);
}

.ordering__info-block a:hover {
    color: var(--text-dark-red);
}

.ordering__info-block::before {
    content: '';
    background: url('../images/info.svg') 50% no-repeat;
    width: 1rem;
    min-width: 1rem;
    height: 1rem;
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
}

.ordering__content--deliver-time {
    padding: 1rem 0 0;
    display: grid;
    gap: 2.5rem;
}

.ordering__tabs {
    display: grid;
    grid-auto-flow: column;
    gap: 1.25rem;
    overflow: auto;
    padding: 0 0 1.5rem;
}

.ordering__content--button-popup {
    display: flex;
    justify-content: space-between;
}

.ordering__content._hidden {
    display: none;
}

.ordering__content .select2-selection {
    min-height: 3.25rem;
    background-color: white;
    padding: 0 0 0 1rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.ordering__content.ordering__content--deliver-time .select2-selection:before {
    content: '';
    display: block;
    width: 1.375rem;
    height: 1.375rem;
    background: url('./icons/order/calendar.svg') 50% no-repeat;
}

.ordering__content .select2-selection:before {
    content: '';
    display: block;
    width: 1.375rem;
    height: 1.375rem;
    background: url('./icons/order/location.svg') 50% no-repeat;
}

.ordering__content .select2-selection:hover {
    border-color: var(--el-dark-grey);
}

.ordering__content .select2-container--focus:not(.select2-container--disabled) .select2-selection--single, .select2-container--open .select2-selection--single {
    box-shadow: none;
    border-color: var(--el-dark-grey);
}

.ordering__content .select2-container--open .select2-selection {
    border-bottom: none;
}

.select2-container--open .select2-dropdown--below {
    box-shadow: none;
    border-color: var(--el-dark-grey);
}

.select2-results__option.select2-results__option--highlighted:active, .select2-results__option[aria-selected=true] {
    color: var(--text-green);
    background-color: var(--white-100);
}

.select2-results__option.select2-results__option--highlighted {
    background-color: var(--el-blue);
}

.select2-results__option.select2-results__option--highlighted:active, .select2-results__option[aria-selected=true]:hover {
    background: var(--el-blue) !important;
}

.select2-search--hide+.select2-results>.select2-results__options {
    padding: 0;
}

.select2-results__option {
    padding: 0.875rem 0.75rem;
}

@media (min-width: 768px) {
    .ordering__switch-tab {
        font-size: 1.25rem;
    }
    .ordering__tabs {
        grid-template-columns: repeat(3, 1fr);
        padding: 0;
    }

    .ordering-pickup__wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .ordering-pickup__content {
        padding: 0 2.5rem 0 0;
    }

    .ordering__content--address {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem 2.5rem;
    }

    .ordering__content--address-main {
        grid-column: span 3;
    }

    .ordering__info-block {
        padding: 0.875rem 0.875rem 0.875rem 2.25rem;
    }

    .ordering__info-block::before {
        top: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .ordering-pickup__title {
        display: block;
    }
}

@media (min-width: 1920px) {
    .ordering__content--address {
        grid-template-columns: repeat(6, 1fr);
        gap: 2.5rem;
    }

    .ordering__content--address-comment {
        grid-template-columns: repeat(2, 1fr);
    }

    .ordering__info-block::before {
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .ordering__content--deliver-time {
        grid-template-columns: repeat(2, 1fr);
    }

    .ordering__tabs {
        gap: 2.5rem;
    }
}

.address-form {
    display: grid;
    gap: 1.5rem;
}

.address-form__header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.address-form__content {
    width: 100%;
    display: grid;
    gap: 1.5rem;
}

.address-form__item {
    border: 1px solid var(--el-grey);
    border-radius: 0.5rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr max-content;
    gap: 1rem;
}

.address-form__item._active {
    border-color: var(--text-green);
}

.address-form__item-title {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 133%;
    color: var(--text-dark-green);
}

.address-form__item-info {
    font-size: 1rem;
    font-weight: 500;
    line-height: 150%;
    color: var(--text-grey);
}

.address-form__item-content {
    display: grid;
    row-gap: 0.5rem;
    column-gap: 1rem;
}

.address-form__item-content--buttons {
    grid-auto-flow: column;
}

.address-form__icon {
    width: 1.5rem;
    min-width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    display: block;
}

.address-form__icon svg path {
    stroke: var(--el-dark-green);
    transition: stroke var(--base-transition);
}


@media (hover:hover) {
    .address-form__icon:hover svg path {
        stroke: var(--el-light-green);
    }
}

@media (min-width: 768px) {
    .address-form__item {
      align-items: center;
    }
}

/* custom select */

.sag-select {
position: relative;
z-index: 1;
}

.sag-select__body {
position: relative;
}

.sag-select__header-icon {
position: absolute;
left: 0.75rem;
top: 50%;
transform: translateY(-50%);
color: var(--text-grey);
}

.sag-select__header-icon svg circle,
.sag-select__header-icon svg path {
stroke: var(--text-grey);
}

.sag-select__header {
position: relative;
z-index: 2;
display: flex;
align-items: flex-start;
align-items: center;
justify-content: space-between;
width: 100%;
min-height: 3.25rem;
border-radius: 0.5rem;
border: 1px solid var(--el-light-grey-green);
cursor: pointer;
transition: border-color var(--base-transition);
appearance: none;
background-color: var(--el-white);
color: var(--text-grey);
font-size: 1rem;
font-weight: 400;
line-height: 120%;
}

.sag-select__header._selected,
.sag-select__header._selected .sag-select__header-icon {
color: var(--text-green);
}

.sag-select__header._selected .sag-select__header-icon svg circle,
.sag-select__header._selected .sag-select__header-icon svg path {
stroke: var(--text-green);
}

@media (hover: hover) {
.sag-select__header:hover {
    border-color: var(--el-dark-grey);
}
}

.sag-select__header-value {
padding: 0 2.75rem;
margin: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

.sag-select__header-button {
position: absolute;
top: 50%;
right: 0.75rem;
z-index: 3;
width: 1.5rem;
height: 1.5rem;
transform: translateY(-50%);
}

.sag-select__header-button svg {
display: block;
width: 100%;
height: 100%;
}

.sag-select._active {
z-index: 12;
}

.sag-select._active .sag-select__header-button svg {
transform: rotate(180deg);
}

.sag-select__option-list {
position: absolute;
top: 100%;
left: 0;
width: 100%;
max-height: 0;
overflow: hidden;
transform: translateY(-0.25rem);
transition: max-height var(--base-transition) ease;
}

.sag-select__content {
display: grid;
padding: 0;
background-color: var(--el-white);
border-bottom-left-radius: 0.5rem;
border-bottom-right-radius: 0.5rem;
border: 1px solid var(--el-dark-grey);
border-top: var(--el-white);
}

.sag-select._active .sag-select__header {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
border-color: var(--el-dark-grey);
}

.sag-select._active .sag-select__option-list .sag-select__content,
.sag-select._active .sag-select__option-list {
max-height: 12.5rem;
}

.sag-select._active .sag-select__option-list {
z-index: 14;
background-color: var(--el-white);
}

.sag-select._active .sag-select__option-list .sag-select__content {
z-index: 2;
overflow: auto;
}

.sag-select__option {
appearance: none;
}

.sag-select__option-label {
padding: 0.875rem 0.75rem;
cursor: pointer;
font-size: 1rem;
transition: background-color var(--base-transition) ease;
font-weight: 400;
line-height: 120%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

@media (hover: hover) {
.sag-select__option-label:hover {
    background-color: var(--el-blue);
}
}

.sag-select__option:checked + .sag-select__option-label {
color: var(--text-green);
}

/* custom tab */

.custom-tab {
font-size: 1rem;
font-weight: 600;
line-height: 125%;
display: grid;
color: var(--text-light-green);
background-color: var(--el-light-grey);
padding: 0.5rem 2rem;
min-width: 12.6rem;
height: 3.25rem;
border-radius: 0.5rem;
transition: background-color var(--base-transition);
cursor: pointer;
grid-template-rows: repeat(2, 1fr);
width: fit-content;
align-items: center;
justify-content: center;
text-align: center;
}

@media (hover:hover) {
.custom-tab:hover {
    background-color: var(--el-grey);
}
}

.custom-tab__description {
font-size: 0.625rem;
font-weight: 500;
line-height: 160%;
}

.custom-tab._active:hover,
.custom-tab._active {
background-color: var(--el-red);
color: var(--text-white);
cursor: default;
}

.custom-tab__input:checked + .custom-tab {
background-color: var(--el-red);
color: var(--text-white);
cursor: default;
}

.custom-tab__input {
display: none;
}

@media (min-width: 768px) {
.custom-tab {
    width: 100%;
    min-width: auto;
}
}

/* custom input */

.sag-input {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 3.75rem;
    padding: 0.5rem 0 0;
  }

  .sag-input .mf-req {
    color: var(--text-grey);
  }

  .sag-input__loader {
    display: none;
    margin: auto 2.9rem auto 0;
  }

  .sag-input form._loading .sag-input--can-load .sag-input__loader {
    display: initial;
  }

  .sag-input__placeholder {
    position: absolute;
    right: 0;
    bottom: 0.875rem;
    left: 0.75rem;
    display: block;
    padding: 0;
    color: var(--text-grey);
    transition: font-size var(--base-transition), left var(--base-transition), bottom var(--base-transition);
    font-size: 1rem;
    font-weight: 500;
    line-height: 130%;
    z-index: 1;
    background-color: var(--text-white);
    width: fit-content;
    padding: 0 0.25rem;
  }

  .sag-input__container {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: text;
  }

  .sag-input__target {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 3.25rem;
    padding: 0.8rem 0.75rem;
    color: var(--text-dark-green);
    background: var(--text-white);
    border: 1px solid var(--el-light-grey-green);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 150%;
  }

  .sag-input__target[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
  }

  .sag-input__target::placeholder {
    color: transparent;
  }

  .sag-input__target:not(:placeholder-shown) ~ .sag-input__placeholder {
    top: unset;
    bottom: 2.625rem;
    z-index: 1;
    color: var(--text-grey);
    opacity: 1;
    font-size: 0.875rem;
    left: 0.25rem;
  }

  .sag-input__target:read-only {
    cursor: default;
  }

  .sag-input__target:not(:read-only):focus ~ .sag-input__placeholder {
    top: unset;
    bottom: 2.625rem;
    z-index: 1;
    color: var(--text-grey);
    opacity: 1;
    font-size: 0.875rem;
    left: 0.25rem;
  }

  .sag-input__target::-webkit-search-cancel-button {
    display: none;
  }

  .sag-input__target:focus,
  .sag-input__target:focus-visible {
    border-color: var(--el-light-grey-green);
    outline: none;
  }

  .sag-input._error .sag-input__target {
    border-color: var(--el-red);
  }

  .sag-input._error .sag-input__target:not(:read-only):focus ~ .sag-input__placeholder {
    color: var(--el-red);
  }
  .sag-input._error .sag-input__placeholder {
    color: var(--el-red);
  }

  .sag-input._error .mf-req {
    color: var(--el-red);
  }

  .sag-input__error-message,
  .sag-input__info-message {
    display: block;
    width: 100%;
    color: var(--el-red);
    opacity: 0;
    transition: opacity var(--base-transition);
    position: absolute;
    inset: calc(100% - 1.2rem) 0 0 0;
  }

  .sag-input._error .sag-input__error-message {
    opacity: 1;
  }

  .sag-input._info .sag-input__info-message {
    opacity: 1;
  }

  .sag-input form._loading .sag-input--can-load {
    pointer-events: none;
  }

  .sag-input__target:disabled {
    color: var(--text-grey);
  }

  .sag-input__edit {
    position: absolute;
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    right: 0.75rem;
    background: url('./images/basket.svg') 50% no-repeat;
    z-index: 1;
    cursor: pointer;
  }

  @media (hover:hover) {
    .sag-input__edit:hover svg span {
      fill: #A1ABA8;
    }
  }

/* custom checkbox */
.checkbox__target {
    appearance: none;
    position: fixed;
    transform: scale(0);
  }

  .checkbox__label {
    color: var(--text-back);
    font-size: 1rem;
    font-weight: 400;
    line-height: 150%;
    cursor: pointer;
    display: flex;
    align-items: center;
  }

  .checkbox__label:before {
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 2px;
    border: 2px solid var(--el-light-grey-checkbox);
    min-width: 1.25rem;
    min-height: 1.25rem;
    margin: 0 0.5rem 0 0;
    transition: background var(--base-transition) ease;
    display: block;
  }

  @media (hover: hover) {
    .checkbox__label:hover .checkbox__label:before {
      border-color: var(--el-black);
    }
  }

  .checkbox__target:checked + .checkbox__label:before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M5 10l4 4l6-8'/%3e%3c/svg%3e");
    background-color: var(--el-red);
    background-size: contain;
    background-position: center;
  }

  .checkbox__target:disabled + .checkbox__label {
    cursor: default;
  }

/* custom button */
.custom-button {
    color: var(--text-white);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 140%;
    background-color: var(--el-red);
    height: 3.25rem;
    border-radius: 0.5rem;
    width: 100%;
    transition: background-color var(--base-transition);
    position: relative;
    outline: none;
    padding: 0;
    border: none;
  }

  .custom-button--secondary {
    background-color: var(--el-light-grey);
    color: var(--text-grey);
  }

  .custom-button__label {
    margin: 0;
    padding: 0;
  }

  .custom-button__loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;

    transform: scale(0) translate(-50%, -50%);
    opacity: 0;

    transition: opacity var(--base-transition) ease;
  }

  .custom-button__loader svg {
    display: block;
    width: 100%;
    height: 100%;

    animation-name: rotate;
    animation-duration: var(--quaternary-transition);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }

  .custom-button--secondary .custom-button__loader svg path {
    fill: var(--el-dark-grey-green);
  }

  .custom-button._loading,
  form._loading .custom-button._can-load {
    pointer-events: none;
  }

  .custom-button._loading p,
  form._loading .custom-button._can-load p {
    opacity: 0;
  }

  .custom-button._loading .custom-button__loader,
  form._loading .custom-button._can-load .custom-button__loader {
    position: absolute;
    transform: scale(1) translate(-50%, -50%);
    opacity: 1;
  }

  @media (hover:hover) {
    .custom-button:hover {
      background-color: var(--text-dark-red);
    }


    .custom-button--secondary:hover {
      background-color: var(--el-grey);
    }
  }

  .custom-button._disabled {
    background-color: var(--text-light-red);
    cursor: default;
  }

  .custom-button--secondary._disabled {
    background-color: var(--el-light-grey);
    color: var(--text-light-red);
  }


  @media (min-width: 768px) {
    .custom-button {
      width: fit-content;
      padding: 0 1.5rem;
    }

    .custom-button--full-width {
      width: 100%;
    }
  }

  @keyframes rotate {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(360deg);
    }
  }


.popup {
    position: fixed;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s linear, visibility 0s linear .3s;
    inset: 0;

}
.popup._open {
    visibility: visible;
    opacity: 1;

    transition: opacity .3s linear;
}

.popup__content {
    position: relative;
    display: grid;
    gap: 2.5rem;
    min-width: 100%;
    margin: auto;
    padding: 3rem 1.25rem;
    background: var(--el-white);
    border-radius: 0.5rem;
}

.popup__header {
    display: grid;
    grid-auto-flow: column;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 133%;
}

.popup__body {
    flex-grow: 1;
}

.popup__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: auto;
    outline: none;
    border: none;
    background: var(--el-white);
}

.popup-auth__content {
    display: flex;
    flex-direction: column;
}
.popup-auth__text {
    width: auto;
    text-align: center;
    color: black;
}

@media (min-width: 768px) {
    .popup {
        padding: 0 1.25rem;
    }

    .popup__content {
        padding: 2.5rem;
        width: fit-content;
        min-width: auto;
    }
    .popup-auth__text {
        width: 400px;
    }
}

@media (min-width: 1024px) {
    .popup {
        padding: 0 9.25rem;
    }
}

@media (min-width: 19020px) {
    .popup__content {
        max-width: 93.125rem;
    }

    .popup__content {
        padding: 3.75rem;
    }
}

