/* === БАЗА === */
.yad-account-wrapper {
    display: flex;
    background: #ffffff;
    color: #111;
    font-family: "Montserrat", system-ui, sans-serif;
    min-height: 800px;
}

/* === САЙДБАР === */
.yad-account-sidebar {
    width: 260px;
    background: #f6f6f6;
    border-right: 1px solid #e2e2e2;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.yad-account-logo {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
    margin-bottom: 24px;
    color: #000;
}

.yad-account-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.yad-account-menu li {
    margin-bottom: 4px;
}

.yad-account-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: .2s;
}

.yad-account-menu li.is-active > a,
.yad-account-menu a:hover {
    background: #000;
    color: #fff;
}

/* === АККАУНТ ЮЗЕРА === */
.yad-account-user {
    border-top: 1px solid #ddd;
    padding-top: 16px;
}

.yad-account-user-name {
    font-weight: 600;
    font-size: 14px;
}

.yad-account-user-email {
    font-size: 12px;
    color: #555;
}

/* === КОНТЕНТ === */
.yad-account-content {
    flex: 1;
    padding: 30px;
    background: #fff;
}

.yad-section h2 {
    margin-top: 0;
    font-size: 24px;
    font-weight: 700;
}

.yad-section p {
    font-size: 14px;
    color: #444;
}

/* === КАРТОЧКИ БАЗОВО === */
.yad-card {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

/* === СЕТКА БАЗОВО === */
.yad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
}

/* === КНОПКИ (черные прямоугольные) === */
.yad-btn,
.yad-btn-primary {
    padding: 12px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    transition: .15s;
}

.yad-btn:hover,
.yad-btn-primary:hover {
    opacity: .85;
}

.yad-btn-primary {
    background: #000;
    color: #fff;
}

/* Кнопки в кабинете — наследуют шрифт темы */
.yad-btn,
.yad-btn-primary,
.yad-btn-sm {
    font-family: inherit !important;
}

/* === ФОРМЫ === */
.yad-form-group {
    margin-bottom: 16px;
}

.yad-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.yad-form-group input,
.yad-form-group textarea,
.yad-form-group select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #ccc;
    font-size: 14px;
}

.yad-form-actions {
    margin-top: 18px;
}

/* === ТАБЛИЦЫ === */
table.yad-table-orders,
table.yad-table-order-items,
table.yad-table-refunds {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

table.yad-table-orders th,
table.yad-table-refunds th,
table.yad-table-order-items th {
    background: #f2f2f2;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
}

table.yad-table-orders td,
table.yad-table-refunds td,
table.yad-table-order-items td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.yad-link,
.yad-link-back {
    text-decoration: none;
    color: #000;
    font-weight: 600;
}

.yad-link:hover,
.yad-link-back:hover {
    text-decoration: underline;
}

/* === УВЕДОМЛЕНИЯ === */
.yad-alert-success {
    border-left: 4px solid #25d366;
    padding: 12px;
    background: #eafff1;
    margin-bottom: 16px;
    border-radius: 6px;
}



/* === MOBILE === */
@media (max-width: 900px) {
    .yad-account-wrapper {
        flex-direction: column;
    }

    .yad-account-sidebar {
        width: 100%;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
    }

    .yad-account-menu {
        display: flex;
        flex-direction: row;
        gap: 6px;
        margin-bottom: 0;
    }

    .yad-account-menu a {
        white-space: nowrap;
    }

    .yad-account-content {
        padding: 18px;
    }
}

/* ======== АДРЕСА — СЕТКА ======== */
.yad-grid-addresses {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* ======== КАРТОЧКА АДРЕСА ======== */
.yad-address-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 18px 22px;
    border-radius: 10px;
    position: relative;
    transition: 0.2s;
}

.yad-address-card:hover {
    border-color: #000;
}

/* Кнопки внутри карточек */
.yad-address-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.yad-btn-sm {
    background: #000;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    text-transform: uppercase;
}
.yad-btn-sm:hover {
    opacity: .8;
}

/* Метка "по умолчанию" */
.yad-badge-default {
    display: inline-block;
    padding: 3px 8px;
    background: #000;
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
    margin-bottom: 7px;
}

/* ======== МОДАЛКА ======== */
.yad-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.yad-modal-content {
    width: 670px;
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    position: relative;
}

.yad-modal h3 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 800;
}

/* Закрытие */
.yad-modal-close {
    position: absolute;
    right: 18px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* ======== ФОРМА ВНУТРИ МОДАЛКИ ======== */
#yadAddressForm label {
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
}

#yadAddressForm input,
#yadAddressForm textarea {
    width: 100%;
    border: 1px solid #dcdcdc;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

#yadAddressForm input:focus {
    border-color: #000;
}

/* Сетка 2 колонки */
.yad-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 25px;
    margin-bottom: 20px;
}

/* === UNIFY BUTTON STYLE WITH THEME === */

.yad-btn,
.yad-btn-primary,
.yad-btn-sm {
    background: #2f2f2f !important;
    color: #ffffff !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 25px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.yad-btn:hover,
.yad-btn-primary:hover,
.yad-btn-sm:hover {
    opacity: 0.9 !important;
}

/* ====== SWITCH / TOGGLE ====== */

.yad-switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    margin: 15px 0 25px;
}

