﻿.cart-content {
    margin-top: 60px;
}

/* Card styles */
.card {
    border-color: var(--gray-7);
    border-radius: 8px;
}

    .card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
    }

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    /* margin-bottom: 32px; */
}

.card .price-section {
    margin-bottom: 32px;
}

.card .price-disable {
    font-size: 14px;
    margin-bottom: 4px;
    text-decoration: line-through;
    color: var(--gray-8);
}

.card .price {
    font-size: 20px;
    color: var(--secondary);
}

.card .prop-list {
    margin-bottom: 24px;
}

    .card .prop-list div {
        display: inline-block;
    }

.card .item-count {
    border: 1px solid var(--gray-7);
    border-radius: 8px;
    padding: 16px;
}

    .card .item-count svg {
        stroke: var(--secondary);
        margin-right: 0 !important;
    }

.card .props {
    padding-top: 16px;
}

.card .product-count-input {
    border: none;
    box-shadow: none;
    text-align: center;
    width: 50px;
    font-size: 16px;
}

input:disabled {
    cursor: default;
    background-color: unset;
    color: var(--secondary);
}

/* Total box */
.total-box .card {
    border-radius: 16px;
    margin-top: 12px;
    background-color: transparent;
}

.total-box span {
    font-size: 16px;
    color: #2C3E50;
}

.total-box .card-body {
    padding: 16px;
}

.total-box h6 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--secondary);
}

.total-box .card-body input, .total-box .card-body .form-select {
    border-radius: 8px !important;
    border: 1px solid var(--gray-7);
    height: 48px;
}

.total-box .card-body label {
    color: var(--gray-8);
    margin-bottom: 8px;
}

.total-box .btn-outline-danger {
    border-radius: 6px !important;
    border: 1px solid var(--tertiary);
    width: 80px !important;
    left: 0;
    height: 48px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px !important;
}

.total-box hr {
    margin: 24px 0;
    color: var(--gray-7);
    height: 2px;
}

.total-box .sum-price {
    color: var(--secondary);
    font-size: 18px;
    font-weight: 700;
}

.total-box .btn-danger {
    border-radius: 8px !important;
    padding: 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.total-box button {
    width: 100%;
}

/* Cart detail */
.cart-detail-content {
    padding: 20px 60px;
    border: 1px solid var(--gray-7);
    background-color: #ECF0F1;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

.cart-nav {
    margin-top: 32px;
    margin-bottom: 56px;
    display: flex;
    justify-content: space-between;
    text-align: center;
}

    .cart-nav span {
        color: var(--gray-6);
    }

.cart-nav-icon {
    width: 48px;
    display: inline-block;
    background: var(--gray-6);
    border-radius: 50px;
    padding: 10px;
}

.cart-nav-item span {
    font-size: 16px;
}

.cart-nav-item.active .cart-nav-icon {
    background-color: var(--secondary);
}

.cart-nav-item.active span {
    color: var(--secondary);
}

/* Dashed line with dots */
.dashed-with-dots {
    width: 35%;
    margin: 40px auto;
    border-top: 2px dashed var(--gray-6);
    position: relative;
    box-sizing: content-box;
}

    .dashed-with-dots::before,
    .dashed-with-dots::after {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--gray-6);
    }

    .dashed-with-dots::before {
        left: -6px;
    }

    .dashed-with-dots::after {
        right: -6px;
    }

    .dashed-with-dots.small {
        width: 160px;
        border-top-width: 1px;
    }

.shipping-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.new-address-title {
    color: #2C3E50;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 24px;
}

.shipping-box-input {
    position: relative;
    border-radius: 8px;
    border: 1px solid #E5E5E5;
    height: 48px;
    padding: 3px 12px;
    margin-bottom: 26px;
}

    .shipping-box-input:has(input:focus), .shipping-box-input:has(select:focus) {
        border: 1px solid #2C3E50;
    }

        .shipping-box-input:has(input:focus) label, .shipping-box-input:has(select:focus) label {
            color: #2C3E50;
        }

    .shipping-box-input input, .shipping-box-input select {
        border: none !important;
        outline: none !important;
        width: 100%;
        height: 100% !important;
        background-color: transparent;
        box-shadow: none !important;
    }

    .shipping-box-input label {
        position: absolute;
        top: -10px;
        right: 10px;
        background-color: #FCFCFC;
        padding: 0 5px;
        margin: 0;
    }

    .shipping-box-input div {
        display: contents;
    }

.new-address-box {
    margin-bottom: 16px;
}

.old-address-box {
    border: 1px solid #CBCBCB;
    border-radius: 16px;
    padding: 12px;
    padding-bottom: 24px;
}

.old-address-box-address {
    color: #000000;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    padding: 0;
    display:flex;
    align-items:center;
    gap:2px;
}

    .old-address-box-edit {
        font-size: 16px;
        font-weight: 500;
        color: #C99700;
        margin: 0;
        padding: 0;
    }

.old-address-box-item {
    font-size: 16px;
    font-weight: 600;
    color: #606060;
    margin: 0;
    padding: 0;
}

.old-address-box-item-value {
    font-size: 16px;
    font-weight: 400;
    color: #606060;
    margin: 0;
    padding: 0;
}

#shipping-methods {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.shipping-method-div {
    padding: 14px 24px;
    background-color: #ffffff;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
}

    .shipping-method-div input {
        display: contents;
    }

    .shipping-method-div:has(input:checked) {
        border: 1px solid #C99700;
    }

