/* Country packs (باقات الدول, js/countrypacks.js): the store's Countries tab, a pack's window, the pack items on
   the table (seat frame .cpf, bottle .cpk-bottle-art), the profile's round frame (.cpa) and my packs' gifts. */

/* the pack's seat frame (fitted by tools/countrypacks-fit.mjs: its opening is the middle 1/1.8 of the picture, 40 % of it
   around) — the opening laid exactly on the seat's photo, 93 × 121 seat units */
.seat-frame.cpf { left: calc(-37.2 * var(--u)); top: calc(-48.4 * var(--u)); width: calc(167.4 * var(--u)); height: calc(217.8 * var(--u)); object-fit: fill; z-index: 2; }
/* a seat wearing a country frame: the photo drawn a little smaller, inside the frame's window (tools/countrypacks-fit.mjs
   SEAT.photo: 4.5, 3.5, 84 × 109.2 of the 93 × 121 seat) — the frame's border covers its edge all round, and the
   whole frame stays within a few units of the seat; the seat's own card behind it is not drawn */
.seat-photo:has(> .seat-frame.cpf) { background: none; box-shadow: none; }
.seat-photo:has(> .seat-frame.cpf) > .seat-shape { overflow: visible; }
.seat-photo:has(> .seat-frame.cpf) > .seat-shape > img:first-child { position: absolute; left: 4.839%; top: 2.893%; width: 90.323%; height: 90.248%; border-radius: 0; }
/* …its name inside the photo's bottom (above the frame's bottom border), the kisses and the level badge on the
   photo's top corners (inside the frame, not floating at the seat's old corners) */
