/* DM Gold — استایل جدول قیمت‌ها و مودال (فرانت) */

.dm-gold-upgrade-badge {
    display: inline-block;
    background: #f0b849;
    color: #4a3600;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 3px;
}

.dm-gold-wrapper {
    max-width: 600px;
    margin: 0 auto;
    font-family: inherit;
    direction: rtl;
}

/* ویجت نمایش مستقیم (المنتور) — آیتم‌ها در یک خط، هرکدام جدا */
.dm-gold-inline-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    direction: rtl;
}

.dm-gold-inline-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dm-gold-inline-name {
    color: #777;
}

.dm-gold-inline-price {
    font-weight: bold;
    color: #222;
}

.dm-gold-header {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
}

.dm-gold-section {
    margin-bottom: 25px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.dm-section-title {
    background: #f4f6f8;
    padding: 12px 15px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dm-section-title .dashicons {
    color: #d4af37;
}

.dm-gold-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.dm-gold-table th {
    background: #fff;
    color: #888;
    font-weight: normal;
    font-size: 0.9em;
    padding: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.dm-gold-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f9f9f9;
    color: #444;
}

.dm-gold-table tr:last-child td {
    border-bottom: none;
}

.dm-gold-table .dm-empty-row {
    text-align: center;
    color: #999;
}

.dm-name {
    font-weight: 500;
    text-align: right !important;
}

.dm-price {
    font-weight: bold;
    color: #222;
    font-size: 1.05em;
    letter-spacing: 0.5px;
}

.dm-time {
    color: #aaa;
    font-size: 0.8em;
}

/* جدول مشخصات طلا در صفحه محصول */
.dm-gold-meta-box {
    background: #f9f9f9;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #eee;
}

.dm-gold-meta-title {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.dm-gold-info-table {
    width: 100%;
    font-size: 13px;
    color: #555;
    border-collapse: collapse;
}

.dm-gold-info-table .dm-gold-label {
    padding: 3px 0;
}

.dm-gold-info-table .dm-gold-value {
    text-align: left;
    font-weight: bold;
}

.dm-gold-unit {
    font-size: 0.85em;
    color: #999;
}

/* باکس قیمت همکار */
.dm-gold-partner-box {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dm-gold-alert {
    text-align: center;
    color: #999;
    padding: 15px;
}

/* دکمه بازکننده مودال */
.dm-gold-modal-trigger {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 4px;
    color: inherit;
}

.dm-gold-modal-trigger svg {
    fill: currentColor;
}

/* مودال — مستقل از بوت‌استرپ کار می‌کند؛ کلاس‌های بوت‌استرپ فقط برای سازگاری حفظ شده‌اند */
.dm-gold-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    padding: 20px 10px;
}

.dm-gold-modal.show {
    display: block;
}

.dm-gold-modal .modal-dialog {
    max-width: 500px;
    margin: auto;
    min-height: calc(100% - 40px);
    display: flex;
    align-items: center;
}

.dm-gold-modal .modal-content {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    padding: 1rem;
}

.dm-gold-modal .modal-header {
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.dm-gold-modal .modal-title {
    margin: 0;
    font-size: 1rem;
}

.dm-gold-modal .js-dm-gold-modal-close {
    background: transparent;
    border: 0;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #555;
}
