@import url(base.css);
@import url(header-only.css);
@import url(footer.css);
@import url(basket-content.css);

.payment-content {
    margin-top: 10vw;
    margin-bottom: 3vw;
    display: flex;
    justify-content: center;
}

.payment-wrapper {
    display: flex;
    gap: 3vw;
}

.payment-title {
    font-size: 2vw;
    color: rgba(198, 22, 24, 1);
    font-weight: 600;
    margin-bottom: 2vw;
}

.payment-subtitle {
    display: flex;
    font-size: 1.5vw;
    color: rgba(198, 22, 24, 1);
    font-weight: 600;
    gap: 1.5vw;
    align-items: center;
    margin-bottom: 2vw;
}

.payment-number {
    color: white;
    font-size: 2vw;
    background-color: rgba(70, 150, 43, 1);
    border-radius: 50%;
    height: 1.5vw;
    width: 1.5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5vw;
}

.header-logo-order {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 100%;
    cursor: pointer;
}

.header-logo-order img {
    width: 6vw;
    transition: 0.2s;
}

.payment-form-itself {
    display: flex;
    justify-content: center;
    flex-direction: column;
    border: 0.1vw solid rgba(0, 0, 0, 0.5);
    border-radius: 0.7vw;
    padding: 2vw 5vw;
    color: #232222;
    font-weight: 400;
}

.payment-form {
    width: 50vw;
}

.payment-contact {
    margin-bottom: 2vw;

}

.payment-field-simple, .payment-field-radio {
    display: flex;
    flex-direction: column;
    margin-bottom: 1vw;
    gap: 0.3vw;
}

.payment-field-radio {
    gap: 1vw;
}

.payment-radio-options {
    display: flex;
    justify-content: space-between;
    gap: 2vw;
}

.payment-radio-option-wrapper {
    display: flex;
    gap: 0.7vw;
    align-items: center;
}

/* .payment-radio-option { 
    display: flex;
    margin: 0;
    scale: 1.2;
    align-items: center;
    accent-color: rgba(70, 150, 43, 1);
    width: 1vw;
    height: 1vw;
} */

.payment-radio-option {
    margin: 0;
    width: 1.5vw;
    height: 1.5vw;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 0.2vw solid gray;
    border-radius: 50%;
    position: relative;
}

.payment-radio-option:checked::before {
    content: '';
    position: absolute;
    top: 50%; /* Move it to the center vertically */
    left: 50%; /* Move it to the center horizontally */
    width: 70%; /* Adjust the size of the dot */
    height: 70%; /* Adjust the size of the dot */
    background-color: rgba(70, 150, 43, 1); /* Color of the dot */
    border-radius: 50%;
    transform: translate(-50%, -50%); /* Center the dot exactly */
}

.payment-radio-option:checked {
    background-color: white;
}

.input-label {
    color: #232222;
    font-weight: 400;
    font-size: 1.4vw;
}

.payment-input-field {
    font-size: 1vw;
    height: 3vw;
    border-radius: 0.7vw;
    padding-left: 1.5vw;
    padding-right: 1.5vw;
    border: 0.1vw solid rgba(0, 0, 0, 0.5);
}

.select2-container .select2-selection--single {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    font-size: 1vw !important;
    height: 3vw !important;
    border-radius: 0.7vw !important;
    padding-left: 0.8vw;
    padding-right: 1.5vw !important;
    border: 0.1vw solid rgba(0, 0, 0, 0.5) !important;
}

.select2-container .select2-dropdown {
    background-color: white !important;
    margin-top: 0.5vw !important;
    border-radius: 0.7vw !important;
    padding: 1vw !important;
    border: 0.1vw solid rgba(0, 0, 0, 0.5) !important;
}

.select2-container .select2-results__option {
    font-size: 1vw !important;
    color: #232222 !important;
    border-bottom: 0.1vw solid #232222 !important;
}

.select2-container .select2-results__option--highlighted {
    background-color: inherit !important;
    color: #232222 !important;
}

.select2-search__field {
    font-size: 1vw !important;
    border-radius: 0.7vw !important;
    margin-bottom: 1.5vw !important;
    height: 3vw !important;
    padding-left: 3vw !important;
}

.search-container {
    position: relative;
}

.custom-search-input {
    background: url('https://cdn-icons-png.flaticon.com/512/149/149852.png') no-repeat left 0.7vw center;
    background-size: 1vw 1vw; /* Adjust size of the icon */
    padding-left: 2vw !important; /* Ensure text does not overlap the icon */
    width: 100%;
    height: 2vw;
}

.payment-red-text {
    color: #C61618;
    font-size: 1vw;
    font-weight: 400;
    margin-top: 0.5vw;
}

/* Hide the default Select2 arrow */
.select2-selection__arrow {
    display: none !important;
}

/* Change color and background of selected option in dropdown */
/* Change background and text color of the chosen option in the dropdown */
.select2-results__option[aria-selected="true"] {
    background-color: white !important; /* Blue background */
    color: rgba(35, 34, 34, 1) !important; /* White text */
}



/* Add a custom dropdown arrow */
.select2-container--default .select2-selection--single {
    position: relative;
    padding-right: 3vw; /* Ensure text doesn't overlap */
}