.shipping-method-thumb {
    width: 20px;
    height: 20px;
    border: 1px solid #676F71;
    background-color: #ffffff;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .shipping-method-thumb:has(input:checked) {
        border: 1px solid #C99700;
    }

    .shipping-method-thumb div {
        width: 12px;
        height: 12px;
        border-radius: 100%;
        background-color: #ffffff;
    }

    .shipping-method-thumb:has(input:checked) div {
        background-color: #C99700;
    }

.shipping-method-title {
    color: #2C3E50;
    font-weight: 500;
    font-size: 16px;
    margin-left: 8px;
}

.shipping-method-des {
    color: #676F71;
    font-weight: 400;
    font-size: 16px;
}

.shipping-method-price {
    font-size: 16px;
    color: #676F71;
    font-weight: 400;
}

.shipping-method-div:has(input:checked) .shipping-method-price {
    color: #C99700;
}

#ShopCartSummary .card-body {
    padding: 26px 23px;
}

#ShopCartSummary .card-summary-text {
    color: #2C3E50;
    font-size: 18px;
}

.add-new-address-btn {
    border: none;
    outline: none;
    background-color: transparent;
    color: #C99700;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content !important;
}

.checkout .card-body {
    padding: 16px;
}

.payment-bank-item {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid transparent;
}

    .payment-bank-item:has(input:checked) {
        border: 1px solid #C99700;
    }

    .payment-bank-item input {
        display: contents;
    }

    .payment-bank-item .bank-img {
        width: 40px;
        height: 40px;
    }

    .payment-bank-item label {
        display:flex;
        align-items:center;
        gap:16px;
    }
    .payment-bank-item .thumb {
        width: 20px;
        height: 20px;
        border-radius: 100%;
        border: 2px solid #7D8891;
        display:flex;
        align-items:center;
        justify-content:center;
        
    }

        .payment-bank-item .thumb div {
            width: 12px;
            height: 12px;
            background-color: transparent;
            border-radius: 100%;
        }


    .payment-bank-item:has(input:checked) .thumb {
        border: 1px solid #C99700;
    }
        .payment-bank-item:has(input:checked) .thumb div {
            background-color: #C99700;
        }


        .bank-img img {
            border-radius: 8px;
        }

.bank-name {
    font-size: 16px;
    color: #2C3E50 !important;
    font-weight: bold;
    margin-bottom: 4px;
}
.bank-des {
    font-size: 14px !important;
    color: #7D8891 !important;
}

#address-list-container{
    display:flex;
    flex-direction:column;
    gap:12px;
}
.old-address-box:has(input:checked) {
    border: 2px solid  #C99700;
}
.old-address-box:has(input:checked) .old-address-box-address {
    color: #C99700;
}
/* Responsive */
@media (max-width: 767px) {
    .cart-nav svg {
        stroke: var(--gray-6);
    }

    .cart-nav-icon {
        width: 24px;
        background: none;
        padding: 0;
    }

    .dashed-with-dots {
        width: 28%;
        margin: 16px auto;
    }

    .cart-nav-item.active .cart-nav-icon {
        background-color: unset;
    }

    .cart-nav-item.active svg {
        stroke: var(--secondary);
    }

    .card img {
        border-bottom-right-radius: 0;
    }

    .card .item-count {
        padding: 8px;
    }

    .card .props {
        padding-top: 8px;
    }

    .card-title {
        font-size: 16px;
    }

    .price {
        font-size: 16px !important;
    }

    .prop-list {
        padding: 0 8px !important;
        margin-top: 8px;
    }

    .total-box .card {
        border: none;
    }

    .total-box .card-body {
        padding: 0;
    }

    .total-box h6 {
        font-size: 16px;
    }

    .total-box .btn-danger {
        font-size: 16px;
    }
}

@media(max-width:992px) {

    #shipping-methods {
        grid-template-columns: 1fr !important;
    }

    .shipping-text {
        font-size: 16px;
    }

    .cart-nav {
        margin-top: 24px;
        margin-bottom: 32px;
    }

    .shipping-method-des {
        font-size: 14px;
    }

    #ShopCartSummary .card-summary-text {
        font-size: 16px;
        font-weight: 400;
        margin-bottom: 12px;
    }

    .total-box hr {
        margin: 0;
        margin-bottom: 16px;
    }
}
