@import url("/css/windows/final-layout-fixes.css?v=2");
/* Final responsive pass for the HUD, shop and compact dialogs. */
#xpTrack,
#popTrack {
  position: relative;
  overflow: visible;
}
#popTrack {
  position: absolute;
}
#xpTrackValue,
#popTrackValue {
  position: absolute;
  inset: 50% 2px auto;
  transform: translateY(-50%);
  z-index: 2;
  text-align: center;
  color: #173112;
  font:
    800 9px/1 system-ui,
    sans-serif;
  text-shadow:
    0 1px #fff,
    0 0 3px #fff;
  pointer-events: none;
  white-space: nowrap;
}
.avatar-wrap {
  position: relative;
}
.avatar-wrap:after {
  content: "";
  position: absolute;
  inset: -6px;
  background: var(--profile-frame) center/contain no-repeat;
  pointer-events: none;
  z-index: 2;
}
.avatar-wrap img {
  position: relative;
  z-index: 1;
}

#window[data-animal] {
  width: min(620px, calc(100vw - 28px));
  height: auto;
  max-height: min(76vh, 680px);
}
#window[data-animal] #windowBody {
  padding: 12px 16px 16px;
  overflow: auto;
}
.animal-profile {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.animal-profile > img {
  width: 108px;
  height: 92px;
  object-fit: contain;
}
.animal-profile h3,
.animal-profile p {
  margin: 3px 0;
}
.animal-meters {
  display: grid;
  gap: 7px;
  margin: 8px 0;
}
.animal-meter {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.animal-meter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #526044;
  font:
    700 11px/1.2 Arial,
    sans-serif;
}
.animal-meter-heading span {
  flex: none;
  color: #333;
  font-variant-numeric: tabular-nums;
}
.animal-meter-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid #d9dec9;
  border-radius: 7px;
  background: #e8ebdf;
}
.animal-meter-track i {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: #62a8bd;
  transition: width 0.25s ease;
}
.animal-meter[data-meter="activity"] .animal-meter-track i {
  background: #8aa84f;
}
.animal-meter small {
  color: #748064;
  font:
    10px/1.25 Arial,
    sans-serif;
}
#tooltip.crop-tooltip.animal-hover-tooltip {
  z-index: 6;
}
.animal-actions {
  margin-top: 10px;
}
.dog-protection {
  margin-top: 8px;
  padding: 8px 10px;
}
.dog-protection-heading,
.bone-stock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bone-stock img,
#dogBone img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.dog-history {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #d8c79d;
}
.dog-history h3 {
  margin: 0 0 7px;
  font-size: 15px;
}
.dog-history .gift-list {
  max-height: 132px;
  overflow: auto;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.dog-history .gift-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 6px;
  border-bottom: 1px solid #eadfc4;
}
.dog-history .gift-list small {
  grid-column: 1/-1;
}
.history-visit {
  border: 0;
  background: none;
  color: #2672a8;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.shop-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, minmax(120px, auto)) !important;
  grid-auto-rows: minmax(120px, auto) !important;
  align-content: start !important;
  gap: 8px !important;
}
#window:has(.shop-grid) {
  height: fit-content !important;
  min-height: 0 !important;
  max-height: 76dvh !important;
}
#window:has(.shop-grid) #windowBody {
  height: auto !important;
  max-height: calc(76dvh - 58px) !important;
  overflow: auto !important;
}
#window:has(.shop-grid),
#window:has(.bag-grid),
#window:has(#sellAll) {
  height: min(480px, 76dvh) !important;
  min-height: min(360px, 76dvh) !important;
  max-height: 76dvh !important;
  width: min(760px, 94vw) !important;
}
#window:has(.shop-grid) #windowBody,
#window:has(.bag-grid) #windowBody,
#window:has(#sellAll) #windowBody {
  height: calc(100% - 58px) !important;
  max-height: none !important;
}
.shop-grid .seed {
  position: relative;
  display: grid !important;
  grid-template-rows: 62px auto auto 1fr auto;
  align-content: start;
  min-width: 0 !important;
  min-height: 158px !important;
  height: auto !important;
  padding: 8px !important;
  gap: 3px !important;
  overflow: hidden;
}
.shop-grid .seed > img {
  width: 70px !important;
  height: 60px !important;
  margin: auto !important;
  object-fit: contain !important;
}
.shop-grid .seed > b {
  font-size: 13px !important;
  line-height: 1.15 !important;
  min-height: 0 !important;
  margin: 0 !important;
}
.shop-grid .seed small {
  font-size: 10px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}
