.payment-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    width: 100%;
    padding: 40px;
    flex: 1;
    align-items: flex-start;
    justify-content: center;
}

@media (max-width: 768px) {
    .payment-container {
        gap: 12px;
        flex-direction: column;
    }
}

.pay-container,
.sum-container {
    border-radius: 8px;
    background: #FFF;
    padding: 40px;
}

.pay-container {
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.pay-container .title {
    color: #0B0427;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
    text-align: right;
    width: 100%;
}

/* Gift Form Container */
.gift-form-container {
    padding: 60px 40px 40px 40px;
    position: relative;
    overflow: visible;
}

.gift-icon {
    position: absolute;
    top: 45px;
    left: 40px;
    width: 62px;
    height: 60px;
}

.gift-icon svg {
    width: 100%;
    height: 100%;
}

.gift-form-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: flex-start;
    width: 100%;
}

.gift-form-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 30px;
    color: #0B0427;
    text-align: right;
    margin: 0;
}

.gift-form-fields {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.gift-form-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
}

.gift-form-field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-end;
    justify-content: flex-start;
}

.gift-form-field.full-width {
    flex: 1;
    width: 100%;
}

.gift-form-label {
    font-size: 18px;
    font-weight: 500;
    line-height: 18px;
    color: #000;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.gift-form-input {
    flex: 1;
    min-width: 0;
    height: auto;
    padding: 0 0 4px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #000;
    border-radius: 0;
    font-size: 18px;
    font-weight: 500;
    color: #000;
    text-align: right;
    outline: none;
    box-sizing: border-box;
}

.gift-form-input:focus {
    border-bottom-color: #2020B3;
}

.gift-form-textarea-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
}

.gift-form-textarea-container .gift-form-label {
    align-self: flex-start;
}

.gift-form-textarea {
    width: 100%;
    height: 115px;
    padding: 12px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 4px;

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

.gift-form-textarea:focus {
    outline: none;
    border-color: #2020B3;
}

/* Action Buttons */
.gift-form-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
}

.gift-btn {
    flex: 1;
    height: 50px;
    padding: 12px 16px;
    border-radius: 6px;

    font-size: 18px;
    font-weight: 600;

    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gift-btn-primary {
    background: #2020B3;
    border: 2px solid #fff;
    color: #fff;
}

.gift-btn-primary:hover {
    background: #1a1a99;
}

.gift-btn-outline {
    background: #fff;
    border: 2px solid #000;
    color: #000;
}

.gift-btn-outline:hover {
    background: #f5f5f5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gift-form-container {
        padding: 50px 24px 24px 24px;
    }

    .gift-icon {
        top: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }

    .gift-icon img {
        max-width: 40px;
        max-height: 40px;
    }

    .gift-form-content {
        gap: 30px;
    }

    .gift-form-title {
        font-size: 22px;
        line-height: 28px;
        padding: 0;
    }

    .gift-form-fields {
        gap: 20px;
    }

    .gift-form-field {
        width: 100%;
    }

    .gift-form-row {
        flex-direction: column;
        gap: 20px;
    }

    .gift-form-label {
        font-size: 16px;
    }

    .gift-form-input {
        font-size: 16px;
    }

    .gift-form-textarea {
        height: 100px;
    }

    .gift-form-actions {
        flex-direction: column-reverse;
    }

    .gift-btn {
        width: 100%;
        height: 46px;
        font-size: 16px;
    }
}

/* Pay Container Points Variant */
.pay-container-points {
    min-height: 280px;
}

.pay-header {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
    width: 100%;
}

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

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

.pay-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
}

.pay-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 16px;
    height: 50px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    line-height: 34px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.pay-button-primary {
    background: #2020B3;
    border: 2px solid #fff;
    color: #fff;
}

.pay-button-primary:hover {
    background: #1a1a99;
}

/* Decorative Star Icon */
.pay-star-icon {
    position: absolute;
    top: 10%;
    left: 8%;
    width: 99px;
    height: 100px;
    pointer-events: none;
}

.pay-star-icon svg {
    width: 100%;
    height: 100%;
}

/* Sum Container */
.sum-container {
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.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: flex-start;
    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;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .payment-container {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .pay-container {
        max-width: 100%;
        padding: 24px;
        gap: 24px;
    }

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

    .pay-container-points {
        min-height: auto;
    }

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

    .pay-points-message {
        font-size: 18px;
        line-height: 22px;
    }

    .pay-button {
        font-size: 16px;
        height: 46px;
    }

    .pay-star-icon {
        width: 60px;
        height: 60px;
        top: 15%;
        left: 5%;
    }

    .sum-container {
        border-radius: 8px;
        padding: 24px;
        gap: 20px;
        max-width: 100%;
    }

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

    .sum-products-list {
        gap: 13px;
    }

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

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

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

    .sum-product-name {
        font-size: 18px;
        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;
    }

    .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;
    }

    .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 */
.coupon-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.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;
}

@media (max-width: 768px) {
    .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;
    }
}
