/* QualityOfLife plugin styles.
 * Namespaced with the "qol-" prefix so it can never collide with RISE core
 * or other plugin classes. Kept intentionally small and self-contained
 * (no external fonts/icons/CDN). Uses currentColor for icon strokes so it
 * blends into whatever surrounding text color the host page already uses.
 */

/* ---------- copy-to-clipboard buttons (Function 1) ---------- */

.qol-copy-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    margin-left: 4px;
    vertical-align: middle;
    border: 1px solid rgba(120, 130, 145, .35);
    border-radius: 5px;
    background: transparent;
    color: inherit;
    opacity: .55;
    cursor: pointer;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.qol-copy-btn:hover,
.qol-copy-btn:focus-visible {
    opacity: 1;
    background: rgba(120, 130, 145, .12);
}

.qol-copy-btn svg {
    width: 12px;
    height: 12px;
    pointer-events: none;
}

.qol-copy-btn.qol-copy-tiny {
    width: 18px;
    height: 18px;
    margin-left: 3px;
}

.qol-copy-btn.qol-copy-tiny svg {
    width: 10px;
    height: 10px;
}

.qol-copy-feedback {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    white-space: nowrap;
    background: #1f2733;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 4000;
    /* Always-present DOM text (only visually hidden via opacity) must not
       be picked up by a user's manual text selection/copy next to a
       phone number, e-mail or booking reference. */
    -webkit-user-select: none;
    user-select: none;
}

.qol-copy-btn.qol-flash .qol-copy-feedback {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.qol-booking-ref {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* ---------- open in new tab (Function 2) ---------- */

.qol-newtab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 4px;
    vertical-align: middle;
    border-radius: 5px;
    color: inherit;
    opacity: .55;
    text-decoration: none;
}

.qol-newtab-btn:hover,
.qol-newtab-btn:focus-visible {
    opacity: 1;
    background: rgba(120, 130, 145, .12);
    color: inherit;
    text-decoration: none;
}

.qol-newtab-btn svg {
    width: 11px;
    height: 11px;
    pointer-events: none;
}

/* ---------- google maps link (Function 3) ---------- */

.qol-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    opacity: .85;
}

.qol-maps-link:hover,
.qol-maps-link:focus-visible {
    opacity: 1;
    text-decoration: underline;
}

.qol-maps-link svg {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
}

/* Inside the dark client header (.bg-dark-success) text is white already;
   make sure our link keeps enough contrast there too. */
.bg-dark-success .qol-maps-link {
    color: #fff;
}

/* ---------- accessibility niceties shared by all inserted controls ---------- */

.qol-copy-btn:focus-visible,
.qol-newtab-btn:focus-visible,
.qol-maps-link:focus-visible {
    outline: 2px solid #4a90d9;
    outline-offset: 1px;
}
