/* Rotax Pricing — Frontend Styles */
/* All fonts inherit from theme (BeTheme) */

/* ═══════════════════════════════════════════
   PRICE DISPLAY (ALL USERS)
   ═══════════════════════════════════════════ */

/* Price wrapper - stack lines */
.rotax-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    font-family: inherit;
}

/* Price rows */
.rotax-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Strikethrough original price */
.rotax-price-wrap del {
    opacity: 0.45;
    font-size: 0.85em;
    text-decoration: line-through;
    color: #666;
}

/* Highlighted final price */
.rotax-price-wrap ins {
    text-decoration: none;
    font-weight: 700;
    color: #c41e1e;
    font-size: 1.1em;
}

/* Excl. tax line - smaller, muted */
.rotax-price-excl {
    font-size: 0.82em;
    color: #888;
    justify-content: center;
}

/* Price suffix labels */
.rotax-price-wrap .woocommerce-price-suffix {
    font-size: 0.8em;
    color: #999;
    font-weight: 400;
}

/* ═══════════════════════════════════════════
   "✦ VAŠA CENA" LABEL (subtle, not a button)
   ═══════════════════════════════════════════ */

.rotax-price-badge {
    display: inline-block;
    color: #c41e1e;
    font-size: 10px;
    font-weight: 700;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 3px;
    align-self: center;
    border: 1px solid rgba(196, 30, 30, 0.3);
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(196, 30, 30, 0.06);
}

/* ═══════════════════════════════════════════
   SALE-STYLE BADGE ON PRODUCT IMAGE (-10%)
   ═══════════════════════════════════════════ */

.rotax-sale-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #c41e1e;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
    line-height: 1;
    pointer-events: none;
}

/* Hide WooCommerce default sale badge when our badge is present */
.rotax-sale-badge+.onsale {
    display: none;
}

/* ═══════════════════════════════════════════
   BANNERS (B2B + WELCOME) — unified dark/red style
   ═══════════════════════════════════════════ */

.rotax-welcome-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a2e 100%);
    border-left: 4px solid #c41e1e;
    border-radius: 12px;
    padding: 16px 28px;
    margin-top: 20px;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.rotax-welcome-banner .rotax-b2b-icon {
    font-size: 14px;
    font-style: normal;
    width: 36px;
    height: 36px;
    background: #c41e1e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Shared content layout */
.rotax-b2b-content {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
    font-family: inherit;
}

.rotax-b2b-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.rotax-b2b-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.rotax-b2b-text strong {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.rotax-b2b-text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

/* Buttons container */
.rotax-b2b-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Primary button — Registrovať sa */
.rotax-b2b-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #c41e1e 0%, #e53935 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(196, 30, 30, 0.4);
}

.rotax-b2b-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 30, 0.5);
    color: #fff !important;
}

/* Secondary button — Prihlásiť sa */
.rotax-b2b-btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.rotax-b2b-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff !important;
}

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 767px) {
    .rotax-b2b-content {
        flex-direction: column;
        text-align: center;
    }

    .rotax-b2b-banner,
    .rotax-welcome-banner {
        padding: 18px 20px;
        margin-top: 24px;
    }

    .rotax-b2b-buttons {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .rotax-b2b-btn,
    .rotax-b2b-btn-secondary {
        justify-content: center;
        padding: 12px 24px;
    }
}

/* ═══════════════════════════════════════════
   REGISTRATION FORM
   ═══════════════════════════════════════════ */

.woocommerce-form-register h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}