.vp-menu-toggle {
    flex-direction: column;
}

.vp-logo-img {
    content: url("/wp-content/plugins/vespera-mobile-fix/assets/logo-footer.png");
    height: 82px;
    width: auto;
}

@media (max-width: 900px) {
    .vp-logo-img {
        height: 66px;
    }
}

@media (max-width: 600px) {
    .vp-logo-img {
        height: 52px;
    }
}

.vp-wordmark--footer {
    display: inline-flex;
    width: 210px;
    height: 164px;
    align-items: center;
    background: none !important;
    line-height: 0;
}

.vp-wordmark--footer::before {
    content: "";
    display: block;
    width: 210px;
    height: 164px;
    background-image: url("/wp-content/plugins/vespera-mobile-fix/assets/logo-footer.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.vp-wordmark--footer .vp-wordmark__symbol,
.vp-wordmark--footer .vp-wordmark__text {
    display: none !important;
}

.vp-footer-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.vp-footer-logo img {
    width: 210px;
    height: auto;
    filter: brightness(0) invert(1);
}

@media (max-width: 600px) {
    .vp-header__inner {
        justify-content: space-between;
        gap: var(--vp-sp-3);
        padding-top: var(--vp-sp-3);
        padding-bottom: var(--vp-sp-3);
    }

    .vp-header__brand {
        flex: 0 0 auto;
    }

    .vp-header__actions {
        flex: 0 0 auto;
        gap: var(--vp-sp-1);
    }

    .vp-icon-btn,
    .vp-cart-btn,
    .vp-menu-toggle {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .vp-icon-btn {
        padding: var(--vp-sp-2);
    }
}

.woocommerce-cart .vp-page__inner {
    max-width: 1100px;
}

.woocommerce-cart-form,
.cart_totals {
    background: var(--vp-color-bg);
    border: 1px solid var(--vp-color-line);
    border-radius: var(--vp-radius-lg);
    box-shadow: var(--vp-shadow-soft);
}

.woocommerce-cart-form {
    padding: var(--vp-sp-6);
    margin-bottom: var(--vp-sp-8);
}

.woocommerce-cart table.shop_table,
.cart_totals table.shop_table {
    width: 100%;
    border-collapse: collapse;
    color: var(--vp-color-ink);
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td,
.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
    border-bottom: 1px solid var(--vp-color-line);
    padding: var(--vp-sp-4);
    vertical-align: middle;
}

.woocommerce-cart table.shop_table th,
.cart_totals table.shop_table th {
    font-weight: 800;
    color: var(--vp-color-ink);
}

.woocommerce-cart table.shop_table .product-remove {
    width: 44px;
    text-align: center;
}

.woocommerce-cart table.shop_table .product-remove a {
    color: var(--vp-color-accent);
    font-size: 1.4rem;
    text-decoration: none;
}

.woocommerce-cart table.shop_table .product-name a {
    color: var(--vp-color-accent);
    font-weight: 800;
}

.woocommerce-cart table.shop_table .product-quantity {
    width: 120px;
}

.woocommerce-cart table.shop_table .quantity input[type="number"] {
    width: 72px;
    margin-right: 0;
    text-align: center;
}

.woocommerce-cart table.shop_table td.actions {
    padding: var(--vp-sp-5) 0 0;
    border-bottom: none;
}

.woocommerce-cart table.shop_table td.actions .coupon {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: var(--vp-sp-3);
    align-items: center;
}

.woocommerce-cart table.shop_table td.actions .coupon label {
    display: none;
}

.woocommerce-cart table.shop_table td.actions .coupon .input-text {
    min-height: 48px;
}

.woocommerce-cart table.shop_table td.actions .button,
.cart_totals .checkout-button {
    background: var(--vp-color-ink) !important;
    color: var(--vp-color-bg) !important;
    border: none !important;
    border-radius: var(--vp-radius) !important;
    padding: var(--vp-sp-3) var(--vp-sp-6) !important;
    font-size: var(--vp-fs-sm) !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    text-align: center;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart_totals {
    max-width: 420px;
    margin-left: auto;
    padding: var(--vp-sp-6);
}

.cart_totals h2 {
    margin: 0 0 var(--vp-sp-5);
    color: var(--vp-color-ink);
    font-size: var(--vp-fs-2xl);
}

.cart_totals .checkout-button {
    width: 100%;
    margin-top: var(--vp-sp-4);
}

@media (max-width: 700px) {
    .woocommerce-cart .vp-page {
        padding: var(--vp-sp-10) 0;
    }

    .woocommerce-cart .vp-page__inner {
        max-width: 100%;
    }

    .woocommerce-cart .vp-page__title {
        margin-bottom: var(--vp-sp-6);
        font-size: 2rem;
    }

    .woocommerce-cart-form,
    .cart_totals {
        padding: var(--vp-sp-4);
        border-radius: var(--vp-radius);
        overflow: hidden;
    }

    .woocommerce-cart table.shop_table thead {
        display: none;
    }

    .woocommerce-cart table.shop_table,
    .woocommerce-cart table.shop_table tbody,
    .woocommerce-cart table.shop_table tr,
    .woocommerce-cart table.shop_table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .woocommerce-cart table.shop_table tr.cart_item {
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--vp-sp-3);
        padding: var(--vp-sp-4);
        margin-bottom: var(--vp-sp-4);
        border: 1px solid var(--vp-color-line);
        border-radius: var(--vp-radius);
        background: var(--vp-color-bg);
    }

    .woocommerce-cart table.shop_table tr.cart_item td {
        border-bottom: none;
        padding: 0;
    }

    .woocommerce-cart table.shop_table tr.cart_item td.product-remove {
        position: absolute;
        top: var(--vp-sp-3);
        right: var(--vp-sp-3);
        width: auto;
        z-index: 2;
    }

    .woocommerce-cart table.shop_table tr.cart_item td.product-thumbnail {
        display: block;
        padding-right: var(--vp-sp-8);
    }

    .woocommerce-cart table.shop_table tr.cart_item td.product-thumbnail::before {
        display: none;
    }

    .woocommerce-cart table.shop_table tr.cart_item td.product-thumbnail a {
        display: inline-flex;
        width: 104px;
        height: 104px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--vp-color-line);
        border-radius: var(--vp-radius);
        background: var(--vp-color-bg-soft);
        overflow: hidden;
    }

    .woocommerce-cart table.shop_table tr.cart_item td.product-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: var(--vp-sp-2);
    }

    .woocommerce-cart table.shop_table tr.cart_item td.product-name {
        padding-right: var(--vp-sp-8);
        font-size: var(--vp-fs-lg);
        line-height: 1.35;
    }

    .woocommerce-cart table.shop_table tr.cart_item td.product-price,
    .woocommerce-cart table.shop_table tr.cart_item td.product-quantity,
    .woocommerce-cart table.shop_table tr.cart_item td.product-subtotal {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--vp-sp-4);
        padding-top: var(--vp-sp-3);
        border-top: 1px solid var(--vp-color-line);
        font-size: var(--vp-fs-base);
    }

    .woocommerce-cart table.shop_table tr.cart_item td.product-price::before,
    .woocommerce-cart table.shop_table tr.cart_item td.product-quantity::before,
    .woocommerce-cart table.shop_table tr.cart_item td.product-subtotal::before {
        content: attr(data-title);
        font-weight: 800;
        color: var(--vp-color-ink);
    }

    .woocommerce-cart table.shop_table .quantity input[type="number"] {
        width: 64px;
        min-height: 44px;
    }

    .woocommerce-cart table.shop_table td.actions {
        padding-top: 0;
    }

    .woocommerce-cart table.shop_table td.actions .coupon {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--vp-sp-3);
    }

    .woocommerce-cart table.shop_table td.actions .coupon .input-text,
    .woocommerce-cart table.shop_table td.actions .button {
        width: 100% !important;
    }

    .woocommerce-cart table.shop_table td.actions > .button {
        width: 100% !important;
        margin-top: var(--vp-sp-3);
    }

    .cart_totals {
        max-width: none;
        margin-left: 0;
    }

    .cart_totals table.shop_table th,
    .cart_totals table.shop_table td {
        padding: var(--vp-sp-3);
    }

    .cart_totals .checkout-button {
        letter-spacing: 0.05em !important;
        white-space: normal;
    }
}
