/* ==========================================================================
   FCS (Favorites & Comparison System) - Common Stylesheet
   ========================================================================== */

:root {
    --fcs-primary: #00b521;
    --fcs-primary-hover: #007f16;
    --fcs-brand-dark: #094F3A;
    --fcs-text: #1e293b;
    --fcs-text-light: #64748b;
}

/* --------------------------------------------------------------------------
   Shareable Bar & Copy URL (Shared across Favorites & Comparison)
   -------------------------------------------------------------------------- */
.fcs-shareable-url-container {
    margin-bottom: 24px;
}

.fcs-shareable-url-bar {
    max-width: none;
    position: relative;
    border: 0;
    padding: 0;
    background: transparent;
}

.fcs-share-hidden-input,
#fcs-fav-share-url,
#fcs-compare-share-url {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.fcs-share-btn-text {
    margin-left: 8px;
    font-weight: 700;
    color: var(--fcs-brand-dark);
}

.fcs-share-copy-btn {
    background: transparent;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    box-shadow: none;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Copied Tooltip
   -------------------------------------------------------------------------- */
.fcs-share-tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1e293b;
    color: #ffffff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: all 0.2s ease;
    pointer-events: none;
}

.fcs-share-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #1e293b;
}

.fcs-share-tooltip.fcs-show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   Action Notification Popups (Favorites & Comparison Added Notes)
   -------------------------------------------------------------------------- */
.fcs-info-note,
.fcs-limit-note {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    z-index: 1050;
    width: 190px;
    background: #ffffff;
    color: #1e293b;
    padding: 16px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    text-align: center;
    box-sizing: border-box;
}

.fcs-limit-note {
    padding-top: 20px;
}

.fcs-info-note-close {
    position: absolute;
    top: 6px;
    right: 10px;
    outline: none;
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    color: #888888;
}

.fcs-info-note-close:hover {
    color: #333333;
}

.fcs-info-note-text {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--fcs-brand-dark);
    margin-bottom: 8px;
}

.fcs-info-note-btn {
    display: block;
    width: 100%;
    background-color: var(--fcs-primary) !important;
    border: 1px solid var(--fcs-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease;
}

.fcs-info-note-btn:hover {
    background-color: var(--fcs-primary-hover) !important;
    border-color: var(--fcs-primary-hover);
    color: #ffffff;
    text-decoration: none;
}

.fcs-info-note-arrow,
.fcs-limit-note-arrow {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #ffffff;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

.fcs-product-toolbar--top_right .fcs-info-note,
.fcs-product-toolbar--top_right .fcs-limit-note {
    left: auto;
    right: 0;
    transform: translateY(8px);
}

.fcs-product-toolbar--top_right .fcs-info-note-arrow,
.fcs-product-toolbar--top_right .fcs-limit-note-arrow {
    left: auto;
    right: 10px;
    transform: none;
}

/* --------------------------------------------------------------------------
   Interactive Controls & Toggles
   -------------------------------------------------------------------------- */
.fcs-toggle-identical-label,
#fcs-toggle-identical + label {
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Empty State Messages
   -------------------------------------------------------------------------- */
.fcs-empty-msg {
    text-align: center;
    padding: 80px 20px;
    color: var(--fcs-text-light);
    font-size: 18px;
}

/* --------------------------------------------------------------------------
   Page Header Visibility
   -------------------------------------------------------------------------- */
body.fcs-favorites-page .entry-header,
body.fcs-favorites-page .entry-title,
body.fcs-comparison-page .entry-header,
body.fcs-comparison-page .entry-title {
    display: none;
}