/**
 * Стили верификации заведений mos77.ru
 * - Бейдж на карточке (галочка)
 * - Трастовый блок на странице заведения (Trust Box)
 * - Плашка для владельца (Owner Claim Bar)
 * - Модальное окно тарифов и заявки
 */

/* 1. Бейдж на карточке в каталоге */
.mc-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 4px;
    color: #0284c7;
    cursor: help;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.mc-verified-badge:hover {
    transform: scale(1.15);
}
.mc-verified-badge svg {
    display: block;
}

/* 2. Трастовый блок на странице заведения */
.mos77-verified-box {
    margin: 20px 0 24px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.06);
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}
.mos77-vb-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.mos77-vb-shield {
    font-size: 28px;
    line-height: 1;
}
.mos77-vb-head {
    display: flex;
    flex-direction: column;
}
.mos77-vb-title {
    font-size: 16px;
    font-weight: 800;
    color: #0369a1;
}
.mos77-vb-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #0284c7;
}
.mos77-vb-desc {
    margin: 0 0 12px 0;
    color: #334155;
    font-size: 13.5px;
}
.mos77-vb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-top: 10px;
    border-top: 1px dashed #bae6fd;
    font-size: 12.5px;
    color: #475569;
}
.mos77-vb-item b {
    color: #0f172a;
}
.mos77-vb-verified-tag {
    color: #059669;
    font-weight: 700;
    background: #d1fae5;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
}
.mos77-vb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.mos77-vb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.mos77-vb-btn--wa {
    background: #25d366;
    color: #fff !important;
}
.mos77-vb-btn--wa:hover {
    background: #20bd5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}
.mos77-vb-btn--phone {
    background: #0284c7;
    color: #fff !important;
}
.mos77-vb-btn--phone:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}
.mos77-vb-btn--site {
    background: #fff;
    color: #0369a1 !important;
    border: 1px solid #7dd3fc;
}
.mos77-vb-btn--site:hover {
    background: #f8fafc;
    border-color: #0284c7;
}

/* 3. Плашка для владельца (Claim Bar) - ультра-компактный вид */
.mos77-claim-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 16px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.35;
}
.mos77-cb-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}
.mos77-cb-icon {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}
.mos77-cb-text {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #475569;
}
.mos77-cb-text strong {
    font-size: 12.5px;
    color: #0f172a;
    font-weight: 700;
    white-space: nowrap;
}
.mos77-cb-text span {
    color: #64748b;
}
.mos77-cb-btn {
    flex-shrink: 0;
    padding: 5px 11px;
    background: #0284c7;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.mos77-cb-btn:hover {
    background: #0369a1;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

@media (max-width: 640px) {
    .mos77-claim-bar {
        padding: 6px 10px;
        gap: 8px;
        flex-direction: row;
        align-items: center;
    }
    .mos77-cb-text {
        font-size: 11.5px;
        gap: 3px;
    }
    .mos77-cb-text strong {
        font-size: 12px;
    }
    .mos77-cb-text span {
        display: none;
    }
    .mos77-cb-btn {
        width: auto;
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* 4. Модальное окно */
.mos77-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 16px;
    box-sizing: border-box;
}
.mos77-modal.is-active {
    opacity: 1;
    visibility: visible;
}
.mos77-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}
.mos77-modal__dialog {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}
.mos77-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
}
.mos77-modal__close:hover {
    color: #0f172a;
}
.mos77-modal__header {
    text-align: center;
    margin-bottom: 20px;
}
.mos77-modal__icon {
    font-size: 36px;
    display: block;
    margin-bottom: 6px;
}
.mos77-modal__title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #0f172a;
}
.mos77-modal__lead {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

/* Особенности верификации */
.mos77-ver-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 14px;
    border-radius: 10px;
}
.mos77-vf-item {
    display: flex;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.35;
}
.mos77-vf-ico {
    font-size: 15px;
    color: #0284c7;
    font-weight: 800;
    flex-shrink: 0;
}
.mos77-vf-text b {
    display: block;
    color: #0f172a;
    font-size: 13px;
    margin-bottom: 2px;
}
.mos77-vf-text span {
    color: #64748b;
}

/* Тарифы */
.mos77-ver-tariffs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}
.mos77-tariff-card {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
}
.mos77-tariff-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}
.mos77-tariff-card.is-selected {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}
.mos77-tariff-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: #f59e0b;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}
.mos77-tariff-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}
.mos77-tariff-price {
    font-size: 18px;
    font-weight: 800;
    color: #0284c7;
    margin-bottom: 4px;
}
.mos77-tariff-price span {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}
.mos77-tariff-desc {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.35;
}

/* Поля формы */
.mos77-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.mos77-form-group {
    margin-bottom: 12px;
}
.mos77-form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}
.mos77-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.mos77-input:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.mos77-input[readonly] {
    background: #f1f5f9;
    color: #475569;
    cursor: not-allowed;
}

.mos77-form-actions {
    margin-top: 16px;
}
.mos77-btn-submit {
    width: 100%;
    padding: 12px 18px;
    background: #0284c7;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mos77-btn-submit:hover {
    background: #0369a1;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}
.mos77-btn-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.mos77-form-status {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
}
.mos77-form-status.is-success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.mos77-form-status.is-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.mos77-form-note {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.4;
    text-align: center;
    margin: 12px 0 0 0;
}

@media (max-width: 580px) {
    .mos77-ver-features,
    .mos77-ver-tariffs,
    .mos77-form-row {
        grid-template-columns: 1fr;
    }
    .mos77-modal__dialog {
        padding: 22px 18px;
    }
}