.shop-grid .seed {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  grid-template-rows: none !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 7px 5px !important;
  gap: 3px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.shop-grid .seed:hover {
  transform: none !important;
  box-shadow: none !important;
  background: #f5f7ed !important;
}
.shop-grid .seed > img {
  width: 76px !important;
  height: 72px !important;
  padding: 0 !important;
  background: none !important;
  object-fit: contain !important;
  flex: none !important;
}
.shop-grid .seed > b,
.shop-grid .seed .seed-level,
.shop-grid .seed .seed-details {
  display: none !important;
}
.shop-grid .seed .seed-prices {
  align-self: stretch !important;
  display: flex !important;
  justify-content: center !important;
  gap: 2px !important;
  margin-top: 1px !important;
}
.shop-grid .seed .buy-seed {
  flex: 0 1 auto !important;
  width: auto !important;
  height: 25px !important;
  min-height: 25px !important;
  padding: 1px 3px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #65665c !important;
  gap: 3px !important;
}
.shop-grid .seed .buy-seed img {
  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
}
.shop-grid .seed .buy-seed span,
.shop-grid .seed .buy-seed strong {
  font:
    700 12px/1 Arial,
    sans-serif !important;
}
.shop-grid .seed .vip-tag {
  top: 2px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  padding: 2px 5px !important;
  font-size: 8px !important;
}
#window[data-kind="shop"] {
  width: min(680px, 94vw) !important;
  height: min(620px, 84dvh) !important;
  min-height: min(360px, 84dvh) !important;
  padding: 0 !important;
  border: 5px solid #dedede !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 5px 20px #0003 !important;
  color: #555 !important;
}
#window[data-kind="shop"] .title {
  height: 52px !important;
  padding: 8px 48px !important;
  background: #f7f7f7 !important;
  box-shadow: none !important;
  border-bottom: 1px solid #ddd !important;
  color: #444 !important;
  text-shadow: none !important;
  font:
    700 21px Arial,
    sans-serif !important;
}
#window[data-kind="shop"] .title:after,
#window[data-kind="shop"] .window-emblem {
  display: none !important;
}
#window[data-kind="shop"] .title {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}
#window[data-kind="shop"] .title > #close {
  top: 9px !important;
  right: 10px !important;
  width: 32px !important;
  height: 32px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #555 !important;
  font-size: 27px !important;
}
#window[data-kind="shop"] .title > .shop-recharge {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: auto !important;
  height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid #cfd9bd !important;
  border-radius: 6px !important;
  background: #f1f7e8 !important;
  box-shadow: none !important;
  color: #55783a !important;
  font:
    600 11px Arial,
    sans-serif !important;
  white-space: nowrap;
}
#window[data-kind="shop"] .title > .shop-recharge img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}
#window[data-kind="shop"] #windowBody {
  height: calc(100% - 52px) !important;
  padding: 0 15px 10px !important;
  background: #fff !important;
  overflow: auto !important;
  scrollbar-width: thin;
  scrollbar-color: #b8bec3 #f2f2f2;
}
#window[data-kind="shop"] .window-intro {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
#window[data-kind="shop"] .window-wallet {
  display: none !important;
}
#window[data-kind="shop"] .tabs {
  position: sticky !important;
  top: 0 !important;
  display: flex !important;
  gap: 5px !important;
  margin: 0 -4px 5px !important;
  padding: 8px 4px 0 !important;
  background: #fff !important;
  overflow: auto !important;
}
#window[data-kind="shop"] .tabs button {
  height: 40px !important;
  padding: 8px 17px !important;
  border: 1px solid #ddd !important;
  border-bottom: 0 !important;
  border-radius: 7px 7px 0 0 !important;
  background: #dfe3e8 !important;
  color: #73777a !important;
  font:
    600 13px Arial,
    sans-serif !important;
}
#window[data-kind="shop"] .tabs button.selected {
  position: relative;
  z-index: 1;
  background: #fff !important;
  color: #4b4b4b !important;
  border-color: #ddd !important;
  box-shadow: 0 -2px 5px #0000000b !important;
}
#window[data-kind="shop"] .shop-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-rows: 124px !important;
  min-height: 0 !important;
  padding: 12px 8px !important;
  border: 1px solid #ddd !important;
  border-radius: 0 12px 12px 12px !important;
  background: #fff !important;
  gap: 8px 12px !important;
}
#window[data-kind="shop"] #windowBody {
  display: flex !important;
  flex-direction: column !important;
}
#window[data-kind="shop"] #windowBody > .shop-grid {
  flex: 1 1 auto !important;
}
#window[data-kind="shop"] #windowBody > .shop-footer {
  flex: 1 1 auto !important;
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  padding: 4px 8px !important;
  position: relative !important;
  z-index: 5 !important;
  background: #fff !important;
}
#window[data-kind="shop"] .shop-footer button {
  min-width: 36px !important;
  min-height: 32px !important;
  border: 1px solid #c9cdd1 !important;
  border-radius: 5px !important;
  background: #f7f8f8 !important;
  color: #41464a !important;
  cursor: pointer;
}
#window[data-kind="shop"] .shop-footer button:disabled {
  opacity: 0.4 !important;
  cursor: default;
}
#window[data-kind="shop"] .shop-footer b {
  min-width: 48px;
  text-align: center;
}
#window[data-kind="shop"] #windowBody::-webkit-scrollbar {
  width: 12px;
}
#window[data-kind="shop"] #windowBody::-webkit-scrollbar-thumb {
  border: 3px solid #fff;
  border-radius: 8px;
  background: #c7cbd0;
}
#window[data-kind="shop"] #windowBody::-webkit-scrollbar-track {
  background: #f5f5f5;
}
#window[data-kind="shop"] .shop-footer {
  margin-top: 4px !important;
  padding-top: 4px !important;
}
.seed-prices {
  align-self: end;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px !important;
}
.seed-prices:has(> button:only-child) {
  grid-template-columns: 1fr;
}
.buy-seed {
  min-width: 0 !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 3px 6px !important;
  justify-content: center !important;
}
.buy-seed img {
  width: 20px !important;
  height: 20px !important;
}
.vip-tag {
  position: absolute !important;
  z-index: 3;
  top: 7px !important;
  left: 7px !important;
  width: auto !important;
  height: auto !important;
  padding: 3px 7px !important;
  transform: none !important;
  writing-mode: horizontal-tb !important;
  background: #75449a !important;
  color: #fff !important;
  border: 1px solid #9d72bd !important;
  border-radius: 4px !important;
  text-align: center;
  font:
    800 9px/1 system-ui,
    sans-serif;
  letter-spacing: 0 !important;
  box-shadow: 0 1px 2px #0003 !important;
}
.shop-grid .seed:has(.vip-tag) {
  padding-left: 8px !important;
}
#purchaseBox.crop-purchase {
  width: min(570px, calc(100vw - 24px));
  max-height: min(92dvh, 700px);
  padding: 18px 22px;
  overflow: auto;
}
#purchaseBox.crop-purchase .purchase-heading {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}
#purchaseBox.crop-purchase .purchase-heading > img {
  width: 100px;
  height: 90px;
  object-fit: contain;
}
#purchaseBox.crop-purchase .crop-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 10px 0 14px;
  padding: 10px 14px;
  background: #fffdf4;
  border: 1px solid #e0d6b7;
  border-radius: 6px;
}
#purchaseBox.crop-purchase .crop-facts > div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 29px;
  border-bottom: 1px solid #eee6cf;
}
#purchaseBox.crop-purchase .crop-facts > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
#purchaseBox.crop-purchase .crop-facts dt {
  color: #665f50;
  font: 700 12px/1.25 Arial;
}
#purchaseBox.crop-purchase .crop-facts dd {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  color: #4c493e;
  font: 700 12px/1.25 Arial;
  text-align: right;
}
#purchaseBox.crop-purchase .crop-facts img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}
@media (max-width: 600px) {
  #purchaseBox.crop-purchase {
    padding: 12px 14px;
  }
  #purchaseBox.crop-purchase .purchase-heading {
    grid-template-columns: 70px 1fr;
    gap: 9px;
  }
  #purchaseBox.crop-purchase .purchase-heading > img {
    width: 70px;
    height: 62px;
  }
  #purchaseBox.crop-purchase .crop-facts {
    grid-template-columns: 1fr;
    padding: 7px 10px;
  }
  #purchaseBox.crop-purchase .crop-facts > div:nth-last-child(2) {
    border-bottom: 1px solid #eee6cf;
  }
  #purchaseBox.crop-purchase .crop-facts dt,
  #purchaseBox.crop-purchase .crop-facts dd {
    font-size: 11px;
  }
}

.account-profile-form {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: auto;
}
.account-identity {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #f7f0db;
  border: 1px solid #dac99e;
  border-radius: 7px;
}
.account-identity img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}
.account-identity div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.account-identity b {
  font-size: 17px;
}
.account-identity span {
  font-weight: 700;
  color: #456b2a;
}
.account-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.account-actions > * {
  flex: 1;
  min-height: 42px;
  height: 42px;
  margin: 0;
}
.password-change {
  padding: 8px 10px;
  border: 1px solid #d8dfc5;
  border-radius: 6px;
  color: #4e633d;
}
.password-change summary {
  cursor: pointer;
  font-weight: 700;
}
.account-password-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
}
.account-password-grid label {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 12px;
}
.account-password-grid input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid #c8d3b3;
  border-radius: 5px;
  background: #fffef8;
  color: #3d4e31;
}
.account-avatar-preview {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
}
.account-avatar-preview > img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.account-avatar-preview:after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--account-frame) center/contain no-repeat;
}
.account-id {
  display: flex !important;
  align-items: center;
  gap: 6px;
}
.account-id button {
  width: 27px;
  height: 27px;
  border: 1px solid #b9c99d;
  border-radius: 5px;
  background: #fff;
  color: #46622f;
  font-size: 16px;
}
.account-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}
.account-edit-grid label {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  color: #526342;
  font-size: 12px;
  font-weight: 700;
}
.account-edit-grid label:last-child {
  grid-column: 1 / -1;
}
.account-edit-grid input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #c8d3b3;
  border-radius: 5px;
  background: #fffef8;
  color: #3d4e31;
  font: inherit;
  font-weight: 400;
}
.avatar-options,
.frame-options {
  border: 1px solid #d8dfc5;
  border-radius: 7px;
  padding: 8px;
}
.avatar-options,
.frame-options {
  display: flex;
  gap: 5px;
  overflow-x: auto;
}
.avatar-options legend,
.frame-options legend {
  font-weight: 800;
  color: #526c39;
}
.avatar-options label,
.frame-options label {
  flex: none;
}
.avatar-options input,
.frame-options input {
  position: absolute;
  opacity: 0;
}
.avatar-options img,
.frame-options img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 6px;
}
.avatar-options input:checked + img,
.frame-options input:checked + img {
  border-color: #729844;
  background: #edf5df;
}
.danger-button {
  color: #8c332d !important;
}
.warehouse-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.warehouse-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  background: #eef3e3;
  border: 1px solid #d4ddbf;
  border-radius: 7px;
}
.warehouse-summary span {
  font-size: 10px;
  font-weight: 800;
  color: #70805c;
}
.warehouse-summary b {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #435d2e;
}
.warehouse-summary img {
  width: 24px;
}
.warehouse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 390px;
  overflow: auto;
}
.warehouse-grid article {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid #dde2d1;
  background: #fffef8;
  border-radius: 7px;
}
.warehouse-grid article > img {
  width: 56px;
  height: 50px;
  object-fit: contain;
}
.warehouse-grid article div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.warehouse-grid article span {
  font-size: 10px;
  color: #7b866d;
}
.warehouse-grid article strong {
  color: #5d7c3d;
}
.warehouse-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.warehouse-empty {
  text-align: center;
  padding: 45px 15px;
  color: #748266;
}
.warehouse-empty b {
  font:
    700 21px Georgia,
    serif;
}

