body .wrapper_inner.wide_page {
  background: #f9f9f9 !important;
}
body .wrapper_inner.wide_page .maxwidth-theme {
  background: transparent !important;
}
.lk-layout {
  padding-top: 60px;
  display: flex;
  gap: 45px;
  width: 100%;
}
.lk-sidebar {
  width: 270px;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 30px 10px;
}
.lk-sidebar-widget {
  display: flex;
  gap: 25px;
  flex-direction: column;
}
.lk-sidebar .lk-user-info {
  display: flex;
  gap: 10px;
  padding-left: 15px;
  flex-direction: column;
}
.lk-sidebar .lk-user-label {
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  color: #8b8b8b;
  text-transform: uppercase;
}
.lk-sidebar .lk-user-name {
  font-weight: 700;
  font-size: 23px;
  line-height: 1;
  color: #171717;
}
.lk-sidebar .lk-user-email {
  font-weight: 400;
  font-size: 10px;
  line-height: 1;
  color: #8b8b8b;
}

.lk-nav-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  padding-bottom: 60px;
  border-bottom: 1px solid #e5e5e5;
  list-style: none;
}
.lk-nav-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lk-nav-list li:before {
  display: none;
}
.lk-nav-list li a {
  padding: 12px;
  padding-left: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  background-color: #fff;
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  color: #8b8b8b;
  transition: 0.3s ease-in-out all;
}
.lk-nav-list li a .nav-icon {
  width: 20px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lk-nav-list li a svg {
  stroke: #8b8b8b;
}
.lk-nav-list li a:hover {
  border: 1px solid #ffd9dd;
  background-color: #fff4f5;
}

.lk-nav-list li.active a {
  border: 1px solid #ffd9dd;
  background-color: #fff4f5;
  border-left: 3px solid #ff2536;
  font-weight: 700;
  color: #171717;
  padding-left: 12px;
}
.lk-nav-list li.active a svg {
  stroke: #ff2536;
}
.lk-logout-btn {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  line-height: 1;
  color: #ff2536;
  padding-left: 15px;
}

.lk-content {
  flex: 1;
}
.lk-header-block .subtitle {
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  color: #8b8b8b;
  margin-top: 15px;
}
.lk-header-block h1 {
  margin-top: 15px;
  margin-bottom: 25px;
  position: relative;
  color: #171717;
  font-weight: 700;
  font-size: 35px;
  line-height: 1;
  text-transform: uppercase;
}
.lk-header-block h1:after {
  content: '';
  position: absolute;
  height: 3px;
  background-color: #ff2536;
  width: 50px;
  bottom: -12px;
  left: 0;
}
.lk-subtitle-text {
  font-weight: 400;
  font-size: 13px;
  line-height: 1;
  color: #8b8b8b;
}
.custom-lk-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 30px;
}

.lk-grid-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 25px;
}
.lk-grid-item .sale-personal-section-index-block-link {
  color: #171717;
  display: flex;
  position: relative;
  align-items: center;
  gap: 25px;
}
.lk-grid-item .sale-personal-section-index-block-link:hover {
  color: #ff2536;
}
.lk-card-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: start;
  justify-content: center;
  margin-top: -35px;
}
.lk-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.lk-card-text .sale-personal-section-index-block-name {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}
.lk-card-text .lk-card-subtitle {
  font-weight: 400;
  font-size: 13px;
  line-height: 1;
  color: #8b8b8b;
}
.lk-grid-item .sale-personal-section-index-block {
  padding: 10px 0;
}

.lk-right-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 40px 40px 30px 40px;
  margin-bottom: 25px;
  margin-top: 60px;
  width: 100%;
}
/* Ссылка "В список заказов" (возврат назад) */
.orders_wrapper > div > a:first-child {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #8b8b8b;
  text-decoration: none;
  margin-bottom: 25px;
  transition: color 0.2s ease;
}
.orders_wrapper > div > a:first-child::before {
  content: '←';
  margin-right: 6px;
  font-size: 16px;
}
.orders_wrapper > div > a:first-child:hover {
  color: #171717;
}

/* Общий текст формы отмены */
.bx_my_order_cancel {
  font-size: 15px;
  color: #171717;
  line-height: 1.5;
}

