/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

::before,
::after {
    --tw-content: '';
}


html,
:host {
    line-height: 1.5; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
    -moz-tab-size: 4; /* 3 */
    tab-size: 4; /* 3 */
    -webkit-tap-highlight-color: transparent; /* 7 */
}

body {
    margin: 0; /* 1 */
    line-height: inherit; /* 2 */
}

* {
    box-sizing: border-box;
}

hr {
    height: 0; /* 1 */
    color: inherit; /* 2 */
    border-top-width: 1px; /* 3 */
}

.woocommerce-error:focus-visible {
    outline: unset;
    font-weight: 500;
    font-size: 14px;
    color: var(--neutral-gray-500, #a5a5a5);
}

abbr:where([title]) {
    text-decoration: underline dotted;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

a {
    color: inherit;
    text-decoration: inherit;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp,
pre {
    font-size: 1em; /* 4 */
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

table {
    text-indent: 0; /* 1 */
    border-color: inherit; /* 2 */
    border-collapse: collapse; /* 3 */
}



button,
input,
optgroup,
select,
textarea {
    font-family: Montserrat; /* 1 */
    font-feature-settings: inherit; /* 1 */
    font-variation-settings: inherit; /* 1 */
    font-size: 100%; /* 1 */
    font-weight: inherit; /* 1 */
    line-height: inherit; /* 1 */
    color: inherit; /* 1 */
    margin: 0; /* 2 */
    padding: 0; /* 3 */
    border: 0;
}

button,
select {
    text-transform: none;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
    -webkit-appearance: button; /* 1 */
    background-color: transparent; /* 2 */
    background-image: none; /* 2 */
}

:-moz-focusring {
    outline: auto;
}

:-moz-ui-invalid {
    box-shadow: none;
}

progress {
    vertical-align: baseline;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
    height: auto;
}

[type='search'] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
}

::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
}

summary {
    display: list-item;
}

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
    margin: 0;
}

fieldset {
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
}

ol,
ul,
menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

dialog {
    padding: 0;
}

textarea {
    resize: vertical;
}


button,
[role="button"] {
    cursor: pointer;
}

:disabled {
    cursor: default;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
    display: block; /* 1 */
    vertical-align: middle; /* 2 */
}

img,
video {
    /* disable max-width solves bug img-export/propagation > nested-img-bigger */
    max-width: 100%;
    height: auto;
}

[hidden] {
    display: none;
}

* {
    text-underline-offset: 0.134em;
}


:root {
    /* color variables */
    --neutral-white-primary: #fff;
    --neutral-white-secondary: #fafafa;
    --neutral-gray-100: #f4f4f4;
    --neutral-gray-200: #ececec;
    --neutral-gray-300: #d9d9d9;
    --neutral-gray-400: #9a9a9a;
    --neutral-gray-500: #707070;
    --neutral-gray-600: #515151;
    --neutral-black-primary: #090909;
    --primary-blue: #0096d3;
    --primary-blue-dark: #0077a7;
    --primary-yellow-strong: #ffca00;
    --primary-yellow-soft: #fbe9b6;
    --semantic-error: #ea314d;
    --semantic-warning: #f46608;
    --semantic-success: #008923;
    --izi-green: #bfe552;
    --gray-200-500: rgba(217, 217, 217, 0.5);
    --white-primary-600: rgba(255, 255, 255, 0.6);
    --black-primary-200: rgba(9, 9, 9, 0.2);
    --black-primary-400: rgba(9, 9, 9, 0.4);
    --black-primary-50: rgba(9, 9, 9, 0.05);
    --black-primary-500: rgba(9, 9, 9, 0.5);
    --gray-400-500: rgba(154, 154, 154, 0.5);
    --blue-100: rgba(0, 150, 211, 0.1);
    --blue-50: rgba(0, 150, 211, 0.05);
    --blue-500: rgba(0, 150, 211, 0.5);
    --success-100: rgba(0, 137, 35, 0.1);
    --warning-100: rgba(244, 102, 8, 0.1);
    --error-100: rgba(234, 49, 77, 0.1);
    --error-50: rgba(234, 49, 77, 0.05);
    --hower-state: #ade552;
    --black-primary-700: rgba(9, 9, 9, 0.7);
    --gray-200-200: rgba(217, 217, 217, 0.2);
}


html {
    height: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    font-size: 16px;
    font-family: 'Montserrat';
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0;
    background-color: var(--neutral-white-secondary);

}

h5 {
    font-weight: 600;
    font-size: 24px;
    line-height: 100%;
    vertical-align: middle;

}

h4 {
    font-weight: 600;
    font-size: 28px;
    line-height: 100%;
    vertical-align: middle;

}

/*=====================HEADER=============================*/

.header-desk {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--neutral-white-secondary);
    padding: 24px 80px;
    border-bottom: 1px solid var(--neutral-gray-200);

    /* ФИКСАЦИЯ */
    position: sticky;
    top: 0;
    z-index: 1000;

    /* ТЕНЬ (чтобы хедер не сливался с контентом при скролле) */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);


}


/* Левая навигация */
.header-nav {
    display: flex;
    gap: 32px;
    flex: 1; /* Занимает равное место слева */
}

.header-link {
    text-decoration: none;
    color: var(--neutral-black-primary);
    transition: color 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 100px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.header-link:hover {
    background-color: var(--primary-blue-200);
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 100px;
}

/* Центрирование логотипа */
.header-logo-link {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.header-logotype {
    height: 67px; /* Фиксируем высоту для аккуратности */
    width: auto;
}

/* Правая часть с кнопками */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: flex-end; /* Прижимаем к правому краю */
}

.loc-title {
    margin-left: 20px;
    margin-bottom: 12px;
}

.header-location-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    text-align: right;
}

.location-btn {
    display: flex;
    gap: 8px;
}

