/* ===============================
   CART PAGE - MODERN STYLE
   White + Neon Red
================================= */

/* Main cart page */
.woocommerce-cart {
    background: #ffffff;
    font-family: 'Inter', sans-serif;
}

/* Container */
.woocommerce-cart .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

/* Page title */
.woocommerce-cart .page-title,
.woocommerce-cart h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    position: relative;
    padding-bottom: 15px;
}

.woocommerce-cart .page-title::after,
.woocommerce-cart h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #ff1a1a;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 26, 26, 0.3);
}

/* Custom cart wrapper - two columns */
.custom-cart-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* ===== LEFT COLUMN - CART ITEMS ===== */
.cart-left {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

/* Cart table */
.woocommerce-cart table.shop_table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    margin: 0;
}

.woocommerce-cart table.shop_table thead {
    background: #fafafa;
    border-bottom: 2px solid rgba(255, 26, 26, 0.1);
}

.woocommerce-cart table.shop_table thead th {
    padding: 20px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    text-align: left;
}

.woocommerce-cart table.shop_table thead th:first-child {
    padding-left: 30px;
}

.woocommerce-cart table.shop_table thead th:last-child {
    padding-right: 30px;
}

.woocommerce-cart table.shop_table td {
    padding: 25px 20px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.woocommerce-cart table.shop_table td:first-child {
    padding-left: 30px;
}

.woocommerce-cart table.shop_table td:last-child {
    padding-right: 30px;
}

.woocommerce-cart table.shop_table tr:last-child td {
    border-bottom: none;
}

/* Product thumbnail */
.woocommerce-cart table.shop_table td.product-thumbnail {
    width: 100px;
}

.woocommerce-cart table.shop_table td.product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.woocommerce-cart table.shop_table td.product-thumbnail img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 26, 26, 0.15);
}

