/*
=================================================================
== ФИНАЛЬНЫЙ СТИЛЬ: КАРТОЧКИ ТОВАРОВ И АНИМАЦИИ ==
=================================================================
*/
/* 1. Перестраиваем таблицу в flex-контейнер для горизонтального ряда карточек */
.woocommerce-checkout-review-order-table {
    display: block;
    border: none;
    background: transparent;
    margin: 0;
    padding: 0;
   
}
.woocommerce-checkout-review-order-table thead {
    display: none;
}
.woocommerce-checkout-review-order-table tbody {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}
/* 2. Строка-карточка товара как игральная карта */
.woocommerce-checkout-review-order-table tr.cart_item {
     border-top: 1px solid #5c5c5c42;
    box-shadow: 0 4px 15px rgb(0 0 0);
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(to bottom, var(--bg-light-dark), darken(var(--bg-light-dark), 5%));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 calc(30% - 20px * 3 / 4);
    height: 290px;
    transform: rotate(2deg);
    cursor: pointer;
    z-index: 999;
}
.woocommerce-checkout-review-order-table tr.cart_item:hover {
    transform: translateY(-5px) rotate(0deg);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    border-color: #FFEB3B;
}

/* Стили для миниатюр товаров */
td.product-thumbnail {
    /* flex: 0 0 auto; */
    height: 1000px; /* Увеличено для пропорций 900x1200 */
    overflow: hidden;
    align-items: center;
    justify-content: center;
   
}
td.product-thumbnail img {
    height: 100%;
    max-height: 270px;
    object-fit: contain;
    border: none;
}
/* Медиа-запрос для планшетов (max-width: 1024px) */
@media (max-width: 1024px) {
    td.product-thumbnail {
        height: 200px;
    }
    td.product-thumbnail img {
        max-height: 200px;
    }
}
/* Медиа-запрос для мобильных (max-width: 768px) */
@media (max-width: 768px) {
    td.product-thumbnail {
        height: 150px;
    }
    td.product-thumbnail img {
        max-height: 150px;
    }
}
td.product-name {
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-light);
    font-size: 0.85em;
    margin-top: 0.5em;
}
td.product-name a {
    color: var(--text-light);
    text-decoration: none;
    pointer-events: none;
}
td.product-quantity {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.4em;
    margin: 0.1em 0;
}
td.product-total {
    font-weight: 600;
    font-size: 1.5em;
    color: var(--text-light);
    margin-bottom: 0.5em;
}
/* 4. КРАСНАЯ МУСОРКА */
td.product-remove {
    position: absolute;
    top: -26px;
    right: 5px;
    width: auto;
    /* padding: 0; */
}
td.product-remove a.remove {
    font-size: 50px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.7;
    cursor: pointer; /* Указатель для мусорки */
}
td.product-remove a.remove:hover {
    color: #e54848;
    opacity: 1;
    transform: scale(1.2);
}
/*
=====================================================
== КАСТОМНАЯ ЗАГРУЗКА И ПОДТВЕРЖДЕНИЕ УДАЛЕНИЯ ==
=====================================================
*/
.gemini-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gemini-loader-overlay.active {
    opacity: 1;
    visibility: visible;
}
.gemini-loader-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    width: 40px;
    height: 40px;
    background: url('https://cyberpodium.ru/wp-content/uploads/2023/09/Без-имени-4_result.webp') no-repeat center center;
    background-size: contain;
    animation: spin 0.9s linear infinite;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gemini-loader-spinner.active {
    opacity: 1;
    visibility: visible;
}
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.item-removed-notice td {
    text-align: center;
    padding: 2em 1em !important;
    color: #e54848;
    font-weight: 700;
    font-size: 16px;
    background-color: rgba(220, 53, 69, 0.05);
    border-top: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
}
.item-removed-notice .fas.fa-times-circle {
    margin-right: 10px;
    vertical-align: middle;
}
.woocommerce .blockUI.blockOverlay,
.woocommerce .blockUI.blockOverlay::before,
div.woocommerce.processing::before,
.woocommerce form.checkout.processing .woocommerce-checkout-review-order::before,
.woocommerce .loader,
.woocommerce .spinner {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
#billing_address_1_field, #billing_address_2_field {
    display: none !important;
}
.field-error {
    border: 2px solid red !important;
    background-color: #fff5f5;
}
.woocommerce-shipping-methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
   
}
.woocommerce-shipping-methods::before {
    content: "Введите данные и выберите в какой пункт выдачи доставить ваш заказ. (Дни доставки указанные CDEK И Boxberry могут быть не окончательными.±1-2 дня)";
    display: block;
    font-weight: 600;
    font-size: 0.7em;
    margin-bottom: 10px;
    padding: 10px;
    text-align: center;
    background-color:#201f1f;
}
.woocommerce-shipping-methods li {
    border-radius: var(--radius);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    padding: 15px 15px 15px 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100px;
    height: auto;
    background-color:#1a1a1a80;
    border-top: 1px solid #5c5c5c42;
    box-shadow: 0 4px 15px rgb(0 0 0);
}
.woocommerce-shipping-methods li:hover {
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.woocommerce-shipping-methods li::before {
    content: "\f0d1";
    font-family: "Font Awesome 5 Free";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2em;
    transition: color 0.3s ease;
}
.woocommerce-shipping-methods li:has(input[type="radio"]:checked)::before {
    color: var(--accent-gold);
}
.woocommerce-shipping-methods input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 1;
}
.woocommerce-shipping-methods input[type="radio"] + label::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 1px solid #393838;
    border-radius: 50%;
    background-color: var(--bg-light-dark);
    transition: all 0.3s ease;
}
.woocommerce-shipping-methods input[type="radio"]:checked + label::before {
    background-color: #FFEB3B;
}
.woocommerce-shipping-methods input[type="radio"] + label::after {
    content: '\f00c';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    color: #000;
    font-size: 12px;
    transition: transform 0.3s ease;
}
.woocommerce-shipping-methods input[type="radio"]:checked + label::after {
    transform: translateY(-50%) scale(1);
}


