/* International Trainer - shared helpers for the admin panel and the customer / trainer portals:
   back button, (i) help bubbles and the always-visible yellow side call to action. */

/* ---------- Back button (page headers) ---------- */
.it-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #D6DEEF;
    border-radius: 8px;
    background: #FFFFFF;
    color: #0B2685;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.it-back-btn:hover,
.it-back-btn:focus-visible {
    background: #EEF3FC;
    border-color: #1456C8;
    color: #0B2685;
    outline: none;
}

.it-back-btn i {
    font-size: 12px;
}

/* ---------- (i) help icon + bubble ---------- */
.it-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 4px;
    border-radius: 50%;
    color: #1456C8;
    font-size: 13px;
    line-height: 1;
    vertical-align: middle;
    cursor: help;
    opacity: 0.85;
}

.it-info:hover,
.it-info:focus-visible,
.it-info.is-open {
    opacity: 1;
    color: #E07B00;
    outline: none;
}

.it-info.it-info-light {
    color: rgba(255, 255, 255, 0.85);
}

.it-info-bubble {
    position: absolute;
    z-index: 2000;
    max-width: 280px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #0B2685;
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 10px 30px rgba(11, 38, 133, 0.35);
    pointer-events: none;
}

.it-info-bubble::after {
    content: '';
    position: absolute;
    left: var(--arrow-left, 50%);
    bottom: -6px;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    background: #0B2685;
    transform: rotate(45deg);
}

.it-info-bubble.below::after {
    bottom: auto;
    top: -6px;
}

/* ---------- Always-visible vertical side call to action ----------
   A full-height yellow column on the right edge, from just under the sticky page header
   (it-ux.js sets "top" to the header's height) to the bottom of the window. */
.it-side-cta {
    position: fixed;
    top: 68px;
    bottom: 0;
    right: 0;
    z-index: 1030;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 0;
    background: #FFD60A;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.18);
    transition: background-color 0.15s ease;
}

.it-side-cta:hover,
.it-side-cta:focus-visible {
    background: #FFC800;
    color: #111827;
    text-decoration: none;
    outline: none;
}

.it-side-cta i {
    transform: rotate(90deg);
    font-size: 17px;
}

.it-side-cta .it-side-cta-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    padding: 2px;
    border-radius: 11px;
    background: #DC2626;
    color: #FFFFFF;
    font-size: 11px;
    letter-spacing: 0;
    writing-mode: horizontal-tb;
    transform: rotate(180deg);
}

/* Portal header buttons stay on one line, even next to a long customer name. */
.header-right-tools .btn {
    white-space: nowrap;
}

/* Keep page content clear of the side call to action. */
body.it-has-side-cta main {
    padding-right: 64px !important;
}

@media (max-width: 575px) {
    body.it-has-side-cta main {
        padding-right: 44px !important;
    }

    .it-side-cta {
        width: 34px;
        font-size: 12px;
        letter-spacing: 2px;
        gap: 10px;
    }

    .it-side-cta i {
        font-size: 14px;
    }

    .it-back-btn {
        padding: 0 10px;
    }
}

@media print {
    .it-side-cta,
    .it-back-btn,
    .it-info {
        display: none !important;
    }
}
