/* Vintage & Wax Seal Badges with Detailed Parchment Hover */
.hcb-vintage-wrapper {
    display: inline-block;
    position: relative;
    margin: 15px 0 20px 0;
    direction: rtl;
    vertical-align: middle;
}

.hcb-vintage-badge {
    position: relative;
    display: inline-block;
    cursor: pointer;
    user-select: none;
}

/* Common Badge Face Look */
.hcb-badge-face {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 50px;
    font-family: Tahoma, sans-serif;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hcb-vintage-badge:is(:hover, :focus, :focus-within) .hcb-badge-face {
    transform: scale(1.04);
    box-shadow: 0 6px 15px rgba(0,0,0,0.18);
}

.hcb-short-text {
    letter-spacing: -0.3px;
}

/* Style 1: Wax Seal */
.hcb-wax-seal .hcb-badge-face {
    background: radial-gradient(circle at 30% 30%, #881337, #4c0519);
    color: #fef2f2;
    border: 2px dashed #fda4af;
    border-radius: 40px;
}

/* Style 2: Vintage Scroll */
.hcb-scroll-seal .hcb-badge-face {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #78350f;
    border: 1.5px solid #d97706;
}

/* Style 3: Bronze Plate */
.hcb-bronze-plate .hcb-badge-face {
    background: linear-gradient(135deg, #78350f, #451a03);
    color: #fef3c7;
    border: 1.5px solid #fbbf24;
    border-radius: 12px;
}

/* Parchment Tooltip on Hover */
.hcb-vintage-tooltip {
    visibility: hidden;
    opacity: 0;
    width: 290px;
    background: #fbfb9b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #292524;
    text-align: right;
    border-radius: 8px;
    padding: 14px;
    position: absolute;
    z-index: 999;
    bottom: 130%;
    right: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 1.5px solid #d97706;
    font-family: Tahoma, sans-serif;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    pointer-events: none;
}

/* Tooltip Arrow */
.hcb-vintage-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    right: var(--hcb-tooltip-arrow-right, 25px);
    margin-right: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #d97706 transparent transparent transparent;
}

.hcb-vintage-badge:is(:hover, :focus, :focus-within) .hcb-vintage-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.hcb-tooltip-header {
    font-weight: bold;
    font-size: 12.5px;
    color: #92400e;
    margin-bottom: 6px;
    border-bottom: 1px dashed #d97706;
    padding-bottom: 4px;
}

.hcb-vintage-tooltip p {
    font-size: 11px;
    line-height: 1.6;
    color: #44403c;
    margin: 0 0 8px 0;
}

.hcb-guarantee-text {
    font-weight: bold;
    color: #b45309 !important;
    background: rgba(245, 158, 11, 0.12);
    padding: 4px 6px;
    border-radius: 4px;
}

.hcb-tooltip-footer {
    font-size: 9.5px;
    color: #78716c;
    border-top: 1px solid rgba(217, 119, 6, 0.2);
    padding-top: 5px;
    margin-top: 5px;
}

/* Keep the panel anchored to the right edge in RTL, including phones. */
.hcb-vintage-tooltip {
    box-sizing: border-box;
    max-width: calc(100vw - 32px);
    overflow-wrap: anywhere;
    bottom: auto;
    top: calc(100% + 10px);
    pointer-events: auto;
}
.hcb-vintage-tooltip::after {
    top: auto;
    bottom: 100%;
    border-color: transparent transparent #d97706 transparent;
}
/* Bridge the gap so moving the pointer into the panel keeps it open. */
.hcb-vintage-badge::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 12px;
}
.hcb-vintage-badge:focus-visible {
    outline: 2px solid #92400e;
    outline-offset: 4px;
    border-radius: 12px;
}
@media (prefers-reduced-motion: reduce) {
    .hcb-badge-face, .hcb-vintage-tooltip {
        transition: none;
    }
}

.hcb-vintage-badge.hcb-tooltip-dismissed .hcb-vintage-tooltip {
    visibility: hidden;
    opacity: 0;
}