/* Product name */
.woocommerce-cart table.shop_table td.product-name {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.woocommerce-cart table.shop_table td.product-name a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce-cart table.shop_table td.product-name a:hover {
    color: #ff1a1a;
}

/* Product meta (variation) */
.woocommerce-cart table.shop_table .product-name .variation {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #666;
    list-style: none;
    padding: 0;
}

.woocommerce-cart table.shop_table .product-name .variation dt {
    float: left;
    margin-right: 5px;
    font-weight: 500;
    color: #888;
}

.woocommerce-cart table.shop_table .product-name .variation dd {
    margin: 0 0 3px 0;
    color: #555;
}

/* Vendor name */
.woocommerce-cart table.shop_table .product-name .vendor {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.woocommerce-cart table.shop_table .product-name .vendor strong {
    color: #ff1a1a;
    font-weight: 600;
}

/* Product price */
.woocommerce-cart table.shop_table td.product-price {
    font-weight: 500;
    color: #666;
    font-size: 15px;
}

/* VAT notice */
.woocommerce-cart table.shop_table .vat-notice {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 3px;
    font-weight: 400;
}

/* Quantity selector */
.woocommerce-cart .quantity {
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 40px;
    padding: 3px;
    background: #fafafa;
    width: fit-content;
}

.woocommerce-cart .quantity input[type="number"] {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 500;
    font-size: 15px;
    color: #1a1a1a;
    -moz-appearance: textfield;
}

.woocommerce-cart .quantity input[type="number"]::-webkit-outer-spin-button,
.woocommerce-cart .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce-cart .quantity .qty-btn {
    display: none; /* Hide default buttons */
}

/* Custom quantity buttons would need JS, but we keep default style */

/* Product subtotal */
.woocommerce-cart table.shop_table td.product-subtotal {
    font-weight: 700;
    color: #ff1a1a;
    font-size: 18px;
}

/* Remove button */
.woocommerce-cart table.shop_table a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #999;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.woocommerce-cart table.shop_table a.remove:hover {
    background: #ff1a1a;
    color: #ffffff;
    border-color: #ff1a1a;
    transform: rotate(90deg);
    box-shadow: 0 5px 15px rgba(255, 26, 26, 0.2);
}

/* Actions row */
.woocommerce-cart .actions {
    padding: 25px 30px !important;
    background: #fafafa;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

/* Coupon */
.woocommerce-cart .coupon {
    display: flex;
    align-items: center;
    gap: 10px;
    float: left;
}

.woocommerce-cart .coupon input[type="text"] {
    width: 250px;
    padding: 12px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 40px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.woocommerce-cart .coupon input[type="text"]:focus {
    outline: none;
    border-color: #ff1a1a;
    box-shadow: 0 0 0 3px rgba(255, 26, 26, 0.1);
}

.woocommerce-cart .coupon button {
    padding: 12px 28px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #1a1a1a;
}

.woocommerce-cart .coupon button:hover {
    background: #ff1a1a;
    border-color: #ff1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 26, 26, 0.2);
}

/* Update cart button */
.woocommerce-cart button[name="update_cart"] {
    float: right;
    padding: 12px 30px;
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.woocommerce-cart button[name="update_cart"]:hover {
    background: #ff1a1a;
    color: #ffffff;
    border-color: #ff1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 26, 26, 0.2);
}

/* ===== RIGHT COLUMN - CART TOTALS ===== */
.cart-right {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    padding: 30px;
    position: sticky;
    top: 100px;
}

/* Cart totals title */
.woocommerce-cart .cart_totals h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 25px 0;
    position: relative;
    padding-bottom: 12px;
}

.woocommerce-cart .cart_totals h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #ff1a1a;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(255, 26, 26, 0.3);
}

/* Cart totals table */
.woocommerce-cart .cart_totals table.shop_table {
    width: 100%;
    border: none;
    background: transparent;
    box-shadow: none;
    margin-bottom: 25px;
}

.woocommerce-cart .cart_totals table.shop_table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.woocommerce-cart .cart_totals table.shop_table tr:last-child {
    border-bottom: none;
}

.woocommerce-cart .cart_totals table.shop_table th {
    padding: 15px 0;
    font-weight: 500;
    color: #666;
    text-align: left;
    font-size: 15px;
}

.woocommerce-cart .cart_totals table.shop_table td {
    padding: 15px 0;
    text-align: right;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
}

/* Shipping row */
.woocommerce-cart .cart_totals .shipping th {
    font-weight: 600;
    color: #1a1a1a;
}

.woocommerce-cart .cart_totals .shipping td {
    color: #2e7d32;
    font-weight: 600;
}

/* Shipping details */
.woocommerce-cart .cart_totals .shipping td small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    font-weight: 400;
}

.woocommerce-cart .cart_totals .shipping td .shipping-location {
    display: block;
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
    margin-top: 5px;
}

/* Free shipping badge */
.woocommerce-cart .cart_totals .shipping .free-shipping {
    display: inline-block;
    background: #e8f5e8;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Map link */
.woocommerce-cart .cart_totals .shipping .map-link {
    display: inline-block;
    margin-left: 10px;
    color: #ff1a1a;
    font-size: 12px;
    text-decoration: none;
    border-bottom: 1px dashed #ff1a1a;
}

.woocommerce-cart .cart_totals .shipping .map-link:hover {
    color: #e60000;
}

/* Order total */
.woocommerce-cart .cart_totals .order-total th {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    padding-top: 20px;
}

.woocommerce-cart .cart_totals .order-total td {
    font-size: 24px;
    font-weight: 700;
    color: #ff1a1a;
    padding-top: 20px;
    text-shadow: 0 0 10px rgba(255, 26, 26, 0.2);
}

/* Hide unnecessary rows */
.woocommerce-cart .cart_totals table.shop_table tr:not(.cart-subtotal):not(.shipping):not(.order-total) {
    display: none;
}

/* Checkout button */
.woocommerce-cart .wc-proceed-to-checkout {
    margin-top: 25px;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    padding: 18px 0;
    background: #ff1a1a;
    color: #ffffff;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 26, 26, 0.3);
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
    background: #e60000;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 26, 26, 0.4);
}

/* Empty cart */
.woocommerce-cart .cart-empty {
    text-align: center;
    padding: 60px 30px;
    background: #fafafa;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
    font-size: 18px;
    color: #666;
}

.woocommerce-cart .cart-empty::before {
    content: '🛒';
    display: block;
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.woocommerce-cart .return-to-shop {
    text-align: center;
}

.woocommerce-cart .return-to-shop .button {
    display: inline-block;
    padding: 16px 40px;
    background: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    border: 1px solid #1a1a1a;
}

.woocommerce-cart .return-to-shop .button:hover {
    background: #ff1a1a;
    border-color: #ff1a1a;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 26, 26, 0.25);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .custom-cart-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cart-right {
        position: static;
    }
    
    .woocommerce-cart .coupon {
        float: none;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .woocommerce-cart .coupon input[type="text"] {
        flex: 1;
    }
    
    .woocommerce-cart button[name="update_cart"] {
        float: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .woocommerce-cart .container {
        padding: 20px 15px;
    }
    
    .woocommerce-cart h1 {
        font-size: 28px;
    }
    
    /* Mobile table */
    .woocommerce-cart table.shop_table thead {
        display: none;
    }
    
    .woocommerce-cart table.shop_table tbody tr {
        display: block;
        padding: 20px;
        border: 1px solid rgba(0, 0, 0, 0.03);
        border-radius: 20px;
        margin-bottom: 20px;
        background: #ffffff;
    }
    
    .woocommerce-cart table.shop_table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0 !important;
        border: none;
    }
    
    .woocommerce-cart table.shop_table td::before {
        content: attr(data-title);
        font-weight: 600;
        color: #666;
        font-size: 13px;
    }
    
    .woocommerce-cart table.shop_table td.product-thumbnail {
        justify-content: center;
    }
    
    .woocommerce-cart table.shop_table td.product-thumbnail::before {
        display: none;
    }
    
    .woocommerce-cart .actions {
        flex-direction: column;
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    .woocommerce-cart .cart_totals .order-total td {
        font-size: 20px;
    }
    
    .woocommerce-cart .wc-proceed-to-checkout .checkout-button {
        font-size: 14px;
        padding: 15px 0;
    }
    
    .woocommerce-cart .coupon {
        flex-direction: column;
        gap: 10px;
    }
    
    .woocommerce-cart .coupon input[type="text"] {
        width: 100%;
    }
    
    .woocommerce-cart .coupon button {
        width: 100%;
    }
}

/* Animations */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 10px 25px rgba(255, 26, 26, 0.3);
    }
    50% {
        box-shadow: 0 15px 35px rgba(255, 26, 26, 0.5);
    }
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    animation: glowPulse 2s infinite ease-in-out;
}

/* Loading state */
.woocommerce-cart .blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.8) !important;
}

