/* Parkside extras: "Chat with us" button + new-enrollment coupon pop-up. Matches the theme's chunky black-outline style. */

/* ---------- Chat ---------- */
.pk-chat { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--f-body); }
.pk-chat-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 14px; background: var(--blue); color: #fff; border: 3px solid #000; border-radius: 999px; box-shadow: 0 5px 0 #000, 0 10px 18px rgba(0,0,0,.22); font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; cursor: pointer; transition: transform .15s; }
.pk-chat-btn svg { width: 30px; height: 30px; }
.pk-chat-btn:hover { transform: translateY(-2px); }
.pk-chat-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #000; }
.pk-chat-open .pk-chat-btn { background: #fff; color: #000; }

.pk-chat-panel { width: min(360px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--paper); border: 3px solid #000; border-radius: 24px; box-shadow: 6px 6px 0 #000; overflow: hidden; animation: pk-pop .2s ease-out; }
.pk-chat-panel[hidden] { display: none; }
.pk-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--yellow); border-bottom: 3px solid #000; }
.pk-chat-head img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.pk-chat-head h2 { font-size: 1.2rem; }
.pk-chat-head p { font-size: .85rem; color: var(--ink-soft); line-height: 1.3; }
.pk-x { margin-left: auto; flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: #fff; border: 2px solid #000; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.pk-chat-body { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.pk-bubble { max-width: 88%; padding: 10px 14px; border: 2px solid #000; border-radius: 18px; font-size: .98rem; line-height: 1.4; }
.pk-them { background: #fff; border-bottom-left-radius: 4px; align-self: flex-start; }
.pk-me { background: var(--tint-blue); border-bottom-right-radius: 4px; align-self: flex-end; white-space: pre-wrap; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-chips[hidden] { display: none; }
.pk-chips button { padding: 5px 12px; background: #fff; border: 2px solid #000; border-radius: 999px; font-family: var(--f-head); font-weight: 700; font-size: .9rem; cursor: pointer; }
.pk-chips button:hover { background: var(--tint-yellow); }
.pk-chat-form { display: grid; gap: 8px; margin-top: 4px; }
.pk-chat-form[hidden] { display: none; }
.pk-chat-form label { display: grid; gap: 3px; font-family: var(--f-head); font-weight: 700; font-size: .9rem; }
.pk-chat-form input, .pk-chat-form textarea { width: 100%; padding: 9px 11px; border: 2px solid #000; border-radius: 12px; font: 400 1rem var(--f-body); background: #fff; resize: vertical; }
.pk-chat-form .pk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pk-err { color: var(--red); font-size: .9rem; min-height: 0; }
.pk-err:empty { display: none; }
.pk-send { padding: 11px; background: var(--green); color: #fff; border: 3px solid #000; border-radius: 999px; font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; cursor: pointer; box-shadow: 0 4px 0 #000; }
.pk-send:disabled { opacity: .6; cursor: wait; }
.pk-chat-foot { padding: 10px 16px; border-top: 2px dashed #000; font-size: .9rem; text-align: center; background: #fff; }
.pk-chat-foot a { color: var(--blue); font-weight: 700; }

@media (max-width: 520px) {
  .pk-chat-btn span { display: none; }
  .pk-chat-btn { padding: 12px; }
  .pk-chat-open .pk-chat-panel { max-height: calc(100vh - 110px); }
}

/* ---------- Coupon ---------- */
.pk-noscroll, .pk-noscroll body { overflow: hidden; }
.pk-coupon { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.pk-coupon[hidden] { display: none; }
.pk-coupon-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
.pk-coupon-card { position: relative; width: min(440px, 100%); padding: 34px 28px 22px; text-align: center; background: var(--tint-yellow); border: 3px solid #000; border-radius: 28px; box-shadow: 8px 8px 0 #000; outline: none; transform: scale(.9) rotate(-1.5deg); opacity: 0; transition: transform .25s cubic-bezier(.3,1.5,.6,1), opacity .2s;
  background-image: radial-gradient(circle at 12% 18%, var(--orange) 0 5px, transparent 6px), radial-gradient(circle at 88% 14%, var(--blue) 0 6px, transparent 7px), radial-gradient(circle at 92% 78%, var(--green) 0 5px, transparent 6px), radial-gradient(circle at 7% 84%, var(--purple) 0 6px, transparent 7px); }
.pk-coupon.in .pk-coupon-backdrop { opacity: 1; }
.pk-coupon.in .pk-coupon-card { transform: none; opacity: 1; }
.pk-coupon-card .pk-x { position: absolute; top: 12px; right: 12px; }
.pk-coupon-kicker { font-family: var(--f-note); font-size: 1.2rem; color: var(--brown); transform: rotate(-2deg); }
.pk-coupon-card h2 { margin-top: 6px; }
.pk-offer { display: block; font-size: clamp(2.6rem, 2rem + 3vw, 3.6rem); color: var(--red); -webkit-text-stroke: 2px #000; paint-order: stroke fill; line-height: 1; }
.pk-sub { display: block; margin-top: 6px; font-size: 1.3rem; }
.pk-code { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 18px auto 0; padding: 10px 14px; width: fit-content; background: #fff; border: 3px dashed #000; border-radius: 16px; }
.pk-code span { font-size: .9rem; }
.pk-code b { font-family: var(--f-head); font-size: 1.4rem; letter-spacing: .06em; }
.pk-code button { padding: 4px 12px; background: var(--yellow); border: 2px solid #000; border-radius: 999px; font-family: var(--f-head); font-weight: 700; cursor: pointer; }
.pk-fine { margin-top: 14px; font-size: .88rem; color: var(--ink-soft); line-height: 1.4; }
.pk-claim { display: block; margin-top: 18px; padding: 13px 18px; background: var(--red); color: #fff; text-decoration: none; border: 3px solid #000; border-radius: 999px; box-shadow: 0 5px 0 #000; font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; transition: transform .15s; }
.pk-claim:hover { transform: translateY(-2px); }
.pk-later { margin-top: 10px; background: none; border: 0; font: 400 .95rem var(--f-body); text-decoration: underline; cursor: pointer; }

@keyframes pk-pop { from { transform: translateY(10px) scale(.97); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .pk-chat-panel { animation: none; }
  .pk-coupon-card, .pk-coupon-backdrop { transition: none; }
}
