/* Jewelry Gold Price - Frontend Styles */
.jgp-price-detail {
    background: #fdfaf4;
    border: 1px solid #e8d9a0;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0;
    font-family: inherit;
    direction: rtl;
}

.jgp-title {
    font-size: 1rem;
    font-weight: 700;
    color: #8a6d00;
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8d9a0;
}

.jgp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.jgp-table tr {
    border-bottom: 1px solid #f0e8c8;
}

.jgp-table tr:last-child {
    border-bottom: none;
}

.jgp-label {
    padding: 9px 4px;
    color: #555;
    width: 55%;
}

.jgp-value {
    padding: 9px 4px;
    text-align: left;
    direction: ltr;
    color: #222;
    unicode-bidi: embed;
}

.jgp-unit {
    font-size: 0.8em;
    color: #888;
    margin-left: 4px;
}

.jgp-total-row {
    background: #fff8e1;
}

.jgp-total-row .jgp-label {
    color: #333;
    font-size: 1rem;
}

.jgp-final-price {
    color: #b8860b;
    font-size: 1.1rem;
}

.jgp-notice {
    color: #c0392b;
    font-size: 0.9rem;
    padding: 8px;
    background: #fdf0ee;
    border-radius: 4px;
    border-right: 3px solid #e74c3c;
}

/* Last update shortcode */
.jgp-last-update {
    display: inline-block;
    font-size: 0.82rem;
    color: #888;
    direction: rtl;
}

/* Cart timer banner */
#jgp-cart-timer {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px 18px;
    margin-bottom: 16px;
    text-align: center;
    direction: rtl;
    font-size: 0.95rem;
    color: #856404;
}

#jgp-cart-timer .jgp-timer-count {
    font-weight: 700;
    font-size: 1.1rem;
    color: #c0392b;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

#jgp-cart-timer.jgp-timer-warning {
    background: #fde8e8;
    border-color: #e74c3c;
    color: #c0392b;
}

/* Responsive */
@media (max-width: 480px) {
    .jgp-price-detail {
        padding: 14px 12px;
    }
    .jgp-table {
        font-size: 0.85rem;
    }
    .jgp-label {
        width: 50%;
    }
}

/* جزئیات فرمول در جدول قیمت */
.jgp-formula {
    display: block;
    font-size: 0.75em;
    color: #aaa;
    margin-top: 2px;
    direction: rtl;
}

.jgp-sep {
    color: #ccc;
}

.jgp-calc-note {
    line-height: 1.6;
}

/* variation label زیر تیتر جدول */
.jgp-variation-label {
    display: block;
    font-size: 0.75em;
    font-weight: 400;
    color: #b8860b;
    margin-top: 3px;
}

/* حالت loading جدول */
.jgp-price-detail.jgp-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* ============================================================
   Gold Ticker — [jgp_gold_ticker]
   ============================================================ */
.jgp-ticker {
    display: inline-flex;
    align-items: flex-start;
    flex-wrap: wrap;
    font-family: inherit;
    direction: rtl;
    flex-direction: column;
    background-color: #fff;
    border: solid 1px #b8860b;
}

.jgp-ticker__label {
    font-size: 0.85em;
    color: #8a6d27;
    white-space: nowrap;
}

.jgp-ticker__price {
    font-size: 1em;
    font-weight: 700;
    color: #b8860b;
    white-space: nowrap;
}

.jgp-ticker__unit {
    font-size: 0.75em;
    font-weight: 400;
    color: #8a6d27;
    margin-right: 3px;
}

.jgp-ticker__update {
    font-size: 0.75em;
    color: #8a6d27;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


.jgp-ticker__update-label, .jgp-ticker__update-time {
    color: #8a6d27;
}

.jgp-ticker--unavailable {
    font-size: 0.85em;
    color: #8a6d27;
}