.yad-switch input {
    display: none;
}

.yad-slider {
    position: relative;
    width: 46px;
    height: 24px;
    background: #dcdcdc;
    border-radius: 30px;
    transition: 0.2s;
}

.yad-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 3px;
    left: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.25s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

/* Включён */
.yad-switch input:checked + .yad-slider {
    background: #000;
}

.yad-switch input:checked + .yad-slider::before {
    transform: translateX(22px);
}

/* Текст справа */
.yad-switch-label {
    font-size: 14px;
    font-weight: 600;
}

.yad-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 25px;
}

/* Обёртка */
.yad-switch {
    margin: 20px 0 30px;
}

.yad-switch label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

/* Слайдер */
.yad-slider {
    position: relative;
    width: 46px;
    height: 24px;
    background: #dcdcdc;
    border-radius: 30px;
    transition: 0.2s;
    flex-shrink: 0;
}

.yad-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 3px;
    left: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.25s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.yad-switch input {
    display: none;
}

.yad-switch input:checked + .yad-slider {
    background: #000;
}

.yad-switch input:checked + .yad-slider::before {
    transform: translateX(22px);
}

/* Текст */
.yad-switch-label {
    font-size: 14px;
    font-weight: 600;
}

/* ЛЕВЫЙ САЙДБАР — фикс ширины и нормальное поведение текста */
.yad-account-sidebar {
    width: 250px !important;
    flex-shrink: 0 !important;
}

/* Меню в столбец, без растяжения */
.yad-account-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

/* Каждая ссылка – ровно по содержимому */
.yad-account-menu li {
    width: auto !important;
}

.yad-account-menu a {
    width: auto !important;
    display: inline-block !important;
    text-align: left !important;
    white-space: nowrap !important;
}

/* Фикс — текст в карточках всегда слева */
.yad-card,
.yad-card * {
    text-align: left !important;
}

/* Убираем верхний логотип/название */
.yad-account-logo {
    display: none !important;
}

/* Поднимаем меню вверх */
.yad-account-sidebar {
    justify-content: flex-start !important;
    padding-top: 20px !important;
}

/* Чтобы меню прилипло к самому верху */
.yad-account-menu {
    margin-top: 0 !important;
}

/* Сдвигаем боковой блок чуть вверх для аккуратности */
.yad-account-sidebar > *:first-child {
    margin-top: 0 !important;
}

/* Убираем лишнее пространство под меню */
.yad-account-user {
    display: none !important;
}

/* ===== АВТОРИЗАЦИЯ/РЕГИСТРАЦИЯ ===== */
.yad-auth-wrapper {
    width: 100%;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 40px 20px;
}

.yad-auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 35px;
    border-radius: 12px;
    text-align: left;
}

.yad-auth-card h2 {
    margin-top: 0;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 25px;
}

.yad-auth-form .yad-form-group {
    margin-bottom: 18px;
}

.yad-auth-card input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.yad-auth-card input:focus {
    border-color: #000;
}

.yad-form-actions {
    margin-top: 20px;
}

.yad-auth-links {
    margin-top: 20px;
    font-size: 14px;
}

.yad-auth-links a {
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

.yad-auth-links a:hover {
    text-decoration: underline;
}

/* Мобилки */
@media (max-width: 480px) {
    .yad-auth-card {
        padding: 25px;
    }

    .yad-auth-card h2 {
        font-size: 22px;
    }
}

/* Фикс текста "Сделать адресом по умолчанию" в переключателе */
.yad-switch label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.yad-switch-label {
    font-size: 14px;
    font-weight: 600;
    white-space: normal;
    line-height: 1.3;
}

/* ====== ПРАВИЛЬНОЕ ВЫРАВНИВАНИЕ ПОЛЕЙ В МОДАЛКЕ ====== */
.yad-modal .yad-grid-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}

.yad-modal .yad-grid-2 .yad-form-group {
    width: 100% !important;
}

.yad-modal .yad-form-group input,
.yad-modal .yad-form-group select {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ===============================
   МОДАЛЬНОЕ ОКНО АДРЕСА
================================ */
.yad-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,.65);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.yad-modal-content {
    width: 680px;
    max-width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    position: relative;
    font-family: "Montserrat", system-ui, sans-serif;
}

.yad-modal-close {
    position: absolute;
    right: 18px;
    top: 14px;
    font-size: 26px;
    cursor: pointer;
}

/* ===============================
   ФОРМА В МОДАЛКЕ
================================ */
#yadAddressForm {
    display: block;
}

/* Сетка 2 колонки */
#yadAddressForm .yad-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
    margin-bottom: 25px;
}

#yadAddressForm label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

#yadAddressForm input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

#yadAddressForm input:focus {
    border-color: #000;
}

/* ===============================
   SWITCH (ТОГГЛ)
================================ */
#yadAddressForm .yad-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 25px;
    cursor: pointer;
    user-select: none;
}

#yadAddressForm .yad-switch input {
    display: none;
}

#yadAddressForm .yad-slider {
    position: relative;
    width: 46px;
    height: 24px;
    border-radius: 30px;
    background: #dcdcdc;
    transition: .2s;
    flex-shrink: 0;
}

