.delivery-calculator {
    padding: 16px;
    background-color: white;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 16px;
}

.delivery-calculator .subheading-18 {
    margin-bottom: 8px;
}

/* Стили для поля адреса */
.address-input-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.address-label {
    font-size: 12px;
    font-weight: 500;
    color: #676767;
}

.address-input-wrapper {
    position: relative;
}

.address-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #F0F0F0;
    border-radius: 6px;
    font-size: 12px;
    line-height: 120%;
    background-color: rgba(0, 0, 0, 0);
}

.address-input:focus {
    outline: none;
    border-color: #e51f2c;
    background-color: white;
}

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #F0F0F0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.address-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    border-bottom: 1px solid #F0F0F0;
}

.address-suggestion:hover {
    background-color: #F6F6F6;
}

.address-suggestion:last-child {
    border-bottom: none;
}

/* Стили для параметров посылки */
.package-inputs-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.package-inputs-container > p {
    font-size: 12px;
    font-weight: 500;
    color: #676767;
}

.package-inputs-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.package-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 140px;
}

.package-input-group label {
    font-size: 10px;
    font-weight: 500;
    color: #676767;
}

.package-input-group input {
    padding: 12px 14px;
    border: 0;
    border-radius: 8px;
    font-size: 11px;
    background-color: #F6F6F6;
}

.package-input-group input:focus {
    outline: none;
    border-color: #e51f2c;
    background-color: white;
}

/* Кнопка расчёта */
.calculate-btn {
    padding: 13px 39.5px;
    background-color: #e51f2c;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calculate-btn:hover {
    background-color: var(--text-light);
}

.calculate-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Результаты расчёта */
.delivery-results {
    margin-top: 12px;
    padding: 12px;
    background-color: #F6F6F6;
    border-radius: 12px;
}

.delivery-results h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}


.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.delivery-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background-color: #FFF3F3; /* мягкий розовый фон */
    border: 1px solid #F8D7DA; /* светло-розовая рамка */
    border-radius: 12px;
    transition: background-color .15s ease, border-color .15s ease;
}

.delivery-option:hover {
    background-color: #FFE9E9;
    border-color: #F5C2C7;
}

.delivery-option-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.delivery-option-name {
    font-size: 12px;
    align-items: center;
    display: block;
    gap: 4px;
    font-weight: 600;
    color: #2B2B2B;
}



.info-icon {
    height: 15px;
    width: 15px;
}

.delivery-option-period {
    font-size: 11px;
    color: #6F6F6F;
}

.delivery-option-price {
    font-size: 18px;
    font-weight: 700;
    color: #e51f2c; /* фирменный красный */
    white-space: nowrap;
}


/* Состояние загрузки */
.loading-state {
    text-align: center;
    padding: 20px;
    color: #676767;
    font-size: 12px;
}

.loading-state::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #F0F0F0;
    border-top: 2px solid #e51f2c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Ошибки */
.error-message {
    padding: 8px 12px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 8px;
}