/*
 * WooCommerce Pages
 * Стили для страниц: Мой аккаунт, Корзина, Оформление заказа, 404
 * В едином минималистичном стиле
 */


/* ============================================
   ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ СТРАНИЦ
   ============================================ */


.woocommerce-MyAccount-content p, p {
    font-weight: 500;
    padding: 14px 20px;
    color: #1d1d1f;
}
.woocommerce-MyAccount-content p a, a {
    font-weight: 500;
    color: #1B67FF;
    text-decoration: none;
}
.woocommerce-MyAccount-content a:hover, a:hover {
    opacity: 0.8;
}
/* ============================================
   МОЙ АККАУНТ - MY ACCOUNT
   ============================================ */

.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Навигация аккаунта */
.woocommerce-MyAccount-navigation {
    background: white;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 100px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 14px 20px;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-bottom: 4px;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #f5f5f7;
    color: #0066cc;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #0066cc;
    color: white;
}

/* Контент аккаунта */
.woocommerce-MyAccount-content {
    background: white;
    border-radius: 18px;
    padding: 48px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    font-size: 32px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 32px 0;
    letter-spacing: -0.5px;
}

.woocommerce-MyAccount-content h3 {
    font-size: 24px;
    margin: 32px 0 20px 0;
}

.entry-title{
    padding-left: 2rem;
}
/* ============================================
   ФОРМЫ - FORMS
   ============================================ */
.wc-block-components-address-form__country.wc-block-components-country-input{
    margin-bottom: 20px;
}
.wc-block-components-address-form__address_2-toggle{
    color: #0066cc;
    font-weight: 500;
}.wc-block-components-address-form__address_2-toggle:hover{
     opacity: 0.8;
 }
.wc-block-components-textarea{
    max-width: 520px;
    max-height: 1000px;
}


.woocommerce form .form-row,
.woocommerce-page form .form-row {
    margin-bottom: 24px;
}

.woocommerce form label,
.woocommerce-page form label {
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.woocommerce form .required,
.woocommerce-page form .required {
    color: #ff3b30;
    font-weight: 600;
}

.woocommerce form input[type="text"],
.woocommerce form input[type="email"],
.woocommerce form input[type="password"],
.woocommerce form input[type="tel"],
.woocommerce form input[type="number"],
.woocommerce form textarea,
.woocommerce form select,
.woocommerce-page form input[type="text"],
.woocommerce-page form input[type="email"],
.woocommerce-page form input[type="password"],
.woocommerce-page form input[type="tel"],
.woocommerce-page form input[type="number"],
.woocommerce-page form textarea,
.woocommerce-page form select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: #1d1d1f;
    background-color: #f5f5f7;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.woocommerce form input:focus,
.woocommerce form textarea:focus,
.woocommerce form select:focus,
.woocommerce-page form input:focus,
.woocommerce-page form textarea:focus,
.woocommerce-page form select:focus {
    outline: none;
    background-color: white;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}
/* Исключить блочные чекбоксы из общих стилей */
.wc-block-components-checkbox__input:focus {
    background-color: #f5f5f7 !important;
    border-color: #d2d2d7 !important;
    box-shadow: none !important;
    outline: none !important;
}

.wc-block-components-checkbox__input:checked:focus {
    background-color: #0066cc !important;
    border-color: #0066cc !important;
}

/* Для радио тоже */
.wc-block-components-radio-control__input:focus {
    background-color: white !important;
    border-color: #d2d2d7 !important;
    box-shadow: none !important;
    outline: none !important;
}

.wc-block-components-radio-control__input:checked:focus {
    border-color: #0066cc !important;
}

.woocommerce form textarea {
    min-height: 120px;
    resize: vertical;
}
.wp-block-woocommerce-checkout{
    padding-left: 2rem;
    padding-right: 2rem;
}


/* Чекбоксы */
.woocommerce form input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #0066cc;
}

.woocommerce form .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.wc-block-components-checkbox__mark{
    margin-left: -18px !important;
}