.location-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.location-label {
    color: var(--semantic-success);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.location-phone {
    color: var(--neutral-black-primary);
    font-size: 14px;
    font-weight: 500;
}

/* Круглые кнопки с иконками */
.icon-circle {
    width: 56px;
    height: 56px;
    background-color: var(--neutral-gray-100);
    border: 1px solid var(--neutral-gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-circle:hover {
    border-color: var(--primary-blue);
    background-color: var(--neutral-white-primary);
}

.header-icon {
    width: 32px;
    height: 32px;
}

/* Разделительная линия */
.header-divider {
    width: 2px;
    height: 20px;
    background-color: var(--neutral-gray-300);
    margin: 0 8px;
}

.mobile-header {
    display: none;
}

.mobile-side-menu {
    display: none;
}

/* сам dropdown */
.location-dropdown {
    position: absolute;
    top: 100%; /* сразу под хедером */
    left: 0;
    width: 100%;
    background: var(--neutral-white-secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

    max-height: 0;
    /*  overflow: hidden; */
    overflow: auto;

    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;

    z-index: 999;
}

/* активное состояние */

.location-dropdown.active {
    max-height: 90vh;
    opacity: 1;
    transform: translateY(0);
}

/* внутренности */
.location-dropdown__content {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* сетка */
.location-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.location-card {
    padding: 16px;
    background: var(--neutral-white-primary);
    border-radius: 12px;
}

.location-top-bar {
    display: flex;
    gap: 12px;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
}

/* select */
.location-city,
.location-filter {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--neutral-gray-300);
    background: #fff;
    cursor: pointer;
}

/* иконка */
.search-icon {
    font-size: 16px;
    color: #888;
}

/* контейнер кнопок */
.search-actions {
    display: flex;
    gap: 8px;
}

/* кнопки */
.chip {
    border: none;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
    background: var(--primary-blue-200);
}

/* активная */
.chip.active {
    background: var(--primary-blue-200);
}

/* dropdown */
.chip.dropdown {
    background: var(--primary-blue-200);
}

.dropdown-wrapper {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 180px;
    display: none; /* Скрыт по умолчанию */
    z-index: 1000;
}

.dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #f0f4ff;
}

.search-icon {
    font-size: 18px;
    margin-right: 4px;
}

/* Контейнер для поиска и сортировки */
.search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Сама плашка поиска */
.search-bar {
    flex: 1; /* Растягивает поиск, отодвигая сортировку вправо */
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--neutral-white-primary);
    border: 1px solid var(--neutral-gray-200);
    border-radius: 14px;
    padding: 8px 16px;
    overflow: hidden;
}

/* Поле ввода внутри */
.search-input {
    flex: 1; /* Растягивает ввод внутри плашки, отодвигая кнопки (chips) вправо */
    border: none;
    background: transparent;
    outline: none;
    font-weight: 400;
    font-size: 16px;
    color: var(--neutral-gray-400);

}

.chip {
    display: flex;
    align-items: center;
    background: var(--primary-blue-200);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    gap: 8px;
}


.sort {
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    border: none;
    gap: 8px;
    background: var(--neutral-white-primary);
    border: 1px solid var(--neutral-gray-200);
}

.sort-icon {
    padding: 6px;
    background: var(--primary-blue-200);
    border-radius: 8px;

}


.chip.active {
    background: var(--primary-blue-200);
}

.filters {
    display: flex;
    gap: 8px;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 180px;
    display: none;
    z-index: 1000;
}

.dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f0f4ff;
}

.location-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Сетка как на фото */
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
}

.location-card {
    position: relative;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Эффект выделенной карточки (как синяя на скрине) */
.location-card.active {
    background: var(--primary-blue-200);
}

.location-card:hover {
    background: var(--primary-blue-200);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.location-address {
    font-weight: 600;
    font-size: 16px;
    color: var(--neutral-black-primary);
    margin-bottom: 12px;
}

.location-phone {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: var(--neutral-black-primary);
    margin-bottom: 16px; /* Отступ перед графиком */
}

.icon {
    opacity: 0.6;
    font-size: 14px;
}

/* Нижняя часть с разделителем */
.location-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #0909090D; /* Тонкая линия как на макете */
}

.hours-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-black-primary);
}

.hours-value {
    font-size: 14px;
    font-weight: 400;
    color: var(--neutral-black-primary);
}

/* Кнопка-стрелка */
.location-arrow {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 32px;
    background: var(--primary-blue);
    color: var(--neutral-white-primary);
    border-radius: 100px; /* Квадрат со скруглением */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Показываем стрелку только на активной или при наведении */
.location-card:hover .location-arrow {
    opacity: 1;
}

.mobile-location-dropdown {
    display: none;
}

/* Адаптивность для средних экранов */
@media (max-width: 1200px) {
    .header-desk {
        padding: 20px 40px;
        gap: 20px;
    }

    .header-nav {
        gap: 16px;
    }

    .header-logotype {
        height: 48px;
    }
}

@media (max-width: 1024px) {

    .header-desk {
        display: none;
    }

    .mobile-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        display: flex;
        padding: 12px 16px; /* Значительно уменьшаем отступы на мобилках */
        height: 80px; /* Фиксируем высоту для аккуратности */
        justify-content: space-between;
        gap: 20px;
        background: var(--neutral-white-secondary);
    }

    /* Уменьшаем кружки иконок для мобилок, чтобы не были громоздкими */
    .icon-circle {
        width: 44px;
        height: 44px;
    }

    .header-icon {
        width: 24px;
        height: 24px;
    }

    /* Убираем фон у бургера, если нужно, или оставляем как у аккаунта */
    .mobile-burger-btn {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .mobile-side-menu {
        position: fixed;
        top: 80px; /* Высота хедера */
        left: 0;
        height: calc(100vh - 80px);
        background: var(--neutral-white-secondary);
        z-index: 999;
        transform: translateX(-100%); /* Скрыто слева */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 24px;
        z-index: 10000;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .side-menu-content {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .search-container {
        flex-direction: column;
    }

    .location-dropdown__content {
        padding: 0px;
    }

    .search-bar {
        width: 100%;
    }

    /* Когда меню открыто */
    .mobile-side-menu.active {
        transform: translateX(0);
    }

    /* Логика смены иконок */
    .mobile-burger-btn.is-active .icon-burger {
        display: none;
    }

    .mobile-burger-btn.is-active .icon-close {
        display: block !important;
    }

    /* Стили контента внутри меню */
    .mobile-location-block {
        display: flex;
        flex-direction: column;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .mobile-nav-links .header-link {
        font-size: 18px; /* Делаем ссылки крупнее для тача */
        font-weight: 500;
    }

    .mobile-location-dropdown {
        display: none;
        background: #fff;
        padding: 16px;
    }

    .mobile-location-dropdown.open {
        top: 100px;
        display: block;
        width: 65%;
        position: fixed;
        left: 280px;
        z-index: 1000;
        border-radius: 20px;
        height: auto;
    }

    .location-hours-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .location-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        overflow: scroll;
        height: 250px;
        background-color: transparent;
    }

    .location-card {
        border: 1px solid var(--neutral-gray-200);
    }

    .location-phone {
        font-size: 14px;
    }

    .chip {
        font-size: 14px;
    }

    .loc-title {
        font-weight: 600;
        font-size: 20px;
    }

    .sort {
        font-size: 14px;
    }

    .sort-icon {
        width: 30px;
        height: 30px;
        border-radius: 4px;

    }

    .search-actions {
        align-items: center;
    }
}

@media (max-width: 768px) {

    .location-text {
        display: none;
    }

    /* Скрываем ненужные элементы */
    .header-nav,
    .header-location-btn,
    .header-divider {
        display: none !important;
    }

    /* Логотип делаем чуть меньше, чтобы влез по центру */
    .header-logotype {
        height: 38px;
    }

    /* Убеждаемся, что логотип стоит ровно по центру */
    .header-logo-link {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .location-hours-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 4px;
    }

    .search-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .loc-title {
        text-align: center;
    }

    .mobile-location-dropdown.open {
        width: calc(50vw - 20px);
    }
}

.hidelocmenu {
    display: none;
}

@media (max-width: 540px) {
    .mobile-location-dropdown.open {
        width: 100%;
        left: 0;
        top: 80px;
        border-radius: 0;
        height: 100%;
    }

    .hidelocmenu {
        display: flex;
    }
}


/* ================ ORDER PAGE ========= */

.order_container {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.order_left {
    flex: 1;
}

.order_container {
    display: flex;
    align-items: flex-start;
}

.order_right {
    width: 360px;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.order_right {
    width: 360px;
    position: sticky;
}

.order_summary {
    position: sticky;
    top: 20px; /* отступ сверху при скролле */
    background: var(--neutral-white-secondary);
    border-radius: 12px;
    padding: 20px;
}

.order_section {
    background: #fff;
    border-radius: 12px;
    padding: 64px 64px 0px 78px;
    margin-bottom: 20px;
}

.order_section label {

    font-weight: 500;
    font-style: Medium;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;

}

/* строка с 3 полями */
.order_row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.order_col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* чекбокс + цена */
.order_extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.checkbox_label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.checkbox_label span {
    color: #888;
}

/* Дополнительный текст */
.checkbox_label span {
    color: #888;
    font-size: 14px;
}

.payment_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

.payment_divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

.card_fields_container {
    padding: 10px 0 10px 0px; /* Отступ слева, чтобы поля были под текстом */
}

/* Общие стили */
.order_section {

    overflow: hidden;
    transition: all 0.4s ease;
}

/* Хедер с заголовком и статусом */
.order_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
}

.status_label {
    font-size: 14px;
    color: var(--primary-blue);
    background: var(--primary-blue-200);
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 600;
}

/* Контент скрыт по умолчанию */
.order_content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 20px;
}

/* Когда раскрыт */
.order_section.open .order_content {
    max-height: 2000px; /* Достаточно большое число, чтобы вместить весь контент */
    padding: 16px 20px;
}

/* Анимация “разъезжания” */
.order_section.open {
    transform: scaleY(1);
}

.order_section.order_collapsed {
    transform: scaleY(0.98);
    opacity: 0.95;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.order_section.open {
    transform: scaleY(1);
    opacity: 1;
}

/* Стилизация радиокнопки под твой чекбокс */
.checkbox_label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%; /* Круглая форма */
    margin-right: 10px;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}

.checkbox_label input[type="radio"]:checked {
    background-color: #0093d0;
    border-color: #0093d0;
}

/* Рисуем белую галочку внутри радиокнопки при выборе */
.checkbox_label input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox_label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%; /* Круглая форма */
    margin-right: 10px;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}

.checkbox_label input[type="checkbox"]:checked {
    background-color: #0093d0;
    border-color: #0093d0;
}

/* Рисуем белую галочку внутри радиокнопки при выборе */
.checkbox_label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


.card_logos img {
    height: 28px;
    margin-left: 5px;
}

.extra_icon {
    height: 28px;
}

/* цена справа */
.extra_price {
    background: var(--primary-blue-200);
    color: var(--primary-blue-dark);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 32px;
    margin-top: 20px;
}

.custom-select-trigger {
    background: var(--neutral-white-secondary);;
    border: 1px solid var(--neutral-gray-300);
    border-radius: 999px;
    padding: 16px 20px;
    height: 48px;
    line-height: 48px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-select-trigger::after {
    content: "";
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3csvg fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat center;
    background-size: contain;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.custom-select-wrapper.open .custom-select-trigger::after {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 6px;
    display: none;
    z-index: 10;
}

.custom-select-wrapper.open .custom-options {
    display: block;
}

.custom-option {
    padding: 10px 16px;
    cursor: pointer;
    user-select: none;
}

.custom-option:hover {
    background-color: var(--primary-blue-200);
    color: var(--primary-blue);
}

.custom-option.selected {
    background-color: var(--primary-blue);
    color: var(--neutral-white-primary);
}

.order_title {

    margin-bottom: 48px;
}

.delivery-banner {
    width: 100%;
    padding: 18px 20px;
    background: var(--primary-blue-200);
    color: var(--primary-blue); /* чуть приглушённый текст как на скрине */

    font-size: 18px;
    font-weight: 700;
    text-align: center;

    border-radius: 12px;
    border: 1px solid var(--primary-blue);
    margin-bottom: 20px;

}

.order_input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 100px;
    border: 1px solid var(--neutral-gray-300);
    background: var(--neutral-white-secondary);
    font-size: 16px;
    font-weight: 400;
    outline: none;
    margin-top: 20px;
    margin-bottom: 32px;
}

.order_button {
    width: 100%;
    background: var(--primary-blue);
    color: var(--neutral-white-primary);
    font-weight: 700;
    cursor: pointer;
    font-size: 18px;
    padding-top: 16px;
    padding-right: 32px;
    padding-bottom: 16px;
    padding-left: 32px;
    border-radius: 100px;
    transition: all 0.3s ease;
    margin-bottom: 64px;

}

.order_button:hover {
    background: var(--primary-blue-dark);
    transition: all 0.3s ease;

}

.order_item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order_total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 18px;
}

/* ================ SUCSEEES MODAL ========= */

.modal-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000050;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-card {
    background: var(--neutral-white-primary);
    padding: 52px 108px;
    border-radius: 20px;
    width: 100%;
    max-width: 630px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--neutral-black-primary);
}

.modal-text {
    font-size: 18px;
    font-weight: 400;
    color: var(--neutral-gray-500);
    margin-bottom: 32px;
    padding: 0 10px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn {
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--neutral-white-primary);
    padding: 16px 24px;
    border-radius: 100px;

}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
}