.woocommerce-shipping-methods .woocommerce-Price-amount {
    margin-left: auto;
    font-weight: bold;
    color: #ffe500e0;
}
.bxbbutton {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #bc2626;
    border-radius: 6px;
    box-shadow: 0 1px 0 rgba(27,31,35,.1);
    box-sizing: border-box;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    line-height: 10px;
    padding: 6px 16px;
    position: relative;
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}
.bxbbutton[aria-small] {
    font-size: 8px;
}
.bxbbutton a {
    color: inherit;
    font-size: inherit;
}
.open-pvz-btn {
    z-index: 99;
}
.woocommerce-shipping-methods li .bxbbutton {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    margin-top: 10px;
    width: 100%;
}
.woocommerce-shipping-methods li:has(input[type="radio"]:checked) .bxbbutton {
    opacity: 1;
    visibility: visible;
}
.woocommerce-checkout-review-order-table tfoot tr.order-total,
.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal {
    background-color: var(--bg-light-dark);
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius);
    background-color:#25252540;
    border-top: 1px solid #5c5c5c42;
    box-shadow: 0 4px 15px rgb(0 0 0);
}
.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout-review-order-table tfoot tr.order-total td,
.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal th,
.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal td {
    padding: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 1px;
    border: none;
   
}

.woocommerce-checkout-review-order-table tfoot tr.shipping th {
    display: none;
}
img[src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAYAAAD6S912AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAE+SURBVHgBnVSBccMgDNR5Am9QRsgIjMIGZYN4g2QDpxN0BEagGzgbpBtQqSdiBQuC/Xc6G0m8XogDQEFKaUTzaAHtkVZEtBnNQi8w+bMgof+FTYKIzTuyS7HBKsqdIKfvqUZ2fpv0mj+JDkwZdILMQCcEaSwDuQULO8GDI7hS3VzZYFmJ09RzfFWJP981deJcU+tIhMoPWtDdSo3KJYKSe81tD7imid63zYIFHZr/h79mgDp+K/47NDBwgkG5YxG7VTZ/KT7zLIZEt8ZQjDhwusBeIZNDOcnDD3AAXPT/BkjnUlPZQTjnCUunO6KSWtyoE8HAQb+DcNmoU6ptXw+dLD91cyvJc1JUrpHM63+dROuXStyk9UW30NHKKM7mrJDl2AS9KFR4USiy7wp7kV5fm4coEOEomDQI0qk1LMIfknqE+j7lxtgAAAAASUVORK5CYII="] {
    display: none !important;
}
.woocommerce-shipping-methods .shipping-logo {
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
    object-fit: contain;
}
.woocommerce-checkout-payment {
    background-color: var(--bg-light-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    padding: 25px;
    margin-bottom: 2em;
    transition: all 0.3s ease;
}
.woocommerce-checkout-payment h3 {
    color: var(--accent-gold);
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 1em 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5em;
}
.woocommerce-checkout-payment .payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}
.woocommerce-checkout-payment .payment_method {
    background-color: var(--bg-light-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
}
.woocommerce-checkout-payment .payment_method:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}
.woocommerce-checkout-payment .payment_method label {
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    display: block;
    font-size: 1.1em;
    margin-bottom: 10px;
}
.woocommerce-checkout-payment .payment_method .payment_box {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 0.9em;
}
.woocommerce-terms-and-conditions-wrapper {
    position: relative;
    padding: 15px 15px 15px 45px;
    margin: 20px 0;
    background-color: var(--bg-light-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}
.woocommerce-terms-and-conditions-wrapper:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"]#terms {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 30;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bg-light-dark);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"]#terms:checked {
    background-color: #000000;
    border-color: #ffc105;
}
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"]#terms:checked::after {
    content: '\f00c';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff0000;
    font-size: 12px;
    transition: all 0.3s ease;
}
.woocommerce-terms-and-conditions-wrapper label[for="terms"] {
    cursor: pointer;
    display: block;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.3s ease;
    line-height: 1.6;
    font-size: 0.95em;
    padding-right: 15px;
}
.woocommerce-terms-and-conditions-wrapper label[for="terms"].checked {
    color: var(--accent-gold);
}
.woocommerce-terms-and-conditions-link {
    color: #ff0000;
    text-decoration: underline;
}
.woocommerce-terms-and-conditions-link:hover {
    color: #cc0000;
}
#place_order {
    cursor: pointer;
}
#place_order:hover:not(:disabled) {
    background-color: #ffca2c;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