#yadAddressForm .yad-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .25s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.20);
}

#yadAddressForm .yad-switch input:checked + .yad-slider {
    background: #000;
}

#yadAddressForm .yad-switch input:checked + .yad-slider::before {
    transform: translateX(22px);
}

#yadAddressForm .yad-switch-label {
    font-size: 14px;
    font-weight: 600;
}

/* ===============================
   КНОПКИ В МОДАЛКЕ
================================ */
#yadAddressForm .yad-btn-primary {
    background: #000;
    color: #fff;
    padding: 12px 26px;
    border: none;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    margin-right: 10px;
}

#yadAddressForm .yad-btn {
    background: #000;
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
}

#yadAddressForm .yad-btn:hover,
#yadAddressForm .yad-btn-primary:hover {
    opacity: .85;
}

/* ============================================
   UNIFIED BUTTON STYLE — THEME CONSISTENT
============================================ */

.yad-btn,
.yad-btn-primary,
.yad-btn-sm,
#yadAddressForm .yad-btn,
#yadAddressForm .yad-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #000 !important;
    color: #fff !important;

    font-family: "Montserrat", sans-serif !important;
    font-weight: 500 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;

    padding: 8px 20px !important;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer;
    text-decoration: none !important;

    transition: 0.15s ease;
}

.yad-btn:hover,
.yad-btn-primary:hover,
.yad-btn-sm:hover,
#yadAddressForm .yad-btn:hover,
#yadAddressForm .yad-btn-primary:hover {
    background: #000 !important;
    opacity: 0.85 !important;
}

/* Маленькая кнопка */
.yad-btn-sm {
    padding: 8px 18px !important;
    font-size: 11px !important;
}

/* Кнопка в карточке — всегда ровная */
.yad-address-actions .yad-btn-sm {
    border-radius: 4px !important;
}

/* === МЕНЮ ЛИЧНОГО КАБИНЕТА В СТИЛЕ <h3> === */
.yad-account-menu a {
    clear: both !important;
    font-family: "Oswald", sans-serif !important;
    color: #1a1a1a !important;
    font-weight: 900 !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;
}

/* Активный пункт */
.yad-account-menu li.is-active > a {
    background: #000 !important;
    color: #fff !important;
}

/* Hover */
.yad-account-menu a:hover {
    background: #000 !important;
    color: #fff !important;
}