.btn-link {
    font-size: 18px;
    font-weight: 500;
    color: var(--neutral-black-primary);
    padding: 8px;
}

.btn-link:hover {
    opacity: 0.7;
}

/*======== SIGN UP POP UP ===========*/
.sign_up_popup_overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Затемнение фона */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.sign_up_popup {
    background: var(--neutral-white-primary);
    width: 100%;
    max-width: 630px;
    padding: 52px 108px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.popup_close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: 1px solid #ddd;
    background: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #999;
}

.popup_title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: var(--neutral-black-primary);
}

.popup_subtitle {
    color: var(--neutral-gray-500);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 38px;
}

.popup_form {
    text-align: left;
}

.input_group {
    margin-bottom: 24px;
}

.input_group label {
    display: block;
    font-weight: 600;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.input_group input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 100px;
    border: 1px solid var(--neutral-gray-300);
    background: var(--neutral-white-secondary);
    font-size: 16px;
    font-weight: 400;
    outline: none;
}

.input_group input::placeholder {
    font-weight: 400;
    font-size: 16px;
    color: var(--neutral-gray-400);
}

.password_wrapper {
    position: relative;
}

.password_toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer; /* Делаем иконку кликабельной */
    user-select: none; /* Чтобы текст не выделялся при частых кликах */
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.password_toggle:hover {
    opacity: 1;
}

.password-field {
    padding-right: 45px !important; /* Чтобы текст пароля не налезал на глазик */
}

.submit_btn {
    width: 100%;
    background: var(--primary-blue);
    color: var(--neutral-white-primary);
    padding: 16px;
    border-radius: 100px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.3s;
}

.submit_btn:hover {
    background: #0086bc;
}

.popup_footer {
    margin-top: 24px;
    font-size: 18px;
    font-weight: 500;
}

.popup_footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
}

