:root,
:root.light {
    /* Основные цвета - светлая тема */
    --bg-color: #f5f3f7;
    --popover-bg-color: #ffffff;
    --text-color: #1a1a1a;
    --secondary-text-color: #5a5a5a;

    /* Акцентные цвета */
    --accent-color: #6b5b95;
    --accent-color-hover: #7d6ba8;
    --accent-color-light: #8b7ab8;
    --on-accent-color: #ffffff;

    /* Системные цвета */
    --divider-color: rgba(0, 0, 0, 0.08);
    --ripple-color: rgba(107, 91, 149, 0.2);
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;

    /* Шиммер эффект */
    --shimmer-color-1: #ececec;
    --shimmer-color-2: #d8d8d8;

    /* Дополнительные цвета */
    --card-shadow: 0 2px 8px rgba(107, 91, 149, 0.1);
    --overlay-bg: rgba(0, 0, 0, 0.4);
}

:root.dark {
    /* Основные цвета - темная тема */
    --bg-color: #1a1625;
    --popover-bg-color: #252134;
    --text-color: #e8e6ea;
    --secondary-text-color: #a8a6aa;

    /* Акцентные цвета */
    --accent-color: #8b7ab8;
    --accent-color-hover: #9d8bc5;
    --accent-color-light: #a899cc;
    --on-accent-color: #ffffff;

    /* Системные цвета */
    --divider-color: rgba(255, 255, 255, 0.12);
    --ripple-color: rgba(139, 122, 184, 0.3);
    --success-color: #66bb6a;
    --warning-color: #ffa726;
    --error-color: #ef5350;

    /* Шиммер эффект */
    --shimmer-color-1: #2d2a3a;
    --shimmer-color-2: #3a3648;

    /* Дополнительные цвета */
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --overlay-bg: rgba(0, 0, 0, 0.6);
}

/* Дополнительные стили для темной темы - улучшенная контрастность */
:root.dark .cafe-info-container,
:root.dark .back-button-container,
:root.dark .subcategories-header {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

body {
    margin: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-family: 'Rubik', sans-serif;
}

/* ===== Верхняя фиксированная бегущая строка 18+ ===== */
.age-warning-banner {
    position: fixed;
    /* Баннер начинается под системными кнопками Telegram (только в fullscreen) */
    top: var(--tg-safe-area-top, 0px);
    left: 0;
    right: 0;
    height: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    box-sizing: border-box;
    background-color: var(--accent-color);
    color: var(--on-accent-color);
    font-family: 'Rubik', sans-serif;
    font-size: 10px;
    line-height: 24px;
    z-index: 9999;
}

/* Блок над баннером для заполнения safe area */
.age-warning-banner::before {
    content: '';
    position: absolute;
    top: calc(-1 * var(--tg-safe-area-top, 0px));
    left: 0;
    right: 0;
    height: var(--tg-safe-area-top, 0px);
    background-color: var(--accent-color);
    z-index: -1;
}

.age-warning-banner .age-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 16px;
    min-width: 22px;
    padding: 0 5px;
    font-weight: 700;
    font-size: 9px;
    color: var(--on-accent-color);
    background: var(--accent-color);
    border-radius: 6px;
}

.age-warning-banner .marquee {
    overflow: hidden;
    position: relative;
    flex: 1 1 auto;
}

.age-warning-banner .marquee__inner {
    display: flex;
    width: max-content;
    gap: 24px;
    animation: marquee-scroll 18s linear infinite;
}

.age-warning-banner .marquee__content {
    display: inline-flex;
    gap: 10px;
    padding-right: 24px; /* небольшой отступ между дублями */
    white-space: nowrap;
}

.age-warning-banner .marquee-sep {
    opacity: 0.6;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Контент начинается с самого верха, баннер 18+ накладывается поверх */
#content {
    padding-top: 0;
}

h1 {
    width: fit-content;
    min-width: 45%;
    min-height: 1em;
    margin: 0;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 24px;
    border-radius: 8px;
    display: block;
}

