/* ============================================
   TOP-EX DELIVERY BLOCK
   ============================================ */

.topex-block {
    background: #f8f9f2;
    border: 1px solid rgba(158, 173, 31, 0.12);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 16px 0;
    font-family: 'Nunito Sans', sans-serif;
}

.topex-block__title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 6px;
}

.topex-block__hint {
    font-size: 13px;
    color: #4A4A4A;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.topex-block__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.topex-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.topex-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Nunito Sans', sans-serif;
    color: #1A1A1A;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.topex-field input:focus {
    border-color: #9EAD1F;
    box-shadow: 0 0 0 3px rgba(158, 173, 31, 0.15);
}

.topex-block__weight {
    font-size: 14px;
    color: #4A4A4A;
    margin-bottom: 12px;
}

.topex-block__weight strong {
    color: #1A1A1A;
}

.topex-btn-calc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #9EAD1F;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito Sans', sans-serif;
    box-shadow: 0 4px 14px rgba(158, 173, 31, 0.25);
}

.topex-btn-calc:hover:not(:disabled) {
    background: #7a8a18;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(158, 173, 31, 0.30);
}

.topex-btn-calc:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.topex-error {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(211, 47, 47, 0.08);
    border-left: 4px solid #d32f2f;
    border-radius: 0 8px 8px 0;
    color: #b71c1c;
    font-size: 13px;
    font-weight: 500;
}

.topex-tariffs {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(158, 173, 31, 0.2);
}

.topex-tariffs__title {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 10px;
}

.topex-tariff {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.topex-tariff:hover {
    border-color: #9EAD1F;
    background: #fbfcf6;
}

.topex-tariff--active {
    border-color: #9EAD1F;
    background: rgba(158, 173, 31, 0.05);
    box-shadow: 0 0 0 2px rgba(158, 173, 31, 0.12);
}

.topex-tariff input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #9EAD1F;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}

.topex-tariff__info {
    flex: 1;
    min-width: 0;
}

.topex-tariff__label {
    font-size: 14px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 2px;
    word-wrap: break-word;
}

.topex-tariff__meta {
    font-size: 12px;
    color: #4A4A4A;
}

.topex-tariff__price {
    font-size: 15px;
    font-weight: 700;
    color: #9EAD1F;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .topex-block__fields { grid-template-columns: 1fr; }
    .topex-btn-calc { width: 100%; justify-content: center; }
    .topex-tariff { padding: 10px 12px; gap: 10px; }
    .topex-tariff__label { font-size: 13px; }
    .topex-tariff__price { font-size: 14px; }
}