/* Кнопка "Назад" — такой же стиль, как остальные */
.yad-btn-back {
    background: #000 !important;
    color: #fff !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 500 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 8px 20px !important;
    border-radius: 4px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.yad-btn-back:hover {
    opacity: 0.85 !important;
}

/* === ОСНОВНОЙ СТИЛЬ ДЛЯ ВСЕХ КНОПОК === */
.yad-btn,
.yad-btn-primary,
.yad-btn-sm,
.yad-address-actions .yad-btn-sm,
#yadAddressForm .yad-btn,
#yadAddressForm .yad-btn-primary,
.yad-btn-back {
    clear: both !important;
    font-family: "Oswald", sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;

    background: #000 !important;
    color: #fff !important;

    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;

    padding: 10px 10px !important;
    font-size: 15px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;

    transition: 0.2s ease !important;
}

/* === HOVER === */
.yad-btn:hover,
.yad-btn-primary:hover,
.yad-btn-sm:hover,
#yadAddressForm .yad-btn:hover,
#yadAddressForm .yad-btn-primary:hover,
.yad-btn-back:hover {
    opacity: 0.85 !important;
    background: #000 !important;
    color: #fff !important;
}

.yad-table-refunds {
    width: 100%;
    min-width: 520px;
}

.yad-table-refunds th,
.yad-table-refunds td {
    white-space: nowrap;
    padding: 6px 10px;
}

.yad-dashboard-text {
    font-size: 14px;
    line-height: 1.4;
    color: #222;
    margin-bottom: 15px;
}

.yad-dashboard-item {
    margin-bottom: 3px;
}

.yad-dashboard-btn-wrap {
    margin-top: 15px;
}

/* Единый шрифт в адресах */
.yad-section-dashboard .yad-card ul,
.yad-section-dashboard .yad-card li {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

/* Сдвигаем кнопку вниз в карточке адресов на главной */
.yad-section-dashboard .yad-card p a.yad-btn {
    margin-top: 12px;
    display: inline-block;
}

/* Чуть компактнее маркированный список */
.yad-section-dashboard .yad-card ul {
    margin-top: 4px;
}

/* ---------- Иконка звезды ---------- */
.yad-address-default .icon-star {
    display:inline-block;
    width:12px;
    height:12px;
    margin-right:4px;
    vertical-align:-2px;
    background:currentColor;
    -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 .587l3.668 7.568L24 9.748l-6 5.848L19.335 24 12 19.897 4.665 24 6 15.596 0 9.748l8.332-1.593z'/></svg>") no-repeat center / contain;
    mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 .587l3.668 7.568L24 9.748l-6 5.848L19.335 24 12 19.897 4.665 24 6 15.596 0 9.748l8.332-1.593z'/></svg>") no-repeat center / contain;
}

/* ---------- Плашка "адрес по умолчанию" ---------- */
.yad-address-default {
    display:inline-flex;
    align-items:center;
    font-size:12px;
    background:#000;
    color:#fff;
    padding:2px 6px;
    border-radius:4px;
    margin-left:8px;
    text-transform:uppercase;
    letter-spacing:0.5px;
}

/* ---------- Список адресов ---------- */
.yad-address-list {
    margin:0;
    padding-left:18px;
    font-size:14px;
    line-height:1.5;
}

/* ---------- Скрытый список остальных адресов ---------- */
.yad-address-collapsed {
    margin-top:8px;
    padding-left:18px;
    display:none;
}

/* ---------- Кнопка "Показать ещё" ---------- */
.yad-address-more {
    margin-top:10px;
    font-size:13px;
    cursor:pointer;
    color:#000;
    text-decoration:underline;
}
.yad-address-more:hover {
    opacity:0.7;
}

/* ============================
   ПОДНЯТИЕ КАРТОЧЕК ПРИ ХОВЕРЕ
============================ */
.yad-card,
.yad-address-card {
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.yad-card:hover,
.yad-address-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.10);
}

/* ============================
   СЕТКА И ЦЕНТРОВКА ДАШБОРДА
============================ */

/* Базовая сетка: 2 колонки на десктопе */
.yad-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* Контейнер дашборда по центру */
.yad-section-dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Сетка дашборда по центру и ограничена по ширине */
.yad-section-dashboard .yad-grid {
    width: 100%;
    max-width: 980px;
    margin-top: 24px;
}

/* Карточки дашборда одинаковой высоты, кнопка снизу */
.yad-section-dashboard .yad-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.yad-section-dashboard .yad-card .yad-dashboard-btn-wrap {
    margin-top: auto;
}

/* Адаптив: одна колонка на планшетах/мобилках */
@media (max-width: 960px) {
    .yad-grid {
        grid-template-columns: 1fr;
    }
}


/* На узких экранах одна колонка */
@media (max-width: 960px) {
    .yad-refund-grid {
        grid-template-columns: 1fr;
    }
}

.yad-ticket-messages {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yad-ticket-message {
    max-width: 80%;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
}

.yad-ticket-message--user {
    margin-left: auto;
    background: #111;
    color: #fff;
}

.yad-ticket-message--support {
    margin-right: auto;
    background: #f5f5f5;
}

.yad-ticket-message-meta {
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 6px;
}

.yad-ticket-message-text p {
    margin: 0;
}

.yad-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.yad-card h3 {
    margin-top: 0;
}

.yad-card-actions {
    margin-top: auto;
}

.yad-ticket-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.yad-ticket-link strong {
    text-decoration: underline;
}

.yad-ticket-link-icon {
    font-size: 11px;
    transform: translateY(-1px);
}

/* === Адреса в ЛК: жёсткая верстка, чтобы тема не ломала === */

.yad-grid-addresses {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* Карточка адреса */
.yad-address-card {
    display: inline-block;
    box-sizing: border-box;
    min-width: 360px;
    max-width: 420px;
    padding: 24px 28px;
    border-radius: 10px;
    border: 1px solid #ececec;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
    font-size: 14px;
    line-height: 1.4;
}

/* Хедер: ФИО + бейдж "по умолчанию" */
.yad-address-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.yad-address-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}

/* Бейдж "Адрес по умолчанию" */
.yad-address-default {
    font-size: 10px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    white-space: nowrap;
}

/* Строка адреса (наш формат: Россия, 125087, г. Москва, ...) */
.yad-address-line {
    margin: 4px 0 6px;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;          /* на случай, если тема ставит nowrap */
    word-break: break-word;
}

/* Телефон и прочее */
.yad-address-meta {
    margin-bottom: 10px;
    font-size: 13px;
    color: #555;
}

.yad-address-meta span {
    display: block;
}

/* Кнопки */
.yad-address-actions {
    margin-top: 4px;
    display: flex;
    gap: 8px;
}

.yad-btn-sm {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    line-height: 1;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    text-transform: uppercase;
}

/* На всякий случай вырубаем чужие стили темы внутри карточки */
.yad-address-card p,
.yad-address-card span,
.yad-address-card div {
    margin: 0;
    padding: 0;
    text-transform: none;
    letter-spacing: normal;
}

/* === Фикс отображения полного адреса в карточке "Мои адреса" === */
.yad-address-card .yad-address-line {
    white-space: normal !important;
    line-height: 1.35 !important;
    word-break: break-word;
    margin-bottom: 6px;
    display: block;
}

/* Чтобы карточка не расширялась и оставалась аккуратной */
.yad-address-card {
    max-width: 360px;
    padding: 18px 20px;
    box-sizing: border-box;
}

/* === ФИНАЛЬНЫЙ ФИКС КАРТОЧКИ АДРЕСА === */
.yad-address-card {
    width: 100% !important;
    max-width: 380px !important;
    padding: 22px 26px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04) !important;
    line-height: 1.45 !important;
}

.yad-address-card .yad-address-line {
    white-space: normal !important;
    word-break: break-word !important;
    margin: 6px 0 10px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    color: #333 !important;
}

.yad-address-card .yad-address-meta span {
    margin-bottom: 6px !important;
    display: block !important;
}

.yad-address-actions {
    margin-top: 14px !important;
}

/* убираем влияние темы на p и span */
.yad-address-card p,
.yad-address-card span {
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
    padding: 0 !important;
}

.yad-address-default {
    display: none !important;
}

/* 1) На главной скрываем бейдж полностью */
.yad-section-dashboard .yad-address-default {
    display: none !important;
}

/* 2) В "Мои адреса" включаем бейдж, даже если выше он где-то скрыт */
.yad-grid-addresses .yad-address-default {
    display: inline-flex !important;
}

/* 3) Фиксируем позиционирование карточки */
.yad-grid-addresses .yad-address-card {
    position: relative !important;
}

/* 4) Красивый бейдж со звездой справа сверху */
.yad-grid-addresses .yad-address-default {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;

    padding: 4px 8px !important;
    font-size: 10px !important;
    background: #000 !important;
    color: #fff !important;

    border-radius: 6px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;

    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* 5) SVG-иконка звезды */
.yad-grid-addresses .yad-address-default::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;

    background: currentColor;

    -webkit-mask: url("data:image/svg+xml;utf8,\
        <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
            <path fill='white' d='M12 .587l3.668 7.568L24 9.748l-6 5.848L19.335 24 12 19.897 4.665 24 6 15.596 0 9.748l8.332-1.593z'/>\
        </svg>"
    ) no-repeat center / contain;

    mask: url("data:image/svg+xml;utf8,\
        <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
            <path fill='white' d='M12 .587l3.668 7.568L24 9.748l-6 5.848L19.335 24 12 19.897 4.665 24 6 15.596 0 9.748l8.332-1.593z'/>\
        </svg>"
    ) no-repeat center / contain;
}