.woocommerce-cart .blockUI.blockOverlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255, 26, 26, 0.1);
    border-top-color: #ff1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



.tmjs-modal-content {
    height: 70vh !important;
    width: 83vw !important;
}

.omnivalt_terminal_container_map h2 {
    text-align: left !important;
}

.omnivalt-logo {
    position: relative !important;
    left: 117px !important; 
    bottom: 20px !important;
}

.woocommerce-shipping-destination{
display:none !important;
}


.woocommerce-shipping-methods{
list-style: none !important;
padding:0 !important;
}


/* Omniva block smaller and right aligned */

.omnivalt_terminal_container{
max-width:200px;
margin-left:auto;
}

.tmjs-container{
max-width:200px;
margin-left:auto;
}

.tmjs-selected-terminal{
max-width:200px;
margin-left:auto;
}

.tmjs-open-modal-btn{
width:100%;
padding:6px 8px;
font-size:14px;
}

.omnivalt_terminal_container_map{
max-width:200px;
margin-left:auto;
}


@media (max-width:768px){

.woocommerce-shipping-methods img.omnivalt-logo{
max-width:100px;
height:auto;
margin-bottom:4px;
}

}



/* ===== CART TOTALS / OMNIVA SHIPPING FIX ===== */

.woocommerce-cart .cart_totals td[data-title="Piegāde:"],
.woocommerce-cart .cart_totals td[data-title="Piegāde"]{
    text-align: left !important;
    vertical-align: top !important;
}

.woocommerce-cart .cart_totals ul#shipping_method{
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.woocommerce-cart .cart_totals ul#shipping_method li{
    display: block;
    margin: 0 !important;
    padding: 10px 0 !important;
    line-height: 1.6;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.woocommerce-cart .cart_totals ul#shipping_method li:last-child{
    border-bottom: none;
    padding-bottom: 0 !important;
}

.woocommerce-cart .cart_totals ul#shipping_method li input[type="radio"]{
    margin-right: 10px;
    vertical-align: top;
    transform: translateY(2px);
}

.woocommerce-cart .cart_totals ul#shipping_method li label{
    display: inline-block;
    width: calc(100% - 26px);
    line-height: 1.7;
    white-space: normal;
}

/* Omniva / terminal plugin containers */
.woocommerce-cart .cart_totals .omnivalt_terminal_container,
.woocommerce-cart .cart_totals .tmjs-container,
.woocommerce-cart .cart_totals .tmjs-selected-terminal,
.woocommerce-cart .cart_totals .omnivalt_terminal_container_map{
    max-width: 100% !important;
    width: 100% !important;
    margin: 8px 0 0 0 !important;
}

/* button / selected terminal */
.woocommerce-cart .cart_totals .tmjs-open-modal-btn{
    width: 100% !important;
    margin-top: 10px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    border-radius: 10px;
}

.woocommerce-cart .cart_totals .tmjs-selected-terminal{
    line-height: 1.6;
    font-size: 14px;
}