/* ═══════════════════════════════════════════════════════════════
   feeling.gift — Luxury Variation Swatches v2.1.0
   Frontend Stylesheet
═══════════════════════════════════════════════════════════════ */

/* ── Wrapper ───────────────────────────────────────────────────── */
.fg-swatches-wrap {
    margin: 14px 0 18px;
    position: relative;
}

/* ── Label row ─────────────────────────────────────────────────── */
.fg-sw-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #888;
    margin-bottom: 12px;
}

.fg-sw-selected-name {
    color: #C9A84C;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    transition: opacity .2s ease;
    opacity: 0;
}

.fg-sw-selected-name.fg-visible {
    opacity: 1;
}

/* ── Swatch row ────────────────────────────────────────────────── */
.fg-sw-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* ── Individual swatch ─────────────────────────────────────────── */
.fg-sw-swatch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 50%;
    border: var(--fg-ring-w, 3px) solid transparent;
    outline: none;
    transition:
        transform    .2s cubic-bezier(.34,1.56,.64,1),
        box-shadow   .2s ease,
        border-color .15s ease;
    background-clip: padding-box;
}

/* Shapes */
.fg-shape-pill .fg-sw-swatch {
    border-radius: 50px;
    padding: 0 14px;
    width: auto !important;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    letter-spacing: .04em;
}

.fg-shape-square .fg-sw-swatch {
    border-radius: 8px;
}

/* Icon inside circle */
.fg-sw-icon {
    font-size: 14px;
    line-height: 1;
    color: rgba(255,255,255,.85);
    pointer-events: none;
}

/* ── Hover ─────────────────────────────────────────────────────── */
.fg-sw-swatch:hover {
    transform: scale(1.14) translateY(-2px);
    box-shadow:
        0 8px 24px rgba(0,0,0,.45),
        0 2px 8px rgba(0,0,0,.3);
}

/* ── Selected ──────────────────────────────────────────────────── */
.fg-sw-swatch.fg-selected {
    border-color: var(--fg-ring, #C9A84C) !important;
    transform: scale(1.14) translateY(-2px);
    box-shadow:
        0 0 0 4px rgba(201,168,76,.22),
        0 8px 24px rgba(0,0,0,.45);
}

.fg-sw-swatch.fg-selected::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.12);
    border-radius: inherit;
}

/* ── Out-of-stock: cross ───────────────────────────────────────── */
.fg-oos-cross .fg-sw-swatch.fg-oos {
    opacity: .45;
    cursor: not-allowed;
}

.fg-oos-cross .fg-sw-swatch.fg-oos::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom right,
        transparent calc(50% - 1px),
        rgba(255,255,255,.7) calc(50% - 1px),
        rgba(255,255,255,.7) calc(50% + 1px),
        transparent calc(50% + 1px)
    );
    border-radius: inherit;
    pointer-events: none;
}

/* ── Out-of-stock: blur ────────────────────────────────────────── */
.fg-oos-blur .fg-sw-swatch.fg-oos {
    filter: blur(2px);
    opacity: .5;
    cursor: not-allowed;
}

/* ── Out-of-stock: hide ────────────────────────────────────────── */
.fg-oos-hide .fg-sw-swatch.fg-oos {
    display: none !important;
}

/* ══ Tooltip (tier name only — short) ════════════════════════════ */
.fg-tooltip {
    position: fixed;
    z-index: 99999;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease;
}

.fg-tooltip.fg-tt-visible {
    opacity: 1;
    transform: translateY(0);
}

.fg-tt-dark {
    background: rgba(5,5,15,.92);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.08);
}

.fg-tt-gold {
    background: linear-gradient(135deg, #1a1a0a, #2a2000);
    color: #C9A84C;
    box-shadow: 0 4px 16px rgba(201,168,76,.3);
    border: 1px solid rgba(201,168,76,.4);
}

.fg-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom: none;
}

.fg-tt-dark::after { border-top-color: rgba(5,5,15,.92); }
.fg-tt-gold::after { border-top-color: #2a2000; }

/* ══ Inline rarity description panel ════════════════════════════ */
.fg-rarity-panel {
    margin-top: 14px;
}

.fg-rarity-panel__item {
    display: none;
    padding: 14px 16px 14px 18px;
    border-left: 3px solid var(--fg-tier-color, #C9A84C);
    background: rgba(255,255,255,.03);
    border-radius: 0 6px 6px 0;
}

@keyframes fg-panel-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fg-rarity-panel__item.fg-panel-visible {
    display: block;
    animation: fg-panel-in .25s ease forwards;
}

.fg-rarity-panel__name {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fg-tier-color, #C9A84C);
    margin-bottom: 6px;
}

.fg-rarity-panel__desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.65;
    color: rgba(255,255,255,.55);
    font-weight: 400;
}

/* ══ Grok AI credit ══════════════════════════════════════════════ */
.fg-ai-credit {
    margin: 10px 0 0;
    font-size: 11px;
    color: rgba(255,255,255,.32);
    letter-spacing: .05em;
    display: flex;
    align-items: center;
    gap: 6px;
    font-style: italic;
}

.fg-ai-credit__icon {
    color: #C9A84C;
    opacity: .5;
    font-size: 9px;
    font-style: normal;
}

.fg-ai-credit a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(201,168,76,.2);
    transition: color .2s ease, border-color .2s ease;
}

