.card-form {
    padding: 10px;
}
.card-form .row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

input.error {
    border: 2px solid red;
}

#sdek_map {
    height:600px;
    width:100%;
}

.div-marker {
    position: absolute;
}

.marker-popup {
    position: absolute;
    background: white;
    color: black;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    top: 12px;
    left: 24px;
    font-size: 12px;
    display: none;
    z-index: 99999999;
}



.my-marker {
    position: absolute;
    min-width: 32px;
    min-height: 32px;
    top: -32px;
    left: -16px;
    cursor:pointer;
    z-index: 99999;
}
.my-marker.active {
    position: absolute;
    min-width: 48px;
    min-height: 48px;
    top: -48px;
    left: -24px;
}

.cluster-marker {
    width: 30px;
    height: 30px;
    background: red;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
}

.card-form .delivery-points {
    border-top: 2px solid #fff;
}

.card-form input[type="text"], .card-form input[type="email"], .card-form input[type="tel"], .card-form select{
    flex:1 1 auto;
    padding: 20px 16px;
    font-size: 18px;
}

.card-form .checkbox-container {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    font-size: 8px;
    color: white;
    max-width: 33%;
    box-sizing: border-box;
    padding-left: 4px;
}

.card-form .custom-checkbox {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
}

.card-form .custom-checkbox input[type="checkbox"] {
    display: none;
}

.card-form .custom-checkbox .checkmark {
    width: 48px;
    height: 48px;
    border: 2px solid red;
    background-color: white;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0;
}

.card-form .custom-checkbox input[type="checkbox"]:checked + .checkmark {
    border:none;
}

.card-form .custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 8px;
    width: 16px;
    height: 28px;
    border: solid red;
    border-width: 0 6px 6px 0;
    transform: rotate(45deg);
}

.card-form .checkbox-text {
    line-height: 1;
    overflow-wrap: break-word;
    flex-grow: 1
}

.card-form .checkbox-link {
    color: red;
    text-decoration: none;
}

.card-form .checkbox-link:hover {
    text-decoration: underline;
}
.card-form label {
    padding: inherit !important;
    font-size: 14px !important;
}

.card-form .custom-radio {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-form .custom-radio input[type="radio"] {
    display: none; /* Скрываем стандартное радио */
}

.card-form .custom-radio .radio-mark {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: white; /* Белый фон */
    position: relative;
    cursor: pointer;
}

.card-form .custom-radio input[type="radio"]:checked + .radio-mark::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    background-color: red;
    border-radius: 50%;
}


.card-form label {
    display: flex;
    align-items: center;
    padding: 20px 16px;
    font-size: 18px;
    gap: 5px;
    flex: 1; /* Для растягивания radio кнопок */
}

.card-form .confirm-order {
    display:flex;
    width: 50%;
    margin: 0 auto;
    font-weight: 700;
    color: #fff;
    text-align: center;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    text-shadow: 0 1px 0 rgba(0,0,0,.49);
    background-color: #d30000;
    overflow: hidden;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 1;
    -webkit-transition: .3s ease;
    -o-transition: .3s ease;
    transition: .3s ease;
    min-height: 100px;
}

.card-form .confirm-order[disabled="disabled"] > * {
    opacity: 0.8;
    background-color: #880303;
    cursor: initial;
}

.card-form .confirm-order .btn-main__txt{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    height: 100%;
    flex: 4;
    min-height: inherit;
}

.card-form .confirm-order .btn-main__icon {
    flex: 1;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-left: 2px solid #fff;
    height: 100%;
    cursor: pointer;
    min-height: inherit;
}

.card-form .confirm-order-disable {
    opacity: .3;
    cursor: not-allowed;
}

.card-form .d-none {
    display: none;
}

.card-form .d-hidden {
    visibility: hidden;
}

.loading-indicator {
    position: absolute;
    /* top: 50%; */
    right: 25px;
    transform: translateY(+100%) translateX(5%);
    display: none;
}

.loading-indicator img {
    animation: spin 1s linear infinite;
    width: 20px; height: 20px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
/* Адаптация под мобильные устройства */
@media (max-width: 768px) {
    .card-form .row {
        flex-direction: column;
    }

    .card-form input[type="text"],
    .card-form input[type="email"],
    .card-form input[type="tel"],
    label {
        width: 100%;
    }

    .card-form .checkbox-container {
        max-width: 100%;
    }
}

#cs {
    position: absolute; /* Чтобы список появлялся под input */
    background-color: white; /* Белый фон, как у большинства браузеров */
    border: 1px solid #ccc; /* Тонкая рамка */
    border-radius: 4px; /* Округлённые углы */
    max-height: 150px; /* Ограничение высоты списка */
    overflow-y: auto; /* Прокрутка, если список длиннее 150px */
    list-style: none; /* Убираем маркеры списка */
    padding: 0;
    margin: 4px 0 0; /* Расстояние между input и списком */
    z-index: 1000; /* Чтобы список не перекрывался другими элементами */
    width: fit-content;
}

#cs li {
    padding: 8px 12px; /* Внутренние отступы для удобного выбора */
    cursor: pointer; /* Изменяем курсор при наведении */
    color: black
}

#cs li:hover {
    background-color: #f0f0f0; /* Цвет при наведении */
}