/* Ссылка на сам заказ внутри текста */
.bx_my_order_cancel a {
  color: #1890ff;
  text-decoration: none;
  font-weight: 600;
}
.bx_my_order_cancel a:hover {
  text-decoration: underline;
}

/* Предупреждение "Отмена заказа необратима" */
.bx_my_order_cancel b {
  display: block;
  color: #ff2536;
  margin-top: 5px;
  margin-bottom: 25px;
}

/* Скрываем жесткие переносы строк Битрикса для контроля отступов */
.bx_my_order_cancel form br {
  display: none;
}

/* Текстовое поле (Причина отмены) */
.bx_my_order_cancel textarea {
  width: 100%;
  max-width: 600px; /* Чтобы поле не растягивалось на всю ширину экрана */
  min-height: 120px;
  background-color: #f4f4f4;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 15px;
  font-size: 14px;
  font-family: inherit;
  color: #171717;
  outline: none;
  resize: vertical;
  margin-top: 10px;
  margin-bottom: 20px;
  box-sizing: border-box;
  display: block;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.bx_my_order_cancel textarea:focus {
  border-color: #171717;
  background-color: #fff;
}

/* Кнопка "Отменить заказ" */
.bx_my_order_cancel input[type='submit'] {
  display: block;
  background-color: #ff2536;
  color: #fff;
  border: none;
  border-radius: 8px;
  height: 48px;
  padding: 0 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.bx_my_order_cancel input[type='submit']:hover {
  background-color: #e01925;
}

.lk-mobile-burger {
    display: none;
    width: 26px;
    height: 18px;
    cursor: pointer;
    z-index: 100;
    flex-direction: column;
    justify-content: space-between;
}
.lk-mobile-burger span {
    display: block;
    height: 2.5px;
    background-color: #171717;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.lk-mobile-burger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.lk-mobile-burger.active span:nth-child(2) {
    opacity: 0;
}
.lk-mobile-burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.lk-sidebar-close {
    display: none;
}


.lk-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1000 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}


@media (max-width: 991px) {
    .lk-layout {
        position: relative !important;
        padding-top: 60px !important;
    }

    .lk-mobile-burger {
        display: flex;
        position: absolute;
        top: 20px;
        left: 0;
    }

    .lk-overlay.active {
        display: block;
        opacity: 1;
    }

    .lk-sidebar {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: -320px !important;
        width: 280px !important;
        height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        z-index: 1001 !important;
        overflow-y: auto !important;
        background-color: #fff !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15) !important;
        padding: 30px 20px !important;
        box-sizing: border-box !important;
    }

    .lk-sidebar.active {
        left: 0 !important;
    }

    .lk-sidebar-widget {
        position: relative;
    }

    .lk-sidebar-close {
        display: flex;
        position: absolute;
        top: -10px;
        right: 5px;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        line-height: 1;
        color: #8b8b8b;
        cursor: pointer;
        transition: color 0.2s ease;
    }
    .lk-sidebar-close:hover {
        color: #ff2536;
    }
}
@media (max-width: 575px) {
  .lk-grid-item {
    padding: 20px;
  }
  .lk-card-text .sale-personal-section-index-block-name {
    font-size: 10px;
  }
  .lk-card-text .lk-card-subtitle {
    font-size: 8px;
  }
  .lk-card-icon {
    width: 20px;
    height: auto;
    margin-top: 0;
  }
  .lk-grid-item .sale-personal-section-index-block {
    padding: 0;
    margin: 0;
  }
  .lk-grid-item .sale-personal-section-index-block-link {
    flex-direction: column;
    gap: 10px;
    align-items: start;
    padding: 0 !important;
  }
  .lk-card-text {
    gap: 10px;
  }
  .lk-card-arrow {
    position: absolute;
    right: 0;
    top: 5px;
  }
  .custom-lk-grid {
    gap: 25px 10px;
  }
  .lk-header-block h1 {
    font-size: 25px;
  }
  .lk-right-card {
    background: #fff;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 50px;
  }
  body .wrapper_inner.wide_page .maxwidth-theme {
    background: #fff !important;
  }
}