h2 {
    width: fit-content;
    margin: 0;
    font-family: 'Rubik', sans-serif;
    font-size: 20px;
    font-weight: 500;
    border-radius: 8px;
}

h3 {
    width: fit-content;
    margin: 0;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
}

h6 {
    width: fit-content;
    min-width: 45%;
    min-height: 1em;
    margin: 0;
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
}

p {
    width: fit-content;
    min-width: 90%;
    min-height: 1em;
    margin: 0;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    white-space: wrap;
    opacity: 0.36;
    border-radius: 8px;
}

button {
    color: var(--text-color);
}

p.small {
    font-size: 11px;
}

.cover {
    width: 100%;
    height: calc(100vw * 9 / 16);  /* 16:9 вместо 4:3 */
    object-fit: cover;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.page {
    width: 100vw;
    min-height: 100%;
    position: absolute;
    background-color: var(--bg-color);
    box-shadow: 0 4px 8px 0 rgba(160, 160, 160, 0.1), 0 6px 20px 0 rgba(160, 160, 160, 0.1);
}

.icon-button {
    position: relative;
    width: 40px;
    height: 40px;
    overflow: hidden;
    background-color: inherit;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none;
}

.icon-button.small {
    width: 32px;
    height: 32px;
    font-size: 20px;
}



/* Cafe info */

.cafe-logo-container {
    position: absolute;
    width: 72px;
    height: 72px;
    right: 0;
    margin-right: 40px;
    margin-top: calc(100vw * 9 / 16 - 84px);  /* 16:9 */
    border-radius: 36px;
    background-color: var(--popover-bg-color);
    box-shadow: inset
        0 0.3px 0.4px hsla(230, 13%, 9%, 0.02),
        0 0.9px 1.5px hsla(230, 13%, 9%, 0.045),
        0 3.5px 6px hsla(230, 13%, 9%, 0.09);
    z-index: 2;
}

.cafe-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.cafe-info-container {
    position: relative;
    z-index: 1;
    width: 100vw - 32px;
    margin-left: 16px;
    margin-top: -48px;
    margin-right: 16px;
    border-radius: 24px;
    background-color: var(--popover-bg-color);
    box-shadow: inset 
        0 0.3px 0.4px hsla(230, 13%, 9%, 0.02),
        0 0.9px 1.5px hsla(230, 13%, 9%, 0.045),
        0 3.5px 6px hsla(230, 13%, 9%, 0.09);
    padding: 24px;
}

.cafe-kitchen-categories {
    min-height: 1em;
    margin-top: 2px;
}

.cafe-parameters-container {
    min-height: calc(1em + 4px);
    display: flex;
    margin-top: 12px;
    font-size: 14px;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
}

.cafe-parameter-container {
    display: flex;
    align-items: center;
}

.cafe-parameter-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.cafe-parameter-value {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    opacity: 0.72;
}

.cafe-status {
    padding: 4px 16px;
    background-color: var(--success-color);
    border-radius: 6px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
}



/* Sections (e.g. categories or popular */

.cafe-section-container {
    margin-top: 24px;
    background-color: transparent;
}

/* Темная тема - убираем слишком темные секции */
:root.dark .cafe-section-container {
    background-color: transparent;
}

.cafe-section-title {
    margin-left: 16px;
    margin-right: 16px;
}

.cafe-section-horizontal {
    padding: 12px 16px;
    overflow-x: scroll;
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    -ms-overflow-style: none;
    scrollbar-width: none; 
}

.cafe-section-horizontal::-webkit-scrollbar {
    display: none;
}

.cafe-section-vertical {
    padding: 16px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
}



/* Category item */

.cafe-category-container {
    min-width: 80px;
    min-height: 80px;
    padding: 12px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Иконки категорий больше не используются - убраны для устранения мигания */

.cafe-category-name {
    font-family: 'Rubik', sans-serif;
    font-size: 12px;
    color: var(--text-color);
    opacity: .72;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 16px);
}



/* Cafe item*/

.cafe-item-container {
    max-width: 224px;
    width: calc((100vw - 16px * 3) / 2);
    overflow: hidden;
    word-wrap: break-word;
    position: relative;
}

.cafe-item-image {
    max-width: 224px;
    max-height: 168px;
    width: calc((100vw - 16px * 3) / 2);
    height: calc((100vw - 16px * 3) / 2 * 3 / 4);
    object-fit: cover;
    border-radius: 16px;
}

.cafe-item-name {
    margin-top: 8px;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
}

.cafe-item-description {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.3;
    color: var(--secondary-text-color);
    word-wrap: break-word;
}

/* Специфичные стили для горизонтального раздела "Популярное" */
#cafe-section-popular .cafe-item-container {
    min-width: 160px;
    max-width: 160px;
    flex-shrink: 0;
}