.account-id button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 1px solid #c8d5b8;
  border-radius: 6px;
  background: #f7faef;
  color: #5b7741;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.account-id button:hover {
  background: #e9f1dc;
  border-color: #91aa70;
  transform: translateY(-1px);
}
.account-id button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bag-grid .ration-card {
  position: relative;
  min-height: 183px !important;
  height: 183px;
  padding: 10px;
  justify-content: center;
}
.bag-grid .ration-card img {
  width: 100px !important;
  height: 100px !important;
  filter: none !important;
  opacity: 1 !important;
}
.ration-card .used-mark {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #e5efda;
  color: #50723b;
  font: bold 9px Arial;
}
.bag-grid:has(.ration-card) {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: 183px !important;
  gap: 8px !important;
}
.bag-grid:has(.ration-card) > .item {
  height: 183px;
  min-height: 183px;
}
.warehouse-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-height: 390px;
}
.warehouse-card {
  position: relative;
  display: grid;
  grid-template-rows: 20px 56px auto auto auto;
  justify-items: center;
  align-content: start;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #dde2d1;
  background: #fffef8;
  border-radius: 7px;
  cursor: pointer;
  text-align: center;
}
.warehouse-card > input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #6d914b;
}
.warehouse-card > img {
  width: 56px;
  height: 50px;
  object-fit: contain;
}
.warehouse-item-name {
  font: bold 12px Georgia;
  overflow-wrap: anywhere;
}
.warehouse-card small {
  font: 10px Arial;
  color: #7b866d;
}
.warehouse-card strong {
  color: #5d7c3d;
}
.warehouse-card:has(input:checked) {
  border-color: #87a766;
  background: #f1f6e8;
  box-shadow: inset 0 0 0 1px #b9cca2;
}
.warehouse-card.gift-only {
  opacity: 0.72;
  cursor: default;
}

#cameraControls {
  transform: scale(0.82);
  transform-origin: right bottom;
}

@media (max-width: 700px) {
  #cameraControls {
    display: none !important;
  }
  #xpTrackValue,
  #popTrackValue {
    font-size: 8px;
  }
  #window,
  #window[data-animal] {
    width: min(94vw, 620px) !important;
    height: auto !important;
    max-height: 82dvh !important;
    margin: auto !important;
  }
  #windowBody,
  #window[data-animal] #windowBody {
    padding: 8px 10px 12px !important;
    max-height: calc(82dvh - 42px) !important;
    overflow: auto !important;
  }
  #window:has(.shop-grid),
  #window:has(.bag-grid),
  #window:has(#sellAll) {
    width: 96vw !important;
    height: min(480px, 76dvh) !important;
    min-height: min(360px, 76dvh) !important;
    max-height: 76dvh !important;
  }
  #window:has(.shop-grid) #windowBody,
  #window:has(.bag-grid) #windowBody,
  #window:has(#sellAll) #windowBody {
    height: calc(100% - 42px) !important;
    max-height: none !important;
  }
  .animal-profile {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 9px;
  }
  .animal-profile > img {
    width: 76px;
    height: 68px;
  }
  .animal-profile h3 {
    font-size: 14px;
  }
  .animal-profile p,
  .animal-profile small {
    font-size: 11px;
  }
  .shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(90px, auto)) !important;
    grid-auto-rows: minmax(90px, auto) !important;
    gap: 5px !important;
  }
  .shop-grid .seed {
    min-height: 142px !important;
    padding: 6px !important;
    grid-template-rows: 52px auto auto 1fr auto;
  }
  .shop-grid .seed > img {
    width: 58px !important;
    height: 50px !important;
  }
  .shop-grid .seed > b {
    font-size: 12px !important;
  }
  .tabs {
    display: flex !important;
    overflow-x: auto !important;
    gap: 3px !important;
  }
  .tabs button {
    flex: 0 0 auto;
    min-width: 72px !important;
    padding: 7px 5px !important;
    font-size: 10px !important;
  }
  .account-identity {
    grid-template-columns: 52px 1fr;
    padding: 7px;
  }
  .account-identity img {
    width: 52px;
    height: 52px;
  }
  .avatar-options img {
    width: 42px !important;
    height: 42px !important;
  }
  .account-edit-grid {
    grid-template-columns: 1fr;
  }
  .account-password-grid {
    grid-template-columns: 1fr;
  }
  .warehouse-grid {
    grid-template-columns: 1fr;
  }
  .warehouse-summary {
    grid-template-columns: 1fr 1fr;
  }
  .warehouse-grid article {
    grid-template-columns: 45px 1fr auto;
  }
  .warehouse-grid article > img {
    width: 45px;
    height: 40px;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  #hud {
    transform: scale(0.58) !important;
    transform-origin: top left !important;
    width: 170% !important;
  }
  #friendsRail {
    top: 66px !important;
  }
  #toolbar {
    transform: translateX(-50%) scale(0.72) !important;
    transform-origin: bottom center !important;
  }
  #toolHint {
    display: none !important;
  }
  #window {
    max-height: 94dvh !important;
  }
  #windowBody {
    max-height: calc(94dvh - 42px) !important;
  }
  .title {
    height: 42px !important;
  }
  .shop-grid {
    grid-auto-rows: 112px !important;
  }
  .shop-grid .seed {
    min-height: 112px !important;
    grid-template-rows: 34px auto 1fr auto !important;
  }
  .shop-grid .seed > img {
    height: 34px !important;
    width: 46px !important;
  }
  .buy-seed {
    height: 24px !important;
    min-height: 24px !important;
  }
  .warehouse-grid {
    max-height: 220px;
  }
  .account-profile-form {
    gap: 5px;
  }
  .account-identity {
    padding: 4px;
  }
  .avatar-options img,
  .frame-options img {
    width: 38px !important;
    height: 38px !important;
  }
}
@media (max-width: 700px) {
  .bag-grid:has(.ration-card) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-rows: 132px !important;
    gap: 4px !important;
  }
  .bag-grid:has(.ration-card) > .item {
    height: 132px;
    min-height: 132px;
    padding: 5px;
  }
  .bag-grid .ration-card img {
    width: 64px !important;
    height: 64px !important;
  }
  .warehouse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  #window[data-kind="shop"] {
    height: min(620px, 84dvh) !important;
    min-height: min(360px, 84dvh) !important;
    max-height: 84dvh !important;
  }
  #window[data-kind="shop"] #windowBody {
    height: calc(100% - 52px) !important;
    max-height: none !important;
  }
  #window[data-kind="shop"] .shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-rows: 112px !important;
  }
}

#window[data-kind="shop"] {
  height: min(530px, 84dvh) !important;
  min-height: min(400px, 84dvh) !important;
  max-height: 84dvh !important;
}
#window[data-kind="shop"] #windowBody {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  height: calc(100% - 52px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding-bottom: 12px !important;
}
#window[data-kind="shop"] .window-intro {
  flex: none !important;
}
#window[data-kind="shop"] .tabs {
  flex: none !important;
  overflow: visible !important;
}
#window[data-kind="shop"] .shop-grid {
  flex: 0 0 auto !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-rows: 124px !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
  scrollbar-color: #b8bec3 #f2f2f2 !important;
}
#window[data-kind="shop"] .shop-grid::-webkit-scrollbar {
  width: 12px;
}
#window[data-kind="shop"] .shop-grid::-webkit-scrollbar-thumb {
  border: 3px solid #fff;
  border-radius: 8px;
  background: #c7cbd0;
}
#window[data-kind="shop"] .shop-grid::-webkit-scrollbar-track {
  background: #f5f5f5;
}
#window[data-kind="shop"] .seed-prices:has(> button:nth-child(2)) {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-auto-rows: 19px !important;
  gap: 0 !important;
}
#window[data-kind="shop"] .seed-prices:has(> button:nth-child(2)) .buy-seed {
  width: 100% !important;
  height: 19px !important;
  min-height: 19px !important;
  justify-content: center !important;
}
#window[data-kind="shop"] .seed:has(.seed-prices > button:nth-child(2)) > img {
  height: 64px !important;
}
#tooltip.hud-tooltip {
  z-index: 100 !important;
  width: 190px !important;
  min-width: 0 !important;
  max-width: min(190px, calc(100vw - 20px)) !important;
  padding: 8px 10px !important;
  transform: none !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}