#place_order:disabled, #place_order.disabled {
    background-color: var(--text-muted);
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
button.next-step {
    cursor: pointer;
}
button.next-step:hover:not(.disabled) {
    background-color: #ffca2c;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
button.next-step.disabled {
    background-color: #555;
    color: #999;
    border: 2px solid #444;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}
button.next-step.disabled:hover {
    background-color: #555;
    transform: none;
    box-shadow: none;
}
.shipping-method-image {
    max-width: 50px;
    height: auto;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
/* Медиа-запросы для планшетов (max-width: 1024px) */
@media (max-width: 1024px) {
    .woocommerce-checkout-review-order-table tr.cart_item {
        flex: 0 0 calc(33.33% - 13.33px); /* 3 карточки в ряд */
        height: 300px;
        /* transform: rotate(0deg); */
    }
    td.product-thumbnail {
        height: 200px;
    }
    td.product-thumbnail img {
        max-height: 200px;
    }
    td.product-name {
        /* font-size: 0.8em; */
    }
    td.product-quantity {
        font-size: 0.35em;
    }
    td.product-total {
        /* font-size: 1.2em; */
    }
    td.product-remove a.remove {
        font-size: 40px;
        top: -20px;
    }
    .woocommerce-shipping-methods li {
        padding: 12px 12px 12px 45px;
        min-height: 80px;
    }
    .woocommerce-shipping-methods .shipping-logo,
    .shipping-method-image {
        max-width: 40px;
    }
    .woocommerce-shipping-methods::before {
        font-size: 0.85em;
        padding: 8px;
    }
    .woocommerce-checkout-payment {
        padding: 20px;
    }
    .woocommerce-checkout-payment h3 {
        font-size: 1.2em;
    }
    .woocommerce-checkout-payment .payment_method {
        padding: 15px;
    }
    .woocommerce-terms-and-conditions-wrapper {
        padding: 12px 12px 12px 40px;
    }
    .woocommerce-terms-and-conditions-wrapper input[type="checkbox"]#terms {
        width: 18px;
        height: 18px;
    }
    .woocommerce-terms-and-conditions-wrapper input[type="checkbox"]#terms:checked::after {
        font-size: 10px;
        left: 3px;
    }
    .woocommerce-terms-and-conditions-wrapper label[for="terms"] {
        font-size: 0.9em;
    }
    #place_order, button.next-step {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .bxbbutton {
        font-size: 9px;
        padding: 5px 14px;
    }
    .bxbbutton[aria-small] {
        font-size: 7px;
    }
}
/* Медиа-запросы для мобильных (max-width: 768px) */
@media (max-width: 768px) {
    .woocommerce-checkout-review-order-table tbody {
        gap: 10px;
    }
    .woocommerce-checkout-review-order-table tr.cart_item {
        flex: 0 0 calc(50% - 10px);
        height: 250px;
        min-height: 250px;
        transform: rotate(0deg);
    }
    td.product-thumbnail {
        height: 150px;
    }
    td.product-thumbnail img {
        max-height: 150px;
    }
    td.product-name {
        font-size: 0.75em;
    }
    td.product-quantity {
        font-size: 0.3em;
    }
    td.product-total {
        font-size: 1em;
    }
    td.product-remove a.remove {
        font-size: 30px;
        top: 5px;
    }
    .woocommerce-shipping-methods li {
        width: 100%;
        padding: 10px 10px 10px 40px;
        min-height: 70px;
    }
    .woocommerce-shipping-methods .shipping-logo,
    .shipping-method-image {
        max-width: 35px;
    }
    .woocommerce-shipping-methods::before {
        font-size: 0.8em;
        padding: 7px;
    }
    .woocommerce-checkout-payment {
        padding: 15px;
    }
    .woocommerce-checkout-payment h3 {
        font-size: 1.1em;
    }
    .woocommerce-checkout-payment .payment_method {
        padding: 12px;
        margin-bottom: 10px;
    }
    .woocommerce-terms-and-conditions-wrapper {
        padding: 10px 10px 10px 35px;
    }
    .woocommerce-terms-and-conditions-wrapper input[type="checkbox"]#terms {
        width: 16px;
        height: 16px;
    }
    .woocommerce-terms-and-conditions-wrapper input[type="checkbox"]#terms:checked::after {
        font-size: 9px;
        left: 2px;
    }
    .woocommerce-terms-and-conditions-wrapper label[for="terms"] {
        font-size: 0.85em;
    }
    .gemini-loader-spinner {
        width: 30px;
        height: 30px;
    }
    #place_order, button.next-step {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    .bxbbutton {
        font-size: 8px;
        padding: 4px 12px;
    }
    .bxbbutton[aria-small] {
        font-size: 6px;
    }
}
.cdek-office-info {
    background: #292828;
    border-radius: 6px;
    margin-top: 0px;
    padding: 0px 0px;
    border-top: 1px solid #5c5c5c42;
    box-shadow: 0 4px 15px rgb(0 0 0);
}
.cdek-office-info:before {
display:none;
}
.woocommerce img,.woocommerce-page img {
    /* height:auto; !important */
    max-width: 100%;
}
/* Стили для блока сообщения для гостей */
.guest-loyalty-message {
    background-color: var(--bg-light-dark);
    padding: 20px;
    border-radius: var(--radius);
    margin: 1em 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-image: linear-gradient(to bottom, var(--bg-light-dark), darken(var(--bg-light-dark), 5%));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.guest-loyalty-message:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.guest-loyalty-message h4 {
    margin-top: 0;
    margin-bottom: 0.5em;
    color: #FFEB3B;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.guest-loyalty-message p {
    color: var(--text-light);
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 1em;
}
.guest-loyalty-message .button {
    background-color: #FFEB3B;
    color: #000000;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.guest-loyalty-message .button:hover {
    background-color: #FFEB3B;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.guest-loyalty-message .button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* Стиль для метки "Предзаказ" */
.preorder-label {
    background-color: #FFEB3B; /* Желтый цвет */
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.8em;
    margin-left: 10px;
    display: inline-block;
    text-transform: uppercase;
    border-top: 1px solid #5c5c5c42;
    box-shadow: 0 4px 15px rgb(0 0 0);
}
/* Стиль для блока предупреждения о предзаказе */
.preorder-warning {
    background-color: #FFEB3B; /* Светло-желтый фон */
    border-top: 1px solid #5c5c5c42;
    box-shadow: 0 4px 15px rgb(0 0 0);
    border-radius: var(--radius);
    padding: 15px;
    margin: 20px 0;
    color: #000000;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    line-height: 1.5;
  
}
.preorder-warning::before {
    content: "⚠️"; /* Иконка предупреждения */
    font-size: 1.5em;
    margin-right: 10px;
    vertical-align: middle;
}
.preorder-warning p {
    margin: 0;
    display: inline;
}
.woocommerce-checkout .woocommerce-form__label-for-checkbox {
    position: relative;
    display: block; /* Или flex, если нужно в ряд */
    padding-left: 35px; /* Пространство слева для кастомного чекбокса */
    margin-top: 15px;
    font-size: 14px;
    color: #ffffff;
    cursor: pointer; /* Курсор как при клике */
    user-select: none; /* Запрет выделения текста */
}
.woocommerce-checkout .woocommerce-form__input-checkbox {
    position: absolute;
    opacity: 0; /* Скрываем оригинальный чекбокс */
    cursor: pointer;
    height: 0;
    width: 0;
}
/* Кастомный чекбокс (пустой) */
.woocommerce-checkout .woocommerce-form__label-for-checkbox .woocommerce-terms-and-conditions-checkbox-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: #000000;
    border: 1px solid #ffffff;
    border-radius: 3px; /* Скругленные углы */
}
/* Кастомная галочка при выборе */
.woocommerce-checkout .woocommerce-form__input-checkbox:checked + .woocommerce-terms-and-conditions-checkbox-text::before {
    background-color: #FFEB3B; /* Цвет фона при выборе */
    border-color: #000000;
}
.woocommerce-checkout .woocommerce-form__input-checkbox:checked + .woocommerce-terms-and-conditions-checkbox-text::after {
    content: '\2713'; /* Символ галочки (✓) */
    position: absolute;
    left: 5px;
    top: 0;
    font-size: 16px;
    color: #000000; /* Цвет галочки */
}
/* Стили ссылок в тексте */
.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text a {
    color: #9c9c9c;
    text-decoration: underline;
}
.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text a:hover {
    color: #626262;
}

/* Стили для формы промокода */
.gemini-coupon-form {
    background-color: var(--bg-light-dark) !important;
    padding: 20px !important;
    border-radius: var(--radius) !important;
    margin: 1em 0 !important;
    border-top: 1px solid #5c5c5c42 !important;
    box-shadow: 0 4px 15px rgb(0 0 0) !important;
}
.gemini-coupon-form h4 {
    margin-top: 0 !important;
    margin-bottom: 0.5em !important;
    color: #FFEB3B !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 1.2em !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}
.gemini-coupon-form .input-text {
    width: 78% !important;
    padding: 10px !important;
    margin-bottom: 10px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius) !important;
    background-color: var(--bg-dark) !important;
    color: var(--text-light) !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 1em !important;
    border-top: 1px solid #5c5c5c42 !important;
    box-shadow: 0 4px 15px rgb(0 0 0) !important;
}
.gemini-coupon-form .apply-coupon,
.gemini-coupon-form .remove-coupon {
    background-color: #e52315; !important;
    color: #black !important;
    padding: 10px 20px !important;
    border-radius: var(--radius) !important;
    font-family: 'Roboto', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: none !important;
    cursor: pointer !important;
}
.gemini-coupon-form .apply-coupon:active,
.gemini-coupon-form .remove-coupon:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}
.gemini-coupon-form .coupon-error-notice {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}
.gemini-coupon-form .coupon-error-notice.active {
    margin-top: 10px !important;
    padding: 10px !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
    border: 1px solid #dc3545 !important;
    border-radius: var(--radius) !important;
    color: #dc3545 !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}
.gemini-coupon-form .applied-coupon {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}
.gemini-coupon-form .applied-coupon span {
    color: var(--text-light) !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 1em !important;
    font-weight: 400 !important;
}
/* Стили для Telegram-ссылки */
.gemini-coupon-form .telegram-promo {
    font-size: 0.9em !important;
    margin-bottom: 1em !important;
}
.gemini-coupon-form .telegram-promo a {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
}
.gemini-coupon-form .telegram-promo a span {
    color: rgb(255 255 255 / 70%) !important;
    font-weight: bold !important;
    transition: color 0.3s ease !important;
}
.gemini-coupon-form .telegram-promo a:hover span {
    color: #ffffff !important;
    text-decoration: underline !important;
}
.gemini-coupon-form .telegram-promo img.telegram-icon {
    width: 20px !important;
    height: 20px !important;
    vertical-align: middle !important;
    margin-right: 5px !important;
    transition: opacity 0.3s ease !important;
}
.gemini-coupon-form .telegram-promo a:hover img.telegram-icon {
    opacity: 0.8 !important;
}
/* Стили для зачёркнутой цены в итого */
.order-total .old-total {
    text-decoration: line-through !important;
    color: var(--text-muted) !important;
    margin-right: 10px !important;
    font-size: 0.9em !important;
}
.order-total .coupon-applied {
    color: var(--accent-gold) !important;
    font-size: 0.9em !important;
    margin-left: 10px !important;
    font-style: italic !important;
}
tr.cart-discount {
    display: none !important;
}
/* Медиа-запросы для планшетов (max-width: 1024px) - стили купона */
@media (max-width: 1024px) {
    .gemini-coupon-form {
        padding: 12px !important;
    }
    .gemini-coupon-form h4 {
        font-size: 1.1em !important;
    }
    .gemini-coupon-form .input-text {
        font-size: 0.9em !important;
        padding: 8px !important;
    }
    .gemini-coupon-form .apply-coupon {
        padding: 8px 15px !important;
        font-size: 0.9em !important;
    }
    .gemini-coupon-form .remove-coupon {
        padding: 5px 8px !important;
        font-size: 0.9em !important;
    }
    .gemini-coupon-form .telegram-promo {
        font-size: 0.85em !important;
        margin-bottom: 0.8em !important;
    }
    .gemini-coupon-form .telegram-promo img.telegram-icon {
        width: 18px !important;
        height: 18px !important;
    }
}
/* Медиа-запросы для мобильных (max-width: 768px) - стили купона */
@media (max-width: 768px) {
    .gemini-coupon-form {
        padding: 10px !important;
    }
    .gemini-coupon-form .input-text {
        font-size: 0.85em !important;
        padding: 7px !important;
    }
    .gemini-coupon-form .apply-coupon {
        padding: 7px 12px !important;
        font-size: 0.85em !important;
    }
    .gemini-coupon-form .remove-coupon {
        padding: 4px 7px !important;
        font-size: 0.85em !important;
    }
    .gemini-coupon-form .telegram-promo {
        font-size: 0.8em !important;
        margin-bottom: 0.7em !important;
    }
    .gemini-coupon-form .telegram-promo img.telegram-icon {
        width: 16px !important;
        height: 16px !important;
    }
}