#cafe-section-popular .cafe-item-image {
    width: 160px;
    height: 120px;
}

#cafe-section-popular .cafe-item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    width: 100%;
    line-height: 1.2;
    display: block;
}

#cafe-section-popular .cafe-item-description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    color: var(--secondary-text-color);
    margin-top: 2px;
    width: 100%;
    line-height: 1.2;
    display: block;
}

/* Специфичные стили для вертикального раздела категорий */
.cafe-section-vertical .cafe-item-name {
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cafe-section-vertical .cafe-item-description {
    line-height: 1.4;
    max-height: 5.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}



/* Cafe item details */

.cafe-item-details-container {
    height: 100vh;
}

.cafe-item-details-content {
    /* Quantity selector container minmimum height x2 */
    padding-bottom: 128px;
}

.cafe-item-details-quantity-selector-value {
    padding: 8px 32px;
    background-color: var(--divider-color);
    border-radius: 16px;
}

.cafe-item-details-title-container {
    margin: 16px 16px 0 16px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.cafe-item-details-name {
    margin-right: 16px;
    flex-grow: 1;
}

.cafe-item-details-selected-variant-weight {
    min-width: 2em;
    opacity: .72;
}

.cafe-item-details-description {
    min-width: calc(100% - 32px);
    min-height: 3em;
    max-height: 6em;
    margin: 16px 16px 0 16px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.cafe-item-details-section-title {
    margin: 16px 16px 0 16px;
}

.cafe-item-details-section-price {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin-top: 16px;
    padding: 0 16px;
}

.cafe-item-details-variants {
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
    gap: 8px;
}

.cafe-item-details-variant {
    display: inline-block;
    position: relative;
    overflow: hidden;
    padding: 8px 16px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    background-color: var(--bg-color);
    border: 1px solid var(--divider-color);
    border-radius: 20px;
    transition: background-color 0.3s linear;
}

.cafe-item-details-variant.selected {
    color: var(--on-accent-color);
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.cafe-item-details-selected-variant-price {
    min-width: 3em;
    min-height: 1em;
}

.cafe-item-details-quantity-selector-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 64px;
    background-color: var(--popover-bg-color);
    box-shadow: inset 
        0 0.3px 0.4px hsla(230, 13%, 9%, 0.02),
        0 0.9px 1.5px hsla(230, 13%, 9%, 0.045),
        0 3.5px 15px hsla(230, 13%, 9%, 0.09);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    z-index: 2;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
}



/* Cart styles */

#cart-content {
    /* Растягиваемся только по содержимому, чтобы блок промокода отображался сразу после товаров. */
    max-height: 100vh; /* Ограничиваем максимум, но не заставляем растягиваться на полный экран */
    overflow-y: auto;
    padding-bottom: 16px;
}

.cart-items-list {
    min-height: auto;
}

.cart-summary {
    display: none !important; /* Убираем фиксированный блок "Итого" внизу */
}

.free-delivery-info {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 14px;
    font-weight: 500;
    background: var(--popover-bg-color);
    border: 1px solid var(--divider-color);
    border-radius: 16px;
    color: var(--text-color);
}

:root.dark .free-delivery-info {
    background: var(--popover-bg-color);
    border-color: var(--divider-color);
    color: var(--text-color);
}

.cart-total-display {
    font-family: 'Rubik', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    letter-spacing: 0.2px;
    margin: 0;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent-color-light) 0%, var(--accent-color) 100%);
    border-radius: 16px;
    border: 1px solid var(--divider-color);
    box-shadow: var(--card-shadow);
}