#tooltip.hud-tooltip:after {
  display: block !important;
  position: absolute;
  top: calc(50% - 8px);
  bottom: auto;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  transform: none;
  background: transparent;
}
#tooltip.hud-tooltip.tooltip-side-right:after {
  left: -15px;
  border-right-color: #d5bd58;
  filter: drop-shadow(-1px 0 #d5bd58);
}
#tooltip.hud-tooltip.tooltip-side-left:after {
  right: -15px;
  left: auto;
  border-left-color: #d5bd58;
  filter: drop-shadow(1px 0 #d5bd58);
}
@media (max-width: 700px) {
  #window[data-kind="shop"] {
    height: min(530px, 84dvh) !important;
    min-height: min(360px, 84dvh) !important;
  }
  #window[data-kind="shop"] .shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-rows: 112px !important;
    height: calc(3 * 112px + 2 * 5px + 24px) !important;
    max-height: calc(3 * 112px + 2 * 5px + 24px) !important;
  }
}
#window[data-kind="shop"] .buy-seed {
  display: grid !important;
  grid-template-columns: 20px max-content !important;
  align-items: center !important;
  justify-content: center !important;
  justify-items: center !important;
  width: 100% !important;
  margin: 0 !important;
}
#window[data-kind="shop"] .buy-seed > img {
  grid-column: 1 !important;
  grid-row: 1 !important;
  margin: 0 !important;
}
#window[data-kind="shop"] .buy-seed > span,
#window[data-kind="shop"] .buy-seed > strong {
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  text-align: left !important;
}
#tooltip.hud-tooltip:before,
#tooltip.hud-tooltip:after {
  content: "";
  position: absolute;
  top: calc(50% - 10px);
  bottom: auto;
  width: 13px;
  height: 20px;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}
#tooltip.hud-tooltip.tooltip-side-right:before {
  left: -11px;
  background: #d5bd58;
}
#tooltip.hud-tooltip.tooltip-side-right:after {
  left: -8px;
  top: calc(50% - 8px);
  width: 11px;
  height: 16px;
  background: #fff9db;
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}
#tooltip.hud-tooltip.tooltip-side-left:before {
  right: -11px;
  left: auto;
  background: #d5bd58;
  transform: rotate(180deg) !important;
}
#tooltip.hud-tooltip.tooltip-side-left:after {
  right: -8px;
  left: auto;
  top: calc(50% - 8px);
  width: 11px;
  height: 16px;
  background: #fff9db;
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
  transform: rotate(180deg) !important;
}

/* Classic purchased-items panel and toolbar feedback. */
#window[data-kind="bag"] {
  position: fixed;
  top: auto;
  right: auto;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px + var(--toolbar-height, 78px));
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, calc(100vw - 32px)) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(260px, calc(100dvh - 150px)) !important;
  margin: 0 !important;
  border: 5px solid #f7f7f1;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 0 0 4px #80aa45,
    0 12px 36px #17281788;
}
#window[data-kind="bag"]::backdrop {
  background: transparent !important;
  backdrop-filter: none !important;
}
#window[data-kind="bag"].bag-entering {
  animation: bag-rise-in 0.24s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
@keyframes bag-rise-in {
  from {
    opacity: 0.65;
    translate: 0 24px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
#window[data-kind="bag"] .title {
  height: 54px;
  background: linear-gradient(#fff, #f4f5ee);
  border-bottom: 1px solid #d8dbcf;
  box-shadow: none;
  color: #34382e;
  text-shadow: none;
  font: bold 22px Georgia;
}
#window[data-kind="bag"] .title .window-emblem {
  display: none;
}
#window[data-kind="bag"] .title button {
  top: 10px;
  border-color: #c8cbbf;
  background: #fff;
  color: #55594e;
  box-shadow: none;
}
#window[data-kind="bag"] #windowBody {
  height: auto !important;
  max-height: calc(min(260px, 100dvh - 150px) - 54px) !important;
  padding: 8px 16px !important;
  background: #fff;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
#window[data-kind="bag"] .window-intro {
  display: none;
}
#window[data-kind="bag"] #bagContent {
  height: auto;
  min-height: 0;
  overflow: visible;
}
#window[data-kind="bag"] .bag-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: 76px !important;
  gap: 5px !important;
  padding: 0 !important;
  align-content: start;
}
#window[data-kind="bag"] .bag-grid .inventory-icon {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: center;
  min-width: 0;
  min-height: 0 !important;
  height: 76px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  cursor: grab;
}
#window[data-kind="bag"] .bag-grid .inventory-icon:hover {
  border-color: #dfe5d4;
  background: #f8faf3;
  box-shadow: 0 0 0 2px #dce8cf;
}
#window[data-kind="bag"] .bag-grid .inventory-icon:active {
  cursor: grabbing;
}
#window[data-kind="bag"] .bag-grid .inventory-icon > img {
  width: 62px !important;
  height: 62px !important;
  max-width: 100%;
  object-fit: contain;
}
#window[data-kind="bag"] .bag-grid .inventory-quantity {
  position: absolute;
  left: 53px;
  right: auto;
  bottom: 4px;
  min-width: 20px;
  padding: 1px 4px;
  border-radius: 9px;
  background: #fffe;
  color: #44483b;
  font: 12px Arial;
  text-align: center;
}
#window[data-kind="bag"] .bag-grid .ration-card > img {
  filter: none !important;
  opacity: 1 !important;
}
#window[data-kind="bag"] .bag-grid .used-mark {
  top: 2px;
  right: 2px;
  padding: 2px 4px;
  font-size: 8px;
}
#toolbar button {
  position: relative;
  isolation: isolate;
}
#toolbar button:before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 17%;
  right: 17%;
  top: 13%;
  bottom: 13%;
  border-radius: 50%;
  background: #fff;
  filter: blur(12px);
  opacity: 0;
  transform: scale(0.75);
  transition:
    opacity 0.16s,
    transform 0.16s;
  pointer-events: none;
}
#toolbar button.active:before,
#toolbar button.bag-open:before {
  opacity: 0.58;
  transform: scale(1);
}
#toolbar button.active img,
#toolbar button.bag-open img {
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 11px #fff7d4) brightness(1.12);
}
#tooltip.hud-tooltip {
  z-index: 30;
  overflow: visible;
  border: 2px solid #d5bd58;
  border-radius: 7px;
  background: linear-gradient(#fffef2, #fff9db);
  box-shadow: 0 3px 8px #1d321d66;
  color: #424237;
}
#tooltip.hud-tooltip {
  pointer-events: none;
}
#tooltip.hud-tooltip .tooltip-coin {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  object-fit: contain;
}
#tooltip.hud-tooltip .tooltip-description > span {
  display: block;
  margin-top: 2px;
}
#tooltip.hud-tooltip .tooltip-description b {
  color: #4d8a68;
}
#tooltip.hud-tooltip .flower-word {
  color: #4d8a68;
  font-weight: 700;
}
#tooltip.hud-tooltip:after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -10px;
  width: 16px;
  height: 16px;
  background: #fff9db;
  border-right: 2px solid #d5bd58;
  border-bottom: 2px solid #d5bd58;
  transform: rotate(45deg);
}
@media (max-width: 700px) {
  #window[data-kind="bag"] {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px + var(--toolbar-height, 58px));
    width: calc(100vw - 24px) !important;
    max-height: min(230px, calc(100dvh - 120px)) !important;
  }
  #window[data-kind="bag"] #windowBody {
    max-height: calc(min(230px, 100dvh - 120px) - 50px) !important;
    padding: 6px 9px !important;
  }
  #window[data-kind="bag"] .bag-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: 66px !important;
  }
  #window[data-kind="bag"] .bag-grid .inventory-icon {
    grid-template-columns: 56px minmax(0, 1fr);
    height: 66px;
    padding: 3px;
  }
  #window[data-kind="bag"] .bag-grid .inventory-icon > img {
    width: 44px !important;
    height: 44px !important;
  }
  #window[data-kind="bag"] .bag-grid .inventory-quantity {
    left: 38px;
    bottom: 3px;
    padding: 0 3px;
    font-size: 10px;
  }
}

