/*! Cabinet New Design
------------------------
 */
.ks-cabinet {
    padding:32px 0 48px;
    line-height:1.56;

    --color-accent: #e30613;
    --transition:.3s ease-out;
}

.ks-cabinet * {
    box-sizing:border-box;
    text-decoration:none;
	font-family:'Montserrat';
}

.ks-input {
    width:100%;
    height:42px;
    padding:0 14px;
    border-radius:6px;
    box-sizing:border-box;
    border:1px solid #ededed;
    background:#fff;
    outline:none;
    appearance: none;
    transition:var(--transition);
    font-size:14px;
    color:#000;
    font-family:'Montserrat';
}

.ks-input[type=password] {
    padding-right:32px;
}

select.ks-input {
    cursor:pointer;
    background:#fff url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiA8cGF0aCBkPSJNNiA5TDEyIDE1TDE4IDkiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgogPC9zdmc+') no-repeat calc(100% - 14px) 50%;
    background-size:18px;
}

.ks-input::placeholder {
    color:#999;
}

.ks-input:focus {
    border-color:#666;
}

.ks-button {
    display:flex;
    height:50px;
    align-items:center;
    justify-content:center;
    font-size:15px;
    padding:0 20px;
    font-weight:600;
    background:var(--color-accent);
    border:0;
    color:#fff;
    border-radius:8px;
    box-sizing:border-box;
    cursor:pointer;
    transition:var(--transition);
}

.ks-button_small {
    height:42px;
}

.ks-button:hover {
    background:#bc0a14;
}

.ks-button.ks-button_border {
    background:none;
    color:#000;
    border:1px solid #000;
}

.ks-button.ks-button_border:hover {
    border-color:var(--color-accent);
    background:var(--color-accent);
    color:#fff;
}