.cart-item-container {
    display: flex;
    flex-wrap: nowrap;
    padding: 8px 16px;
    margin: 0;
}

.cart-item-image {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
}

.cart-item-info-container {
    flex: 1;
    padding: 0 16px;
    white-space: wrap;
}

.cart-item-name {
    margin-top: 4px;
}

.cart-item-description {
    margin-top: 2px;
}

.cart-item-cost {
    margin-top: 4px;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: var(--accent-color);
}

.cart-item-quantity-container {
    height: 56px;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
}

.cart-item-quantity {
    min-width: 28px;
    height: 28px;
    margin: 0 12px;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 28px;
    color: var(--on-accent-color);
    background-color: var(--accent-color);
    border-radius: 14px;
    text-align: center;
}

.cart-empty-placeholder {
    position: fixed;
    width: 100%;
    height: calc(100vh - 120px);
    left: 0;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.cart-empty-placeholder h3 {
    margin-top: -88px;
    text-align: center;
}

.cart-empty-placeholder p {
    margin-top: 4px;
    text-align: center;
}



/* Common (effect, animations, etc.) */

.snackbar {
    display: block;
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    margin: 0 16px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    color: var(--on-accent-color);
    background-color: var(--accent-color);
    padding: 16px 24px;
    border-radius: 16px;
    z-index: 3;
    opacity: 0;
    transform: scale(0.24);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: var(--ripple-color);
    transform: scale(0);
}

/* Базовый шимер без border */
.shimmer {
    position: relative;
    overflow: hidden;
    background-color: var(--shimmer-color-1);
    border: none !important;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150px;
    width: 150px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite ease-in-out;
}

/* Темная тема - более мягкий шимер */
:root.dark .shimmer::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* Специфичные стили шимера для разных типов изображений */

/* Круглые изображения - логотип кафе */
.cafe-logo.shimmer {
    border-radius: 36px;
}

/* Прямоугольные изображения с закругленными углами - обложка */
.cover.shimmer {
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

/* Изображения товаров - средние закругленные углы */
.cafe-item-image.shimmer {
    border-radius: 16px;
}

/* Изображения в корзине - средние закругленные углы */
.cart-item-image.shimmer {
    border-radius: 16px;
}

/* Категории - округлые квадраты */
.cafe-category-container.shimmer {
    border-radius: 16px;
    min-width: 104px;
    min-height: 104px;
    width: 104px;
    height: 104px;
    background-color: var(--shimmer-color-1) !important;
    background-image: none !important;
    padding: 0 !important;
}

/* Иконки категорий удалены - мигание устранено */

/* Состояние ошибки изображения - скрываем стандартную иконку */
img.image-error {
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden;
}

/* Скрываем стандартную иконку "broken image" во всех браузерах */
img {
    text-indent: -9999px;
    overflow: hidden;
}

img:before {
    content: '';
    display: block;
}

img[alt]:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

/* Контейнер для изображений с обработкой ошибок */
.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
}

/* Для контейнеров логотипа */
.cafe-logo-container .image-container {
    width: 100%;
    height: 100%;
    border-radius: 36px;
}

/* Для контейнеров товаров */
.cafe-item-container .image-container {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/* Для контейнеров корзины */
.cart-item-container .image-container {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.image-error-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--shimmer-color-1) 0%, var(--shimmer-color-2) 100%);
    color: var(--secondary-text-color);
    font-size: 24px;
    border-radius: inherit;
}