/* ===== TABLET (до 768px) ===== */
@media (max-width: 768px) {
    .sign_up_popup {
        max-width: 90%;
        padding: 40px 32px;
        border-radius: 16px;
    }

    .popup_title {
        font-size: 24px;
    }

    .popup_subtitle {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .input_group label {
        font-size: 16px;
    }

    .input_group input {
        padding: 14px 16px;
        font-size: 15px;
    }

    .submit_btn {
        font-size: 16px;
        padding: 14px;
    }

    .popup_footer {
        font-size: 16px;
    }
}

/* ===== MOBILE (до 540px) ===== */
@media (max-width: 540px) {
    .sign_up_popup_overlay {
        padding: 16px; /* чтобы не прилипал к краям */
        align-items: flex-end; /* как bottom sheet (круче UX) */
    }

    .sign_up_popup {
        width: 100%;
        max-width: 100%;
        padding: 28px 20px;
        border-radius: 20px 20px; /* как приложение */
    }

    .popup_close {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
    }

    .popup_title {
        font-size: 20px;
    }

    .popup_subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .input_group {
        margin-bottom: 16px;
    }

    .input_group label {
        font-size: 14px;
    }

    .input_group input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .submit_btn {
        font-size: 15px;
        padding: 14px;
        margin-top: 8px;
    }

    .popup_footer {
        font-size: 14px;
        margin-top: 16px;
    }
}

/*================================*/
.notification {
    margin-top: 20px;
    transform: translateY(100px);
    background: rgb(0, 137, 35);
    color: white;
    padding: 16px 18px;
    padding-bottom: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    /*  opacity: 0;*/
    transition: all 0.4s ease;
    min-width: 100%;
    /*
      position: fixed !important;
      bottom: 0px !important;
      right: 20px !important;
    */
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}


.notification-content h3 {
    padding-bottom: 12px;
}

.notification-content p {
    padding-bottom: 12px;
}


.notification-content {
    /*
      display: flex;
      align-items: center;
      gap: 10px;
    */
    padding: 10px;
}

.icon-phone {
    padding: 6px;
    border-radius: 100px;
    width: 28px;
    height: 28px;
    display: flex;
    border: 1px solid #0909090D;
}

.title {
    font-weight: 600;
    font-size: 15px;
}

.subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.close {
    margin-left: auto;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.8;
}

.close:hover {
    opacity: 1;
}

/*=====================BANNERS=============================*/
/* Внешняя секция — ограничитель */
.banner-section {
    width: 100%;
    margin: 0 auto;
    overflow: hidden; /* ГЛАВНЫЙ ЗАМОК: ничего не выйдет наружу */
    padding: 24px 0;
}

.banner-container {
    width: 100%;
    position: relative;
}

.banner-track {
    display: flex;
    gap: 20px;
    width: 100%;
    overflow-x: auto;
    /* Оставляем snap для удобства пользователя */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 7.5%;
    /* Плавность скролла */
    scroll-behavior: smooth;
}

.banner-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
    border-radius: 24px;
    overflow: hidden;
}

.banner-track::-webkit-scrollbar {
    display: none;
}


.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка всегда внутри баннера */
    pointer-events: none; /* Чтобы мышка не цепляла картинку при скролле */
}

/*====================SHOP==============================*/

.categories-nav {
    z-index: 100;
    padding: 15px 0;
    width: 100%;
}

.categories-container {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--neutral-gray-300);
}

@media(min-width: 768px) {
    .categories-container {
        padding-bottom: 24px;
    }
}

@media(min-width: 1024px) {
    .categories-container {
        padding-bottom: 28px;
    }
}

@media(min-width: 1240px) {
    .categories-container {
        padding-bottom: 32px;
    }
}

.cat-btn {
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid var(--neutral-gray-300);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Эффект активной категории */
.cat-btn.active {
    background: var(--primary-blue); /* Твой фирменный красный */
    color: var(--neutral-white-primary);
}

.cat-btn:hover:not(.active) {
    background: var(--neutral-gray-100);
    transform: translateY(-2px);
}

.categories-underline {
    height: 1px;
    background: var(--neutral-gray-300);
    width: 100%;
    margin: 32px 0;
}

/*====================PRODUCT==============================*/
.category-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--neutral-black-primary);
    margin-bottom: 32px;
}