.fg-ai-credit a:hover {
    color: rgba(255,255,255,.6);
    border-bottom-color: rgba(201,168,76,.5);
}

/* ══ Animations ══════════════════════════════════════════════════ */

.fg-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
    width: 12px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(0);
    animation: fgRippleAnim .55s cubic-bezier(.4,0,.2,1) forwards;
    pointer-events: none;
}

@keyframes fgRippleAnim {
    to { transform: translate(-50%,-50%) scale(10); opacity: 0; }
}

@keyframes fgGlowAnim {
    0%   { box-shadow: 0 0 0 0 rgba(201,168,76,.7); }
    70%  { box-shadow: 0 0 0 14px rgba(201,168,76,0); }
    100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}

.fg-anim-glow.fg-selected {
    animation: fgGlowAnim .5s ease-out;
}

@keyframes fgP/* ═══════════════════════════════════════════════════════════════
   feeling.gift — Luxury Variation Swatches v2.2.0
   Badge style — matches T&C rarity tier chips
═══════════════════════════════════════════════════════════════ */

/* ── Wrapper ───────────────────────────────────────────────────── */
.fg-swatches-wrap {
    margin: 14px 0 18px;
    position: relative;
}

/* ── Label row ─────────────────────────────────────────────────── */
.fg-sw-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: rgba(138, 111, 46, 0.85);
    margin-bottom: 14px;
    font-family: 'Cinzel', serif;
}

.fg-sw-selected-name {
    color: #C9A84C;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.12em;
    font-family: 'Cinzel', serif;
    transition: opacity .2s ease;
    opacity: 0;
}

.fg-sw-selected-name.fg-visible {
    opacity: 1;
}

/* ── Swatch row ────────────────────────────────────────────────── */
.fg-sw-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════════
   SWATCH BADGE — the main element
   Uses --fg-tier-color set inline by PHP for border + text colour
═══════════════════════════════════════════════════════════════ */
.fg-sw-swatch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;

    /* Badge geometry */
    border-radius: 2px;
    padding: 0;
    width: auto !important;
    height: auto !important;

    /* Border driven by tier colour */
    border: 1px solid rgba(var(--fg-tier-rgb, 201,168,76), 0.28);
    outline: none;

    /* Background: dark semi-transparent tint of tier colour */
    background: rgba(var(--fg-tier-rgb, 201,168,76), 0.06);

    transition:
        transform    .2s cubic-bezier(.34, 1.56, .64, 1),
        box-shadow   .2s ease,
        border-color .15s ease,
        background   .15s ease;
}

/* Inner text span */
.fg-sw-swatch-text {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fg-tier-color, #c9a84c);
    padding: 7px 16px;
    white-space: nowrap;
    line-height: 1;
    pointer-events: none;
    transition: color .15s ease;
}

/* Icon (kept for backward compat, hidden by default in badge mode) */
.fg-sw-icon {
    font-size: 11px;
    line-height: 1;
    color: var(--fg-tier-color, rgba(255,255,255,.85));
    pointer-events: none;
    padding: 0 4px;
}

/* ── Hover ─────────────────────────────────────────────────────── */
.fg-sw-swatch:hover {
    transform: translateY(-2px);
    border-color: var(--fg-tier-color, #C9A84C);
    background: rgba(var(--fg-tier-rgb, 201,168,76), 0.10);
    box-shadow:
        0 4px 20px rgba(0,0,0,0.45),
        0 0 12px rgba(var(--fg-tier-rgb, 201,168,76), 0.10);
}

.fg-sw-swatch:hover .fg-sw-swatch-text {
    color: var(--fg-tier-color, #f0c040);
}

/* ── Selected ──────────────────────────────────────────────────── */
.fg-sw-swatch.fg-selected {
    border-color: var(--fg-tier-color, #C9A84C) !important;
    background: rgba(var(--fg-tier-rgb, 201,168,76), 0.12) !important;
    transform: translateY(-2px);
    box-shadow:
        0 0 0 3px rgba(var(--fg-tier-rgb, 201,168,76), 0.16),
        0 6px 20px rgba(0,0,0,0.45);
}

.fg-sw-swatch.fg-selected .fg-sw-swatch-text {
    color: var(--fg-tier-color, #f0c040);
}

/* Top-edge shimmer on selected */
.fg-sw-swatch.fg-selected::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--fg-tier-color, #C9A84C),
        transparent
    );
    opacity: 0.6;
    border-radius: 0;
}

/* ── Out-of-stock: cross ───────────────────────────────────────── */
.fg-oos-cross .fg-sw-swatch.fg-oos {
    opacity: .38;
    cursor: not-allowed;
}

.fg-oos-cross .fg-sw-swatch.fg-oos::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom right,
        transparent calc(50% - 1px),
        rgba(255,255,255,.5) calc(50% - 1px),
        rgba(255,255,255,.5) calc(50% + 1px),
        transparent calc(50% + 1px)
    );
    border-radius: inherit;
    pointer-events: none;
}