:root.dark .image-error-placeholder {
    background: linear-gradient(135deg, var(--shimmer-color-1) 0%, var(--shimmer-color-2) 100%);
    color: var(--secondary-text-color);
}

/* Круглый placeholder */
.image-error-placeholder.round {
    border-radius: 50%;
}

/* Placeholder с закругленными углами */
.image-error-placeholder.rounded {
    border-radius: 16px;
}

.image-error-placeholder.rounded-large {
    border-radius: 24px;
}

.image-error-placeholder.rounded-small {
    border-radius: 12px;
}

@keyframes shimmer {
    0% {
        left: -150px;
    }
    100% {
        left: 100%;
    }
}

.empty-message {
    color: var(--secondary-text-color);
    text-align: center;
    margin: 32px 0 24px 0;
    font-size: 1.15em;
    font-family: 'Rubik', 'Segoe UI', 'Arial', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.85;
    transition: color 0.2s;
}

/* Стили для скидочных товаров */
.sale-item {
    position: relative;
}

.sale-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(45deg, #ff6b6b, #ff5722);
    color: white;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.cafe-item-price-container {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cafe-item-price-current {
    font-size: 16px;
    font-weight: 700;
    color: #ff5722;
}

.cafe-item-price-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.cafe-item-discount-badge {
    font-size: 10px;
    background: #4caf50;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
    width: fit-content;
}

/* Специфичные стили для горизонтального раздела скидок */
#cafe-section-sale .cafe-item-container {
    min-width: 180px;
    max-width: 180px;
    flex-shrink: 0;
}

#cafe-section-sale .cafe-item-image {
    width: 180px;
    height: 135px;
}

#cafe-section-sale .cafe-item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    width: 100%;
    line-height: 1.2;
    display: block;
}

#cafe-section-sale .cafe-item-description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    color: var(--secondary-text-color);
    margin-top: 2px;
    width: 100%;
    line-height: 1.2;
    display: block;
}

/* Скрытие секции скидок если нет товаров */
.cafe-section-container.hidden {
    display: none;
}

/* Стили для промокодов - используем из promo-codes.css */

/* Доставка */
.delivery-header {
    text-align: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-hover) 100%);
    color: var(--on-accent-color);
    margin: -16px -16px 20px -16px;
}

.delivery-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
}

.delivery-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.delivery-options {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-option {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.delivery-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.delivery-option.selected {
    background: rgba(var(--accent-color-rgb), 0.1);
    border-color: var(--accent-color);
}

.delivery-icon {
    font-size: 32px;
    margin-right: 16px;
    min-width: 48px;
    text-align: center;
}

.delivery-info {
    flex: 1;
}

.delivery-info h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.delivery-info p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.delivery-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
}

.delivery-check {
    font-size: 20px;
    color: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.delivery-option.selected .delivery-check {
    opacity: 1;
}

.delivery-footer {
    padding: 20px 16px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.order-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-line:last-child {
    margin-bottom: 0;
}

.summary-line.total {
    font-weight: 600;
    font-size: 16px;
    color: var(--accent-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
    margin-top: 8px;
}

/* Доставка в корзине - стили перенесены в promo-codes.css */

.delivery-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

/* delivery-btn styles moved to cart.css */

/* Spacing for major sections */
#promo-section,
#delivery-status,
#delivery-section {
    margin-block: 20px;
}
#delivery-section .delivery-container {
    padding: 0 4px 4px 4px;
}

/* Telegram Cart UI */

.delivery-status {
    transition: background 0.25s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.delivery-status .delivery-cost {
    box-shadow: 0 1px 4px rgba(51,144,236,.08);
}

.delivery-btn {
    transition: background 0.15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

:root.dark .delivery-btn:hover {
    background: #2a3a4a;
}

:root.dark .delivery-btn.active {
    background: #3390ec;
    color: #fff;
}

:root.dark .delivery-btn.active.free {
    background: #4fc06d;
}