/* Кнопки */
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce-page button.button,
.woocommerce-page input.button,
.woocommerce-page a.button,
.woocommerce #respond input#submit {
    background-color: #0066cc;
    color: white !important;
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 980px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none !important;
    display: inline-block;
}

.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input.button:hover,
.woocommerce-page a.button:hover,
.woocommerce #respond input#submit:hover {
    background-color: #0055b3;
    transform: scale(1.02);
}

.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce a.button.alt {
    background-color: #0066cc;
}

/* Вторичные кнопки */
.woocommerce a.button.secondary,
.woocommerce button.button.secondary {
    background-color: #f5f5f7;
    color: #1d1d1f !important;
}

.woocommerce a.button.secondary:hover,
.woocommerce button.button.secondary:hover {
    background-color: #e8e8ed;
}

.wc-block-components-button.wp-element-button.wc-block-components-totals-coupon__button.contained{
    border-radius: 2rem;
    border-color: white;
    border: solid 1px #0a6aa1;
    padding: 1rem;
    color: #0a6aa1;
}

/* ============================================
   ТАБЛИЦЫ
   ============================================ */

.woocommerce table.shop_table,
.woocommerce-page table.shop_table {
    width: 100%;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: none;
    margin-bottom: 32px;
}

.woocommerce table.shop_table thead {
    background-color: #f5f5f7;
}

.woocommerce table.shop_table th,
.woocommerce-page table.shop_table th {
    padding: 20px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border: none;
}
.woocommerce-table__product-table.product-total{
    text-align: right !important;
}

.woocommerce table.shop_table td,
.woocommerce-page table.shop_table td {
    padding: 24px;
    font-size: 15px;
    color: #1d1d1f;
    border-top: 1px solid #f5f5f7;
    vertical-align: middle;
}

.woocommerce table.shop_table tr:first-child td {
    border-top: none;
}

.woocommerce table.shop_table a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce table.shop_table a:hover {
    color: #0055b3;
}

/* ============================================
   АДРЕСА - ADDRESSES
   ============================================ */

.woocommerce-Address {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.woocommerce-Address-title h3 {
    font-size: 21px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 16px 0;
}

.woocommerce-Address address {
    font-style: normal;
    line-height: 1.8;
    color: #6e6e73;
    margin-bottom: 16px;
}

.woocommerce-Address .edit {
    color: #0066cc;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.woocommerce-Address .edit:hover {
    color: #0055b3;
}

/* ============================================
   ЗАКАЗЫ - ORDERS
   ============================================ */

.woocommerce-orders-table__cell-order-number a {
    font-weight: 600;
    color: #0066cc;
}

.woocommerce-orders-table__cell-order-status {
    font-weight: 500;
}

.woocommerce-order-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.woocommerce-order-status.status-completed {
    background-color: #34c759;
    color: white;
}

.woocommerce-order-status.status-processing {
    background-color: #0066cc;
    color: white;
}

.woocommerce-order-status.status-on-hold {
    background-color: #ff9500;
    color: white;
}

.woocommerce-order-status.status-pending {
    background-color: #86868b;
    color: white;
}

.woocommerce-order-status.status-cancelled,
.woocommerce-order-status.status-failed {
    background-color: #ff3b30;
    color: white;
}

/* ============================================
   ОФОРМЛЕНИЕ ЗАКАЗА - CHECKOUT (Блочная структура)
   ============================================ */

.wc-blocks-components-select__expand{
    display: none;
}

.wc-block-checkout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 2rem;
}