.tool-sprite[data-action="fertilizer"] {
  --tool-flip: 1 !important;
}
.tool-sprite[data-action="fertilizer"].tool-action {
  animation: tool-fertilizer-left 0.58s ease-out !important;
}
@keyframes tool-fertilizer-left {
  0%,
  100% {
    transform: rotate(0);
  }
  28% {
    transform: rotate(-8deg) translateY(1px);
  }
  58% {
    transform: rotate(-52deg) translateY(5px);
  }
  82% {
    transform: rotate(-28deg) translateY(3px);
  }
}
#treasureBubble.crop-tooltip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 14px));
  pointer-events: none;
  white-space: normal;
}
:is(#wateringBubble, #treasureBubble).watering-bubble {
  position: absolute;
  z-index: 6;
  max-width: min(220px, calc(100vw - 24px));
  padding: 10px 15px;
  border: 2px solid #c58a32;
  border-radius: 999px;
  background: #fff0bb;
  box-shadow: 0 3px 8px #382b1870;
  color: #66502e;
  font:
    700 14px/1.2 Georgia,
    serif;
  text-align: center;
  transform: translate(-50%, calc(-100% - 16px));
  pointer-events: none;
  white-space: normal;
}
:is(#wateringBubble, #treasureBubble).watering-bubble:after {
  content: "";
  position: absolute;
  left: calc(50% - 8px);
  bottom: -10px;
  width: 14px;
  height: 14px;
  border-right: 2px solid #c58a32;
  border-bottom: 2px solid #c58a32;
  background: #fff0bb;
  transform: rotate(45deg);
}
:is(#wateringBubble, #treasureBubble).watering-bubble:not([hidden]) {
  animation: watering-bubble-in 0.18s ease-out both;
}
@keyframes watering-bubble-in {
  from {
    opacity: 0;
    translate: 0 5px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
.present-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 5px;
  flex: none;
}
.friend-row button .present-icon {
  width: 17px;
  height: 17px;
  margin-right: 4px;
}
.gift-heading {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Deposit follows the original sparse inventory layout with a persistent sale total. */
#window[data-kind="warehouse"] {
  width: min(900px, calc(100vw - 32px)) !important;
  height: min(620px, 82dvh) !important;
  min-height: 0 !important;
  max-height: 82dvh !important;
  border: 5px solid #f7f7f1;
  border-radius: 18px;
  background: #f4f4f4;
  box-shadow:
    0 0 0 4px #80aa45,
    0 12px 36px #17281788;
}
#window[data-kind="warehouse"] .window-intro {
  display: none;
}
#window[data-kind="warehouse"] .window-wallet {
  display: none;
}
#window[data-kind="warehouse"] .title {
  height: 58px;
  background: linear-gradient(#fff, #f4f5ee);
  border-bottom: 1px solid #d8dbcf;
  box-shadow: none;
  color: #34382e;
  text-shadow: none;
  font: bold 22px Georgia;
}
#window[data-kind="warehouse"] .title .window-emblem {
  display: none;
}
#window[data-kind="warehouse"] .title button {
  top: 10px;
  border-color: #c8cbbf;
  background: #fff;
  color: #55594e;
  box-shadow: none;
}
#window[data-kind="warehouse"] #windowBody {
  height: calc(100% - 58px) !important;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
  background: #fff;
}
.warehouse-panel {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  background: #fff;
}
.warehouse-grid {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-columns: repeat(auto-fill, 92px);
  grid-auto-rows: 92px;
  align-content: start;
  justify-content: start;
  gap: 5px;
  overflow: auto;
  padding: 12px 16px;
}
.warehouse-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  text-align: center;
}
.warehouse-card:hover {
  border-color: #dedede;
  background: #f8f8f8;
}
.warehouse-card > input {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #769c4b;
}
.warehouse-card > img {
  width: 72px;
  height: 68px;
  object-fit: contain;
}
.warehouse-card .warehouse-item-name {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 1px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #666;
  font: 10px Arial;
}
.warehouse-quantity {
  position: absolute;
  right: 4px;
  bottom: 4px;
  color: #555;
  font: bold 12px Arial;
  text-shadow: 0 1px #fff;
}
.warehouse-card.gift-only {
  opacity: 1;
  cursor: default;
}
.warehouse-card:has(input:checked) {
  border-color: #b9c8aa;
  background: #f1f6e8;
  box-shadow: inset 0 0 0 1px #d8e5c8;
}
.warehouse-footer {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  padding: 10px 22px;
  border-top: 1px solid #e2e2e2;
  background: #f5f5f5;
}
.warehouse-total {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #616161;
  font: bold 16px Arial;
}
.warehouse-total > b {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #555;
  font-size: 20px;
}
.warehouse-total img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.warehouse-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.warehouse-actions #giftFriends {
  width: 40px;
  height: 40px;
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 7px;
  background: #fff;
}
.warehouse-actions #giftFriends img {
  width: 27px;
  height: 27px;
  margin: 0;
}
.warehouse-actions #sellAll {
  min-width: 105px;
  margin: 0;
  padding: 9px 16px;
  border: 1px solid #ccc;
  border-radius: 7px;
  background: linear-gradient(#fff, #eee);
  color: #5387c2;
  text-shadow: none;
  box-shadow: 0 1px 2px #0002;
  font: bold 16px Arial;
}
.warehouse-actions #sellAll:disabled {
  opacity: 0.48;
}
.warehouse-panel {
  position: relative;
}
.warehouse-dialog {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #0008;
  animation: warehouse-dim-in 0.16s ease-out both;
}
@keyframes warehouse-dim-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.warehouse-dialog-box {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(470px, 96%);
  padding: 25px 28px;
  border: 5px solid #dedede;
  border-radius: 22px;
  background: linear-gradient(#fff, #f7f7f7);
  box-shadow: 0 4px 18px #0004;
  text-align: center;
  color: #4b4b4b;
  font: 15px Arial;
}
.warehouse-dialog-box > b {
  font: bold 21px Georgia;
}
.warehouse-dialog-box > p {
  margin: 0;
  font: bold 18px/1.35 Georgia;
}
.warehouse-dialog-box footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.warehouse-dialog-box footer button,
.warehouse-sale-success > button {
  box-sizing: border-box;
  width: 104px;
  min-width: 104px;
  height: 38px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 7px;
  background: linear-gradient(#fff, #eee);
  color: #5387c2;
  text-shadow: none;
  box-shadow: 0 1px 2px #0002;
  font: bold 16px Arial;
}
.warehouse-dialog-symbol {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #49a8df;
  color: #fff;
  font: bold 22px Georgia;
  box-shadow: inset 0 2px 3px #fff8;
}
.warehouse-dialog-box footer .secondary-button {
  font: bold 16px Arial;
}
.warehouse-selling > p {
  font: 15px Arial;
}
.warehouse-spinner {
  width: 45px;
  height: 45px;
  border: 5px solid #d6e5c6;
  border-top-color: #78a83e;
  border-radius: 50%;
  animation: warehouse-spin 0.8s linear infinite;
}
@keyframes warehouse-spin {
  to {
    rotate: 360deg;
  }
}
.warehouse-check {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(#7dd222, #43aa00);
  box-shadow: inset 0 2px 4px #fff8;
  color: #fff;
  font: bold 50px Arial;
}
.warehouse-sale-success {
  width: min(500px, 96%);
  padding: 36px 28px;
}
.warehouse-sale-success > p {
  font-size: 20px;
}
.warehouse-empty {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: #758267;
}
.warehouse-empty > b {
  font: bold 18px Georgia;
}
.warehouse-empty p {
  margin: 0;
  font: 13px Arial;
}
.warehouse-empty button {
  margin: 8px 0 0;
  padding: 8px 17px;
}
.land-confirm {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  background: #f8f8f5;
  box-shadow: 0 2px 8px #24382022;
  color: #4d4d4d;
  text-align: center;
}
.land-confirm[hidden] {
  display: none;
}
.land-confirm > b {
  font: bold 15px Georgia;
}
.land-confirm > div {
  display: grid;
  gap: 5px;
  text-align: left;
}
.land-confirm > div span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #fff;
  font: 13px Arial;
}
.land-confirm img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  flex: none;
}
.land-confirm footer {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.land-confirm footer button {
  min-width: 76px;
  margin: 0;
  padding: 7px 16px;
  font: bold 14px Arial;
}
.expansion-buy span {
  display: none;
}
@media (max-width: 700px) {
  .land-confirm {
    padding: 10px;
  }
  .land-confirm > b {
    font-size: 13px;
  }
  .land-confirm > div span {
    font-size: 12px;
  }
  .land-confirm img {
    width: 22px;
    height: 22px;
  }
}
.land-confirm {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  gap: 0;
  margin: 0;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: #0007;
  box-shadow: none;
}
.land-confirm[hidden] {
  display: none;
}
.land-confirm-box {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(420px, 94vw);
  padding: 23px 25px;
  border: 5px solid #dedede;
  border-radius: 21px;
  background: linear-gradient(#fff, #f7f7f7);
  box-shadow: 0 5px 22px #0004;
  color: #4d4d4d;
  text-align: center;
}
.land-confirm-check {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(#8bd52a, #48ad00);
  box-shadow: inset 0 2px 5px #fff9;
  color: #fff;
  font: bold 48px Arial;
  line-height: 1;
}
.land-confirm-box > p {
  margin: 0;
  font: bold 17px/1.35 Georgia;
}
.land-confirm-costs {
  display: grid;
  width: 100%;
  gap: 5px;
}
.land-confirm-costs > span {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid #e4e4e4;
  border-radius: 5px;
  background: #fff;
  text-align: left;
  font: 13px Arial;
}
.land-confirm-costs img {
  width: 27px;
  height: 27px;
}
.land-confirm-costs b {
  font: bold 14px Arial;
}
.land-confirm-costs small {
  font: 12px Arial;
  color: #727272;
}
.land-confirm-box footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.land-confirm-box footer button {
  min-width: 76px;
  margin: 0;
  padding: 7px 15px;
  border: 1px solid #c8c8c8;
  border-radius: 7px;
  background: linear-gradient(#fff, #eee);
  color: #528aca;
  box-shadow: 0 1px 2px #0002;
  font: bold 15px Arial;
}
@media (max-width: 500px) {
  .land-confirm-box {
    width: min(360px, 94vw);
    padding: 18px 15px;
  }
  .land-confirm-box > p {
    font-size: 15px;
  }
  .land-confirm-costs > span {
    grid-template-columns: 28px 1fr;
    gap: 5px;
  }
  .land-confirm-costs small {
    grid-column: 2;
  }
  .land-confirm-costs img {
    width: 24px;
    height: 24px;
  }
}
#landConfirmDialog {
  position: fixed;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: min(460px, calc(100vw - 28px));
  max-width: none;
  height: auto;
  max-height: calc(100dvh - 32px);
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 5px solid #dedede;
  border-radius: 24px;
  background: linear-gradient(#fff, #f7f7f7);
  box-shadow: 0 5px 26px #0005;
  color: #444;
}
#landConfirmDialog::backdrop {
  background: #10200c40;
  backdrop-filter: none;
}
.land-alert {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px 32px 23px;
  text-align: center;
}
.land-alert-check {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(#83d321, #42ad00);
  box-shadow:
    inset 0 2px 5px #fff9,
    0 2px 3px #397d1933;
  color: white;
  font: bold 53px Arial;
  line-height: 1;
}
.land-alert p {
  margin: 0;
  color: #454545;
  font:
    bold 20px/1.22 Georgia,
    serif;
  text-align: left;
}
.land-alert p b {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.land-alert p img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
}
.land-alert footer {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 7px;
}
.land-alert footer button {
  min-width: 76px;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid #c7c7c7;
  border-radius: 8px;
  background: linear-gradient(#fff, #f1f1f1);
  box-shadow: 0 1px 2px #0002;
  color: #5891d1;
  font: bold 16px Arial;
}
@media (max-width: 500px) {
  .land-alert {
    gap: 10px;
    padding: 18px 19px;
  }
  .land-alert-check {
    width: 60px;
    height: 60px;
    font-size: 44px;
  }
  .land-alert p {
    font-size: 17px;
  }
  .land-alert p img {
    width: 19px;
    height: 19px;
  }
  .land-alert footer button {
    min-width: 70px;
    padding: 7px 10px;
    font-size: 14px;
  }
}
@media (max-width: 700px) {
  #window[data-kind="warehouse"] {
    width: 96vw !important;
    height: min(620px, 82dvh) !important;
    max-height: 82dvh !important;
  }
  .warehouse-grid {
    grid-template-columns: repeat(auto-fill, 72px);
    grid-auto-rows: 74px;
    gap: 3px;
    padding: 8px;
  }
  .warehouse-card > img {
    width: 54px;
    height: 52px;
  }
  .warehouse-footer {
    min-height: 58px;
    padding: 7px 10px;
  }
  .warehouse-total {
    gap: 6px;
    font-size: 12px;
  }
  .warehouse-total > b {
    gap: 3px;
    font-size: 16px;
  }
  .warehouse-total img {
    width: 26px;
    height: 26px;
  }
  .warehouse-actions #sellAll {
    min-width: 75px;
    padding: 7px 10px;
    font-size: 13px;
  }
}

/* Classic profile shortcuts sit beneath the HUD stats; the gift panel drops from its icon. */
.classic-profile .profile-details {
  position: static;
}
.profile-shortcuts {
  position: absolute;
  left: 12px;
  top: 103px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  z-index: 4;
}
.profile-shortcuts button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}
.profile-shortcuts button:hover,
.profile-shortcuts button:focus-visible {
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 0 4px #fff8b7);
}
.profile-shortcuts img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.profile-shortcuts #tasksOpen .tasks-launch-icon {
  width: 34px;
  height: 34px;
}
.profile-shortcuts #rechargeOpen .recharge-launch-art {
  width: 34px;
  height: 34px;
}
.profile-shortcuts #mailOpen img {
  width: 34px;
  height: 34px;
}
.profile-shortcuts #mailOpen.has-mail {
  animation: mail-shortcut-glow 1.1s ease-in-out infinite alternate;
}
@keyframes mail-shortcut-glow {
  from { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 3px #fff); }
  to { filter: drop-shadow(0 0 7px #fff) drop-shadow(0 0 12px #fff); }
}
@media (prefers-reduced-motion: reduce) {
  .profile-shortcuts #mailOpen.has-mail { animation: none; filter: drop-shadow(0 0 6px #fff); }
}
#giftWindow {
  position: fixed;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  margin: 0;
  width: min(760px, calc(100vw - 24px));
  height: min(590px, calc(100dvh - 80px));
  max-height: calc(100dvh - 80px);
  padding: 0;
  overflow: hidden;
  border: 4px solid #f7f7f1;
  border-radius: 12px;
  background: #f4f4f4;
  color: #4c4a3b;
  box-shadow:
    0 0 0 3px #80aa45,
    0 8px 24px #17281755;
}
#giftWindow::backdrop {
  background: transparent;
}
#giftWindow.gift-entering {
  animation: gift-drop-in 0.32s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
@keyframes gift-drop-in {
  from {
    opacity: 0.65;
    translate: calc(-50% - 20px) calc(-50% - 180px);
    scale: 0.94;
  }
  to {
    opacity: 1;
    translate: -50% -50%;
    scale: 1;
  }
}
#giftWindow .title {
  height: 48px;
  padding: 9px 50px;
  border-bottom: 1px solid #d6d6d6;
  background: linear-gradient(#fff, #f1f1f1);
  color: #353535;
  font: bold 21px Georgia;
}
#giftWindow .title button {
  right: 8px;
  top: 5px;
  color: #555;
  font: 32px Arial;
}
#giftWindowBody {
  height: calc(100% - 48px);
  padding: 10px 14px;
  overflow: auto;
  background: #fff;
}
.gift-tabs {
  display: flex;
  gap: 5px;
  margin: 0 -2px 8px;
  border-bottom: 1px solid #d5d5d5;
}
.gift-tabs button {
  padding: 8px 13px;
  border: 1px solid #d0d0d0;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: #d7dce0;
  color: #575e64;
  font: bold 12px Arial;
}
.gift-tabs button.selected {
  background: #fff;
  color: #454545;
}
.gift-flower-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 6px;
  min-height: 72px;
  max-height: 104px;
  overflow: auto;
  padding: 2px 0 8px;
}
.gift-flower {
  position: relative;
  display: flex;
  min-height: 72px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #4b4b4b;
  font: 11px Arial;
}
.gift-flower:hover,
.gift-flower.selected {
  border-color: #d9d9d9;
  background: #f7f7f7;
  box-shadow: 0 1px 3px #0002;
}
.gift-flower img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.gift-flower span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gift-flower > b {
  position: absolute;
  right: 3px;
  bottom: 4px;
  color: #444;
  font: bold 10px Arial;
}
.gift-send-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 7px 10px;
  align-items: start;
  max-width: 650px;
  margin: 0 auto;
  padding-top: 2px;
  font: 13px Arial;
  color: #545454;
}
.gift-send-heading {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  border-bottom: 1px solid #ddd;
  padding: 0 3px 7px;
}
.gift-send-heading > img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}
.gift-send-heading p {
  display: grid;
  gap: 4px;
  margin: 0;
}
.gift-send-heading span {
  color: #666;
  font-size: 12px;
  line-height: 1.35;
}
.gift-send-form > label {
  display: grid;
  gap: 4px;
  font-weight: 700;
}
.gift-send-form > label:nth-of-type(3),
.gift-send-form > label:nth-of-type(4) {
  grid-column: 1/-1;
}
.gift-send-form input,
.gift-send-form select,
.gift-send-form textarea {
  width: 100%;
  min-width: 0;
  padding: 6px;
  border: 1px solid #b8cbe0;
  border-radius: 2px;
  background: #fff;
  color: #444;
  font: 13px Arial;
}
.gift-send-form textarea {
  height: 54px;
  resize: vertical;
}
.gift-send-form footer {
  grid-column: 1/-1;
  display: flex;
  justify-content: center !important;
  gap: 8px;
}
.gift-send-form footer button {
  margin: 0;
  padding: 6px 17px;
  font: bold 13px Arial;
  color: #5790d0;
}
.gift-send-form #giftMessageStatus {
  grid-column: 1/-1;
  min-height: 16px;
  margin: 0;
  text-align: center;
  color: #a24736;
  font-size: 12px;
}
.gift-empty {
  padding: 20px;
  text-align: center;
  color: #657653;
  font: 14px Georgia;
}
.gift-success {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 48px 16px;
  color: #4b4b4b;
  font: 20px Arial;
}
.gift-success img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}
.gift-success p {
  margin: 0 0 8px;
  font-size: 14px;
}
.gift-success button {
  margin: 0;
  padding: 6px 20px;
  color: #5790d0;
}
@media (max-width: 700px) {
  .profile-shortcuts {
    left: 8px;
    top: 75px;
    height: 31px;
    gap: 8px;
  }
  .profile-shortcuts button {
    width: 31px;
    height: 31px;
  }
  .profile-shortcuts img {
    width: 28px;
    height: 28px;
  }
  .profile-shortcuts #tasksOpen .tasks-launch-icon {
    width: 28px;
    height: 28px;
  }
  .profile-shortcuts #tasksOpen {
    width: 31px;
    height: 31px;
  }
  .profile-shortcuts #rechargeOpen .recharge-launch-art {
    width: 28px;
    height: 28px;
  }
  #giftWindow {
    width: calc(100vw - 16px);
    height: min(590px, calc(100dvh - 40px));
    max-height: calc(100dvh - 40px);
  }
  #giftWindowBody {
    padding: 8px;
  }
  .gift-send-form {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 6px;
  }
  .gift-flower-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