.seat-photo:has(> .seat-frame.cpf) .seat-name { left: calc(6 * var(--u)); right: calc(6 * var(--u)); bottom: calc(10 * var(--u)); z-index: 3; }
.seat-photo:has(> .seat-frame.cpf) > .seat-kisses { top: calc(-3 * var(--u)); left: calc(-4 * var(--u)); z-index: 4; }
/* the pack's bottle on the table: its own picture, upright in the bottle's box */
.bottle-art.cpk-bottle-art img { height: 100%; width: auto; display: block; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
/* the profile: a round photo inside the pack's round frame */
/* (the round frame fitted: its ring's opening is the middle 1/2.4 of the picture) */
.pf-photo-wrap.cpa .pf-photo { width: 84px; height: 84px; border-radius: 50%; margin-top: 12px; }
/* (the photo a little bigger than the ring's window — 5 %: it fills it to the gold edge, never a gap) */
.pf-frame.cpa { left: -53.8px; top: -41.8px; width: 191.6px; height: 191.6px; max-width: none; }


/* ── the Countries tab: one pack at a time, then the country picker ── */
.cpk-page { padding: 2px 2px 14px; }
.cpk-empty { padding: 30px; text-align: center; color: #d9cdf3; }
.cpk-head { text-align: center; margin: 0 8px 10px; }
.cpk-head b { font-size: 17px; color: #fff; }
.cpk-head p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: #d9cdf3; }
.cpk-card { margin: 0 4px 12px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(20, 0, 50, .35); color: #3b2566; }
.cpk-banner { position: relative; height: 150px; background: #2b2140 center / cover no-repeat; }
.cpk-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .75)); }
.cpk-banner-bottle { position: absolute; inset-inline-start: 14px; bottom: 8px; height: 132px; z-index: 1; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.cpk-banner-gift { position: absolute; inset-inline-end: 12px; top: 10px; width: 74px; height: 74px; object-fit: contain; z-index: 1; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.cpk-banner-name { position: absolute; inset-inline: 70px 12px; bottom: 10px; z-index: 2; display: flex; align-items: center; gap: 8px; color: #fff; }
.cpk-banner-name b { font-size: 18px; text-shadow: 0 2px 4px rgba(0, 0, 0, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpk-flag { flex: none; width: 30px; height: 22px; border-radius: 4px; object-fit: cover; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.cpk-fl { flex: none; width: 22px; height: 16px; border-radius: 3px; object-fit: cover; vertical-align: -3px; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.cpk-mine-tag { flex: none; padding: 2px 8px; border-radius: 999px; background: #ffd23f; color: #5a3b00; font-size: 11px; font-weight: 900; }
.cpk-descr { margin: 10px 12px 0; font-size: 13px; color: #6d5d8c; }
.cpk-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.cpk-row { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px; border-radius: 12px; background: #f6f2fc; }
.cpk-row-art { flex: none; width: 58px; height: 64px; display: flex; align-items: center; justify-content: center; }
.cpk-row-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cpk-row-txt b { font-size: 13px; line-height: 1.25; color: #3b2566; }
.cpk-row-txt small { align-self: flex-start; padding: 1px 7px; border-radius: 8px; background: #ff4f8b; color: #fff; font-size: 10.5px; font-weight: 800; }
.cpk-pts { font-style: normal; font-size: 11px; font-weight: 800; color: #9a6b00; }
.cpk-row-bottle { height: 62px; width: auto; }
.cpk-row-table { width: 58px; height: 42px; object-fit: cover; border-radius: 6px; }
.cpk-row-gift { width: 54px; height: 54px; object-fit: contain; }
.cpk-row-gift.mini { width: 40px; height: 40px; }
/* my photo in the seat frame / the round frame: all inside its box */
.cpk-sf { position: relative; width: 54px; height: 70px; }
.cpk-sf-ava { position: absolute; left: 24.91%; top: 23.83%; width: 50.18%; height: 50.14%; object-fit: cover; }
.cpk-sf-fr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.cpk-rf { position: relative; width: 58px; height: 58px; }
.cpk-rf-ava { position: absolute; left: 28.1%; top: 28.1%; width: 43.8%; height: 43.8%; border-radius: 50%; object-fit: cover; }
.cpk-rf-fr { position: absolute; inset: 0; width: 100%; height: 100%; }
.cpk-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0 12px; }
.cpk-buy .st-buy { min-width: 130px; padding: 9px 18px; font-size: 16px; }
.cpk-owned { padding: 6px 14px; border-radius: 999px; background: #e9f7e1; color: #2f7d0c; font-weight: 900; }
.cpk-note { margin: 8px 12px 12px; font-size: 11.5px; color: #8a7ca8; text-align: center; }
.cpk-got-cap { text-align: center; font-size: 17px; font-weight: 900; color: #b4005a; margin: 0 0 10px; }
.cpk-picker { margin: 0 4px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .1); }
.cpk-pick-cap { font-weight: 800; color: #fff; margin: 0 2px 8px; font-size: 13px; }
.cpk-pick-row { display: flex; gap: 8px; }
.cpk-search, .cpk-select { min-width: 0; flex: 1; padding: 8px 10px; border-radius: 10px; border: 1px solid #ddd2ee; font: inherit; font-size: 14px; background: #fff; color: #3b2566; }
.cpk-found { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.cpk-hit { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 10px; background: #fff; color: #3b2566; font: inherit; font-weight: 700; cursor: pointer; text-align: start; }
.cpk-hit-own { margin-inline-start: auto; color: #2f7d0c; font-style: normal; }
.cpk-none { padding: 10px; border-radius: 10px; background: #fff; color: #3b2566; text-align: center; }
.cpk-none p { margin: 0 0 8px; font-size: 13px; }
.cpk-ask-link { display: block; margin: 8px auto 0; border: 0; background: none; color: #ffd23f; font: inherit; font-size: 12.5px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.cpk-askbox { display: flex; flex-direction: column; gap: 8px; }
.cpk-askbox p { margin: 0; color: #6d5d8c; font-size: 13px; }
.cpk-note-in { resize: vertical; }

/* "Your design": my packs' cards */
.dz-card.dz-cpk { position: relative; }
.cpk-sf.dz { width: 120px; height: 156px; }
.dz-cpk-flag { position: absolute; top: 6px; inset-inline-start: 6px; width: 22px; height: 16px; border-radius: 3px; object-fit: cover; z-index: 3; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.cpk-dz-bottle img { transform: none !important; height: 72px; width: auto !important; }

/* the gift list: my packs' gifts */
.gs-cat.gs-cpk .gs-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gs-cpk-only { font-size: 11px; font-weight: 700; color: #8a7ca8; }
.cpk-gift .gs-own { background: #ff4f8b; }

/* the level / VIP badge on a seat wearing a country frame: the same size and corner as on any seat (seasonal.css),
   above the frame, see-through (the owner, 2026-11-10/11) */
.seat-photo:has(> .seat-frame.cpf) > .league-icon:not(.top):not(.dist) { z-index: 4; opacity: .55; }

/* a discount for a limited time: the badge on the banner, the old price struck through, the countdown */
.cpk-sale-tag { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: linear-gradient(90deg, #ff3d6e, #ff7a3d); color: #fff; font-size: 14px; font-weight: 900; box-shadow: 0 3px 10px rgba(255, 61, 110, .45); }
.cpk-was { margin-inline-end: 6px; opacity: .7; font-size: .8em; font-weight: 700; }
.cpk-sale-ends { margin: 8px 12px 0; text-align: center; font-size: 12.5px; font-weight: 800; color: #e0245e; }
