.checkout {
    display: flex;
    flex-wrap:wrap;
    width: 80%;
    margin-left: 10%;
}

.checkout-container {
    align-items: center;
    width: 100%;
}

.cart-header {
    border-bottom: 2px solid #ffffff;
    margin-bottom: 30px;
}

.cart-header h1 {
    font-size: 28px;
    color: #ffffff;
    font-weight: 500;
}

.cart-wrapper {
    position: relative;
    display: flex;
    width: 100%;
}

/* 商品列表样式 */
.cart-items {
    background: rgba(255, 255, 255, 0.07);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 70%;
}

.cart-item {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid white;

}
.item-title{
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-wrap: nowrap;
}
.item-title p{
    color: #ffcc00;
    font-size: var(--general-size);
}

.item-image {
    width: 20%;
    align-content: center;
}
.item-image img {
    width: 100%;
    border-radius: 4px;
}
.item-info{
    position: relative;
    width: 30%;
    margin-left: 10%;
    padding-top: 0;
}

.item-sku {
    color: #95A5A6;
    font-size: var(--general-size);
    line-height: 0.3rem;
}


.item-price {
    color: #e7185c;
    text-align: right;
    width: 40%;
}
.item-price p{
    color: #e7185c;
    font-size: var(--general-size);
    line-height: 0.3rem;
}
.item-price a{
    color: #b70715;
    text-align: right;
    font-size: var(--general-size);
}
.item-price a:hover{
    color: #fffdfd;
    text-align: right;
    font-weight: 500;
}

/* 结算面板 */
.checkout-panel {
    position: relative;
    text-align: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 25%;
    margin-left: 5%;
}
.payment{
    display: flex;
    flex-wrap: wrap;
    color: #fffdfd;
    font-size: var(--general-size);
}
.payment  img{
    height: 3rem;
    padding: 4px;
}
.payment-option {
    padding: 3px;
    height: 30px;
    align-items: center;
    text-align: center;
}
.payment-option.selected{
    border-bottom: 3px solid #e7185c;
}
.payment-option.selected::after {
    content: "✓";
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #ff6700;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    z-index: 99;
}
.summary-item {
    color: #e7185c;
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #ffffff;
    font-size: var(--general-size);
}

.total-price {
    font-size: var(--general-size);
    font-weight: 300;
    color: #ffffff;
}

.mail-adrress{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    color: #fffdfd;

}
.mail-input{
    color: #fffdfd;
    width: 100%;
    background-color: rgba(255, 253, 253, 0);
    transition: all 0.3s ease;
    border-color: rgba(255, 253, 253, 0);
    border-bottom: 1px solid #fffdfd;
    border-radius: 0;
    font-size: var(--general-size);
    line-height: 2rem;
}


.checkout-btn {
    position: relative;
    display: block;
    outline: none;
    margin-top: 2%;
    align-items: center;
    align-content: center;
    text-align: center;
    width: 100%;
    height: 2rem;
    border-radius: 18px 18px 18px 18px;
    border: none;
    background-color: rgb(231, 24, 92);
    box-shadow: 0 0 1px 0 rgb(255, 255, 255);
    color: #ffffff;
    font-size: 0.8rem;
}
.checkout-p{
    text-align: center;
}


.checkout-btn:hover {
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cart-wrapper {
        flex-wrap: wrap;
    }
    .checkout {
        width: 90%;
        margin-left: 5%;
    }
    /* 商品列表样式 */
    .cart-items {
        width: 100%;
    }

    /* 结算面板 */
    .checkout-panel {
        width: 100%;
        margin-top: 5%;
        margin-left: 0;
    }
    .item-sku {
        font-size:0.8rem;
    }
    .item-price p{
        font-size: 0.8rem;
    }
    .item-image {
        width: 25%;
        align-content: center;
    }
    .item-info{
        width: 25%;
    }

}