.products-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));*/
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    padding-top: 20px;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- 3. БАЗОВАЯ КАРТОЧКА --- */
.product-card {
    background: var(--neutral-white-primary);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--neutral-gray-200);
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* --- 4. ВЕРХНЯЯ ЧАСТЬ (Картинка и Слои) --- */
.card-top {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-bg {
    position: absolute;
    width: 100%;
    height: 122px;
    top: 0;
    background: var(--neutral-gray-100);
    z-index: 1;
}

.product-img {
    position: relative;
    z-index: 2;
    max-width: 180px;
    object-fit: contain;
    /*   right: 24px;*/
}

/* --- КНОПКИ-ТРАНСФОРМЕРЫ (Справа вверху) --- */
.card-actions-container {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.expand-on-hover {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 40px;
    overflow: hidden;

    /* Фон прозрачный, но обводка ВСЕГДА есть */
    background-color: transparent;
    box-sizing: border-box;

    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s ease,
    box-shadow 0.3s ease;

    white-space: nowrap;
    cursor: pointer;
}

/* Эффект при наведении — только появление фона и тени */
.expand-on-hover:hover {
    background-color: var(--neutral-white-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Синяя обводка для Улюблене (всегда) */
.btn-favorite.expand-on-hover {
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-favorite.expand-on-hover:hover {
    width: 135px;
}

/* Красная обводка для Гостре (всегда) */
.badge-status.hot.expand-on-hover {
    border: 1px solid var(--semantic-error);
    color: var(--semantic-error);
}

.badge-status.hot.expand-on-hover:hover {
    width: 110px;
}

/* --- Логика текста внутри --- */
.expand-text {
    max-width: 0;
    opacity: 0;
    font-size: 16px;
    font-weight: 600;
    margin-left: 0;
    transition: max-width 0.4s ease, opacity 0.2s ease, margin-left 0.4s ease;
}

.expand-on-hover:hover .expand-text {
    max-width: 100px;
    opacity: 1;
    margin-left: 8px;
}

.expand-on-hover object {
    min-width: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    pointer-events: none;
}

/* --- 6. ТЕКСТ (Инфо и обрезание) --- */
.card-info {
    padding: 20px 24px;
    flex-grow: 1;
}

.cart-item-group:not(:last-child) {
    border-bottom: 1px solid var(--neutral-gray-200);
}

.cart-item-group:not(:first-child)  {
    padding-top: 20px;
}

.item-footer-row,
.cart-item-group__row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.item-footer-row {
    margin-top: 20px;
    padding-bottom: 20px;
}

.variation {}

.variation__title {
    font-weight: 600;
    font-size: 14px;
    color: var(--neutral-gray-500);
    margin-top: 14px;
}

.variation__body {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.variation__row {
    display: flex;
    gap: 4px;
    font-weight: 500;
    font-size: 14px;
    color: var(--neutral-black-primary);
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--neutral-black-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-ingredients {
    font-size: 16px;
    font-weight: 400;
    color: var(--neutral-gray-500);
    line-height: 1.4em;
    /* Тройное обрезание */
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: 4.2em; /* 1.4 * 3 */
}

/* --- 7. ФУТЕР КАРТОЧКИ --- */
.line-a {
    height: 1px;
    background: var(--neutral-gray-200);
    margin: 0 24px;
}

.card-footer {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--neutral-black-primary);
}

.btn-add-to-cart {
    background: var(--primary-yellow-soft);
    border: 1px solid var(--primary-yellow-strong);
    border-radius: 50px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    transform: rotate(90deg) scale(1.1);
    background-color: var(--primary-yellow-strong);
}

/* Утилиты для иконок */
.expand-on-hover object,
.btn-add-to-cart object {
    width: 20px;
    height: 20px;
    pointer-events: none;
    flex-shrink: 0;
}

.section-products {
    overflow: hidden;
    padding-bottom: 100px;
}

@media(min-width: 1240px) {
    .section-products {
        padding-bottom: 150px;
    }
}

.section-products__body {
    display: flex;
    gap: 20px;
}

.sidebar-head {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

.sidebar-head__arrow {

}

.sidebar-head__icon {
    display: none;
}

.sidebar-body__inner {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--neutral-gray-300);
}

@media(max-width: 768px) {

    .sidebar-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s linear;
    }

    .sidebar-head__icon {
        display: flex;
        align-items: center;
        gap: 5px;
        border: 1px solid var(--primary-blue);
        border-radius: 100px;
        padding: 12px 20px;
    }
}

    /*========================КОРЗИНА==========================*/

.menu-category {
    scroll-margin-top: 120px;
}

/* 1. Общий макет */
.main-app-layout {
    display: flex;
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 20px 100px 20px;
    position: relative;
}

/* 2. Сайдбар и Липкость */
.sidebar-order {
    min-width: 300px;
    max-width: 300px;
    background: var(--neutral-gray-200);
    position: relative;
    border-radius: 20px 0 0 20px;
}

.sidebar-order:after {
    content: '';
    position: absolute;
    width: 1000px;
    height: 100%;
    left: 100%;
    top: 0;
    background: var(--neutral-gray-200);
}

.sidebar-order__body {
    padding: 32px 0 32px 20px;
}

@media(max-width: 768px) {
    .sidebar-order {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        z-index: 10;
    }

    .sidebar-order:after {
        display: none;
    }

    .sidebar-order__body {
        padding: 32px 20px;
    }
}

@media (max-height: 700px) {
    .sidebar-order {
        height: 300px;
        overflow-y: auto;
    }
}

.card-order-sidebar {
    /*position: sticky;*/
    /*top: 120px;*/
    display: flex;
    flex-direction: column;
}

.sidebar-order .btn-checkout-main {
    margin-top: 24px;
}

/* Белая карточка со скроллом */
.order-items-card {
    border: 1px solid var(--gray-400-500);
    border-radius: 12px;
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    background: var(--neutral-white-primary);
}

@media(min-width: 1024px) {
    .order-items-card {
        height: 500px;
    }
}

.order-items-card::-webkit-scrollbar {
    width: 6px;
}

.order-items-card::-webkit-scrollbar-track {
    background: #efefef;
}

.order-items-card::-webkit-scrollbar-thumb {
    background: var(--blue-500);
    border-radius: 100px;
}

.notification {
    margin-top: 20px!important;
    transform: translateY(0);
    color: white;
    box-shadow: unset;
    z-index: 1;
    transition: all 0.4s ease;
    min-width: 100%;
    border: 1px solid var(--gray-400-500);
    border-radius: 12px;
    padding: 20px;
    overflow-y: auto;
    background: var(--neutral-white-primary);
}

.notification h3 {
    font-weight: 500;
    font-size: 22px;
    color: var(--neutral-black-primary);
}

.notification p {
    margin-top: 15px;
    font-weight: 600;
    font-size: 14px;
    color: var(--neutral-gray-500);
}

.items-scroll-area {
    flex: 1;
    overflow-y: auto;
    /*padding-right: 20px;*/
    min-height: 100px;
    overflow-x: hidden;
}

.items-scroll-area::-webkit-scrollbar {
    width: 6px; /* Ширина полоски */
}

.items-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

.items-scroll-area::-webkit-scrollbar-thumb {
    background-color: var(--primary-blue);
    border-radius: 10px;
}

.items-scroll-area::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-blue);
}

.items-scroll-area {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) transparent;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
}

.order-table td {
    width: 50%;
}

.item-name {
    text-align: left;
}

.product-popup.active {
    display: flex;
    padding: 25px;
    justify-content: center;
    align-items: center;
}

.popup-product-image {
    aspect-ratio: 1;
    max-width: 450px;
    margin: 0 auto;
}

.woocommerce-product-details__short-description {
    font-size: 16px;
    font-weight: 400;
    color: var(--neutral-gray-500);
    line-height: 130%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-price-order {
    text-align: right;
}

.order-items-card,
.items-scroll-area {
    width: 100%;
}

.item-name {
    /*padding-top: 24px;*/
    font-weight: 700;
    font-size: 18px;
    color: var(--neutral-black-primary);
    text-transform: uppercase;
    line-height: 1;
}

.details-label {
    color: var(--neutral-gray-500);
    font-size: 14px;
    font-weight: 600;
    margin: 14px 0 8px 0;
}

.details-text {
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-black-primary);
}

.comment-bubble {
    display: inline-block;
    border: 1px solid var(--neutral-gray-300);
    border-radius: 50px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
}

/* Футер товара: Цена и Кнопки */
.item-footer-row td {
    padding-top: 16px;
}

.item-price {
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    color: var(--neutral-black-primary);
}

.item-price-order {
    padding-top: 24px;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
    width: 100%;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--neutral-gray-300);
    border-radius: 50px;
    padding: 8px 12px;
    gap: 14px;
    margin-bottom: 24px;

}

.qty-btn {
    font-size: 16px;
    color: var(--neutral-gray-500);
    cursor: pointer;
    font-weight: 500;
}

.qty-num {
    font-weight: 500;
    font-size: 16px;
    color: var(--neutral-black-primary);
}

/* 4. Итоговая часть и кнопка */
.sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width:100%;
}

.total-label {
    font-weight: 700;
    font-size: 18px;
}

.total-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--neutral-black-primary);
}

.btn-checkout-main {
    width: 100%;
    background: var(--primary-blue);
    color: var(--neutral-white-primary);
    padding: 16px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

@media(min-width: 1024px) {
    .btn-checkout-main {
        font-size: 18px;
    }
}

.btn-checkout-main:hover {
    background: rgba(0, 119, 167, 1);
}

/* Если кнопка заблокирована (Disabled) — как 4-й вариант на макете */
.btn-checkout-main:disabled {
    background: rgba(217, 217, 217, 1);
    cursor: not-allowed;
}

.btn-checkout-main.warning {
    background: rgba(234, 49, 77, 0.1); /* Светло-розовый фон */
    color: var(--semantic-error);
    cursor: default;
}


/* Разделитель */
.item-divider {
    height: 1px;
    background-color: var(--neutral-gray-200);
    margin: 15px 0;
}

.sidebar-stats {
    display: flex; /* Включает гибкий контейнер */
    justify-content: space-between; /* Толкает элементы в разные стороны: один влево, другой вправо */
    align-items: center; /* Выравнивает их по вертикальному центру */
    width: 100%; /* Растягивает на всю ширину корзины */
    margin-bottom: 16px; /* Отступ до белой карточки */
    font-weight: 500;
    font-size: 16px;
}


.sidebar-add {
    display: flex; /* Включает гибкий контейнер */
    justify-content: space-between; /* Толкает элементы в разные стороны: один влево, другой вправо */
    align-items: center; /* Выравнивает их по вертикальному центру */
    width: 100%; /* Растягивает на всю ширину корзины */
    margin-bottom: 16px; /* Отступ до белой карточки */
    font-weight: 500;
    font-size: 16px;
}

.line-divider {
    height: 1px;
    background-color: var(--neutral-gray-300);
    margin: 24px 0; /* Большие отступы сверху и снизу */
    width: 100%;
}

.btn-edit-small {
    /*margin-top: 24px;*/
    background: none;
    border: 1px solid var(--neutral-gray-200); /* Светлая рамка, если нужно как на скрине */
    border-radius: 50px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit-small:hover {
    background-color: var(--neutral-gray-100);
    border-color: var(--neutral-gray-300);
}

/* Чтобы object (иконка) не перехватывал клики */
.btn-edit-small object {
    pointer-events: none;
}

/* Блок промокода */
.promo-section {
    margin-top: 24px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--neutral-black-primary);
}

.promo-section p {
    margin-bottom: 16px;
}

.promo-input {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--neutral-gray-300);
    border-radius: 50px;
    padding: 16px 20px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.promo-input::placeholder {
    color: var(--neutral-gray-500);
}


.input {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--neutral-gray-300);
    border-radius: 50px;
    padding: 16px 20px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.input::placeholder {
    color: var(--neutral-gray-500);
}

.sidebar-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: var(--neutral-black-primary);
}