.wc-block-components-sidebar-layout {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

/* Основная форма */
.wc-block-checkout__main {
    width: 50% !important;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Секции формы (fieldset) */
.wc-block-components-checkout-step {
    background: white;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: none;
}

/* Группировка label и input */
.wc-block-components-text-input,
.wc-block-components-address-form__email,
.wc-block-components-address-form__first_name,
.wc-block-components-address-form__last_name,
.wc-block-components-address-form__address_1,
.wc-block-components-address-form__city,
.wc-block-components-address-form__state,
.wc-block-components-address-form__postcode,
.wc-block-components-address-form__phone {
    position: relative;
    margin-bottom: 20px;
}

.wc-block-components-checkout-step__title {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 24px 0;
}
/* Группировка label и input */
.wc-block-components-text-input,
.wc-block-components-address-form__email,
.wc-block-components-address-form__first_name,
.wc-block-components-address-form__last_name,
.wc-block-components-address-form__address_1,
.wc-block-components-address-form__city,
.wc-block-components-address-form__state,
.wc-block-components-address-form__postcode,
.wc-block-components-address-form__phone {
    position: relative;
    margin-bottom: 20px;
}

/* Label внутри поля (floating label) */
.wc-block-components-text-input label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 15px;
    color: #6e6e73;
    transition: all 0.2s ease;
    pointer-events: none;
    background: transparent;
    padding: 0 4px;
}
.wc-block-components-address-card__address-section--primary,
.wc-block-components-address-card__address-section.wc-block-components-address-card__address-section--secondary, .wc-block-components-address-card__edit{
    display: none;
}
.wc-block-components-validation-error{
    font-size: 0.7rem;
    color: red;
}
.wc-block-components-validation-error svg{
    display: none;
}
/* Label поднимается когда поле активно или заполнено */
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:focus + label,
.wc-block-components-text-input input:not(:placeholder-shown) + label {
    top: 0;
    left: 12px;
    font-size: 12px;
    background: white;
    color: #0066cc;
    transform: translateY(-50%);
}

.wc-block-components-text-input input {
    width: 100%;
    padding: 14px 16px;
}


/* Поля ввода (inputs) */
.wc-block-components-text-input {
    position: relative;
    margin-bottom: 20px;
}

.wc-block-components-text-input input,
.wc-blocks-components-select__select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: #1d1d1f;
    background-color: #f5f5f7;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.wc-block-components-text-input input:focus,
.wc-blocks-components-select__select:focus {
    outline: none;
    background-color: white;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Чекбоксы */
.wc-block-components-checkbox {
    margin: 20px 0;
}

.wc-block-components-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.wc-block-components-checkbox__input {
    position: relative;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
    background-color: #f5f5f7;
    border: 2px solid #d2d2d7;
    border-radius: 50%; /* Было 6px - теперь круглый */
    cursor: pointer;
    margin: 0;
    transition: all 0.2s ease;
}

.wc-block-components-checkbox__input:checked {
    background-color: #0066cc;
    border-color: #0066cc;
}

/* Галочка заменяется на точку внутри */
.wc-block-components-checkbox__input:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white;
}

/* Скрыть SVG галочку */
.wc-block-components-checkbox__mark {
    display: none !important;
}

/* Радио-кнопки */
.wc-block-components-radio-control {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wc-block-components-radio-control__option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: #f5f5f7;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wc-block-components-radio-control__option:hover {
    background-color: #e8e8ed;
}

.wc-block-components-radio-control__option-checked {
    background-color: #e6f2ff;
    border: 2px solid #0066cc;
}

.wc-block-components-radio-control__input {
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
    border: 2px solid #d2d2d7;
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
    position: relative;
    margin: 0;
}

.wc-block-components-radio-control__input:checked {
    border-color: #0066cc;
}

.wc-block-components-radio-control__input:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0066cc;
}

.wc-block-components-radio-control__label-group {
    flex: 1;
}

.wc-block-components-radio-control__label {
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    display: block;
    margin-bottom: 4px;
}

.wc-block-components-radio-control__secondary-label {
    font-size: 14px;
    color: #6e6e73;
}

/* Сайдбар с итогами */
.wc-block-checkout__sidebar {
    width: 40% !important;
    position: sticky;
    top: 100px;
}

.wp-block-woocommerce-checkout-order-summary-block {
    background: white;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.wc-block-components-checkout-order-summary__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 2px solid #f5f5f7;
    margin-bottom: 24px;
}

.wc-block-components-checkout-order-summary__title-text {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.wc-block-components-checkout-order-summary__title-price {
    font-size: 24px;
    font-weight: 600;
    color: #0066cc;
}

/* Товары в заказе */
.wc-block-components-order-summary-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f7;
}