/* === ФИКС: НЕУБИВАЕМЫЙ ЛЕЙБЛ В ПРАВОМ ВЕРХУ УГЛУ === */
:where(.yad-grid-addresses) .yad-address-card {
    position: relative !important;
}

:where(.yad-grid-addresses) .yad-address-default {
    display: inline-flex !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 99 !important;

    background: #000 !important;
    color: #fff !important;
    padding: 4px 8px !important;
    font-size: 10px !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: .4px !important;
    align-items: center !important;
    gap: 4px !important;
}

/* звезда */
:where(.yad-grid-addresses) .yad-address-default::before {
    content: "";
    width: 12px;
    height: 12px;

    background: currentColor !important;
    display: inline-block !important;

    -webkit-mask: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
    <path fill='white' d='M12 .587l3.668 7.568L24 9.748l-6 5.848L19.335 24 12 19.897 4.665 24 6 15.596 0 9.748l8.332-1.593z'/>\
    </svg>"
    ) no-repeat center / contain !important;

    mask: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
    <path fill='white' d='M12 .587l3.668 7.568L24 9.748l-6 5.848L19.335 24 12 19.897 4.665 24 6 15.596 0 9.748l8.332-1.593z'/>\
    </svg>"
    ) no-repeat center / contain !important;
}

/* скрываем бейдж на главной */
.yad-section-dashboard .yad-badge-default {
    display: none !important;
}

.yad-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    margin-left: 6px;
}

.yad-unread-badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    margin-left: 6px;
}

.yad-ticket-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #000;
    color: #fff;
    width: 20px;
    height: 20px;

    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.yad-unread-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    vertical-align: middle;
}

.yad-ticket-status-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* === Мои тикеты — маленький аккуратный текст === */
.yad-ticket-list li,
.yad-ticket-list li a,
.account-support-tickets li,
.account-support-tickets li a {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

/* Удаляем старую надпись Тикет №XXXX, оставляем только наш inline */
.yad-section-dashboard .yad-card p:not(.yad-ticket-inline):has(> strong),
.yad-section-dashboard .yad-card p:first-child:not(.yad-ticket-inline) {
    display: none !important;
}

/* ===== Раздел "Заявки на возврат" ===== */

.yad-section-refunds {
    width: 100%;
}

/* Карточки внутри раздела */
.yad-section-refunds .yad-card {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}



/* ===== ФОРМА ВОЗВРАТА: сетка 2×3, поля на одном уровне ===== */

.yad-refund-form .yad-refund-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 30px !important;
    row-gap: 18px !important;
    width: 100% !important;
}


/* Комментарий под сеткой */
.yad-refund-form .yad-refund-comment-full {
    margin-top: 24px !important;
}

/* Адаптив: в одну колонку на узких экранах */
@media (max-width: 768px) {
    .yad-refund-form .yad-refund-grid {
        grid-template-columns: 1fr !important;
    }
    .yad-refund-form .yad-refund-comment-full {
        grid-column: 1 / -1 !important;
    }
}

/* Сетка 2 колонки */
.yad-refund-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 40px;
    row-gap: 18px;
}

/* Группы полей – высота авто, текст не режем */
.yad-refund-grid .yad-form-group {
    margin-bottom: 0;          /* если надо – можешь вернуть 16px */
    height: auto !important;   /* явно перебиваем старые правила */
}

/* Одинаковая высота именно ПОЛЕЙ */
.yad-refund-form input,
.yad-refund-form select {
    height: 48px;
    line-height: 48px;
    padding: 0 12px;
    box-sizing: border-box;
}