#giftForm .classic-button,
#giftFriends {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
#giftForm .classic-button .present-icon,
#giftFriends .present-icon {
  margin: 0 2px 0 0;
}
.purchase-currency {
  min-width: 0;
  margin: 0 0 13px;
  padding: 0;
  border: 0;
}
.purchase-currency legend {
  margin-bottom: 6px;
  color: #71805d;
  font: 700 11px Arial;
}
.purchase-currency > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.currency-choice {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #d2d8bd;
  border-radius: 6px;
  background: #fffef7;
  color: #647253;
  text-align: left;
  cursor: pointer;
}
.currency-choice.selected {
  border-color: #88a25f;
  background: #edf4df;
  box-shadow: inset 0 0 0 1px #88a25f;
}
.currency-choice > span {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font: 700 11px Arial;
}
.currency-choice img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  flex: none;
}
.currency-choice > b {
  font: 700 12px Arial;
  color: #536741;
}
.currency-choice > small {
  grid-column: 1/-1;
  padding-left: 28px;
  color: #88917a;
  font: 10px Arial;
}
.shop-grid .seed-prices .buy-seed {
  width: 84px !important;
  grid-template-columns: 26px 1fr !important;
  justify-content: center !important;
  justify-items: center !important;
  margin-inline: auto !important;
}
.shop-grid .seed-prices .buy-seed > img {
  grid-column: 1 !important;
  justify-self: center !important;
}
.shop-grid .seed-prices .buy-seed > span,
.shop-grid .seed-prices .buy-seed > strong {
  grid-column: 2 !important;
  justify-self: center !important;
  text-align: center !important;
}
#window[data-kind="shop"] .shop-grid .seed-prices:has(> .buy-seed:nth-child(2)) {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: 19px !important;
  gap: 0 !important;
}
#window[data-kind="shop"] .shop-grid .seed-prices:has(> .buy-seed:nth-child(2)) .buy-seed {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 19px !important;
  min-height: 19px !important;
  min-width: 0 !important;
  grid-template-columns: 26px minmax(0, 1fr) !important;
  gap: 2px !important;
  padding-inline: 2px !important;
  white-space: nowrap !important;
}
#window[data-kind="shop"] .shop-grid .seed-prices:has(> .buy-seed:nth-child(2)) .buy-seed > img {
  width: 18px !important;
  height: 18px !important;
}
#window[data-kind="shop"] .shop-grid .seed-prices:has(> .buy-seed:nth-child(2)) .buy-seed > span,
#window[data-kind="shop"] .shop-grid .seed-prices:has(> .buy-seed:nth-child(2)) .buy-seed > strong {
  min-width: 0 !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}