/* ── Out-of-stock: blur ────────────────────────────────────────── */
.fg-oos-blur .fg-sw-swatch.fg-oos {
    filter: blur(1.5px);
    opacity: .4;
    cursor: not-allowed;
}

/* ── Out-of-stock: hide ────────────────────────────────────────── */
.fg-oos-hide .fg-sw-swatch.fg-oos {
    display: none !important;
}

/* ══ Tooltip ════════════════════════════════════════════════════ */
.fg-tooltip {
    position: fixed;
    z-index: 99999;
    padding: 6px 12px;
    border-radius: 2px;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease;
}

.fg-tooltip.fg-tt-visible {
    opacity: 1;
    transform: translateY(0);
}

.fg-tt-dark {
    background: rgba(13, 11, 20, 0.96);
    color: #e8e0d0;
    box-shadow: 0 4px 20px rgba(0,0,0,.6);
    border: 1px solid rgba(201,168,76,.18);
}

.fg-tt-gold {
    background: linear-gradient(135deg, #1a1a0a, #2a2000);
    color: #C9A84C;
    box-shadow: 0 4px 16px rgba(201,168,76,.3);
    border: 1px solid rgba(201,168,76,.4);
}

.fg-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom: none;
}

.fg-tt-dark::after { border-top-color: rgba(13,11,20,.96); }
.fg-tt-gold::after { border-top-color: #2a2000; }

/* ══ Inline rarity description panel ════════════════════════════ */
.fg-rarity-panel {
    margin-top: 14px;
}

.fg-rarity-panel__item {
    display: none;
    padding: 14px 16px 14px 18px;
    border-left: 2px solid var(--fg-tier-color, #C9A84C);
    background: rgba(201,168,76,.03);
    border-radius: 0 2px 2px 0;
}

@keyframes fg-panel-in {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fg-rarity-panel__item.fg-panel-visible {
    display: block;
    animation: fg-panel-in .22s ease forwards;
}

.fg-rarity-panel__name {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fg-tier-color, #C9A84C);
    margin-bottom: 8px;
}

.fg-rarity-panel__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(232,224,208,.6);
    font-weight: 300;
    font-style: italic;
}

/* ══ Grok AI credit ════════════════════════════════════════════ */
.fg-ai-credit {
    margin: 12px 0 0;
    font-size: 11px;
    color: rgba(255,255,255,.28);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 6px;
    font-style: italic;
}

.fg-ai-credit__icon {
    color: #C9A84C;
    opacity: .45;
    font-size: 9px;
    font-style: normal;
}

.fg-ai-credit a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(201,168,76,.2);
    transition: color .2s ease, border-color .2s ease;
}

.fg-ai-credit a:hover {
    color: rgba(201,168,76,.7);
    border-bottom-color: rgba(201,168,76,.4);
}

/* ══ Animations ═════════════════════════════════════════════════ */

.fg-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    width: 10px;
    height: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(0);
    animation: fgRippleAnim .5s cubic-bezier(.4,0,.2,1) forwards;
    pointer-events: none;
}

@keyframes fgRippleAnim {
    to { transform: translate(-50%,-50%) scale(14); opacity: 0; }
}

@keyframes fgGlowAnim {
    0%   { box-shadow: 0 0 0 0 rgba(201,168,76,.6); }
    70%  { box-shadow: 0 0 0 10px rgba(201,168,76,0); }
    100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}

.fg-anim-glow.fg-selected {
    animation: fgGlowAnim .5s ease-out;
}

@keyframes fgPulseAnim {
    0%   { box-shadow: 0 0 0 0 rgba(201,168,76,.45), 0 6px 20px rgba(0,0,0,.45); }
    100% { box-shadow: 0 0 0 10px rgba(201,168,76,0), 0 6px 20px rgba(0,0,0,.45); }
}

.fg-anim-pulse.fg-selected {
    animation: fgPulseAnim .4s ease-out;
}

/* ══ Responsive ═════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .fg-sw-swatches { gap: 6px; }
    .fg-sw-swatch-text {
        font-size: 8.5px;
        padding: 6px 13px;
        letter-spacing: 0.18em;
    }
}

/* ── Hide original WC select (visually only — WC JS needs it) ─── */
select.fg-sw-hidden-select {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    pointer-events: none !important;
}ulseAnim {
    0%   { box-shadow: 0 0 0 0 rgba(201,168,76,.5), 0 8px 24px rgba(0,0,0,.45); }
    100% { box-shadow: 0 0 0 12px rgba(201,168,76,0), 0 8px 24px rgba(0,0,0,.45); }
}

.fg-anim-pulse.fg-selected {
    animation: fgPulseAnim .4s ease-out;
}

/* ══ Responsive ══════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .fg-sw-swatches { gap: 8px; }
}

/* ── Hide original WC select (visually only — WC JS needs it) ─── */
select.fg-sw-hidden-select {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    pointer-events: none !important;
}