/* Комментарий на всю ширину, под двумя колонками */
.yad-refund-comment-full {
    grid-column: 1 / 3;
    margin-top: 20px;
}

/* Тонкая подстройка расстояния между подписями и полями в Заявках на возврат */
.yad-section-refunds .yad-form-group {
    margin-bottom: 14px;          /* общий отступ блока, можно 12–16 */
}

.yad-section-refunds .yad-form-group label {
    display: block;
    margin-bottom: 3px !important; /* было 6px — подтягиваем текст к полю */
    line-height: 1.2;
}


/* Одинаковая высота полей в форме возврата */
.yad-refund-form .yad-refund-grid .yad-form-group input,
.yad-refund-form .yad-refund-grid .yad-form-group select {
    height: 40px !important;      /* подбери 40–46px под дизайн */
    line-height: 40px !important; /* чтобы текст был по центру */
    box-sizing: border-box;
}

/* textarea не трогаем */

/* ====== ЗАЯВКИ НА ВОЗВРАТ ====== */

/* Секция возвратов на всю ширину контента */
.yad-section-refunds {
    width: 100%;
}

/* Карточки в разделе возвратов */
.yad-section-refunds .yad-card {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Сетка формы: 2 колонки */
.yad-refund-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Колонки внутри формы */
.yad-refund-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Каждая группа: label + поле — в колонку, без лишних отступов */
.yad-refund-form .yad-form-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0 0 14px 0 !important;
}

/* Подтягиваем подписи вплотную к полям */
.yad-refund-form .yad-form-group > label {
    margin: 0 !important;
}

/* Убираем margin у полей внутри формы возврата */
.yad-refund-form .yad-form-group > input,
.yad-refund-form .yad-form-group > select,
.yad-refund-form .yad-form-group > textarea {
    margin: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

/* Комментарий — на две колонки */
.yad-refund-comment-full {
    grid-column: 1 / 3;
    margin-top: 10px;
}

/* Более плотная верстка только в форме возврата */
.yad-refund-form .yad-form-group {
    margin-bottom: 8px !important;   /* было 16px */
}

.yad-refund-form .yad-form-group label {
    margin-bottom: 2px !important;   /* было 6px */
}

/* уменьшаем вертикальные отступы между строками грида */
.yad-refund-form .yad-refund-grid {
    row-gap: 8px !important;         /* меньше вертикальный зазор */
    column-gap: 24px !important;     /* можно чуть сузить, но не обязательно */
}

/* чтобы кнопка не улетала далеко вниз от комментария */
.yad-refund-form .yad-refund-comment-full {
    margin-top: 20px !important;
}

/* Расстояние между полем "Комментарий" и кнопкой в форме возврата */
.yad-refund-form .yad-refund-comment-full {
    margin-top: 8px !important;      /* ближе к полю сверху */
    margin-bottom: 8px !important;   /* почти без отступа снизу */
}

/* Кнопка ближе к полю */
.yad-refund-form .yad-btn-primary {
    margin-top: 10px !important;     /* как на форме тикета */
    display: inline-block;           /* на всякий случай для корректного отступа */
}

/* Типографика в карточках "Заявки на возврат"
   — выравниваем под остальные карточки ЛК */
.yad-section-refunds .yad-card h3 {
    font-size: 18px;      /* как в других карточках */
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 700;
}

.yad-section-refunds .yad-card p {
    font-size: 14px;      /* как обычный текст в ЛК */
    line-height: 1.4;
}

/* Единый шрифт для карточки заказа как в тикетах/остальных блоках */
.yad-card-order,
.yad-card-order * {
    font-family: inherit;   /* наследуем тот же шрифт, что и у ЛК */
}

/* Таблица товаров внутри заказа */
.yad-card-order .yad-table-order-items,
.yad-card-order .yad-table-order-items th,
.yad-card-order .yad-table-order-items td {
    font-family: inherit;   /* тот же шрифт, что и у тикетов */
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

/* Заголовки внутри карточки заказа, чтобы были как в других блоках */
.yad-card-order h3,
.yad-card-order h4 {
    font-family: inherit;   /* при желании здесь можно указать конкретный шрифт */
}

/* Карточка заказа — шрифт как в остальных блоках ЛК */
.yad-card-order,
.yad-card-order * {
    font-family: inherit;      /* наследуем шрифт от .yad-account-wrapper/body */
    font-size: 14px;
    line-height: 1.5;
}

/* Таблица товаров в заказе */
.yad-card-order .yad-table-order-items,
.yad-card-order .yad-table-order-items th,
.yad-card-order .yad-table-order-items td {
    font-family: inherit;
    font-weight: 400;
}

/* Заголовки внутри карточки заказа */
.yad-card-order h3,
.yad-card-order h4 {
    font-family: inherit;
    font-weight: 600; /* если заголовки в других карточках чуть жирнее */
}

/* базовый блок */
.yad-alert {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 6px;
    font-size: 14px;
}

/* ОШИБКИ — красные */
.yad-alert-error {
    background: #ffe5e5;      /* светло-красный фон */
    border-left: 4px solid #e00000;
    color: #b00000;           /* красный текст */
}

/* ИНФО — синий (как было / по вкусу) */
.yad-alert-info {
    background: #e7f1ff;
    border-left: 4px solid #2f6feb;
    color: #1b3c7a;
}


.yad-field-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #777;
}

.yad-form-delete-account {
    margin-top: 20px;
}

.yad-delete-account-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.yad-btn-danger {
    background: #d93030;
    color: #fff;
    border: none;
}

.yad-btn-danger:hover {
    background: #b02020;
}

.yad-help-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #000;          /* чёрный кружок */
    border: 1px solid #000;    /* чёрная обводка */
    color: #fff;               /* белый вопрос */
    font-size: 13px;
    line-height: 1;
    cursor: default;
    font-weight: bold;
    box-sizing: border-box;
}