.ks-cabinet .q-page-title {
    margin:0 0 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.q-page-title__exit {
    display:none;
    align-items:center;
    gap:6px;
    font-size:15px;
    font-weight:600;
}

.q-page-title__exit img {
    width:20px;
    height:20px;
}


/*! Cabinet Top Nav
----------------------------------------
 */
.ks-cabinet__nav {
    display:flex;
    background:#fff;
    border:1px solid #efefef;
    border-radius:10px;
    padding:6px 12px;
    margin:0 0 32px;
    gap:48px;
    overflow-x:auto;
}

.ks-cabinet__nav::-webkit-scrollbar {
    display:none;
}

a.ks-cabinet__nav-links {
    display:flex;
    align-items:center;
    gap:10px;
    font-size:16px;
    font-weight:600;
    height:60px;
    justify-content:center;
    padding:0 16px;
    transition:0s;
    position:relative;
    border-bottom:2px solid transparent;
}

a.ks-cabinet__nav-links:after {
    content:'';
    width:1px;
    height:30px;
    top:50%;
    right:-24px;
    transform:translateY(-50%);
    position:absolute;
    background:#ededed;
}

a.ks-cabinet__nav-links_no-stroke:after {
    display:none;
}

a.ks-cabinet__nav-links_exit {
    margin-left:auto;
}

a.ks-cabinet__nav-links svg {
    height:30px;
    width:30px;
    transform:translateY(-2px);
    flex:none;
}

a.ks-cabinet__nav-links span {
    width:32px;
    height:32px;
    flex:none;
    position:relative;
    transform:translateY(-2px);
    display:block;
}

a.ks-cabinet__nav-links span img {
    width:100%;
    height:100%;
    position:absolute;
    top:0;
    left:0;
    transition:var(--transition);
}

a.ks-cabinet__nav-links span img:last-child {
    display:none;
}

a.ks-cabinet__nav-links:hover span img:last-child {
    display:block;
}

a.ks-cabinet__nav-links:hover span img:first-child {
    display:none;
}

a.ks-cabinet__nav-links_current {
    color:var(--color-accent);
    border-color:var(--color-accent);
}

a.ks-cabinet__nav-links:hover {
    color:var(--color-accent);
}

a.ks-cabinet__nav-links_current span img:last-child {
    display:block;
}

a.ks-cabinet__nav-links_current span img:first-child {
    display:none;
}


/*! Cabinet Welcome
----------------------------------------
 */
.ks-cabinet-welcome {
    display:flex;
    border-radius:8px;
    margin:0 0 32px;
    position:relative;
    background:#fff1f1;
    border:1px solid #efefef;
}

.ks-cabinet-welcome__about {
    max-width:640px;
    position:relative;
    z-index:4;
    padding:64px 80px;
}

.ks-cabinet-welcome__title {
    font-size:28px;
    font-weight:600;
}

.ks-cabinet-welcome__maskot {
    display:none;
}

.ks-cabinet-welcome__desc {
    color:#666;
    margin:12px 0 0;
    font-size:15px;
}

.ks-cabinet-welcome__bonus {
    border-radius:8px;
    display:inline-flex;
    gap:8px;
    margin:20px 0 0;
    align-items:center;
    background:#fff;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
    padding:12px 24px 12px 16px;
}

.ks-cabinet-welcome__bonus img {
    width:40px;
    height:auto;
}

.ks-cabinet-welcome__bonus--content {
    color:#666;
    font-size:13px;
}

.ks-cabinet-welcome__bonus--content strong {
    font-weight:600;
    display:block;
    line-height:1.35;
    color:#000;
    font-size:17px;
}

.ks-cabinet-welcome__bonus--content span {
    color:var(--color-accent);
}

.ks-cabinet-welcome__duck {
    position:absolute;
    height:120%;
    right:20%;
    bottom:0;
    pointer-events:none;
}

.ks-cabinet-welcome__duck img {
    height:100%;
    width:auto;
}

.ks-cabinet-welcome__logo {
    position:absolute;
    height:100%;
    right:5%;
    clip-path: inset(0);
    top:0;
    display:flex;
    align-items:center;
}

.ks-cabinet-welcome__logo img {
    height:100%;
    transform:translateY(5%);
    object-fit:contain;
    width:auto;
}


/*! Cabinet Filter Nav
----------------------------------------
 */
.ks-cabinet-filter {
    display:flex;
    gap:12px;
    overflow-x:auto;
    margin:0 0 32px;
    white-space: nowrap;
}

.ks-cabinet-filter::-webkit-scrollbar {
    display:none;
}

.ks-cabinet-filter__links {
    border:1px solid #ededed;
    border-radius:6px;
    height:44px;
    padding:0 16px;
    display:flex;
    align-items:center;
    font-size:14px;
    font-weight:600;
    gap:8px;
}

.ks-cabinet-filter__links svg {
    width:18px;
    height:18px;
    flex:none;
    transform:translateY(-2px);
}

.ks-cabinet-filter__links:hover {
    color:var(--color-accent);
}

.ks-cabinet-filter__links_active {
    color:var(--color-accent);
    border-color:var(--color-accent);
}

.ks-favorite-more {
    display:flex;
    justify-content:center;
    margin:32px 0 0;
}

.ks-favorite-more .q_more_btn.disabled {
    opacity:.6;
    pointer-events:none;
}


/*! Cabinet Favorite
----------------------------------------
 */
.ks-cabinet-favorite {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:24px;
}

.ks-cabinet-favorite__item {
    border:1px solid #ededed;
    border-radius:8px;
    display:flex;
    position:relative;
    padding:16px;
}

.ks-cabinet-favorite__icon {
    position:absolute;
    top:16px;
    right:16px;
    cursor:pointer;
}

.ks-cabinet-favorite__icon img {
    width:24px;
    height:24px;
}

.ks-cabinet-favorite__icon img:first-child {
    display:none;
}

.ks-cabinet-favorite__icon_active img:first-child {
    display:block;
}

.ks-cabinet-favorite__icon_active img:last-child {
    display:none;
}

.ks-cabinet-favorite__photo {
    width:180px;
    flex:none;
}

.ks-cabinet-favorite__photo a {
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:4px;
    height:180px;
}

.ks-cabinet-favorite__photo img {
    object-fit:contain;
    width:100%;
    height:100%;
}

.ks-cabinet-favorite__about {
    flex:auto;
}

.ks-cabinet-favorite__title {
    font-size:18px;
    font-weight:600;
    margin:0 0 4px;
}

.ks-cabinet-favorite__title a:hover {
    color:var(--color-accent);
}

.ks-cabinet-favorite__info {
    font-size:16px;
}

.ks-cabinet-favorite__price {
    font-size:20px;
    font-weight:600;
    margin:8px 0 4px;
}

.ks-cabinet-favorite__action {
    display:flex;
    align-items:center;
    gap:32px;
}

.ks-cabinet-favorite__avail {
    font-size:14px;
    color:green;
}

.ks-cabinet-favorite__avail_false {
    color:red;
}

.ks-cabinet-favorite__button .ks-button {
    height:40px;
}


/*! Cabinet Grid
----------------------------------------
 */
.ks-cabinet__grid {
    display:flex;
    gap:32px;
}


/*! Cabinet Grid Sidebar
----------------------------------------
 */
.ks-cabinet__sidebar {
    flex:none;
    width:340px;
}


/*! Cabinet Sidebar Profile
----------------------------------------
 */
.ks-cabinet-profile {
    text-align:center;
    padding:32px;
    border-radius:8px;
    position:relative;
    background:#fff1f1 url('../../assets/imgs/logo-bg.png') no-repeat 180% 90%;
    background-size:300px;
    border:1px solid #efefef;
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.ks-cabinet-profile__duck {
    display:flex;
    justify-content:center;
    margin:40px 0 0;
}

.ks-cabinet-profile__photo {
    width:80px;
    height:80px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    box-shadow: 0 0 15px #ffc8c8;
    border-radius:50%;
    margin:0 0 24px;
}

.ks-cabinet-profile__photo img {
    width:48px;
    height:48px;
}

.ks-cabinet-profile__photo svg {
    width:48px;
    height:48px;
}

.ks-cabinet-profile__name {
    font-size:20px;
    font-weight:600;
}

.ks-cabinet-profile__info {
    margin:8px 0 0;
    font-size:13px;
    font-weight:600;
}

.ks-cabinet-profile__info p:not(:last-child) {
    margin:0 0 4px;
}

.ks-cabinet-profile__bonus {
    border-radius:8px;
    display:inline-flex;
    gap:8px;
    margin:32px 0 0;
    align-items:center;
    text-align:left;
    background:#fff;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
    padding:12px 24px 12px 16px;
}

.ks-cabinet-profile__bonus img {
    width:48px;
    height:auto;
}

.ks-cabinet-profile__bonus-content {
    color:#666;
    font-size:13px;
}

.ks-cabinet-profile__bonus-content strong {
    font-weight:600;
    display:block;
    line-height:1.35;
    color:#000;
    font-size:18px;
}

.ks-cabinet-profile__bonus-content span {
    color:var(--color-accent);
}

.ks-cabinet-profile__loyal {
    margin:35px 0 0;
    padding:16px 0 0;
    border-top:1px solid #ddd;
}

.ks-cabinet-profile__loyal .ks-cabinet__other-links {
    text-align:left;
}


/*! Cabinet Grid Content
----------------------------------------
 */
.ks-cabinet__content {
    flex:auto;
}

.ks-cabinet__content_list {
    display:flex;
    gap:24px;
    flex-direction:column;
}

.ks-cabinet__content_row {
    display:flex;
    gap:24px;
}

.ks-cabinet__block {
    background:#fff;
    border:1px solid #efefef;
    border-radius:10px;
    padding:24px;
}

.ks-cabinet__content_row .ks-cabinet__block {
    flex:1;
}

.ks-cabinet__caption {
    font-weight:600;
    font-size:24px;
    line-height:1.3;
    margin:0 0 16px;
}

.ks-cabinet__caption span {
    color:#666;
    margin:4px 0 0;
    font-size:13px;
    font-weight:400;
    display:block;
}


/*! Cabinet Bonus
----------------------------------------
 */
.ks-cabinet-bonus {

}

.ks-cabinet-bonus__duck {
    display:flex;
    align-items:center;
    gap:12px;
    font-size:14px;
}

.ks-cabinet-bonus__duck img {
    flex:none;
    width:50%;
}

.ks-cabinet-bonus__note {
    font-size:13px;
    margin:0 0 12px;
}

.ks-cabinet-bonus__title {
    font-size:80px;
    line-height:1.1;
}

.ks-cabinet-bonus__grid {
    display:flex;
    flex-direction:column;
    gap:32px;
    padding:24px 0 0;
    margin:16px 0 0;
    border-top:1px solid #ededed;
}

.ks-cabinet-bonus__column {
    position:relative;
    padding-left:100px;
    font-size:14px;
}

.ks-cabinet-bonus__icon {
    width:80px;
    height:80px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f5f5f5;
    border-radius:50%;
    position:absolute;
    left:0;
    top:0;
}

.ks-cabinet-bonus__icon img {
    width:40px;
    height:40px;
}

.ks-cabinet-bonus__icon svg {
    width:40px;
    height:40px;
}

.ks-cabinet-bonus__label {
    font-size:18px;
    font-weight:600;
    margin:0 0 4px;
}

.ks-cabinet-bonus__info {
    margin:48px 0 0;
    font-size:14px;
    display:flex;
    align-items:center;
    gap:16px;
    border-radius:8px;
    padding:20px;
    background:#f6f6f6;
}

.ks-cabinet-bonus__info svg {
    opacity:.5;
    width:24px;
    height:24px;
}


/*! Cabinet Tabs
----------------------------------------
 */
.ks-cabinet__tabs {
    display:flex;
    gap:12px;
    margin:0 0 32px;
    overflow-x:auto;
}

.ks-cabinet__tabs::-webkit-scrollbar {
    display:none;
}

.ks-cabinet__tabs-item {
    display:flex;
    height:36px;
    align-items:center;
    padding:0 16px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    user-select:none;
    border:1px solid #ededed;
    border-radius:8px;
    transition:var(--transition);
}

.ks-cabinet__tabs-item:hover {
    color:var(--color-accent);
}

.ks-cabinet__tabs-item_current {
    border-color:var(--color-accent);
    background:#ffeced;
    font-weight:600;
}


/*! Cabinet Form
----------------------------------------
 */
.ks-cabinet-form {

}

.ks-cabinet-form__grid {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:16px;
}

.ks-cabinet-form__grid.ks-cabinet-form__grid_w4 {
    grid-template-columns:repeat(4,1fr);
}

.ks-cabinet-form__label {
    font-size:14px;
    margin:0 0 4px;
}

.ks-cabinet-form__value {
    position:relative;
}

.ks-cabinet-form__eye {
    position:absolute;
    right:14px;
    top:50%;
    transform:translateY(-50%);
    z-index:2;
    cursor:pointer;
}

.ks-cabinet-form__eye:before {
    opacity:1;
    transform:rotate(-30deg) translate(-50%,-50%);
    left:calc(50% - 1px);
    top:calc(50% - 5px);
    content:'';
    position:absolute;
    z-index:2;
    width:20px;
    height:1px;
    background:#000;
}

.ks-cabinet-form__eye_active:before {
    opacity:0;
}

.ks-cabinet-form__eye svg {
    width:20px;
    height:20px;
    display:block;
}

.ks-cabinet-form__button {
    margin:20px 0 0;
}

.ks-cabinet-form__note {
    margin:8px 0 0;
    color:#666;
}
.ks-cabinet-form__note a{
	text-decoration: underline;
}
.ks-cabinet-form__bottom {
    padding:20px 0 0;
    margin:20px 0 0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-top:1px solid #ededed;
}


/*! Cabinet Profile Subscribe
----------------------------------------
 */
.ks-cabinet-sub {
    display:flex;
    align-items:center;
    gap:32px;
}

.ks-cabinet-sub__label {
    display:flex;
    gap:8px;
    font-weight:600;
    font-size:13px;
    align-items:center;
}

.ks-cabinet-sub__label svg {
    width:18px;
    height:18px;
    flex:none;
}

.ks-cabinet-sub__note {
    color:#666;
    font-size:13px;
}
.ks-cabinet-sub__note a{
	text-decoration: underline;
}
.ks-cabinet-sub__toggle {
    margin-left:auto;
}

.ks-cabinet-sub__toggle input {
    display:none;
}

.ks-cabinet-sub__toggle input + label {
    cursor:pointer;
    height:28px;
    width:48px;
    position:relative;
    display:block;
    border:1px solid #ddd;
    background:#f5f5f5;
    border-radius:35px;
    transition:var(--transition);
}

.ks-cabinet-sub__toggle input:checked + label {
    border-color:var(--color-accent);
    background:var(--color-accent);
}

.ks-cabinet-sub__toggle input + label:before {
    border-radius:50%;
    background:#000;
    left:4px;
    top:4px;
    height:18px;
    width:18px;
    content:'';
    position:absolute;
    transition:var(--transition);
}

.ks-cabinet-sub__toggle input:checked + label:before {
    background:#fff;
    left:24px;
}


/*! Cabinet Profile Contacts
----------------------------------------
 */
.ks-cabinet-contacts {
    display:flex;
    align-items:center;
    gap:32px;
    flex-wrap:wrap;
    grid-row-gap:20px;
}

.ks-cabinet-contacts__field {
    display:flex;
    align-items:center;
    gap:12px;
    font-size:14px;
}

.ks-cabinet-contacts__label {
    display:flex;
    align-items:center;
    gap:6px;
    font-weight:600;
}

.ks-cabinet-contacts__label svg {
    width:18px;
    height:18px;
    transform:translateY(-1px);
}

.ks-cabinet-contacts__status {
    display:flex;
    align-items:center;
    height:28px;
    padding:0 10px;
    border-radius:5px;
    font-size:13px;
    font-weight:600;
    color:green;
    border: 1px solid #b7d4b7;
    background:#eeffee;
}

.ks-cabinet-contacts__status_false {
    color:red;
    border: 1px solid #d4b7b7;
    background:#ffeeee;
}

.ks-cabinet-contacts__value {
    color:#999;
}

.ks-cabinet-form__change .ks-button {
    width:140px;
    padding:0;
}


/*! Cabinet Orders List
----------------------------------------
 */
.ks-toggle-content {
    display:none;
}

.ks-toggle-content_show {
    display:block;
}

.ks-orders-list {
    gap:20px;
    display:grid;
    grid-template-columns:repeat(1,1fr);
}

.ks-orders-more {
    display:flex;
    justify-content:center;
    margin:32px 0 0;
}

.ks-orders-more .q_more_btn.disabled {
    opacity:.6;
    pointer-events:none;
}

/* кнопка "Показать больше" в кабинете: без тени, скруглённая */
.ks-orders-more .q_more_btn,
.ks-favorite-more .q_more_btn {
    box-shadow:none;
    border-radius:8px;
    margin-right:0;
	width: 200px;
}

@media (max-width: 767px) {
    .ks-orders-more .q_more_btn,
    .ks-favorite-more .q_more_btn {
        width:168px;
        height:44px;
    }
}

.ks-orders-list__item {
    padding:16px 24px 16px 16px;
    border-radius:8px;
    border:1px solid #ededed;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.ks-orders-list__photo {
    width:140px;
    flex:none;
}

.ks-orders-list__photo a {
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:4px;
    height:140px;
}

.ks-orders-list__photo img {
    object-fit:contain;
    width:100%;
    height:100%;
}

.ks-orders-list__about {
    margin:0 auto 0 0;
}

.ks-orders-list__title {
    font-size:18px;
    margin: 0 0 8px;
}

.ks-orders-list__title strong {
    font-weight:600;
    transition:var(--transition);
}

.ks-orders-list__title a:hover strong {
    color:var(--color-accent);
}

.ks-orders-list__info {
    font-size:14px;
}

.ks-orders-list__info p:not(:last-child) {
    margin:0 0 4px;
}

.ks-orders-list__button {
    flex:none;
}

.ks-orders-list__button .ks-button {
    width:130px;
    padding:0;
}


/*! Cabinet Empty
----------------------------------------
 */
.ks-cabinet-empty {
    display:flex;
    align-items:center;
    gap:32px;
    padding:48px 0;
}

.ks-cabinet-empty_orders {
    padding:0;
}

.ks-cabinet-empty__pic {
    width:50%;
    flex:none;
}

.ks-cabinet-empty__icon {
    width:80px;
    height:80px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f5f5f5;
    border-radius:50%;
    margin:0 0 24px;
}

.ks-cabinet-empty__icon img {
    width:40px;
    height:40px;
}

.ks-cabinet-empty__icon svg {
    width:48px;
    height:48px;
}

.ks-cabinet-empty__title {
    font-size:20px;
    font-weight:600;
}

.ks-cabinet-empty__desc {
    max-width:360px;
    color:#666;
    margin:8px 0 0;
    font-size:14px;
}

.ks-cabinet-empty__button {
    margin:20px 0 0;
    display:table;
}

.ks-cabinet-empty__button .ks-button {
    padding:0 32px;
}



/*! Cabinet Start
----------------------------------------
 */
.ks-cabinet-start {
    display:grid;
    gap:20px;
    grid-template-columns:repeat(2,1fr);
}

.ks-cabinet-start__item {
    display:flex;
    background:#fff;
    border:1px solid #efefef;
    border-radius:10px;
    padding:32px;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.ks-cabinet-start__icon {
    background:#f5f5f5;
    width:72px;
    height:72px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:none;
}

.ks-cabinet-start__icon img {
    width:40px;
    height:40px;
}

.ks-cabinet-start__icon svg {
    width:40px;
    height:40px;
}

.ks-cabinet-start__about {
    flex:auto;
}

.ks-cabinet-start__label {
    font-weight:600;
    font-size:18px;
    margin:0 0 4px;
}

.ks-cabinet-start__desc {
    font-size:14px;
    font-weight:600;
}

.ks-cabinet-start__desc strong {
    font-size:16px;
    font-weight:600;
    color:var(--color-accent);
}

.ks-cabinet-start__note {
    color:#666;
    margin:8px 0 0;
    max-width:180px;
}

.ks-cabinet-start__action {
    flex:none;
}


/*! Cabinet Other
----------------------------------------
 */
.ks-cabinet__other {
    display:flex;
    background:#fff;
    border:1px solid #efefef;
    border-radius:10px;
    padding: 10px 16px;
    margin:32px 0 0;
    gap:24px;
}

a.ks-cabinet__other-links {
    display:flex;
    height:64px;
    gap:16px;
    position:relative;
    align-items:center;
    font-size:15px;
    justify-content:center;
    font-weight:600;
    transition:0s;
    flex:1;
    line-height:1.35;
}

.ks-cabinet__other-links em {
    width:200px;
    font-style:normal;
}

.ks-cabinet__other-links:not(:last-child):after {
    content:'';
    width:1px;
    height:100%;
    top:50%;
    right:0;
    transform:translateY(-50%);
    position:absolute;
    background:#ededed;
}

.ks-cabinet__other-links span {
    flex:none;
    width:32px;
    height:32px;
    position:relative;
    display:block;
}

.ks-cabinet__other-links span img {
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:100%;
}

.ks-cabinet__other-links span img:last-child {
    display:none;
}

.ks-cabinet__other-links:hover span img:last-child {
    display:block;
}

.ks-cabinet__other-links:hover span img:first-child {
    display:none;
}

.ks-cabinet__other-links svg {
    flex:none;
}

.ks-cabinet__other-links svg:first-child {
    width:30px;
    height:30px;
}

.ks-cabinet__other-links svg:last-child {
    width:16px;
    height:16px;
}

.ks-cabinet__other-links:hover {
    color:var(--color-accent);
}




/*! Cabinet Modal Order
----------------------------------------
 */
.ks-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.ks-modal.active {
    visibility: visible;
    opacity: 1;
}

.ks-modal__block {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    min-height: 100%;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px;
    color: #000;
}

.ks-modal__container {
    width: 100%;
    position: relative;
    padding: 32px;
    background: #fff;
    max-width: 640px;
    border-radius: 12px;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
}

.ks-modal__close {
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.ks-modal__close:hover {
    opacity: 0.6;
}

.ks-modal__title {
    font-weight:600;
    font-size:24px;
    margin:0 0 15px;
}

.ks-modal__back {
    padding:0;
    display:flex;
    margin:24px 0 0;
    justify-content:center;
}

.ks-modal__card {
    display:block;
    gap:32px;
}

.ks-modal__card-photo {
    width:200px;
    flex:none;
}

.ks-modal__card-about {
    flex:auto;
}

.ks-modal__card-title {
    font-size:20px;
}

.ks-modal__card-title strong {
    font-weight:600;
}

.ks-modal__card-info {
    margin:20px 0 0;
    font-size:16px;
}

.ks-modal__card-info span {
    display:block;
}

.ks-modal__card-info p:not(:last-child) {
    margin:0 0 16px;
}

.ks-modal__subtitle {
    font-weight:600;
    font-size:18px;
    margin:15px 0 16px;
}

.ks-modal__products {
    display:flex;
    flex-direction:column;
    gap:20px;
}

.ks-modal__product {
    display:flex;
    align-items:center;
    gap:16px;
}

.ks-modal__product-photo {
    width:120px;
    height:120px;
    flex:none;
}

.ks-modal__product-photo img {
    width:100%;
    height:100%;
    object-fit:contain;
}

.ks-modal__product-name {
    font-size:15px;
    font-weight:600;
}

.ks-modal__product-qty {
    margin:6px 0 0;
    font-size:14px;
}

.ks-modal__total {
    margin:24px 0 0;
    padding:24px 0 0;
    border-top:1px solid #ededed;
    display:flex;
    flex-direction:column;
    gap:14px;
    font-size:16px;
}

.ks-modal__total-row {
    display:flex;
    gap:16px;
}

.ks-modal__total-row strong,
.ks-modal__total-row span {
    flex:1 1 0;
    min-width:0;
    overflow-wrap:anywhere;
}

.ks-modal__total-row strong {
    font-weight:600;
}

.ks-modal__total-row span {
    text-align:right;
}





/*! Cabinet History
----------------------------------------
 */
.ks-cabinet-history {

}

.ks-cabinet-history__row {
    display:flex;
    gap:20px;
    font-size:13px;
    line-height:1.35;
}

.ks-cabinet-history__row:nth-child(n + 9) {
    display: none;
}

.ks-cabinet-history_full .ks-cabinet-history__row {
    display: flex !important;
}

.ks-cabinet-history__row:not(:first-child) {
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid #ededed;
}

.ks-cabinet-history__date {
    flex:none;
    width:100px;
}

.ks-cabinet-history__summ {
    color:green;
    flex:none;
    width:100px;
    font-weight:600;
}

.ks-cabinet-history__summ_minus {
    color:red;
}

.ks-cabinet-history__button {
    display:none;
    margin:24px 0 0;
}

.ks-cabinet-history:has(.ks-cabinet-history__row:nth-child(9)) .ks-cabinet-history__button {
    display: block;
}

.ks-cabinet-history .ks-button {
    width:100%;
}

.ks-cabinet-history .ks-button span:last-child {
    display:none;
}

.ks-cabinet-history_full .ks-button span:first-child {
    display:none;
}

.ks-cabinet-history_full .ks-button span:last-child {
    display:block;
}

.ks-cabinet .q-content-widget{
	padding: 0;
	margin-bottom: 0;
}

.ks-cabinet .q-teaser{
	background: #fff;
	margin: -20px 0 0 !important;
	padding: 10px 0 !important;
}
.ks-cabinet .q-teaser .success,
.ks-cabinet .q-teaser .errors{
	padding: 0 !important;
	margin: 0 !important;
}
/*! Cabinet Adaptive
----------------------------------------
 */
@media screen and (max-width:1200px) {
    .ks-cabinet-welcome__about {
        padding:48px 40px;
    }

    .ks-cabinet-welcome__duck {
        right:12%;
        height:110%;
    }

    .ks-cabinet-welcome__logo {
        right:0;
    }

    .ks-cabinet-welcome__logo img {
        transform: translate(10%,5%);
    }

    .q-page-title__exit {
        display:flex;
    }

    .q-page-title__exit img {
        width:22px;
        height:22px;
    }

    a.ks-cabinet__nav-links_exit {
        display:none;
    }

    a.ks-cabinet__nav-links {
        flex:1;
        flex-direction: column;
        gap: 2px;
        font-size: 15px;
    }

    .ks-cabinet-start__item {
        padding:24px;
        flex-wrap:wrap;
        justify-content:space-between;
        gap:0;
        grid-row-gap:20px;
    }

    .ks-cabinet-start__about {
        flex:initial;
        width:calc(100% - 92px);
    }

    .ks-cabinet-start__action {
        width:100%;
    }

    .ks-cabinet__other {
        display:grid;
        grid-template-columns:repeat(2,1fr);
    }

    .ks-cabinet__other-links:nth-child(2n):after {
        display:none;
    }
}

@media screen and (max-width:900px) {
    .ks-cabinet-welcome__duck {
        right:5%;
    }

    .ks-cabinet-welcome__logo img {
        transform: translate(20%,5%);
    }

    .ks-cabinet-welcome__desc {
        max-width:350px;
    }

    .ks-cabinet__grid {
        display:block;
    }

    .ks-cabinet__sidebar {
        width:100%;
        margin:0 0 20px;
    }

    .ks-cabinet__content_row {
        flex-direction:column;
        gap:20px;
    }

    .ks-cabinet-profile {
        flex-direction:row;
        align-items:center;
        text-align:left;
        gap:20px;
    }

    .ks-cabinet-profile__duck {
        display:none;
    }

    .ks-cabinet-profile__photo {
        margin:0;
    }

    .ks-cabinet-profile__bonus {
        margin:0 0 0 auto;
    }

    .ks-cabinet-profile__loyal {
        display:none;
    }

    .ks-modal__card {
        /*flex-direction:column;*/
    }

    .ks-modal__card-photo {
        width:100%;
    }

    .ks-cabinet-form__grid.ks-cabinet-form__grid_w4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width:650px) {
    .ks-cabinet .q-page-title {
        margin:0 0 8px;
    }

    .ks-cabinet__nav {
        gap:20px;
        margin:0 0 24px;
        padding:6px 10px 0px;
    }

    a.ks-cabinet__nav-links {
        font-size:14px;
        height:60px;
        padding:0 12px;
        gap:2px;
    }

    a.ks-cabinet__nav-links:after {
        right:-10px;
    }

    a.ks-cabinet__nav-links span {
        width:22px;
        height:22px;
    }

    a.ks-cabinet__nav-links svg {
        width:24px;
        height:24px;
        transform:none;
    }

    .ks-cabinet-welcome__duck {
        display:none;
    }

    .ks-cabinet-welcome__logo img {
        transform: translate(20%,0%);
    }

    .ks-cabinet-welcome__maskot {
        display:block;
        margin:24px 0 0;
        padding-left:14%;
    }

    .ks-cabinet-welcome__maskot img {
        width:52%;
    }

    .ks-cabinet-welcome__about {
        padding:24px;
    }

    .ks-cabinet-welcome__title {
        font-size:20px;
    }

    .ks-cabinet-welcome__desc {
        font-size:13px;
        margin:8px 0 0;
    }

    .ks-cabinet-welcome__bonus {
        display:flex;
    }

    .ks-cabinet-start {
        gap: 12px;
        grid-template-columns: repeat(1, 1fr);
    }

    .ks-cabinet__other {
        grid-template-columns: repeat(1, 1fr);
        gap:0;
        padding:0 20px;
    }

    .ks-cabinet__other-links {
        justify-content:flex-start;
    }

    .ks-cabinet__other-links svg:last-child {
        margin-left:auto;
    }

    .ks-cabinet__other-links:not(:last-child):before {
        content:'';
        width:100%;
        height:1px;
        bottom:0;
        left:0;
        position:absolute;
        background:#ededed;
    }

    .ks-cabinet__other-links:after {
        display:none;
    }

    .ks-cabinet-empty {
        flex-direction:column;
        align-items:center;
        justify-content:center;
        text-align:center;
        padding:0 0 24px;
    }

    .ks-cabinet-empty__pic,
    .ks-cabinet-empty_orders .ks-cabinet-empty__pic {
        width:100%;
    }

    .ks-cabinet-empty_orders {
        gap:0;
    }

    .ks-cabinet-empty__icon {
        display:none;
    }

    .ks-cabinet-empty__button {
        display:flex;
        justify-content:center;
    }

    .ks-cabinet-profile {
        padding:20px;
        flex-wrap:wrap;
        align-items:flex-start;
        gap:0;
        justify-content:space-between;
        grid-row-gap:20px;
        background:#fff1f1 url('../../assets/imgs/logo-bg.png') no-repeat 140% 50%;
        background-size:250px;
    }

    .ks-cabinet-profile__about {
        width:calc(100% - 100px);
    }

    .ks-cabinet-profile__bonus {
        display:flex;
        width:100%;
    }

    .ks-cabinet__block {
        padding:20px;
    }

    .ks-cabinet__tabs {
        margin:0 -20px 24px;
        padding:0 20px;
    }

    .ks-orders-list__item {
        flex-wrap:wrap;
        padding:12px;
        gap:0;
        grid-row-gap:20px;
    }

    .ks-orders-list__photo {
        width:100px;
    }

    .ks-orders-list__photo a {
        height:100px;
    }

    .ks-orders-list__about {
        width:calc(100% - 120px);
    }

    .ks-orders-list__button {
        width:100%;
    }

    .ks-orders-list__button .ks-button {
        width: 100%;
    }

    .ks-orders-list__title {
        font-size:16px;
    }

    .ks-orders-list__title strong {
        display:block;
    }

    .ks-modal__block {
        padding:15px;
    }

    .ks-modal__container {
        padding:24px 15px;
        border-radius:8px;
    }

    .ks-modal__title {
        font-size:20px;
    }

    .ks-modal__card-title {
        font-size:18px;
    }

    .ks-modal__card-info {
        font-size:14px;
    }

    .ks-cabinet-filter {
        margin:0 -20px 32px;
        padding:0 20px;
    }

    .ks-cabinet-favorite {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .ks-cabinet-favorite__item {
        padding:12px;
        justify-content:space-between;
        gap:0;
        grid-row-gap:20px;
        flex-wrap:wrap;
    }

    .ks-cabinet-favorite__photo {
        width:100px;
    }

    .ks-cabinet-favorite__photo a {
        height:100px;
    }

    .ks-cabinet-favorite__about {
        display:contents;
    }

    .ks-cabinet-favorite__title {
        padding-right:48px;
    }

    .ks-cabinet-favorite__desc {
        width:calc(100% - 110px);
    }

    .ks-cabinet-favorite__info {
        font-size:14px;
    }

    .ks-cabinet-favorite__price {
        margin:8px 0 0;
    }

    .ks-cabinet-favorite__action {
        width:100%;
        justify-content:space-between;
    }

    .ks-cabinet-bonus__title {
        font-size:64px;
    }

    .ks-cabinet-bonus__column {
        padding:0;
    }

    .ks-cabinet-bonus__icon {
        width:60px;
        height:60px;
        position:initial;
        margin:0 0 16px;
    }

    .ks-cabinet-bonus__icon img {
        width:24px;
        height:24px;
    }

    .ks-cabinet-bonus__icon svg {
        width:24px;
        height:24px;
    }

    .ks-cabinet-bonus__info {
        margin:32px 0 0;
        padding:12px;
        font-size:13px;
        gap:8px;
    }

    .ks-cabinet-bonus__info svg {
        width:18px;
        height:18px;
    }

    .ks-cabinet-history__row {
        flex-wrap: wrap;
        grid-row-gap: 8px;
        justify-content:space-between;
    }

    .ks-cabinet-history__note {
        width:100%;
    }

    .ks-cabinet-history__summ {
        width:initial;
    }

    .ks-cabinet-history__row:nth-child(n + 5) {
        display: none;
    }

    .ks-cabinet-history_full .ks-cabinet-history__row {
        display: flex !important;
    }

    .ks-cabinet-form__grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .ks-cabinet-form__grid.ks-cabinet-form__grid_w4 {
        grid-template-columns: repeat(1, 1fr);
    }

    .ks-cabinet-form__bottom {
        flex-direction:column;
        gap:24px;
    }

    .ks-cabinet-form__button,
    .ks-cabinet-form__button .ks-button,
    .ks-cabinet-form__change,
    .ks-cabinet-form__change .ks-button {
        width:100%;
    }

    .ks-cabinet-sub {
        flex-wrap:wrap;
        gap:8px;
    }

    .ks-cabinet-sub__note {
        padding-left:26px;
    }

    .ks-cabinet-sub__toggle {
        margin:0 0 0 26px;
    }

    .ks-cabinet-contacts__field {
        flex-wrap:wrap;
        grid-row-gap:8px;
    }

    .ks-cabinet-bonus__grid {
        margin-top:24px;
    }

    .ks-cabinet-bonus__duck {
        flex-direction:column;
        font-size:15px;
    }

    .ks-cabinet-bonus__duck img {
        width:100%;
    }
}
