/* Register On Block Styles - Based on COMPACT COMMERCIAL WIDGET */

.reg-widget-wrapper {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    max-width: 100%;
    margin: 24px 0;
    box-sizing: border-box;
}

.reg-widget-wrapper * { box-sizing: border-box; }

/* Карточка */
.reg-card {
    background: #FFFFFF;
    border-radius: 25px;
    padding: 36px;
    display: flex;
    flex-direction: row;
    gap: 36px;
    align-items: center;
}

/* 1. Логотип */
.reg-col-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reg-logo-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

/* 2. Центр: Заголовок и Бонус */
.reg-col-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reg-headline {
    font-size: 36px;
    font-weight: 800;
    color: #34363D;
    margin: 0;
    line-height: 140%;
    font-family: 'Manrope', sans-serif;
}

/* H1 стили для app-bookmaker-profile */
h1.reg-headline {
    font-family: Inter, Arial, sans-serif;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1;
    backface-visibility: hidden;
}

.reg-bonus-text {
    font-size: 18px;
    line-height: 28px;
    color: #34363D;
    margin: 0;
    font-family: 'Manrope', sans-serif;
}

/* Выделение суммы бонуса */
.reg-bonus-text .highlight-amount {
    color: #5DB24C;
    font-weight: 800;
    background: #f0fdf4;
    padding: 0 6px;
    border-radius: 4px;
    border: 1px solid #dcfce7;
}

/* 3. Справа: Экшен */
.reg-col-action {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 36px;
    border-left: 1px solid #e5e7eb;
    min-width: 280px;
}

/* Промокод как купон */
.reg-promo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f5f9;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.reg-promo-row:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.reg-code-val {
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.5px;
}

.reg-copy-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #3b82f6;
    font-family: 'Manrope', sans-serif;
}

/* Кнопка */
.reg-btn-main {
    display: block;
    width: 100%;
    text-align: center;
    background: #5DB24C;
    color: white;
    font-weight: 700;
    font-size: 16px;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: 0 2px 4px rgba(93, 178, 76, 0.2);
    font-family: 'Manrope', sans-serif;
}

.reg-btn-main:hover {
    background: #4fa33f;
    color: white;
}

/* Error State */
.register-on-block-error {
    font-family: 'Manrope', sans-serif;
    padding: 20px;
    background: #fff3cd;
    border: 2px dashed #856404;
    border-radius: 8px;
    text-align: center;
    color: #856404;
    margin: 20px 0;
}

@media (max-width: 1400px) {
    .reg-card {
        padding: 16px;
    }
}

/* Адаптив < 768px */
@media (max-width: 768px) {
    .reg-card {
        flex-direction: column;
        gap: 24px;
        padding: 20px;
        border-radius: 20px;
    }

    .reg-col-logo {
        width: 100%;
        justify-content: center;
    }

    .reg-logo-img {
        width: 120px;
        height: auto;
    }

    .reg-col-content {
        gap: 12px;
        text-align: center;
    }

    .reg-headline {
        font-size: 28px;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    h1.reg-headline {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .reg-bonus-text {
        font-size: 16px;
        line-height: 24px;
    }

    .reg-col-action {
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding-left: 0;
        padding-top: 24px;
        min-width: auto;
        width: 100%;
    }

    .reg-promo-row {
        padding: 12px 16px;
    }

    .reg-code-val {
        font-size: 16px;
    }

    .reg-btn-main {
        padding: 16px;
        font-size: 17px;
    }
}

/* Мобильные < 480px */
@media (max-width: 480px) {
    .reg-card {
        border-radius: 12px;
        gap: 16px;
    }

    .reg-logo-img {
        width: 100px;
        height: auto;
    }

    .reg-headline {
        font-size: 24px;
    }

    h1.reg-headline {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .reg-bonus-text {
        font-size: 15px;
        line-height: 22px;
    }

    .reg-col-action {
        padding-top: 20px;
    }

    .reg-promo-row {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .reg-code-val {
        font-size: 15px;
    }

    .reg-copy-label {
        font-size: 10px;
    }
}