.wc-block-components-order-summary-item__image {
    position: relative;
    flex-shrink: 0;
}

.wc-block-components-order-summary-item__image img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.wc-block-components-order-summary-item__quantity {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #0066cc;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.wc-block-components-order-summary-item__description {
    flex: 1;
}

.wc-block-components-product-name {
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    margin: 0 0 8px 0;
}

/* Итоги */
.wc-block-components-totals-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
}

.wc-block-components-totals-footer-item {
    padding-top: 20px;
    border-top: 2px solid #f5f5f7;
    margin-top: 12px;
    font-size: 21px;
    font-weight: 600;
}

/* Кнопки действий */
.wc-block-checkout__actions_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.wc-block-components-checkout-place-order-button {
    flex: 1;
    padding: 16px 32px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wc-block-components-checkout-place-order-button:hover {
    background-color: #0055b3;
    transform: scale(1.02);
}

.wc-block-components-checkout-return-to-cart-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0066cc;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}


/* ============================================
   СООБЩЕНИЯ И УВЕДОМЛЕНИЯ
   ============================================ */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background-color: #f5f5f7;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    border: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce-message {
    background-color: #d1f4e0;
    color: #1d6f42;
}

.woocommerce-info {
    background-color: #d1e7ff;
    color: #004085;
}

