/* Order Summary Component */

.sum-container {
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    border-radius: 8px;
    background: #FFF;
    padding: 40px;
}

.sum-title {
    color: #0B0427;
    font-size: 30px;
    font-weight: 700;
    line-height: 30px;
    text-align: right;
    width: 100%;
    max-width: 580px;
    margin: 0;
}

/* Products List */
.sum-products-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    width: 100%;
    max-width: 580px;
}

/* Product Row */
.sum-product-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

/* Delete Button */
.sum-product-delete {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.sum-product-delete:hover {
    opacity: 1;
}

.sum-product-delete svg {
    width: 24px;
    height: 24px;
}

/* Product Content */
.sum-product-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 1;
}

/* Product Details */
.sum-product-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-align: right;
}

.sum-product-name {
    font-size: 30px;
    font-weight: 700;
    line-height: 20px;
    color: #000;
    margin: 0;
}

.sum-product-delivery {
    font-size: 20px;
    font-weight: 500;
    line-height: 20px;
    color: #000;
    margin: 0;
}

.sum-product-price {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding: 4px 0;
    font-size: 23px;
    font-weight: 500;
    line-height: 15px;
    color: #000;
    width: 126px;
}

/* Product Image */
.sum-product-image {
    width: 178px;
    height: 118px;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
}

/* Divider */
.sum-divider {
    width: 100%;
    height: 1px;
    background: #D9D9D9;
}

/* Summary Totals */
.sum-totals {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 580px;
}

.sum-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.sum-row-label {
    flex: 1;
    font-size: 24px;
    font-weight: 500;
    line-height: 24px;
    color: #0B0427;
    text-align: right;
    margin: 0;
}

.sum-row-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 20px;
    background: #F8F8F8;
    border-radius: 51px;
    font-size: 24px;
    font-weight: 500;
    line-height: 24px;
    color: #000;
    white-space: nowrap;
}

.sum-row-badge span:first-child {
    font-size: 22px;
}

/* Coupon Section */
.coupon-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 580px;
}

.coupon-label {
    font-size: 24px;
    font-weight: 500;
    line-height: 18px;
    color: #0B0427;
    text-align: right;
    width: 100%;
    margin: 0;
}

.coupon-input-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

.coupon-input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #DADADA;
    border-radius: 0;

    font-size: 18px;
    color: #0B0427;
    text-align: right;
    box-sizing: border-box;
}

.coupon-input:focus {
    outline: none;
    border-color: #2020B3;
}

.coupon-submit-btn {
    width: 84px;
    height: 40px;
    padding: 4px;
    background: #F8F8F8;
    border: 1px solid #F8F8F8;
    border-radius: 0;

    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
    color: #0B0427;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.coupon-submit-btn:hover {
    background: #E8E8E8;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .sum-container {
        border-radius: 8px;
        padding: 24px;
        gap: 20px;
        max-width: 100%;
        z-index: 2;
    }

    .sum-title {
        font-size: 22px;
        line-height: 28px;
    }

    .sum-products-list {
        gap: 13px;
        max-width: 100%;
    }

    .sum-product-row {
        gap: 8px;
    }

    .sum-product-content {
        gap: 12px;
        justify-content: flex-start;
    }

    .sum-product-details {
        gap: 8px;

    }

    .sum-product-name {
        font-size: 14px;
        line-height: 20px;
    }

    .sum-product-delivery {
        font-size: 14px;
        line-height: 18px;
    }

    .sum-product-price {
        font-size: 18px;
        width: auto;
    }

    .sum-product-image {
        width: 80px;
        height: 60px;
        border-radius: 6px;
    }

    .sum-totals {
        gap: 12px;
        max-width: 100%;
    }

    .sum-row {
        justify-content: space-between;
        gap: 15px;
        flex-wrap: wrap;
    }

    .sum-row-label {
        font-size: 16px;
        font-weight: 400;
        line-height: 19px;
        flex: none;
        max-width: 40%;
    }

    .sum-row-badge {
        font-size: 16px;
        line-height: 15px;
        padding: 4px 16px;
        border-radius: 38px;
        min-width: 76px;
        gap: 2px;
    }

    .sum-row-badge span:first-child {
        font-size: 16px;
    }

    .coupon-section {
        max-width: 100%;
    }

    .coupon-label {
        font-size: 18px;
    }

    .coupon-input-row {
        gap: 12px;
    }

    .coupon-input {
        height: 36px;
        font-size: 16px;
    }

    .coupon-submit-btn {
        width: 70px;
        height: 36px;
        font-size: 16px;
    }
}