@media (max-width: 600px) {
  .currency-choice {
    padding: 6px;
  }
  .currency-choice > span {
    font-size: 10px;
  }
  .currency-choice img {
    width: 20px;
    height: 20px;
  }
  .currency-choice > small {
    padding-left: 25px;
  }
}
#window[data-kind="shop"] .seed-prices .buy-seed {
  width: 84px !important;
  grid-template-columns: 26px 1fr !important;
  justify-content: center !important;
  justify-items: stretch !important;
  margin-inline: auto !important;
}
#window[data-kind="shop"] .seed-prices .buy-seed > img {
  grid-column: 1 !important;
  justify-self: center !important;
}
#window[data-kind="shop"] .seed-prices .buy-seed > span,
#window[data-kind="shop"] .seed-prices .buy-seed > strong {
  grid-column: 2 !important;
  justify-self: center !important;
  text-align: center !important;
}
#window[data-kind="shop"] .seed-prices:has(> button:nth-child(2)) .buy-seed {
  width: 84px !important;
}
.currency-choice {
  position: relative;
  cursor: pointer;
  user-select: none;
}
.currency-choice:focus-visible {
  outline: 2px solid #769b4b;
  outline-offset: 2px;
}
.seed[data-crop-details],
.seed[data-animal-card],
.seed[data-special-card],
.seed[data-cosmetic-card] {
  cursor: pointer;
}
.seed.animal-owned,
.seed.cosmetic-owned {
  filter: grayscale(1);
  opacity: 0.72;
  cursor: default;
}
.animal-owned-label {
  display: block;
  margin-top: auto;
  padding: 5px 3px;
  color: #555;
  font: 700 12px Arial;
  text-align: center;
}
#purchaseBox.crop-purchase {
  border: 1px solid #d3d2bd;
  border-radius: 14px;
  padding: 19px 23px;
  background: linear-gradient(155deg, #fffef8, #f3f0e2);
  box-shadow: 0 18px 55px #1e321d70;
}
#purchaseBox.crop-purchase .purchase-heading {
  margin: 0 0 12px;
  gap: 13px;
}
#purchaseBox.crop-purchase .purchase-heading > img {
  border: 1px solid #e5e5d5;
  border-radius: 8px;
  background: #fbfaef;
}
#purchaseBox.crop-purchase .purchase-heading h2 {
  font-size: 20px;
}
#purchaseBox.crop-purchase .purchase-heading p:empty {
  display: none;
}
#purchaseBox.crop-purchase .purchase-currency {
  margin: 0 0 12px;
}
#purchaseBox.crop-purchase .purchase-currency legend {
  margin-bottom: 5px;
  font-size: 10px;
  text-transform: uppercase;
  color: #78865e;
}
#purchaseBox.crop-purchase .purchase-currency > div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 420px;
  gap: 8px;
}
#purchaseBox.crop-purchase.single-currency .purchase-currency > div {
  grid-template-columns: minmax(0, 280px);
}
#purchaseBox.crop-purchase .currency-choice {
  min-height: 56px;
  padding: 7px 10px;
  border-color: #d9ddc7;
  border-radius: 7px;
  box-shadow: 0 1px 2px #32451a0c;
  transition:
    background 0.12s,
    border-color 0.12s,
    box-shadow 0.12s;
}
#purchaseBox.crop-purchase .currency-choice:hover {
  border-color: #a9ba86;
  background: #f7f9ed;
}
#purchaseBox.crop-purchase .currency-choice.selected {
  border-color: #829c5b;
  background: #edf3df;
  box-shadow: inset 0 0 0 1px #829c5b;
}
#purchaseBox.crop-purchase .currency-choice > span {
  font-size: 12px;
}
#purchaseBox.crop-purchase .currency-choice > b {
  font-size: 13px;
}
#purchaseBox.crop-purchase .currency-choice > small {
  font-size: 10px;
}
#purchaseBox.crop-purchase .crop-facts {
  margin: 10px 0 12px;
  border-color: #ddd9c5;
  border-radius: 8px;
  background: #fffef9;
}
#purchaseBox.crop-purchase .quantity-label {
  margin-bottom: 6px;
  color: #78865e;
  font-size: 10px;
  text-transform: uppercase;
}
#purchaseBox.crop-purchase .quantity-control {
  border-radius: 7px;
}
#purchaseBox.crop-purchase .purchase-summary {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  margin-top: 12px;
  padding: 10px 13px;
  border: 1px solid #dce2c9;
  border-radius: 8px;
  background: #edf1e2;
  color: #6c7659;
  font: 12px Arial;
}
#purchaseBox.crop-purchase .purchase-summary > b {
  justify-content: flex-end;
  color: #526f37;
  font-size: 16px;
}
#purchaseBox.crop-purchase .purchase-summary > small {
  font-size: 10px;
}
#purchaseBox.crop-purchase .purchase-actions {
  margin-top: 12px;
}
#purchaseBox.crop-purchase .purchase-actions button {
  min-width: 112px;
  border-radius: 6px;
}
#purchaseBox.crop-purchase .purchase-actions #confirmSeed {
  background: linear-gradient(#93aa69, #718d4a);
  border-color: #718d4a;
}
#purchaseBox.crop-purchase[data-currency=""] .purchase-actions #confirmSeed {
  background: #bbc4a9;
  border-color: #abb39b;
}
@media (max-width: 600px) {
  #purchaseBox.crop-purchase {
    padding: 13px 14px;
  }
  #purchaseBox.crop-purchase .purchase-currency > div {
    grid-template-columns: 1fr;
  }
  #purchaseBox.crop-purchase.single-currency .purchase-currency > div {
    grid-template-columns: minmax(0, 280px);
  }
  #purchaseBox.crop-purchase .purchase-actions button {
    min-width: 100px;
  }
}
#purchaseBox.crop-purchase {
  width: min(500px, calc(100vw - 28px));
  max-height: min(82dvh, 560px);
  padding: 12px 16px;
  border-radius: 12px;
}
#purchaseBox.crop-purchase .purchase-heading {
  grid-template-columns: 68px 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