.full-menu-scroll {
    display: flex;
    flex-direction: column;
    gap: 64px;
    margin-top: 32px;
}

/*.full-menu {*/
/*    display: flex;*/
/*    align-items: flex-start;*/
/*    gap: 20px;*/
/*}*/

.mobile-cart-bar {
    display: none;
}

.mobile-cart-overlay {
    display: none;
}


@media (max-width: 768px) {
    /* Находим контейнер со списком категорий */
    .main-app-layout {
        padding-top: 0px;
    }


    .btn-open-cart-svg {
        padding: 12px 20px; /* Больше отступов по бокам для двух иконок */
        border-radius: 30px; /* Овальная форма */
        border: 2px solid var(--primary-blue); /* Фирменная синяя обводка */
        cursor: pointer;
        display: flex;
        align-items: center;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .svg-pair {
        display: flex;
        align-items: center;
        gap: 8px; /* Расстояние между двумя SVG */
        pointer-events: none; /* Чтобы клик пролетал сквозь object в кнопку */
    }

    .btn-open-cart-svg:active {
        transform: scale(0.95);
        background: rgba(0, 122, 255, 0.2);
    }

    .mobile-cart-bar {
        position: fixed;
        bottom: 0px;
        height: 98px;
        width: 100%;
        background: var(--neutral-white-primary);
        border-top: 1px solid var(--neutral-gray-300);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        z-index: 100;
    }

    .cart-bar-info {
        display: flex;
        flex-direction: row; /* Выстраиваем в строку */
        align-items: center; /* Центрируем по вертикали */
        gap: 8px; /* Расстояние между текстом и точкой */
    }

    .bar-count {
        font-size: 18px;
        font-weight: 500;
        color: var(--neutral-black-primary);
        white-space: nowrap;
    }

    .bar-total {
        font-size: 18px;
        font-weight: 700;
        color: var(--neutral-black-primary);
        white-space: nowrap;
    }

    .cart-bar-actions {
        display: flex;
        align-items: center;
        gap: 12px; /* Відстань між кнопками */
    }

    .btn-open-cart {
        background: var(--primary-blue);
        color: var(--neutral-white-primary);
        padding: 14px 32px;
        border-radius: 100px;
        font-weight: 700;
        font-size: 18px;
    }

    /* Оверлей и Панель (Этап 2) */
    .mobile-cart-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2100;
        display: none; /* Скрыто по умолчанию */
        align-items: flex-end;
        transition: background 0.4s ease, visibility 0.4s;
    }

    .mobile-cart-sheet {
        width: 100%;
        background: var(--neutral-white-primary);
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* "Пружинистый" выезд */
        display: flex;
        flex-direction: column;
    }

    .mobile-cart-overlay.active {
        display: flex;
        background: rgba(0, 0, 0, 0.6); /* Плавное затемнение фона */
    }

    .mobile-cart-overlay.active .mobile-cart-sheet {
        transform: translateY(0);
    }

    .sheet-header {
        display: flex;
        justify-content: space-between;
        position: relative;
        align-items: center;
    }

    .mobile-cart-content {
        opacity: 0;
        transition: opacity 0.3s ease 0.2s; /* Появление текста с задержкой */
    }

    .mobile-cart-overlay.active .mobile-cart-content {
        opacity: 1;
    }

    /* Адаптация вашей таблицы под мобильный экран */
    .mobile-cart-content .order-table {
        width: 100%;
    }

    .mobile-cart-content .items-scroll-area {
        max-height: 40vh;
        overflow-y: auto;
    }

    .promo-input {
        background-color: var(--neutral-white-primary);
    }

    .promo-input::placeholder {
        color: var(--neutral-gray-400);
    }

    .input::placeholder {
        color: var(--neutral-gray-400);
    }
}

@media (max-width: 540px) {
    .mobile-cart-bar {
        flex-direction: column;
        justify-content: space-evenly;
        height: 120px;
    }
}

/*===================FOOTER===============================*/

.footer {
    padding: 52px 0;
    border-top: 1px solid var(--neutral-gray-200);
    background-color: var(--neutral-black-primary);
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20%;
    display: flex;
    justify-content: space-around;
}

/* Левая часть */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.powered-by {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
    color: var(--neutral-white-primary);
    font-weight: 500;
    font-size: 20px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-links {
    display: flex;
    flex-direction: wrap;
    margin-top: 48px;
    gap: 24px;
}

.footer-links a {
    font-weight: 400;
    font-size: 14px;
    color: var(--neutral-gray-400);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--neutral-white-primary);
    background-color: var(--n);

}

.cta-text {
    color: var(--neutral-white-primary);
    font-weight: 500;
    font-size: 18px;
    text-align: right;
}

.footer-btn {
    padding: 16px 48px;
    border-radius: 50px;
    background: var(--izi-green);
    color: var(--neutral-black-primary);
    cursor: pointer;
    transition: 0.3s;
}

.footer-btn:hover {
    background-color: #cdff45;
}

.footer-right {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

@media (max-width: 540px) {
    .footer-container {
        flex-direction: column-reverse;
        gap: 48px;
    }

    .footer-right {
        gap: 16px;
    }

    .footer-btn {
        padding: 12px 0px;
        width: 100%;
    }

    .cta-text {
        text-align: left;
    }
}

/* ============== Overlay ================*/
.overlay {
    /* display: none !important; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Popup */
.add-ingredients {
    width: 630px;
    background: var(--neutral-white-primary);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.add-ingredients__option-left {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    color: var(--neutral-black-primary);

    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

}

.add-ingredients__option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    aspect-ratio: 1/1;
    border-radius: 4px;
    border: 1px solid var(--neutral-gray-300);
}

/* активный */
.add-ingredients__option input[type="checkbox"]:checked {
    background: var(--primary-blue);
    background-color: var(--primary-blue);
}

/* галочка */
.add-ingredients__option input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 5px;
    width: 4px;
    height: 9px;
    border: solid var(--neutral-white-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);

}

/* Close */
.add-ingredients__close {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    border-radius: 100px;
    border: 1px solid var(--neutral-gray-300);
    padding: 8px 12px;
    transition: all 0.3s ease;

}

.add-ingredients__close:hover {
    background-color: var(--neutral-gray-300);
    transition: all 0.3s ease;
}

/* Header */
.add-ingredients__header {
    display: flex;
    gap: 15px;
    padding-left: 200px;
    padding-right: 100px;
    padding-top: 32px;
    padding-bottom: 32px;
}

.add-ingredients_body {
    width: 100%;
    height: 416px;
    overflow-y: scroll;
    padding-bottom: 24px;
    padding-top: 4px;
    padding-left: 100px;
    padding-right: 100px;
    background-color: var(--neutral-gray-100);
}

.add-ingredients__img {
    width: 200px;
    position: absolute;
    left: -30px;
    top: -30px;
}

.add-ingredients__title {
    font-size: 28px;
    font-weight: bold;
}

.add-ingredients__desc {
    color: var(--neutral-gray-500);
    font-size: 18px;
    margin-top: 16px;
    font-weight: 400;
}

/* Input */
.add-ingredients__input {
    margin-top: 15px;
}

.add-ingredients__input input {
    width: 100%;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
}

/* Section */
.add-ingredients__section-title {
    margin-top: 20px;
    margin-bottom: 20px;
    color: var(--neutral-black-primary);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.32px;
}

/* Option */
.add-ingredients__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}


