html {
    --primary-color: #fff;
    --button-text-color: #000;
    --page-bg-color: #222;
    --additional-bg-color: #1e1f23;
    --accent-color: #8230FF;
    
    --header-color: #1e1f23;
    --header-transparency-color: rgba(30, 31, 35, 0.8);
    
    --additional-text-color: rgb(210, 210, 210);
    
    /* константы */
    --border-radius: 10px;
}

html.light-theme {
    --primary-color: #222;
    --button-text-color: #fff;
    --page-bg-color: #fff;
    --additional-bg-color: #e0e0e0;
    --accent-color: orange;
    
    --additional-text-color: rgb(80, 80, 80);
    
    --header-color: #fff;
    --header-transparency-color: rgba(255, 255, 255, 0.8);
}

body {
    font-family: "Montserrat", sans-serif;
}

/* фон всей страницы */
#allrecords {
    background-color: var(--page-bg-color);
    transition: background-color .3s;
}

#allrecords h1, 
#allrecords h2, 
#allrecords h3, 
#allrecords h4, 
#allrecords h5 {
    color: var(--primary-color);
    transition: color .3s;
}

#allrecords a:not(a.t-btn) {
    color: var(--primary-color) !important;
    text-decoration: none;
    /*position: relative;*/
    
    transition: color .3s;
}

@media screen and (hover: hover) { 
    #allrecords a:not(a.t-btn):hover {
        color: var(--accent-color) !important;
    }
}

/* кнопки */
.t-btn {
    height: auto;
}

.t-btn_md
{
    padding-top: 20px;
    padding-bottom: 20px;
}

.t-btn_sm {
    padding-top: 13px;
    padding-bottom: 13px;
}

 {
    color: var(--accent-color);
}

html #allrecords .t-btn,
html #allrecords .t-submit 
{
    background-color: var(--primary-color);
    color: var(--button-text-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    
    transition: color .3s, background-color .3s;
}
@media screen and (hover: hover) {
    html #allrecords .t-btn:hover, 
    html #allrecords .t-submit:hover {
        background-color: transparent;
        color: var(--primary-color);
    }
}
html #allrecords .t-btn:focus-visible, 
html #allrecords .t-submit:focus-visible {
    background-color: transparent;
    color: var(--primary-color);
}


/* Какая-то непонятноя кнопка "Перейти к основному контенту" */
.t-skiplink {
    display: none;
}

/* Названия, текст, описание в блоках */
.t-descr,
.t-text,
.t-name
{
    color: var(--primary-color);
    transition: color .3s;
}

.t-input {
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
}

/* textarea */
textarea.t-input {
    resize: vertical;
    min-height: 120px;
    max-height: 250px;
}

/* уведомления о добавлении в корзину */
.t706__bubble {
    background-color: var(--page-bg-color);
    border: 1px solid var(--primary-color);
    transition: background-color .3s, border .3s;
}

.t706__bubble-close {
    font-size: 35px;
}

html.light-theme .t706__bubble-close {
    color: var(--primary-color);
    transition: color .3s;
}

.t706__bubble-text {
    font-family: inherit;
}

.t-radio__indicator,
.t-checkbox__indicator 
{
    border-color: var(--primary-color) !important;
    transition: border .3s;
}

.t-radio__indicator::after {
    background: var(--primary-color);
    transition: background .3s;
}
.t-checkbox__indicator::after {
    border: solid var(--primary-color);
    border-width: 0 2px 2px 0;
    transition: border .3s;
}

.t-input-description.t-text {
    color: var(--additional-text-color) !important;
    transition: color .3s;
}

#delivery-services-wrapper .delivery-checkbox-label {
    color: var(--additional-text-color);
}

.delivery-checkbox-label+span.delivery-minimum-price, .delivery-checkbox-label+span.delivery-minimum-time {
    margin-left: 15px;
    color: var(--additional-text-color);
}

.searchbox-list-item-text {
    color: var(--additional-bg-color);
}

html.light-theme .searchbox-list-item-text {
    color: var(--primary-color);
}

.searchbox-change-pickup {
    border-bottom: 1px dashed var(--primary-color) !important;
}

/* Глобальные стили для карточки товара в попапе, когда она открывается отдельно, не с главной страницы */
.t-store.t-store__prod-snippet__container {
    min-height: 100vh;
    box-sizing: border-box;
}