/* Insert a new custom arrow */
.select2-container--default .select2-selection--single::after {
    content: "";
    border-left: 0.2vw solid #808080 !important;
    border-bottom: 0.2vw solid #808080 !important;  /* Unicode for dropdown arrow (or use an image) */
    position: absolute;
    width: 1vw !important;
    height: 1vw !important;
    right: 1.5vw;
    top: 50%;
    transform: translateY(-70%) rotate(-45deg);
}

.select2-container--open .select2-selection--single::after {
    transform: translateY(-30%) rotate(135deg);
}

#city-select, #city-select-2, #city-select-3 {
    transform: translate(12vw, 4vw);
}

.payment-product-block, .payment-submit-block {
    display: flex;
    flex-direction: column;
    border: 0.1vw solid rgba(0, 0, 0, 0.5);
    border-radius: 0.7vw;
    padding: 1.5vw 1.5vw;
    gap: 2vw;
}

.payment-text-left {
    color: #C61618;
    font-weight: 700;
    font-size: 1.5vw;
}

.payment-text-right {
    color: #232222;
    font-weight: 400;
    font-size: 1.3vw;
}

.payment-text-section, .payment-submit-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-items {
    width: 30vw;
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

.payment-submit-left {
    font-weight: 400;
    font-size: 1.3vw;
}

.payment-submit-right {
    font-weight: 700;
    font-size: 1.3vw;
}

.payment-submit-button-wrapper {
    display: flex;
    justify-content: center;
}

.payment-submit-button {
    background-color: rgba(70, 150, 43, 0.25);
    color: white;
    border-radius: 0.7vw;
    font-size: 1.5vw;
    font-weight: 700;
    border: none;
    padding: 1vw 2vw;
    cursor: pointer;
}

.payment-img {
    width: 3vw;
    height: 3vw;
}

.active-submit {
    background-color: rgba(70, 150, 43, 1);
}

.active-submit:hover {
    background-color: rgb(50, 109, 31);
}

@media (max-width: 480px) {
    .payment-content {
        margin-top: 25vw;
    }
    .payment-wrapper {
        display: flex;
        flex-direction: column;
        gap: 3vw;
    }
    .payment-contact {
        margin-bottom: 5vw;
    }
    .payment-form {
        width: 90vw;
    }
    .payment-title {
        font-size: 6vw;
        margin-bottom: 5vw;
        text-align: center;
    }
    .payment-subtitle {
        font-size: 5vw;
        gap: 2vw;
        margin-bottom: 5vw;
    }
    .payment-number {
        font-size: 6.5vw;
        height: 8vw;
        width: 8vw;
    }
    .input-label {
        font-size: 4.5vw;
    }
    .payment-input-field {
        font-size: 4.5vw;
        height: 9vw;
        border-radius: 1.5vw;
        padding-left: 4.5vw;
    }
    .select2-container .select2-selection--single {
        font-size: 4.5vw !important;
        height: 10vw !important;
        border-radius: 1.5vw !important;
        padding-left: 3vw !important;
    }
    .payment-radio-option {
        width: 4vw;
        height: 4vw;
        border: 0.5vw solid gray;
    }

    .payment-radio-options {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        gap: 3.5vw;
    }
    .payment-img {
        width: 10vw;
        height: 10vw;
    }
    .payment-form-itself {
        border-radius: 1.5vw;
        padding: 8vw 3vw;
    }
    .select2-container .select2-dropdown {
        border-radius: 1.5vw !important;
        margin-top: 1.5vw !important;
    }
    
    .select2-container .select2-results__option {
        font-size: 4.5vw !important;
    }
    .select2-search__field {
        font-size: 4.5vw !important;
        border-radius: 1.5vw !important;
        margin-bottom: 1.5vw !important;
        height: 10vw !important;
        padding-left: 9vw !important;
    }
    .custom-search-input {
        background-size: 5vw 5vw; /* Adjust size of the icon */
        padding-left: 9vw !important; /* Ensure text does not overlap the icon */
        width: 100%;
        background-position: 2vw;
        height: 2vw;
    }
    .payment-items {
        width: 90vw;
        gap: 7vw;
    }
    .payment-submit-left {
        font-weight: 400;
        font-size: 5vw;
    }
    
    .payment-submit-right {
        font-weight: 700;
        font-size: 5vw;
    }
    .payment-text-left {
        font-size: 5vw;
    }
    
    .payment-text-right {
        font-size: 4vw;
    }
    .payment-submit-button {
        border-radius: 1.5vw;
        font-size: 6vw;
        padding: 2.5vw 6vw;
        cursor: pointer;
    }
    .header-logo-order img {
        width: 12vw;
        transition: 0.2s;
    }

    .payment-red-text {
        font-size: 3.5vw;
    }
    .payment-field-simple, .payment-field-radio {
        display: flex;
        flex-direction: column;
        margin-bottom: 3vw;
        gap: 3vw;
    }
    .payment-radio-option-wrapper {
        gap: 3.5vw;
    }
    .payment-product-block, .payment-submit-block {
        border-radius: 1.5vw;
        padding: 3vw 4vw;
        gap: 10vw;
    }
    .payment-submit-block {
        margin-bottom: 5vw;
        gap: 7vw;
    }
    .select2-container--default .select2-selection--single::after {
        border-left: 0.5vw solid #808080 !important;
        border-bottom: 0.5vw solid #808080 !important;  /* Unicode for dropdown arrow (or use an image) */
        width: 3vw !important;
        height: 3vw !important;
        right: 4vw;
    }
}