:root {
    --glass: rgba(255, 255, 255, 0.9);
    --accent: var(--primary-color);
    --text: #1e293b;
    --sub-text: #64748b;
    --sale: #f43f5e;
}

.ncvn-checkout * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ncvn-checkout {
    /* background: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 100%);
    padding: 40px 20px; */
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* @media (max-width: 768px) {
    .ncvn-checkout {
        padding: 10px 10px 100px 10px;
    }
} */

.ncvn-checkout .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.ncvn-checkout .back-to-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sub-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: 0.3s;
}

.ncvn-checkout .back-to-shop:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

.ncvn-checkout .checkout-wrapper {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.ncvn-checkout .glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.ncvn-checkout .section-title {
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ncvn-checkout .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.ncvn-checkout .col-full {
    grid-column: span 2;
}

.ncvn-checkout .input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ncvn-checkout .input-group label {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    text-transform: none;
}

.ncvn-checkout .input-group input,
.ncvn-checkout .input-group select,
.ncvn-checkout .input-group textarea {
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    outline: none;
    transition: 0.3s;
    background: #fff;
}

.ncvn-checkout .input-group input:focus,
.ncvn-checkout .input-group select:focus,
.ncvn-checkout .input-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Custom select (input + dropdown) */
.ncvn-checkout .ncvn-select {
    position: relative;
}

.ncvn-checkout .ncvn-select input[readonly] {
    cursor: pointer;
}

.ncvn-checkout .ncvn-select__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    z-index: 999;
    overflow: hidden;
    display: none;
}

.ncvn-checkout .ncvn-select.open .ncvn-select__dropdown {
    display: block;
}

.ncvn-checkout .ncvn-select__search {
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.ncvn-checkout .ncvn-select__search input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    outline: none;
}

.ncvn-checkout .ncvn-select__options {
    max-height: 260px;
    overflow: auto;
}

.ncvn-checkout .ncvn-select__option {
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ncvn-checkout .ncvn-select__option:hover {
    background: #f8fafc;
}

.ncvn-checkout .ncvn-select__option.is-selected {
    background: #f5f3ff;
    color: var(--accent);
}

.ncvn-checkout .ncvn-select__option .ncvn-check {
    color: var(--accent);
    opacity: 0;
}

.ncvn-checkout .ncvn-select__option.is-selected .ncvn-check {
    opacity: 1;
}

.ncvn-checkout .payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.ncvn-checkout .payment-card {
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    background: #fff;
}

.ncvn-checkout .payment-card.active {
    border-color: var(--accent);
    background: #f5f3ff;
    color: var(--accent);
}

.ncvn-checkout .payment-card i {
    font-size: 1.4rem;
    margin-bottom: 8px;
    display: block;
}

.ncvn-checkout .payment-card span {
    font-size: 0.75rem;
    font-weight: 800;
}

.ncvn-checkout .product-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #f1f5f9;
    position: relative;
}

.ncvn-checkout .product-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 15px;
    border: 1px solid #f1f5f9;
}

.ncvn-checkout .product-details {
    flex: 1;
    padding: 0 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ncvn-checkout .product-details h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-transform: none;
}

.ncvn-checkout .product-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.ncvn-checkout .qty-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 12px;
    padding: 5px;
    gap: 10px;
}

.ncvn-checkout .qty-box button {
    width: 28px;
    height: 28px;
    border: none;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.ncvn-checkout .qty-box span {
    font-weight: 800;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.ncvn-checkout .price-group {
    text-align: right;
}

.ncvn-checkout .old-price {
    font-size: 0.8rem;
    color: var(--sub-text);
    text-decoration: line-through;
    display: block;
}

.ncvn-checkout .price-tag {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--sale);
    display: block;
}

.ncvn-checkout .remove-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: 0.2s;
}

.ncvn-checkout .promo-box {
    margin-top: 2rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
}

.ncvn-checkout .promo-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    background: #ffffff;
    border-radius: 999px;
    padding: 4px;
    border: 1px solid #e2e8f0;
}

.ncvn-checkout .promo-input input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    outline: none;
    font-size: 0.9rem;
}

.ncvn-checkout .promo-input button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

.ncvn-checkout .coupon-active {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eef2ff;
    border-radius: 999px;
    padding: 6px 10px;
    width: fit-content;
}

.ncvn-checkout .coupon-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4f46e5;
    font-weight: 800;
}

.ncvn-checkout .coupon-code {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text);
}

.ncvn-checkout .coupon-remove-btn {
    border: none;
    background: #eef2ff;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.ncvn-checkout .coupon-remove-btn:hover {
    background: #e0e7ff;
    color: #1e293b;
}

.ncvn-checkout .empty-cart-card {
    max-width: 520px;
    margin: 40px auto 0;
    text-align: center;
}

.ncvn-checkout .empty-cart-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--accent);
    font-size: 1.6rem;
}

.ncvn-checkout .empty-cart-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.ncvn-checkout .empty-cart-text {
    font-size: 0.95rem;
    color: var(--sub-text);
    margin-bottom: 20px;
}

.ncvn-checkout .empty-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ncvn-checkout .empty-cart-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.4);
}

.ncvn-checkout .summary-details {
    margin-top: 1.5rem;
}

.ncvn-checkout .summary-row {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--sub-text);
}

.ncvn-checkout .total-row {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--text);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text);
}

.ncvn-checkout .btn-pay {
    width: 100%;
    background: var(--accent);
    color: white;
    padding: 1.2rem;
    border-radius: 20px;
    border: none;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 2rem;
}

.ncvn-checkout .mobile-sticky-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
}

.ncvn-checkout .mobile-sticky-footer b {
    color: var(--accent);
    font-size: 1.3rem;
}

.ncvn-checkout .btn-mobile-pay {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
}

@media (min-width: 1025px) {
    .ncvn-checkout .info-section,
    .ncvn-checkout .summary-section {
        position: sticky;
        top: 20px;
    }
}

@media (max-width: 1024px) {
    .ncvn-checkout .checkout-wrapper {
        gap: 1.5rem;
    }

    .ncvn-checkout .glass-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .ncvn-checkout .checkout-wrapper {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .ncvn-checkout .info-section {
        order: 2;
        width: 100%;
    }

    .ncvn-checkout .summary-section {
        order: 1;
        width: 100%;
    }

    .ncvn-checkout .glass-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .ncvn-checkout .form-grid {
        grid-template-columns: 1fr;
    }

    .ncvn-checkout .col-full {
        grid-column: span 1;
    }

    .ncvn-checkout .payment-methods {
        grid-template-columns: 1fr;
    }

    .ncvn-checkout .btn-pay {
        display: none;
    }

    .ncvn-checkout .mobile-sticky-footer {
        display: flex;
    }

    .ncvn-checkout .product-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-top: 5px;
    }

    .ncvn-checkout .price-group {
        order: -1;
        text-align: left;
    }

    .ncvn-checkout .old-price,
    .ncvn-checkout .price-tag {
        display: inline-block;
        margin-right: 10px;
    }
}