/* остальное (подсказка) оставить как было: */

.yad-help-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    min-width: 220px;
    max-width: 260px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 50;
}

.yad-help-icon::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 49;
}

.yad-help-icon:hover::after,
.yad-help-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Базовый лейаут заявок на возврат — две колонки */
.yad-refund-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 25px;
    align-items: flex-start;
}

/* Если есть хотя бы один оплаченный заказ — карточки друг под другом */
.yad-refund-layout.yad-refund-layout--stack {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.yad-card-note {
    font-size: 14px;
    
}

/* Таблица на странице просмотра одного заказа */
.yad-table-order th,
.yad-table-order td {
    font-size: 14px; /* как везде */
}

.yad-table-order th,
.yad-table-order td {
    font-size: 14px !important;
}

.yad-address-card {
    position: relative;
    padding-top: 32px; /* даём место под бейдж */
}

.yad-address-default {
    position: absolute !important;
    top: 8px;
    right: 12px;
    transform: none;
    padding: 3px 10px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    font-size: 12px;
}

/* Включение модалки адреса */
.yad-modal.is-open {
    display: flex !important;
}

/* даём верхний отступ под бейдж */
.yad-grid-addresses .yad-address-card {
    padding-top: 36px !important;
}

/* Мои заказы — уменьшить текст "Оформленных заказов нет." */
.yad-section-orders .yad-card p {
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* Скругление красной кнопки Cancel Order */
.yad_cancel_order,
button.yad_cancel_order,
.yad-btn-danger,
button.yad-btn-danger,
button[type="submit"].yad-btn-danger {
    border-radius: 6px !important;
/* ============================
   МОБИЛЬНЫЙ HEADER FIX
   ============================ */
@media (max-width: 768px) {

    /* Делаем полосу, где логотип, чёрной */
    #header-main,
    .site-header,
    .header-main {
        background: #000 !important;
    }

    /* Сдвигаем иконку поиска вправо */
    #top-contacts div:nth-child(3),
    #top-contacts > div:nth-child(3),
    #top-contacts #menu-top ~ div {
        margin-left: auto !important;
        text-align: right !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }

    /* Если сам поиск внутри svg или иконки */
    #top-contacts div:nth-child(3) svg,
    #top-contacts div:nth-child(3) i,
    #top-contacts div:nth-child(3) a {
        margin-left: auto !important;
    }

    /* Перестраховка – весь блок top contacts выравниваем */
    #top-contacts {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Сдвиг поиска если у темы вдруг абсолютное позиционирование */
    #top-contacts div:nth-child(3) {
        position: relative !important;
        right: 0 !important;
    }
}

@media (max-width: 900px) {
    #menu-top .grid-menu {
        background-color: #000 !important;
    }
}

@media (max-width: 900px) {

    /* Чёрная шапка */
    #menu-top.rp-menu {
        background-color: #000 !important;
    }

    /* Контейнер с бургером и логотипом */
    #menu-top .mobile-cont {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        position: relative !important;
        height: 70px !important;
        padding: 0 !important;
    }

    /* Логотип — центрируем и уменьшаем */
    #menu-top .mobile-cont .mobile-logo img {
        width: 150px !important;
        height: auto !important;

        margin: 0 auto !important;
        display: block !important;
    }

    /* Бургер — строго слева, на одной вертикали с логотипом */
    #menu-top #s-button-menu.menu-toggle {
        position: absolute !important;
        left: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        padding: 0 !important;

        width: 38px !important;
        height: 38px !important;

        display: flex !important;
        justify-content: center !important;
        align-items: center !important;

        z-index: 200 !important;
    }

    /* Иконка бургера — увеличиваем и центрируем внутри кнопки */
    #menu-top #s-button-menu.menu-toggle img,
    #menu-top #s-button-menu.menu-toggle svg {
        width: 32px !important;
        height: 32px !important;
        display: block !important;
    }
}

@media (max-width: 900px) {

    /* Принудительно выравниваем бургер по вертикали с логотипом */
    #menu-top #s-button-menu.menu-toggle {
        top: 50% !important;
        transform: translateY(-30%) !important;

        height: 40px !important;
        width: 40px !important;

        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Иконка внутри бургера */
    #menu-top #s-button-menu.menu-toggle img,
    #menu-top #s-button-menu.menu-toggle svg {
        height: 28px !important;
        width: 28px !important;
    }