.add-ingredients__price {
    background: var(--primary-blue-200);
    padding: 8px 12px;
    border-radius: 15px;
    color: var(--primary-blue-dark);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}

/* Counter */
.add-ingredients__counter {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 89px;
    padding: 8px 12px;
    justify-content: space-between;
    align-items: center;

    border-radius: 100px;
    border: 1px solid var(--neutral-gray-300);
    font-size: 16px;
    font-weight: 500;

}

.add-ingredients__counter button {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.add-ingredients__counter_mob {
    display: none;
    align-items: center;
    gap: 10px;

    width: 100%;
    padding: 8px 12px;
    justify-content: space-between;
    align-items: center;

    border-radius: 100px;
    border: 1px solid var(--neutral-gray-300);
    font-size: 16px;
    font-weight: 500;
    margin: 12px 0px;

}

.add-ingredients__counter_mob button {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

/* Button */
.add-ingredients__btn {

    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 16px 126px;
    border-radius: 25px;
    border: none;
    background: var(--primary-blue);
    color: var(--neutral-white-primary);
    cursor: pointer;
    transition: all 0.3s ease;

}

.add-ingredients__btn:hover {
    background: var(--primary-blue-dark);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .add-ingredients {
        height: 100%;
        top: 100px;
        width: 100%;
        border-radius: 0px;
    }

    .add-ingredients__title {
        font-size: 18px;
    }

    .add-ingredients__desc {
        font-size: 14px;
    }

    .add-ingredients__header {
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 90px;
        padding-right: 60px;
    }

    .add-ingredients__img {
        width: 120px;
        left: -50px;
        top: -10px;
    }

    .add-ingredients_body {
        padding-left: 16px;
        padding-right: 16px;
        height: 60%;
    }

    .add-ingredients__btn {
        width: 95%;
        padding: 16px 0px;
    }

    .add-ingredients__counter_mob {
        display: flex;
        justify-content: center;
    }

    .add-ingredients__counter {
        display: none;
    }
}


/* My Account Navigation */
.woocommerce-MyAccount-navigation {
    border-right: 1px solid var(--neutral-gray-300);
    width: 100%;
    overflow: hidden;
    padding-right: 32px;
}

.woocommerce-MyAccount-content {
    width: 100%;
}

.my-account__title {
    font-weight: 600;
    font-size: 20px;
    color: var(--neutral-black-primary);
}

.my-account__list {
    display: none;
}

.account-nav__group {
    padding: 28px 0;
    border-bottom: 1px solid var(--neutral-gray-300);
}

.account-nav__item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.account-nav__text {
    font-weight: 600;
    font-size: 20px;
    color: var(--neutral-black-primary);
    transition: color .3s linear;
}

.account-nav__item.is-active .account-nav__icon {
    border: 1px solid var(--primary-blue-dark);
    background: var(--blue-100);
}

.account-nav__item:hover .account-nav__icon {
    border: 1px solid var(--primary-blue-dark);
}

.account-nav__item:hover .account-nav__text {
    color: var(--primary-blue-dark);
}

.account-nav__item.account-nav__item--logout .account-nav__text {
    color: var(--semantic-error);
}

.account-nav__item.account-nav__item--logout:hover .account-nav__icon {
    border: 1px solid var(--semantic-error);
}

.account-nav__sub {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.account-nav__sub-link {
    font-weight: 500;
    font-size: 18px;
    color: var(--neutral-black-primary);
}

.account-nav__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--neutral-gray-300);
    border-radius: 100px;
    padding: 3px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    transition: border .3s linear;
}

.account-nav__icon svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 768px) {
    .woocommerce-MyAccount-navigation {
        min-width: 250px;
        max-width: 250px;
    }

    .my-account__list {
        display: flex;
        flex-direction: column;
    }

}

@media (min-width: 1024px) {
    .woocommerce-MyAccount-navigation {
        min-width: 380px;
        max-width: 380px;
    }
}

@media (min-width: 1240px) {
    .woocommerce-MyAccount-navigation {
        min-width: 520px;
        max-width: 520px;
    }

    .account-nav__icon {
        min-width: 56px;
        max-width: 56px;
        height: 56px;
    }

    .account-nav__icon svg {
        width: 32px;
        height: 32px;
    }
}

/* My Account Orders */
.account-orders {
    width: 100%;
}

.account-orders__header {
    margin-bottom: 24px;
}

.account-orders__title {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 28px;
    line-height: 114%;
    letter-spacing: -0.01em;
    color: var(--neutral-graphitic, #1b1b1b);
    margin-bottom: 24px;
}

.account-orders__filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-y: auto;
    gap: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;

    &::-webkit-scrollbar {
        display: none;
    }
}

