/* Checkout page styles */

.checkout-summary {
    margin: 20px 0 50px;
    font-family: Inter;
    font-weight: 700;
    font-size: 24px;
}
.checkout-summary span {
    color: #5DAF98;
}

/* Checkout Products */
.checkout-products {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.checkout-product {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    background-color: #fff;
    border-radius: 20px;
    padding: 0px 30px 0px 5px;
}

.checkout-product__left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.checkout-product__right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: space-between;
}

.checkout-product__image {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
    background-color: #fff;
}

.checkout-product__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.checkout-product__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.checkout-product__title {
    font-size: 18px;
    font-weight: 700;
    color: #373737;
    margin: 0;
}

.checkout-product__title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.checkout-product__title-link:hover {
    color: #5DAF98;
}

.checkout-product__description {
    font-size: 16px;
    color: #373737;
    opacity: 0.6;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-product__quantity {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.checkout-product__quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #373737;
    transition: all 0.2s;
}

.checkout-product__quantity-btn:hover {
    background-color: #f5f5f5;
    border-color: #5DAF98;
}

.checkout-product__quantity-btn:active {
    transform: scale(0.95);
}

.checkout-product__quantity-value {
    font-size: 18px;
    font-weight: 600;
    color: #373737;
    min-width: 30px;
    text-align: center;
}

.checkout-product__price {
    font-size: 20px;
    font-weight: 700;
    color: #5DAF98;
    flex-shrink: 0;
    white-space: nowrap;
}

.checkout-product__price-value {
    font-size: 20px;
}

.checkout-product__price-currency {
    font-size: 16px;
}

.checkout-product__remove {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #373737;
    opacity: 0.6;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkout-product__remove:hover {
    opacity: 1;
    color: #d32f2f;
}

/* Responsive */
@media (max-width: 767px) {
    .checkout-product {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        position: relative;
    }
    
    .checkout-product__left {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .checkout-product__right {
        width: 100%;
        justify-content: space-between;
    }
    
    .checkout-product__remove {
        position: absolute;
        top: -20px;
        right: 0px;
    }
}

/* Checkout Form */
.checkout-form {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-top: 50px;
    background-color: #373737;
    border-radius: 20px;
    padding: 30px;
}

.checkout-form__left {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.checkout-form__title {
    font-size: 24px;
    font-weight: 700;
    color: #FFF;
    margin: 0;
    text-transform: none;
}

.checkout-form__radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-form__divider {
    width: 100%;
    height: 1px;
    background-color: #FFFFFF;
    opacity: 0.1;
}

.checkout-form__radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFF;
    font-size: 16px;
    cursor: pointer;
}

.checkout-form__radio {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkout-form__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
    column-gap: 20px;
    position: relative;
}

.checkout-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    overflow: visible;
}

.checkout-form__label {
    font-size: 16px;
    color: #FFF;
    font-weight: 500;
    opacity: 0.6;
}

.checkout-form__input {
    padding: 12px 16px;
    border: 1px solid #555;
    border-radius: 10px;
    background-color: #FFF;
    color: #373737;
    font-size: 16px;
    font-family: inherit;
}

.checkout-form__input::placeholder {
    color: #999;
}

.checkout-form__input:focus {
    outline: none;
    border-color: #5DAF98;
}

/* Contact input wrapper styles for checkout form */
.checkout-form__field .contact-input-wrapper {
    display: flex;
    gap: 3px;
    align-items: stretch;
    min-width: 0;
    width: 100%;
}

.checkout-form__field .contact-type-select {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 150px;
    padding: 12px 35px 12px 16px;
    font-size: 16px;
    font-weight: 400;
    color: #373737;
    background-color: #fff;
    border: 1px solid #555;
    border-radius: 10px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23373737' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 8px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.checkout-form__field .custom-select-wrapper {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 150px;
}

.checkout-form__field .contact-type-select:focus {
    outline: none;
    border-color: #5DAF98;
}

.checkout-form__field .contact-input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid #555;
    border-radius: 10px;
    background-color: #FFF;
    color: #373737;
    font-size: 16px;
    font-family: inherit;
}

.checkout-form__field .contact-input::placeholder {
    color: #999;
}

.checkout-form__field .contact-input:focus {
    outline: none;
    border-color: #5DAF98;
}

.checkout-form__field .form-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

.checkout-form__input.error,
.checkout-form__field .contact-input.error {
    border-color: #dc3545;
}

.checkout-form__input.error:focus,
.checkout-form__field .contact-input.error:focus {
    border-color: #dc3545;
    outline: none;
}

.checkout-form__field .form-error:empty {
    display: none;
}

.checkout-form__field .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Увеличиваем z-index для dropdown в checkout форме */
.checkout-form__field .custom-select-wrapper {
    position: relative;
    z-index: 100;
}

.checkout-form__field .custom-select-dropdown {
    z-index: 10001;
    position: absolute;
}

.checkout-form__payment-block {
    background-color: #FFF;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-form__total {
    font-size: 20px;
    font-weight: 700;
    color: #373737;
}

.checkout-form__total span {
    color: #5DAF98;
}

.checkout-form__payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.checkout-form__payment-methods .checkout-form__radio-label {
    color: #373737;
}

.checkout-form__submit {
    padding: 16px 32px;
    background-color: #5DAF98;
    color: #FFF;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
    max-width: 350px;
}

.checkout-form__submit:hover {
    background-color: #4a9a87;
}

.checkout-form__right {
    background-color: #FFF;
    border-radius: 10px;
    padding: 40px;
}

.checkout-form__benefits {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.checkout-form__benefit {
    font-size: 18px;
    color: #373737;
    font-weight: 500;
}

.checkout-form__benefit-title {
    font-size: 18px;
    color: #96745D;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.checkout-form__benefit-desc {
    font-size: 16px;
    color: #373737;
    font-weight: 400;
    opacity: 0.7;
    margin: 0;
    line-height: 1.5;
}

.checkout-form__benefit-desc ul {
    margin: 8px 0;
    padding-left: 20px;
    list-style-type: disc;
}

.checkout-form__benefit-desc li {
    margin-bottom: 4px;
}

/* Responsive for checkout form */
@media (max-width: 1024px) {
    .checkout-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .checkout-form {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .checkout-form__fields {
        grid-template-columns: 1fr;
    }
    .checkout-form__payment-block {
        padding: 30px 20px;
    }
}
@media (max-width: px) {
    

}