#purchaseBox.crop-purchase .purchase-heading > img {
  width: 64px;
  height: 58px;
}
#purchaseBox.crop-purchase .purchase-heading h2 {
  margin: 3px 0;
  font-size: 18px;
}
#purchaseBox.crop-purchase .purchase-heading .eyebrow {
  font-size: 7px;
}
#purchaseBox.crop-purchase .purchase-currency {
  margin-bottom: 7px;
}
#purchaseBox.crop-purchase .purchase-currency legend {
  margin-bottom: 3px;
  font-size: 9px;
}
#purchaseBox.crop-purchase .purchase-currency > div {
  gap: 5px;
}
#purchaseBox.crop-purchase .currency-choice {
  min-height: 44px;
  padding: 4px 8px;
  border-radius: 6px;
}
#purchaseBox.crop-purchase .currency-choice img {
  width: 19px;
  height: 19px;
}
#purchaseBox.crop-purchase .currency-choice > small {
  padding-left: 24px;
  font-size: 9px;
}
#purchaseBox.crop-purchase .crop-facts {
  gap: 0 14px;
  margin: 6px 0 8px;
  padding: 5px 9px;
  border-radius: 6px;
}
#purchaseBox.crop-purchase .crop-facts > div {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  min-height: 23px;
}
#purchaseBox.crop-purchase .crop-facts dt,
#purchaseBox.crop-purchase .crop-facts dd {
  font-size: 10px;
  line-height: 1.15;
}
#purchaseBox.crop-purchase .crop-facts img {
  width: 15px;
  height: 15px;
}
#purchaseBox.crop-purchase .quantity-label {
  margin-bottom: 3px;
  font-size: 9px;
}
#purchaseBox.crop-purchase .quantity-control {
  width: 132px;
  height: 28px;
}
#purchaseBox.crop-purchase .quantity-control button {
  width: 28px;
  font-size: 16px;
}
#purchaseBox.crop-purchase .quantity-control input {
  font-size: 12px;
}
#purchaseBox.crop-purchase .purchase-summary {
  gap: 2px 8px;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 11px;
}
#purchaseBox.crop-purchase .purchase-summary > b {
  font-size: 14px;
}
#purchaseBox.crop-purchase .purchase-summary > small {
  font-size: 9px;
}
#purchaseBox.crop-purchase .purchase-actions {
  gap: 7px;
  margin-top: 8px;
}
#purchaseBox.crop-purchase .purchase-actions button {
  min-width: 96px;
  padding: 7px 11px;
  font-size: 10px;
}
@media (max-width: 600px) {
  #purchaseBox.crop-purchase {
    padding: 10px 12px;
    max-height: 88dvh;
  }
  #purchaseBox.crop-purchase .purchase-heading {
    grid-template-columns: 54px 1fr;
    gap: 8px;
  }
  #purchaseBox.crop-purchase .purchase-heading > img {
    width: 52px;
    height: 48px;
  }
  #purchaseBox.crop-purchase .crop-facts {
    gap: 0 8px;
    padding: 4px 7px;
  }
  #purchaseBox.crop-purchase .crop-facts dt,
  #purchaseBox.crop-purchase .crop-facts dd {
    font-size: 9px;
  }
}
@media (min-width: 521px) {
  #purchaseBox.crop-purchase .crop-facts {
    grid-template-columns: 1fr 1fr;
  }
}
.purchase-item-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 5px 0 8px;
  padding: 7px 10px;
  border: 1px solid #e0dfcd;
  border-radius: 6px;
  background: #fffef8;
  color: #6e795b;
  font: 700 10px Arial;
}
.purchase-item-value > span {
  color: #78865e;
  text-transform: uppercase;
}
.purchase-item-value > b {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: #526f37;
  font: 700 13px Arial;
  text-align: right;
}
.purchase-item-value b small {
  color: #7f896e;
  font: 10px Arial;
}
#purchaseBox.crop-purchase .purchase-item-value {
  margin: 4px 0 7px;
  padding: 6px 9px;
}
#purchaseBox.crop-purchase .purchase-summary {
  margin-top: 6px;
}
.currency-choice > b {
  align-self: center;
  color: #526f37;
  font: 700 13px Arial;
  white-space: nowrap;
}
.currency-choice > small {
  padding-left: 24px !important;
}
.purchase-order-row {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  margin: 8px 0;
}
.purchase-quantity {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 4px;
}
.purchase-quantity .quantity-label {
  margin: 0;
  text-align: left;
}
.purchase-order-row .quantity-control {
  width: 100%;
  height: 38px;
  margin: 0;
  border-radius: 6px;
}
.purchase-order-row .quantity-control button {
  width: 31px;
  font-size: 17px;
}
.purchase-order-row .quantity-control input {
  font-size: 14px;
}
.purchase-order-row .purchase-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 58px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #dce2c9;
  border-radius: 7px;
  background: #edf1e2;
  color: #6c7659;
  font: 700 11px Arial;
}
.purchase-order-row .purchase-summary > b {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: #526f37;
  font-size: 16px;
  white-space: nowrap;
}
.purchase-order-row .purchase-summary .inline-coin {
  width: 19px;
  height: 19px;
}
@media (max-width: 600px) {
  .purchase-order-row {
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 7px;
  }
  .purchase-order-row .purchase-summary {
    padding: 7px 8px;
  }
  .purchase-order-row .purchase-summary > b {
    font-size: 14px;
  }
}