.account-orders__filter {
    min-height: 44px;
    border: 1px solid var(--neutral-gray-300, #e0e0e0);
    border-radius: 999px;
    background: var(--neutral-white-primary, #fff);
    padding: 0 18px;
    font-weight: 600;
    font-size: 14px;
    color: var(--neutral-graphitic, #333);
    cursor: pointer;
    transition: color .2s linear, background .2s linear, border-color .2s linear;
}

.account-orders__filter:hover,
.account-orders__filter.is-active {
    border-color: var(--primary-blue, #049bd8);
    background: var(--primary-blue, #049bd8);
    color: var(--neutral-white, #fff);
}

.account-orders__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-order-card {
    border: 1px solid var(--neutral-gray-300, #e0e0e0);
    border-radius: 20px;
    background: var(--neutral-white-primary, #fff);
    padding: 24px;
    transition: border-color .2s linear, box-shadow .2s linear;
}

.account-order-card:hover,
.account-order-card[data-open="true"] {
    border-color: var(--primary-blue, #049bd8);
    box-shadow: 0 14px 35px rgba(27, 27, 27, 0.06);
}

.account-order-card__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--neutral-gray-300, #e0e0e0);
}

@media (min-width: 768px) {
    .account-order-card__top {
        flex-direction: row;
    }
}

.woocommerce-account .my-account-panel .input-text:focus {
    outline: 1px solid var(--primary-blue);
}

.account-order-card__title {
    font-weight: 700;
    font-size: 16px;
    line-height: 125%;
    color: var(--neutral-black-primary, #1b1b1b);
    margin-bottom: 10px;
}

.account-order-card__date {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: var(--neutral-gray-500, #a5a5a5);
}

.account-order-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.account-order-card__badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.account-order-card__badge--new {
    background: #fff0e8;
    color: #ff6b00;
}

.account-order-card__badge--completed {
    background: #e9f8ed;
    color: #26a84a;
}

.account-order-card__badge--cancelled {
    background: #ffeaf1;
    color: #ff5373;
}

.account-order-card__badge--other {
    background: var(--neutral-gray-100, #f5f5f5);
    color: var(--neutral-gray-600, #777);
}

.account-order-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    font-weight: 600;
    font-size: 15px;
    color: var(--neutral-graphitic, #333);
}

.account-order-card__meta.smooth-btn {
    cursor: pointer;
}

.account-order-card__meta-separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--neutral-gray-300, #e0e0e0);
}

.account-order-card__total {
    font-weight: 700;
    color: var(--neutral-black-primary, #1b1b1b);
}

.account-order-card__bonus {
    color: var(--neutral-gray-600, #666);
}

.account-order-card__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 9px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--neutral-graphitic, #333);
    cursor: pointer;
    transition: transform .2s linear, color .2s linear;
}

.woocommerce-account .woocommerce-error {
    padding-top: 0;
}

.account-order-card__toggle:hover {
    color: var(--primary-blue, #049bd8);
}

.account-order-card__meta.smooth-btn.active .account-order-card__toggle {
    transform: rotate(180deg);
}

.account-order-card__details {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

.account-order-card__details.open {
    overflow: hidden;
}

.account-order-card__items {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--neutral-gray-300, #e0e0e0);
}

.account-order-card__product {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 14px;
    color: var(--neutral-graphitic, #333);
}

.account-order-card__product-image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--neutral-gray-100, #f5f5f5);
}

.account-order-card__product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-order-card__product-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.account-order-card__product-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 125%;
    color: var(--neutral-black-primary, #1b1b1b);
}

.account-order-card__product-addons {
    font-weight: 500;
    font-size: 13px;
    line-height: 130%;
    color: var(--neutral-gray-500, #a5a5a5);
}

.account-order-card__product-qty,
.account-order-card__product-price {
    font-weight: 700;
    font-size: 15px;
    line-height: 120%;
    color: var(--neutral-black-primary, #1b1b1b);
    white-space: nowrap;
}

.account-order-card__info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--neutral-gray-300, #e0e0e0);
}

.account-order-card__info-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.45fr) 1fr;
    gap: 16px;
    font-size: 14px;
    line-height: 135%;
}

.account-order-card__info-row dt {
    font-weight: 700;
    color: var(--neutral-graphitic, #333);
}

.account-order-card__info-row dd {
    margin: 0;
    font-weight: 500;
    color: var(--neutral-gray-500, #a5a5a5);
}

.account-order-card__actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--neutral-gray-300, #e0e0e0);
}

.account-order-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
}

.account-order-card__action--cancel {
    background: #ffe7ed;
    color: #ff5373;
}

.account-order-card__action--repeat {
    background: var(--primary-blue, #049bd8);
    color: var(--neutral-white, #fff);
}

.account-orders__empty {
    border: 1px solid var(--neutral-gray-300, #e0e0e0);
    border-radius: 20px;
    background: var(--neutral-white-primary, #fff);
    padding: 24px;
    font-weight: 600;
    color: var(--neutral-gray-600, #777);
}

.account-orders__pagination {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .account-orders__filters {
        display: flex;
        gap: 10px;
    }

    .account-orders__filter {
        min-width: 120px;
    }

    .account-order-card {
        border-radius: 24px;
        padding: 28px 32px;
    }

    .account-orders__title {
        font-size: 32px;
        margin-bottom: 32px;
    }
}

/* Стили для Особисті дані */
.woocommerce-account .woocommerce {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
    padding-bottom: 100px;
}

.woocommerce-account .my-account__sidebar-list--anchors li.is-active a {
    color: var(--primary-emerald);
}

.woocommerce-account .my-account__sidebar-list--anchors a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.woocommerce-account .woocommerce-EditAccountForm.edit-account {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.woocommerce-account .my-account-panel {
    border: 1px solid var(--neutral-gray-300);
    border-radius: 30px;
    background: var(--neutral-white-primary);
    padding: 24px;
    scroll-margin-top: 25px;
}

.woocommerce-account .woocommerce-form-row {
    margin-bottom: 0;
}

.woocommerce-account .my-account-panel__head {
    margin-bottom: 40px;
}

.woocommerce-account .my-account-panel__title {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 28px;
    line-height: 114%;
    letter-spacing: -0.01em;
    color: var(--neutral-graphitic);
}

.woocommerce-account .my-account-panel__text {
    margin-top: 16px;
    font-weight: 400;
    font-size: 16px;
    color: var(--neutral-gray-500);
}

.woocommerce-account .my-account-panel .woocommerce-form-row label {
    display: block;
    margin-bottom: 8px;
}

.woocommerce-account .my-account-panel .input-text {
    border: 1px solid var(--neutral-gray-300);
    border-radius: 100px;
    background: var(--neutral-white-secondary);
    min-height: 52px;
    padding: 16px;
    width: 100%;
    font-weight: 600;
    font-size: 16px;
    color: var(--neutral-black-primary);
    transition: all .3s linear;
}

.woocommerce-account .my-account-panel .input-text:focus-visible {
    outline: unset;
}

.woocommerce-account .my-account-panel .input-text:focus {
    border: 1px solid var(--primary-blue);
}

button.show-password-input {
    position: absolute;
}

.woocommerce-form-row__head {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 10px;
    justify-content: space-between;
}

.woocommerce-account #account_display_name_description {
    display: block;
    margin-top: 8px;
    color: var(--neutral-gray-04);
}

.my-account-panel__body .woocommerce-form-row label {
    font-weight: 500;
    font-size: 16px;
    line-height: 122%;
    letter-spacing: -0.01em;
    color: var(--neutral-graphitic);
    margin-bottom: 12px;
}

/* Стили Змінити пароль */
.woocommerce-account .my-account-panel--password .woocommerce-form-row label {
    font-weight: 500;
}

.woocommerce-account .my-account-panel__actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.woocommerce-account .my-account-panel__submit {
    border-radius: 100px;
    min-height: 52px;
    min-width: 220px;
    padding: 0 24px;
    font-weight: 600;
}

.my-account-panel__body {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    row-gap: 24px;
    width: 100%;
}

.my-account-panel--password .my-account-panel__body {
    grid-template-columns: repeat(1, 1fr);
}

.woocommerce-account .my-account-panel {
    padding: 30px 20px;
}

@media (min-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: row;
    }

    .my-account-panel__body .woocommerce-form-row label {

        margin-bottom: 16px;
        font-size: 18px;
    }

    .woocommerce-account .my-account-panel .input-text {
        padding: 15px 20px;
        width: 100%;
    }

    .woocommerce-account .my-account-panel__actions {
        margin-top: 32px;
    }

    .woocommerce-account .my-account-panel {
        padding: 38px 32px;
    }

    .woocommerce-account .my-account-panel__title {
        font-size: 28px;
    }

    .woocommerce-account .my-account-panel__text {
        font-size: 20px;
    }
}

@media (min-width: 1024px) {
    .my-account-panel__body {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
    }

    .woocommerce-account .woocommerce-form-row.form-row-last {
        grid-column: 1 / 3;
    }
}

@media (min-width: 1240px) {
    .woocommerce-account .my-account-panel__actions {
        margin-top: 32px;
    }

    .woocommerce-account .my-account-panel {
        padding: 52px;
    }

    .woocommerce-account .my-account-panel {
        border-radius: 40px;
    }

    .woocommerce-account .my-account-panel__title {
        font-size: 32px;
    }

    .my-account-panel--password .my-account-panel--password .my-account-panel__body {
        width: 100%;
    }

    .woocommerce-account .woocommerce {
        padding-bottom: 120px;
    }
}

.clear {
    position: absolute;
}

.primary-btn {
    background: var(--primary-yellow-soft);
    border: 1px solid var(--primary-yellow-strong);
    border-radius: 50px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background: #fbe9b6c9;
}

