/* =========================================================================
   Atour — انتخاب درگاه بالای قیمت و دکمه‌ی خرید (خرید مستقیم)
   رنگ‌ها از متغیرهای قالب (رنگ غالب سایت) می‌آیند.
   ====================================================================== */

.atour-gw {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 0 0 16px;
    text-align: center;
}
.atour-gw__title {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 800;
    color: var(--atour-ink, #14201d);
}

/* کارت درگاه */
.atour-gw__card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1.5px solid var(--atour-line, #e3e9e6);
    border-radius: 14px;
    background: var(--atour-surface, #fff);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    text-align: center;
}
.atour-gw__card:hover { border-color: var(--atour-green-light, var(--atour-green, #0b7f66)); }
.atour-gw__card:focus-visible { outline: 2px solid var(--atour-green, #0b7f66); outline-offset: 2px; }
.atour-gw__card.is-on {
    border-color: var(--atour-green, #0b7f66);
    background: var(--atour-mint-soft, #f2faf7);
    box-shadow: 0 0 0 3px var(--atour-glow, rgba(11, 127, 102, .14));
}

.atour-gw__ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--atour-mint, #e7f5f0);
    color: var(--atour-green-dark, #075c4a);
    font-size: 14px;
}
.atour-gw__body { flex: 1 1 auto; min-width: 0; }
.atour-gw__name { font-size: 14.5px; font-weight: 800; line-height: 1.8; color: var(--atour-ink, #14201d); }
.atour-gw__price { margin: 2px 0 0; font-size: 19px; font-weight: 800; line-height: 1.6; color: var(--atour-ink, #14201d); }
.atour-gw__price .woocommerce-Price-amount,
.atour-gw__price ins { text-decoration: none; background: transparent; color: inherit; }
.atour-gw__price del { font-size: 13px; font-weight: 500; opacity: .55; }
.atour-gw__note { margin: 2px 0 0; font-size: 12px; line-height: 1.8; color: var(--atour-muted, #64736f); }

.atour-gw__tick {
    flex: 0 0 auto;
    align-self: flex-start;
    color: var(--atour-line, #e3e9e6);
    font-size: 17px;
    line-height: 1.8;
    transition: color .2s ease;
}
.atour-gw__card.is-on .atour-gw__tick { color: var(--atour-green, #0b7f66); }

/* دکمه‌های کوچک درگاه‌های هم‌گروه (مثل «زیبال» و «زرین‌پال») */
.atour-gw__pills { display: flex; flex-wrap: nowrap; justify-content: center; gap: 8px; margin: 10px 0 0; }
.atour-gw__pill {
    appearance: none;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
    padding: 5px 14px;
    border: 1.5px solid var(--atour-line, #e3e9e6);
    border-radius: 10px;
    background: var(--atour-surface, #fff);
    color: var(--atour-body, #43524e);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.atour-gw__pill::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-inline-end: 7px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    vertical-align: middle;
    opacity: .6;
}
.atour-gw__pill.is-on {
    background: var(--atour-green, #0b7f66);
    border-color: var(--atour-green, #0b7f66);
    color: var(--atour-on-green, #fff);
}
.atour-gw__pill.is-on::before { background: currentColor; opacity: 1; }

/* کسر از کیف پول */
.atour-gw__wallet {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px dashed var(--atour-line, #e3e9e6);
    border-radius: 12px;
    background: transparent;
    color: var(--atour-ink, #14201d);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: start;
    transition: border-color .2s ease, background .2s ease;
}
.atour-gw__wallet.is-on { border-style: solid; border-color: var(--atour-green, #0b7f66); background: var(--atour-mint-soft, #f2faf7); }
.atour-gw__box {
    flex: 0 0 auto;
    position: relative;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--atour-line, #c9d3cf);
    border-radius: 5px;
    background: var(--atour-surface, #fff);
}
.atour-gw__wallet.is-on .atour-gw__box { background: var(--atour-green, #0b7f66); border-color: var(--atour-green, #0b7f66); }
.atour-gw__wallet.is-on .atour-gw__box::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid var(--atour-on-green, #fff);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.atour-gw__wallettext { display: flex; flex-direction: column; line-height: 1.7; }
.atour-gw__wallettext small { font-size: 12px; font-weight: 500; color: var(--atour-muted, #64736f); }
.atour-gw__wallettext small:empty { display: none; }
.atour-gw__wallettext small[data-wallet-pay] { color: var(--atour-green-dark, #075c4a); font-weight: 700; }
.atour-gw button { width: auto; }
.atour-gw .atour-gw__wallet { width: 100%; }

/* حالت فشرده برای کارت‌های لیست محصولات */
.atour-gw--compact { gap: 6px; margin: 8px 0; }
.atour-gw--compact .atour-gw__card { padding: 8px 10px; border-radius: 10px; gap: 8px; align-items: center; }
.atour-gw--compact .atour-gw__ico { width: 26px; height: 26px; font-size: 12px; border-radius: 8px; }
.atour-gw--compact .atour-gw__name { font-size: 12.5px; line-height: 1.6; }
.atour-gw--compact .atour-gw__pills { margin: 6px 0 0; gap: 6px; }
.atour-gw--compact .atour-gw__pill { padding: 2px 10px; font-size: 12px; }
.atour-gw--compact .atour-gw__tick { font-size: 15px; align-self: center; }
.atour-gw--compact .atour-gw__wallet { padding: 6px 10px; font-size: 12px; }