@media (max-width: 900px) {

    /* Сдвигаем иконку поиска наверх и влево */
    .s-search-top {
        position: absolute !important;
        right: 15px !important;   /* ← смещение влево (уменьшаем значение) */
        top: 80px !important;      /* ← смещение вверх */
        z-index: 999 !important;
    }

    /* Контейнер header-top, чтобы всё оставалось ровным */
    .header-top {
        position: relative !important;
    }
    
    /* === МОБИЛЬНАЯ ВЕРСИЯ МЕНЮ ЛК === */
@media (max-width: 900px) {

    /* Скрываем боковой сайдбар в мобильной версии */
    .yad-account-sidebar {
        width: 100% !important;
        padding: 10px 5px !important;
        border-right: none !important;

        display: block !important;
    }

    /* Делаем меню горизонтальным */
    .yad-account-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;

        gap: 8px !important;
        margin: 0 !important;
        padding: 10px 5px !important;

        overflow-x: auto !important;
        white-space: nowrap !important;
        scrollbar-width: none !important;
    }

    .yad-account-menu::-webkit-scrollbar {
        display: none !important;
    }

    /* Пункты меню */
    .yad-account-menu li {
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
    }

    /* Ссылки внутри */
    .yad-account-menu a {
        display: inline-block !important;
        padding: 6px 12px !important;
        font-size: 13px !important;
        line-height: 1 !important;

        background: #f1f1f1 !important;
        border-radius: 6px !important;
        color: #000 !important;
        text-decoration: none !important;
    }

    /* Активный пункт */
    .yad-account-menu li.is-active > a,
    .yad-account-menu a:hover {
        background: #000 !important;
        color: #fff !important;
    }

    /* Контент ниже меню */
    .yad-account-content {
        padding: 15px !important;
        margin-top: 10px !important;
    }
}

@media (max-width: 768px) {

    /* Карточка не разъезжается */
    .yad-card {
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Весь текст — перенос строк */
    .yad-card * {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }

    /* Адаптивные таблицы */
    .yad-card table {
        width: 100% !important;
        table-layout: auto !important;
        display: block !important;
        overflow-x: auto !important;
    }

    .yad-card table td,
    .yad-card table th {
        white-space: nowrap;
        padding: 6px 8px;
    }
}

@media (max-width: 768px) {

    /* Контейнер модалки */
    .yad-modal-content {
        width: 95% !important;       /* вместо фиксированных 680px */
        max-width: 95% !important;
        margin: 20px auto !important;
        padding: 20px !important;

        box-sizing: border-box !important;
        border-radius: 12px !important;

        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* Убираем лишний padding от внешнего контейнера */
    .yad-modal {
        padding: 10px !important;
        overflow-y: auto !important;
        align-items: flex-start !important;
    }

    /* Чтобы форма не разъезжалась */
    .yad-modal-content form,
    .yad-modal-content input,
    .yad-modal-content select,
    .yad-modal-content textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Кнопки в линию */
    .yad-modal-content button {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 768px) {

    /* Контейнер таблицы — включаем горизонтальный скролл */
    .yad-card table {
        width: 100% !important;
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        border-collapse: collapse !important;
    }

    /* Столбцы не разъезжаются */
    .yad-card table th,
    .yad-card table td {
        padding: 8px 10px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    /* Чтобы не было огромных колонок */
    .yad-card table th:first-child,
    .yad-card table td:first-child {
        min-width: 70px !important;
    }

    .yad-card table th:nth-child(2),
    .yad-card table td:nth-child(2) {
        min-width: 110px !important;
    }

    .yad-card table th:nth-child(3),
    .yad-card table td:nth-child(3) {
        min-width: 100px !important;
    }

    .yad-card table th:last-child,
    .yad-card table td:last-child {
        min-width: 90px !important;
    }

    /* Чтобы карточка не растягивалась */
    .yad-card {
        overflow-x: auto !important;
    }
}

@media (max-width: 900px) {

    /* Иконка поиска в верхнем меню (главная/каталог/товары) */
    .s-search-top,
    .s-search-top * {
        display: none !important;
    }

    /* Иконка поиска в личном кабинете (наш кастомный header) */
    #menu-top .dashicons-search,
    #menu-top .dashicons-search:before {
        display: none !important;
    }

    /* Страховка — любые dashicons поиска в сайте */
    .dashicons-search {
        display: none !important;
    }
}

@media (max-width: 900px) {

    /* Убираем блок поиска в Revolution Press */
    .s-search-top,
    .s-search-top *,
    .nav-top-detiles .s-search-top,
    .nav-top-detiles .s-search-top *,
    div.s-search-top,
    div.s-search-top * {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        pointer-events: none !important;
    }

    /* Убираем иконку, если она вставлена напрямую */
    #search-top-ico,
    #search-top-ico *,
    .dashicons-search,
    .dashicons-search:before {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}
.yad-btn-cancel,
.yad-btn-cancel-order,
button.cancel-order,
a.cancel-order {
    border-radius: 6px !important; /* столько же, сколько у чёрной кнопки */
}
/* Скругление красной кнопки Cancel Order */
.yad_cancel_order,
button.yad_cancel_order,
.yad-btn-danger,
button.yad-btn-danger,
button[type="submit"].yad-btn-danger {
    border-radius: 6px !important;
}

