/**
 * Zorketing Cart Styles
 */

.zk-cart-page * {
    font-family: 'Inter', -apple-system, sans-serif !important;
    box-sizing: border-box;
}

.zk-cart-page {
    background: #fff;
    padding: 40px 24px;
    min-height: 80vh;
}

/* Layout */
.zk-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Title */
.zk-page-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 30px 0 !important;
}

/* Table */
.zk-cart-table {
    width: 100%;
    border-collapse: collapse;
}

.zk-cart-table th {
    text-align: left;
    padding: 12px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
}

.zk-cart-table th.zk-col-remove {
    text-align: center;
}

.zk-cart-item {
    transition: background-color 0.3s ease;
}

.zk-cart-item:hover {
    background-color: #fbfcff;
}

.zk-cart-item td {
    padding: 20px 8px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

/* Product Cell */
.zk-product-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.zk-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #6225C5;
    flex-shrink: 0;
}

.zk-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zk-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e !important;
    text-decoration: none;
}

.zk-name:hover {
    color: #6225C5 !important;
}

/* Price & Total */
.zk-col-price,
.zk-col-total {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

/* Quantity - Premium Purple Style */
.zk-qty-wrapper {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #eef2ff;
    border-radius: 10px;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(98, 37, 197, 0.03);
    transition: all 0.3s ease;
}

.zk-qty-wrapper:focus-within {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.zk-minus,
.zk-plus {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: #6366f1;
    background: #f8faff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.zk-minus:hover,
.zk-plus:hover {
    background: #7c3aed;
    color: #fff;
}

.zk-qty {
    width: 48px;
    height: 32px;
    padding: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #1e1b4b;
    background: transparent;
    border: none;
    outline: none;
    margin-bottom: 0 !important;
    -moz-appearance: textfield;
    appearance: none;
}

.zk-qty::-webkit-outer-spin-button,
.zk-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Updating State */
.zk-updating {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.zk-updating::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #7c3aed;
    border-top-color: transparent;
    border-radius: 50%;
    animation: zk-spin 0.6s linear infinite;
}

@keyframes zk-spin {
    to {
        transform: rotate(360deg);
    }
}

.zk-qty::-webkit-outer-spin-button,
.zk-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* REMOVE BUTTON - Very visible */
.zk-col-remove {
    text-align: center;
}

.zk-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ef4444 !important;
    background: #fef2f2;
    border-radius: 10px;
    transition: all 0.2s;
}

.zk-remove-btn:hover {
    background: #ef4444;
    color: #fff !important;
}

.zk-remove-btn svg {
    width: 20px;
    height: 20px;
}

/* Actions */
.zk-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
}

.zk-continue {
    font-size: 14px;
    color: #6b7280 !important;
    text-decoration: none;
}

.zk-continue:hover {
    color: #6225C5 !important;
}

/* Coupon */
.zk-coupon-section {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.zk-coupon-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px !important;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
    margin-bottom: 0 !important;
}

.zk-coupon-btn {
    padding: 12px 20px;
    font-size: 14px !important;
    font-weight: 600;
    color: #fff !important;
    background: #6225C5 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
}

/* Sidebar */
.zk-sidebar {
    position: sticky;
    top: 30px;
}

.zk-summary {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.zk-summary h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 20px 0 !important;
}

.zk-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.zk-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6b7280;
}

.zk-row span:last-child {
    font-weight: 500;
    color: #1a1a2e;
}

.zk-discount span:last-child {
    color: #10b981;
}

.zk-total {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
}

.zk-total span:first-child {
    font-size: 15px;
    color: #6b7280;
}

.zk-total span:last-child {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
}

.zk-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: #7c3aed !important;
    text-decoration: none !important;
    border-radius: 50px !important;
    transition: all 0.3s ease;
}

.zk-checkout-btn:hover {
    background: #6d28d9 !important;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
    .zk-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .zk-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 600px) {
    .zk-cart-table thead {
        display: none;
    }

    .zk-cart-item {
        display: block;
        padding: 20px;
        background: #f9fafb;
        border-radius: 12px;
        margin-bottom: 15px;
    }

    .zk-cart-item td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border: none;
    }

    .zk-cart-item td::before {
        content: attr(data-label);
        font-weight: 500;
        color: #9ca3af;
    }

    .zk-col-product {
        flex-direction: column;
        align-items: flex-start;
    }

    .zk-col-remove {
        justify-content: flex-end;
    }

    .zk-actions {
        flex-direction: column;
        gap: 15px;
    }
}

/* Theme override */
.zk-cart-page .entry-content,
.zk-cart-page .site-main,
.zk-cart-page main {
    max-width: 100% !important;
    padding: 0 !important;
}

/* AJAX Loading States */
.zk-removing {
    opacity: 0.5;
    pointer-events: none;
}

.zk-updating {
    opacity: 0.7;
}

.zk-update.zk-loading {
    pointer-events: none;
    opacity: 0.7;
}

.zk-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: zk-spin 0.6s linear infinite;
}

@keyframes zk-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Cart item slide out animation */
.zk-cart-item.zk-slide-out {
    animation: zk-slide-out 0.3s ease forwards;
}

@keyframes zk-slide-out {
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* CHECKOUT PAYMENT STYLES */
.zk-payment-details {
    margin-top: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    animation: fadeIn 0.3s ease;
}

.zk-payment-details p {
    margin: 0 0 10px 0;
    font-size: 14px !important;
    color: #475569 !important;
    line-height: 1.6 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bank Details Table Override */
.woocommerce-bacs-bank-details {
    margin-top: 15px;
}

.wc-bacs-bank-details-heading {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 0 12px 0 !important;
    color: #1e293b !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

ul.wc-bacs-bank-details {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 15px 0 !important;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

ul.wc-bacs-bank-details li {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

ul.wc-bacs-bank-details li:last-child {
    border-bottom: none;
}

ul.wc-bacs-bank-details li strong {
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
}

/* Specific styling for account name */
ul.wc-bacs-bank-details li.bank_name {
    font-weight: 600;
    color: #6225C5;
    background: #f8fafc;
}