﻿/* آیکن‌های راه‌های ارتباط — رنگ برند + باکس دکمه‌ای (محصول / تماس) */

.contact-channel-icon {
    display: inline-block;
    flex-shrink: 0;
    width: var(--contact-icon-size, 22px);
    height: var(--contact-icon-size, 22px);
    border-radius: 0;
    background-color: var(--channel-brand-color, var(--C3));
    -webkit-mask-image: var(--contact-icon-url);
    mask-image: var(--contact-icon-url);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.contact-channel-icon[data-channel="WhatsApp"] { --channel-brand-color: #25D366; }
.contact-channel-icon[data-channel="Telegram"] { --channel-brand-color: #26A5E4; }
.contact-channel-icon[data-channel="Instagram"] {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.contact-channel-icon[data-channel="Facebook"] { --channel-brand-color: #0866FF; }
.contact-channel-icon[data-channel="LinkedIn"] { --channel-brand-color: #0A66C2; }
.contact-channel-icon[data-channel="X"] { --channel-brand-color: #000000; }
.contact-channel-icon[data-channel="YouTube"] { --channel-brand-color: #FF0000; }
.contact-channel-icon[data-channel="Bale"] { --channel-brand-color: #00B894; }
.contact-channel-icon[data-channel="Rubika"] { --channel-brand-color: #7B2FBF; }
.contact-channel-icon[data-channel="Eitaa"] { --channel-brand-color: #F58220; }
.contact-channel-icon[data-channel="Soroush"] { --channel-brand-color: #00A693; }
.contact-channel-icon[data-channel="Phone"] { --channel-brand-color: #34C759; }

.footer .contact-channel-icon[data-channel="X"],
[data-bs-theme="dark"] .contact-channel-icon[data-channel="X"] { --channel-brand-color: #E7E9EA; }

/* فوتر — آیکن رنگی بدون باکس خاکستری */
.site-contact-channels { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; }
.site-contact-channels--icons { justify-content: center; }
@media (min-width: 992px) { .site-contact-channels--icons { justify-content: flex-start; } }
.site-contact-channels__icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    background: transparent;
    border: none;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.site-contact-channels__icon-link:hover { transform: translateY(-2px); opacity: 0.88; }
.site-contact-channels__icon-link .contact-channel-icon { --contact-icon-size: 26px; }

/* باکس دکمه‌ای — صفحه محصول و تماس */
.product-quick-contact-wrap {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--product-buy-line, var(--C4));
}
.product-quick-contact__title {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--product-buy-muted, var(--C5));
    text-align: center;
}
.product-quick-contact__channels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}
.product-quick-contact__btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--C3);
    background: var(--product-buy-surface-alt, var(--C4));
    color: var(--product-buy-text, var(--C6));
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    text-align: right;
    flex-direction: row-reverse;
}
.product-quick-contact__btn:hover {
    color: var(--product-buy-text, var(--C6));
    border-color: color-mix(in srgb, var(--C3) 35%, var(--product-buy-line, var(--C4)));
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.product-quick-contact__btn .contact-channel-icon { order: 2; }
.product-quick-contact__label {
    line-height: 1.3;
    flex: 1 1 auto;
    min-width: 0;
    order: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-quick-channels-wrap { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--C4); }
.contact-quick-channels-wrap .product-quick-contact__title { text-align: right; margin-bottom: 0.75rem; }

@media (max-width: 767.98px) {
    .product-quick-contact__channels:has(.product-quick-contact__btn:only-child) { grid-template-columns: 1fr; }
}

[data-bs-theme="dark"] .product-quick-contact-wrap { border-top-color: var(--C3); }
[data-bs-theme="dark"] .product-quick-contact__btn { background: var(--C3); border-color: var(--C3); }
[data-bs-theme="dark"] .contact-quick-channels-wrap { border-top-color: var(--C3); }

/* پنل ادمین */
.product-contact-picker-item .contact-channel-icon { --contact-icon-size: 40px; }
.pcc-card-icon.contact-channel-icon { --contact-icon-size: 36px; }
