.customization-dialog.home-activities-dialog { position: fixed; inset: auto; left: calc(var(--activity-shop-x, 50vw) - var(--activity-shop-width, min(366px, calc(100vw - 24px))) / 2); top: calc(var(--activity-shop-y, 50dvh) - var(--activity-shop-height, min(640px, 78dvh)) / 2); box-sizing: border-box; width: var(--activity-shop-width, min(366px, calc(100vw - 24px))); height: var(--activity-shop-height, min(640px, 78dvh)); min-height: var(--activity-shop-height, min(640px, 78dvh)); max-height: var(--activity-shop-height, min(640px, 78dvh)); margin: 0; transform: none; background: #fff; }
.home-activities-dialog > .customization-panel { min-height: 0; overflow: hidden; overflow-anchor: none; }
.home-activities-dialog .home-activities-body { display: block; min-height: 0; overflow-y: auto; overflow-x: hidden; overflow-anchor: none; padding: 12px; place-items: normal; text-align: left; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain; }
.home-activities-dialog .home-activities-body::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* The former centered empty state must not size the shop to each category. */
#activity-shop-root { width: 100%; min-width: 0; color: #374151; }
#activity-shop-root button { border: 1px solid #e0e5ed; border-radius: 0; background: #fff; color: #536071; font: inherit; cursor: pointer; touch-action: manipulation; }
#activity-shop-root button:disabled { cursor: default; }
#activity-shop-root button:focus-visible { outline: 2px solid #fa7298; outline-offset: 2px; }
.activity-shop-toolbar { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; }
.activity-shop-categories { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; flex: 1; min-width: 0; }
.activity-shop-result { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; }
.activity-shop-result:has(.activity-shop-status:empty):not(:has(.activity-shop-open-bag.is-visible)) { display:none; }
#activity-shop-root .activity-shop-open-bag { visibility: hidden; min-height: 36px; padding: 6px; font-size: 12px; color: #ed4d82; border-color: #f56b97; }
#activity-shop-root .activity-shop-open-bag.is-visible { visibility: visible; }
.activity-shop-categories::-webkit-scrollbar { display: none; }
#activity-shop-root .activity-shop-categories button { padding: 7px 1px; font-size: 11px; white-space: nowrap; }
#activity-shop-root .activity-shop-categories button[aria-pressed="true"] { border-color: #f56b97; background: #fff3f8; color: #ed4d82; }
.activity-shop-status { height: 3.2em; min-height: 3.2em; margin: 10px 0; color: #7b8797; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; overflow-y: auto; scrollbar-width: none; }
.activity-shop-status::-webkit-scrollbar { display: none; }
.activity-shop-status.is-error { color: #cf355a; }
.activity-shop-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 9px; }
#activity-shop-root .activity-shop-product { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 7px; padding: 11px 8px 8px; border: 1px solid #e0e5ed; background: #fff; text-align: center; }
.activity-shop-product > img { width: 64px; height: 64px; object-fit: contain; }
.activity-shop-product > strong { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#activity-shop-root .activity-shop-preview { display:flex;flex-direction:column;align-items:center;gap:7px;width:100%;padding:0;border:0;color:inherit;background:transparent; }
.activity-shop-preview img { width:64px;height:64px;object-fit:contain; }
.activity-shop-preview strong { font-size:12px;line-height:1.5;overflow-wrap:anywhere; }
.activity-shop-price { margin-top: auto; font-size: 11px; color: #e74d82; }
#activity-shop-root .activity-shop-buy { width: 100%; min-height: 32px; padding: 5px 8px; border-color: #f46d98; color: #e6487e; background: #fff5f8; font-size: 12px; font-weight: 700; }
#activity-shop-root .activity-shop-buy:disabled { opacity: .55; }
#activity-shop-root .activity-shop-retry { width: 100%; margin: 0 0 10px; padding: 8px; color: #e6487e; border-color: #f46d98; }
.activity-shop-confirmation { position: fixed; inset: auto; left: var(--activity-shop-x, 50%); top: var(--activity-shop-y, 50%); width: min(320px, calc(var(--activity-shop-width, 90vw) - 16px)); max-width: none; max-height: calc(var(--activity-shop-height, 78dvh) - 16px); margin: 0; padding: 0; overflow: hidden; transform: translate(-50%, -50%); border: 1px solid #f890b0; border-radius: 0; color: #374151; background: #fff; }
.activity-shop-confirmation::backdrop { background: rgb(25 30 40 / 36%); }
.activity-shop-confirmation[hidden] { display: none; }
.activity-shop-confirm-card { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(var(--activity-shop-height, 78dvh) - 18px); }
.activity-shop-confirmation h3 { margin: 0; padding: 12px; border-bottom: 1px solid #f8d9e4; background: #fff7fa; font-size: 15px; color: #e85084; }
.activity-shop-confirm-content { min-height: 0; padding: 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.activity-shop-confirm-content::-webkit-scrollbar { display: none; }
.activity-shop-feedback { margin: 10px 0; text-align: center; font-size: 14px; }
.activity-shop-selected { font-size: 12px; overflow-wrap: anywhere; }
.activity-shop-cost, .activity-shop-pending-note { margin: 9px 0 0; font-size: 11px; line-height: 1.65; }
.activity-shop-cost { color: #df467b; }
.activity-shop-rewards { list-style: none; margin: 8px 0; padding: 0; font-size: 11px; line-height: 1.75; }
.activity-shop-rewards li { margin: 5px 0; overflow-wrap: anywhere; }
.activity-shop-confirm-actions { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #f8d9e4; }
#activity-shop-root .activity-shop-confirm-actions button { flex: 1; min-height: 36px; padding: 8px; border-color: #f46d98; color: #e6487e; font-size: 12px; font-weight: 700; }
#activity-shop-root .activity-shop-confirm-actions .is-secondary { border-color: #dce2eb; color: #8390a0; background: #fff; }
#activity-shop-root .activity-shop-confirm-actions button:disabled { color: #9da6b4; border-color: #dce2eb; background: #f3f5f8; }
.activity-shop-empty { grid-column: 1 / -1; font-size: 12px; color: #909bac; padding: 16px 0; }
@media (max-width: 350px) { .home-activities-dialog .home-activities-body { padding: 10px; } .activity-shop-products { gap: 7px; } }
@media (max-width: 600px), (pointer: coarse) {
  .home-activities-dialog .customization-panel__header h2 { font-size: 20px; }
  .home-activities-dialog .customization-dialog__close { min-width: 44px; min-height: 40px; }
  #activity-shop-root .activity-shop-categories button { min-height: 40px; font-size: 13px; }
  .activity-shop-preview img, .activity-shop-product > img { width: 80px; height: 80px; }
  .activity-shop-preview strong, .activity-shop-product > strong { font-size: 14px; }
  .activity-shop-price, .activity-shop-status { font-size: 13px; }
  #activity-shop-root .activity-shop-buy { min-height: 40px; font-size: 14px; }
}