.t-store .t-popup__close-wrapper {
    background-color: var(--page-bg-color);
}

.t-store__prod-snippet__container .t-popup__close {
    position: fixed !important;
}

.t-store .t-popup__close-wrapper svg path, 
.t-store .t-popup__close-wrapper svg rect
{
    fill: var(--primary-color);
}

@media screen and (max-width: 560px) {
    .t-store .t-popup__close-wrapper .t-popup__close-icon_cross {
        display: inline !important;
    }   
}

@media screen and (max-width: 561px) {
    .t-store__prod-popup__container .t-slds__main,
    .t-store__prod-snippet__container .t-slds__main
    {
        max-width: calc(100% - 40px);
        box-sizing: border-box;
        margin: 0 auto;
    }
}

.t-slds__thumbsbullet-wrapper  {
    margin-top: 15px;
}

@media screen and (max-width: 561px) {
    .t-store .t-store__prod-popup__container {
        padding-bottom: 0 !important;
    }
    
    .t-store__prod-popup__info {
        padding-bottom: 100px;
    }
}

.t-popup .t-popup__container .t-store__prod-popup__btn-wrapper-fixed,
.t-store__prod-snippet__container .t-store__prod-popup__btn-wrapper
{
    background-color: transparent;
    box-shadow: none;
}

/* глобальные стили корзины */
/* общая стоимость корзины */
[class*="carticon-text"] {
    background-color: var(--primary-color);
    color: var(--page-bg-color);
    transition: background-color .3s, color .3s;
}

/* кружок под иконкой */
[class*="carticon-imgwrap"] {
    background-color: var(--primary-color);
    transition: background-color .3s;
}

/* иконка */
[class*="carticon-imgwrap"] svg {
    stroke: var(--additional-bg-color);
    transition: stroke .3s;
}

/* кружок с количетсвом товаров */
[class*="carticon-counter"] {
    background-color: var(--primary-color);
    color: var(--page-bg-color);
    transition: background-color .3s, color .3s;
}

.t706 .t706__sidebar {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.t706 .t706__sidebar-content {
    background-color: var(--page-bg-color);
    transition: background-color .3s;
}

.t706 .t706__sidebar-heading {
    color: var(--primary-color);
    transition: color .3s;
}

.t706 .t706__sidebar-close-btn svg * {
    fill: var(--primary-color);
    transition: fill .3s;
}

.t706 .t706__product-quantity {
    color: var(--primary-color);
}

.t706 .t706__sidebar-prodamount-wrap {
    color: var(--primary-color);
    transition: color .3s;
}

/* Кнопка оформления заказа */
.t706 .t706__sidebar .t706__sidebar-content .t-btn {
    background: none;
    background-color: var(--primary-color);
    color: var(--button-text-color);
    border: 1px solid var(--primary-color);
}
@media screen and (hover: hover) {
    .t706 .t706__sidebar .t706__sidebar-content .t-btn:hover, 
    .t706 .t706__sidebar .t706__sidebar-content .t-btn:hover {
        background-color: transparent;
        color: var(--primary-color);
    } 
}
.t706 .t706__sidebar .t706__sidebar-content .t-btn:focus-visible, 
.t706 .t706__sidebar .t706__sidebar-content .t-btn:focus-visible {
    background-color: transparent;
    color: var(--primary-color);
} 

/* оформление заказа */
.t706 .t706__cartpage {
    background-color: var(--page-bg-color);
}
.t706 .t706__cartpage-totals {
    background-color: transparent;
}

.t706 .t-inputpromocode__wrapper {
    display: flex !important;
    flex-flow: column;
    gap: 10px;
}

.t706 .t-inputpromocode__btn {
    display: flex !important;
    justify-content: center;
    align-items: center;
    
    background-color: var(--primary-color) !important;
    color: var(--button-text-color) !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: var(--border-radius);
    transition: color .3s, background-color .3s;
}
@media screen and (hover: hover) {
    .t706 .t-inputpromocode__btn:hover {
        background-color: transparent !important;
        color: var(--primary-color) !important;
    } 
}
.t706 .t-inputpromocode__btn:focus-visible {
    background-color: transparent !important;
    color: var(--primary-color) !important;
} 

.t706 .t-inputpromocode__wrapper .t-text {
    color: var(--primary-color);
}