.woocommerce-error {
    background-color: #ffe5e5;
    color: #c41e3a;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    font-size: 20px;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* ============================================
   КУПОНЫ
   ============================================ */

.woocommerce-form-coupon {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.woocommerce-form-coupon p {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0;
}

.woocommerce-form-coupon input[type="text"] {
    flex: 1;
    max-width: 300px;
}

/* ============================================
   ЗАГРУЗКИ - DOWNLOADS
   ============================================ */

.woocommerce-MyAccount-downloads table.shop_table td {
    padding: 20px 24px;
}

.woocommerce-MyAccount-downloads .download-file a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0066cc;
    font-weight: 500;
}

.woocommerce-MyAccount-downloads .download-file a::before {
    content: '↓';
    font-size: 18px;
}
.wc-block-components-checkbox__input {
    position: relative;
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
}

.wc-block-components-checkbox__mark {
    position: absolute;
    top: 0;
    left: 0;
    margin-left: 0 !important;
    pointer-events: none;
}

/* Страница благодарности WooCommerce */

/* Основной контейнер */
.woocommerce-order {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Заголовок страницы */
.entry-header .entry-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
}

/* Сообщение об успешном заказе */
.woocommerce-notice--success {
    background: #28a745;
    color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    border: none;
}

/* Общая информация о заказе (список сверху) */
.woocommerce-order-overview {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.woocommerce-order-overview li {
    flex: 1;
    min-width: 150px;
    font-size: 14px;
    color: #666;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.woocommerce-order-overview li strong {
    display: block;
    font-size: 16px;
    color: #1a1a1a;
    margin-top: 5px;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Заголовки секций */
.woocommerce-order-details__title,
.woocommerce-column__title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

/* Таблица деталей заказа */
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 50px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce-table--order-details thead {
    background: #f8f9fa;
}

.woocommerce-table--order-details th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-table--order-details tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.woocommerce-table--order-details tbody tr:last-child {
    border-bottom: none;
}

.woocommerce-table--order-details td {
    padding: 20px;
    font-size: 15px;
    color: #333;
}

.woocommerce-table--order-details .product-name a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.woocommerce-table--order-details .product-name a:hover {
    color: #007bff;
}

.woocommerce-table--order-details .product-quantity {
    color: #666;
    font-weight: 400;
    margin-left: 10px;
}

.woocommerce-table--order-details .product-total {
    text-align: right;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}
.wc-block-components-checkout-step__heading-content{
    display: flex;
    padding-bottom: 20px;
}
/* Футер таблицы (итоги) */
.woocommerce-table--order-details tfoot {
    background: #f8f9fa;
}

.woocommerce-table--order-details tfoot th,
.woocommerce-table--order-details tfoot td {
    padding: 15px 20px;
    font-size: 15px;
}

.woocommerce-table--order-details tfoot th {
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
}

.woocommerce-table--order-details tfoot td {
    text-align: right;
    font-weight: 600;
    color: #1a1a1a;
}

.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td {
    font-size: 18px;
    color: #28a745;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

/* Адреса */
.woocommerce-columns--addresses {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.woocommerce-column {
    flex: 1;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.woocommerce-column address {
    font-style: normal;
    line-height: 1.8;
    color: #333;
    font-size: 15px;
}

.woocommerce-customer-details--email {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    color: #007bff;
    font-weight: 500;
}

/* Валюта */
.woocommerce-Price-currencySymbol {
    font-weight: 400;
}

.woocommerce-order p:not([class]) {
    text-align: center;
    font-weight: 500;
    color: #856404;
    font-size: 1rem;
}


@media (max-width: 767px) {
    /*Регистрация*/
    .u-columns{
        padding: 1rem;
    }
    
    .wc-block-components-sidebar-layout{
        flex-direction: column;
    }
    .wc-block-checkout__sidebar {
        width: 100% !important;
    }
    .wc-block-checkout__main {
        width: 100% !important;
    }
    .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper{

    }
    .wc-block-components-sidebar.wc-block-checkout__sidebar.wp-block-woocommerce-checkout-totals-block{
        display: none;
    }
    .wc-block-components-checkout-step__title{
        text-align: center;
    }
    .wp-block-woocommerce-checkout{
        padding: 0;
    }
    .wc-block-components-checkout-step{
        padding: 2px;
    }

    .woocommerce-order {
        padding: 20px 15px;
    }

    .entry-header .entry-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .woocommerce-notice--success {
        padding: 15px 20px;
        font-size: 16px;
        margin-bottom: 30px;
    }

    .woocommerce-order-overview {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        margin-bottom: 30px;
    }

    .woocommerce-order-overview li {
        min-width: 100%;
        padding-bottom: 15px;
        border-bottom: 1px solid #e0e0e0;
    }

    .woocommerce-order-overview li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .woocommerce-order-details__title,
    .woocommerce-column__title {
        font-size: 20px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .woocommerce-table--order-details {
        margin-bottom: 30px;
    }

    .woocommerce-table--order-details thead {
        display: none;
    }

    .woocommerce-table--order-details tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 15px;
    }

    .woocommerce-table--order-details td {
        display: block;
        padding: 5px 0;
        text-align: left !important;
    }

    .woocommerce-table--order-details .product-name {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .woocommerce-table--order-details .product-total {
        font-size: 18px;
        margin-top: 10px;
    }

    .woocommerce-table--order-details tfoot {
        display: block;
    }

    .woocommerce-table--order-details tfoot tr {
        display: flex;
        justify-content: space-between;
        padding: 12px 15px;
        border-bottom: 1px solid #e0e0e0;
    }

    .woocommerce-table--order-details tfoot tr:last-child {
        border-top: 2px solid #e0e0e0;
        border-bottom: none;
        padding-top: 15px;
    }

    .woocommerce-table--order-details tfoot th,
    .woocommerce-table--order-details tfoot td {
        padding: 0;
        font-size: 14px;
    }

    .woocommerce-table--order-details tfoot tr:last-child th,
    .woocommerce-table--order-details tfoot tr:last-child td {
        font-size: 16px;
    }

    .woocommerce-columns--addresses {
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }

    .woocommerce-column {
        padding: 20px;
    }

    .woocommerce-column address {
        font-size: 14px;
    }
    .woocommerce-account .woocommerce{
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .woocommerce-MyAccount-navigation{
        position: static;
        width: 100%;

    }
    .woocommerce-MyAccount-navigation ul li a{
        text-align: center;
    }
    .entry-title{
        padding: 0;
    }
    .woocommerce table.shop_table,
    .woocommerce-page table.shop_table {
        border-radius: 12px;
        margin-bottom: 20px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Скрываем заголовки таблицы */
    .woocommerce table.shop_table thead {
        display: none;
    }

    /* Превращаем строки в блоки */
    .woocommerce table.shop_table tbody,
    .woocommerce table.shop_table tr {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .woocommerce table.shop_table tr {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .woocommerce table.shop_table tr:last-child {
        margin-bottom: 0;
    }

    /* Ячейки становятся блочными */
    .woocommerce table.shop_table td,
    .woocommerce table.shop_table th {
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        border: none;
        border-bottom: 1px solid #f5f5f7;
    }

    .woocommerce table.shop_table td:last-child,
    .woocommerce table.shop_table th:last-child {
        border-bottom: none;
        gap: 1rem;
    }

    /* Добавляем подписи через data-title */
    .woocommerce table.shop_table td::before {
        content: attr(data-title) "";
        font-weight: 600;
        color: #6e6e73;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: inline-block;
        margin-right: 8px;
    }

    /* Специальные стили для первой ячейки (номер заказа) */
    .woocommerce-orders-table__cell-order-number {
        background-color: #f5f5f7;
        font-weight: 700;
        font-size: 16px;
    }

    .woocommerce-orders-table__cell-order-number::before {
        display: block;
        margin-bottom: 4px;
    }

    /* Кнопка действий на всю ширину */
    .woocommerce-orders-table__cell-order-actions {
        padding: 16px;
    }

    .woocommerce-orders-table__cell-order-actions .button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem;
        margin: 0;
    }

    .woocommerce-orders-table__cell-order-actions::before {
        display: none;
    }

    /* Убираем верхнюю границу у первой ячейки */
    .woocommerce table.shop_table td:first-child {
        border-top: none;
    }
    .woocommerce-MyAccount-content{
        padding: 0;
        width: 100%;
    }
}
@media (min-width: 1921px) {
    .site-main{
        justify-content: center;
        display: flex;
    }
    .entry-title{
        padding: 0;
        text-align: center;
    }

    .woocommerce-order {
        max-width: 1600px;
        padding: 60px 40px;
    }

    .entry-header .entry-title {
        font-size: 42px;
        margin-bottom: 40px;
    }

    .woocommerce-notice--success {
        padding: 30px 40px;
        font-size: 22px;
        margin-bottom: 60px;
        border-radius: 12px;
    }

    .woocommerce-order-overview {
        padding: 35px;
        gap: 30px;
        margin-bottom: 70px;
        border-radius: 12px;
    }

    .woocommerce-order-overview li {
        font-size: 16px;
        min-width: 200px;
    }

    .woocommerce-order-overview li strong {
        font-size: 20px;
        margin-top: 8px;
    }

    .woocommerce-order-details__title,
    .woocommerce-column__title {
        font-size: 32px;
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .woocommerce-table--order-details {
        margin-bottom: 70px;
        border-radius: 12px;
    }

    .woocommerce-table--order-details th {
        padding: 20px 30px;
        font-size: 16px;
    }

    .woocommerce-table--order-details td {
        padding: 25px 30px;
        font-size: 18px;
    }

    .woocommerce-table--order-details .product-name a {
        font-size: 18px;
    }

    .woocommerce-table--order-details .product-total {
        font-size: 20px;
    }

    .woocommerce-table--order-details tfoot th,
    .woocommerce-table--order-details tfoot td {
        padding: 20px 30px;
        font-size: 18px;
    }

    .woocommerce-table--order-details tfoot tr:last-child th,
    .woocommerce-table--order-details tfoot tr:last-child td {
        font-size: 24px;
        padding-top: 30px;
    }

    .woocommerce-columns--addresses {
        gap: 60px;
        margin-top: 70px;
    }

    .woocommerce-column {
        padding: 40px;
        border-radius: 12px;
    }

    .woocommerce-column address {
        font-size: 18px;
        line-height: 2;
    }

    .woocommerce-customer-details--email {
        margin-top: 20px;
        padding-top: 20px;
        font-size: 18px;
    }
}