/* PlayHub Store Kit — front end. Uses the PlayHub theme colours when present. */
.phs-pay, .phs-track, .phs-modal {
	--phs-accent: var(--ph-accent, #56be60);
	--phs-surface: var(--ph-surface, #f4f5f7);
	--phs-card: var(--ph-card, #ffffff);
	--phs-border: var(--ph-border, #e4e6ea);
	--phs-text: var(--ph-text, #15171c);
	--phs-muted: var(--ph-muted, #61656f);
	--phs-ink: var(--ph-accent-ink, #26853a);
	color: var(--phs-text);
}
.phs-pay { background: var(--phs-surface); border: 1px solid var(--phs-border); border-radius: 18px; padding: 24px; margin: 0 0 28px; }
.phs-pay__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.phs-pay__qr { background: #fff; border: 1px solid var(--phs-border); border-radius: 14px; padding: 14px; text-align: center; color: #333; }
.phs-pay__qr svg, .phs-pay__qrimg { width: 100%; height: auto; display: block; }
.phs-pay__qr small { display: block; margin-top: 6px; font-size: 12px; }
.phs-pay__step { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--phs-ink); }
.phs-pay__step:not(:first-child) { margin-top: 22px; }
.phs-pay__amount { font-size: 34px; font-weight: 800; line-height: 1.1; }
.phs-pay__ref { margin: 2px 0 12px; color: var(--phs-muted); }
.phs-pay__vpa { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--phs-card); border: 1px solid var(--phs-border); border-radius: 10px; padding: 10px 12px; }
.phs-pay__vpa span { color: var(--phs-muted); font-size: 13px; }
.phs-pay__vpa code { font-size: 16px; background: none; color: var(--phs-text); padding: 0; }
.phs-copy { margin-left: auto; background: transparent; border: 1px solid var(--phs-accent); color: var(--phs-text); border-radius: 8px; padding: 5px 12px; cursor: pointer; font-weight: 600; }
.phs-copy:hover { background: var(--phs-accent); color: #000; }
.phs-btn { display: inline-flex; justify-content: center; align-items: center; background: var(--phs-accent); color: #000 !important; border: 0; border-radius: 12px; padding: 12px 20px; font-weight: 700; cursor: pointer; text-decoration: none !important; font-size: 15px; }
.phs-btn:hover { filter: brightness(1.1); }
.phs-btn:disabled { opacity: .6; cursor: wait; }
.phs-pay__app { margin-top: 12px; display: none; }
@media (hover: none) and (pointer: coarse) { .phs-pay__app { display: inline-flex; } }
.phs-pay__instr { color: var(--phs-muted); margin: 0 0 12px; font-size: 14px; }
.phs-pay__form { display: grid; gap: 8px; max-width: 460px; }
.phs-pay__form label { font-size: 13px; font-weight: 600; color: var(--phs-text); margin-top: 4px; }
.phs-pay__form input[type="text"] { font-size: 16px; letter-spacing: .5px; }
.phs-pay__form input[type="file"] { color: var(--phs-muted); font-size: 13px; }
.phs-pay__form .phs-btn { margin-top: 8px; }
.phs-pay__alert { background: rgba(220, 60, 60, .14); border: 1px solid rgba(220, 60, 60, .5); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; }
.phs-pay__done { display: flex; gap: 16px; align-items: center; }
.phs-pay__done h2 { margin: 0 0 4px; font-size: 20px; }
.phs-pay__done p { margin: 0; color: var(--phs-muted); }
.phs-pay__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--phs-accent); color: #000; font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Tracker */
.phs-track { background: var(--phs-surface); border: 1px solid var(--phs-border); border-radius: 18px; padding: 22px 24px 18px; margin: 0 0 28px; }
.phs-track ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.phs-track li { position: relative; text-align: center; padding-top: 28px; font-size: 13px; }
.phs-track li::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: var(--phs-border); }
.phs-track li:first-child::before { display: none; }
.phs-track li.is-done::before, .phs-track li.is-current::before { background: var(--phs-accent); }
.phs-track__dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 21px; height: 21px; border-radius: 50%; background: var(--phs-card); border: 3px solid var(--phs-border); z-index: 1; box-sizing: border-box; }
.phs-track li.is-done .phs-track__dot { background: var(--phs-accent); border-color: var(--phs-accent); }
.phs-track li.is-current .phs-track__dot { border-color: var(--phs-accent); box-shadow: 0 0 0 5px rgba(86, 190, 96, .2); }
.phs-track__label { display: block; font-weight: 600; }
.phs-track li:not(.is-done):not(.is-current) .phs-track__label { color: var(--phs-muted); font-weight: 500; }
.phs-track li small { display: block; color: var(--phs-ink); margin-top: 2px; }
.phs-track__info { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--phs-border); font-size: 14px; }
.phs-track__info a { color: var(--phs-ink); }
.phs-track--stopped { color: var(--phs-text); }

/* Buy Now */
.phs-buy-now, .woocommerce div.product form.cart .button.phs-buy-now { background: #f0a92e !important; color: #000 !important; border: 0 !important; border-radius: 12px !important; font-weight: 700 !important; padding: 14px 24px !important; }
.phs-buy-now:hover, .woocommerce div.product form.cart .button.phs-buy-now:hover { background: #ffbb45 !important; }
form.cart .phs-buy-now { flex: 1; max-width: 320px; }

.phs-block-desc { font-size: 14px; }

@media (max-width: 640px) {
	.phs-pay { padding: 18px; }
	.phs-pay__grid { grid-template-columns: 1fr; }
	.phs-pay__qr { max-width: 240px; margin: 0 auto; }
	.phs-pay__amount { font-size: 28px; }
	.phs-track { padding: 18px 10px 14px; }
	.phs-track li { font-size: 11.5px; }
	form.cart { flex-wrap: wrap; }
	form.cart .phs-buy-now { max-width: none; }
}

/* WhatsApp confirm */
.phs-wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #25d366; color: #fff !important; font-weight: 700; font-size: 16px; padding: 14px 22px; border-radius: 12px; text-decoration: none !important; width: 100%; max-width: 460px; box-sizing: border-box; }
.phs-wa-btn:hover { background: #1ebe5b; color: #fff !important; }
.phs-wa-btn--small { width: auto; font-size: 14px; padding: 9px 16px; }
.phs-pay__sent { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(37, 211, 102, .12); border: 1px solid rgba(37, 211, 102, .45); font-size: 14px; max-width: 460px; }
.phs-pay__alt { margin-top: 16px; max-width: 460px; }
.phs-pay__alt summary { cursor: pointer; color: var(--phs-muted); font-size: 14px; }
.phs-pay__alt[open] summary { margin-bottom: 10px; }

/* Quick Buy popup */
html.phs-lock { overflow: hidden; }
.phs-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.phs-modal[hidden] { display: none; }
.phs-modal__overlay { position: absolute; inset: 0; background: rgba(10, 12, 16, .55); }
.phs-modal__panel { position: relative; background: var(--ph-bg, #fff); color: var(--ph-text, #15171c); width: 100%; max-width: 760px; max-height: calc(100vh - 32px); overflow: auto; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.phs-modal__body { padding: 26px; }
.phs-modal__x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ph-surface, #f4f5f7); color: inherit; font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; }
.phs-modal__title { font-size: 20px; line-height: 1.3; margin: 0 40px 6px 0; }
.phs-modal__price { margin: 0 0 18px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.phs-modal__price strong { font-size: 24px; }
.phs-modal__price span { color: var(--ph-muted, #61656f); font-size: 14px; }
.phs-quick__form { display: grid; gap: 8px; max-width: 420px; }
.phs-quick__form label { font-weight: 600; font-size: 14px; }
.phs-quick__form input[type="text"], .phs-quick__form input[type="tel"] { font-size: 16px !important; width: 100%; box-sizing: border-box; }
.phs-phone { display: flex; align-items: stretch; }
.phs-phone span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--ph-border, #e4e6ea); border-right: 0; border-radius: 10px 0 0 10px; background: var(--ph-surface, #f4f5f7); font-weight: 600; }
.phs-phone input { border-radius: 0 10px 10px 0 !important; }
.phs-quick__go { margin-top: 10px; padding: 14px 20px; font-size: 16px; }
.phs-quick__err { margin: 4px 0 0; color: #c62828; font-size: 14px; }
.phs-quick__form small { color: var(--ph-muted, #61656f); }
.phs-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.phs-modal__ok { margin: 0 40px 14px 0; font-weight: 700; color: var(--ph-accent-ink, #26853a); }
.phs-modal__link { margin: 4px 0 0; font-size: 14px; color: var(--ph-muted, #61656f); }
.phs-modal__link a { color: var(--ph-accent-ink, #26853a); }
.phs-modal .phs-pay { margin: 0; }
@media (max-width: 640px) {
	.phs-modal { padding: 0; align-items: flex-end; }
	.phs-modal__panel { border-radius: 20px 20px 0 0; max-height: 92vh; }
	.phs-modal__body { padding: 22px 18px; }
}

/* Simple checkout (name + phone) */
.phs-sc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 28px; align-items: start; color: var(--ph-text, #15171c); }
.phs-sc h2 { font-size: 18px; margin: 0 0 14px; }
.phs-sc__summary, .phs-sc__form { background: var(--ph-surface, #f4f5f7); border: 1px solid var(--ph-border, #e4e6ea); border-radius: 18px; padding: 22px; }
.phs-sc__form { max-width: none; }
.phs-sc__summary ul { list-style: none; margin: 0 0 14px; padding: 0; }
.phs-sc__summary li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ph-border, #e4e6ea); }
.phs-sc__img img { width: 48px; height: 60px; object-fit: cover; border-radius: 6px; display: block; }
.phs-sc__name small { color: var(--ph-muted, #61656f); }
.phs-sc dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; }
.phs-sc dt { color: var(--ph-muted, #61656f); }
.phs-sc dd { margin: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.phs-sc dt.phs-sc__total, .phs-sc dd.phs-sc__total { color: var(--ph-text, #15171c); font-size: 20px; font-weight: 800; padding-top: 8px; border-top: 1px solid var(--ph-border, #e4e6ea); }
.phs-sc__edit { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--ph-accent-ink, #26853a); }
.phs-sc--empty { display: block; text-align: center; padding: 40px 0; }
.phs-sc .phs-btn { background: var(--ph-accent, #56be60); }
@media (max-width: 820px) { .phs-sc { grid-template-columns: 1fr; } .phs-sc__form { order: -1; } }
