.pixx-app-switcher {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 19000;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 5px;
  border: 1px solid rgba(174, 190, 200, 0.38);
  border-radius: 8px;
  background: #20262a;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
}

.pixx-app-switcher button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(174, 190, 200, 0.24);
  border-radius: 5px;
  background: #363d42;
  color: #eef3f6;
  font: 600 11.5px/1.2 Arial, sans-serif;
  cursor: pointer;
}

.pixx-app-switcher button:hover { background: #48535a; }
.pixx-app-switcher button[aria-current="page"] {
  border-color: #9fc3d8;
  background: #607f92;
  color: #fff;
}

.pixx-app-switcher-label {
  padding: 2px 5px 0;
  color: rgba(220, 229, 234, 0.7);
  font: 600 9px/1.2 Arial, sans-serif;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.pixx-navigation-error {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 7px 9px;
  background: #5a2424;
  color: #fff4f4;
  font: 600 10px/1.3 Arial, sans-serif;
  text-align: center;
}

@media (min-width: 701px) {
  /* The integrated desktop flow uses the single website cart. */
  #cart-container {
    display: none !important;
  }

  .pixx-app-actions {
    position: fixed;
    top: 34px;
    right: 126px;
    z-index: 19000;
    display: flex;
    width: 204px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .pixx-scene-cabinet {
    position: fixed;
    right: 52px;
    bottom: 0;
    z-index: 1200;
    display: block;
    width: clamp(260px, 23vw, 340px);
    height: auto;
    max-height: 58vh;
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(-18px 13px 22px rgba(0, 0, 0, 0.34));
  }

  .pixx-app-actions .pixx-app-switcher {
    position: static;
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(151, 173, 188, 0.34);
    border-radius: 7px;
    background: #182027;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.22);
    transform: none;
  }

  .pixx-primary-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 20px;
    transform: translateX(-8px);
  }

  .pixx-app-actions .pixx-app-switcher button {
    width: 100%;
    min-height: 36px;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid rgba(151, 173, 188, 0.18);
    border-radius: 0;
    background: transparent;
    color: #dce5ea;
    font: 600 11px/1.2 Arial, sans-serif;
    letter-spacing: 0.015em;
    box-shadow: none;
    transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
  }

  .pixx-app-actions .pixx-app-switcher-label {
    padding: 8px 12px 6px;
    border-bottom: 1px solid rgba(151, 173, 188, 0.18);
    color: rgba(220, 229, 234, 0.62);
    font-size: 9px;
    letter-spacing: 0.09em;
    text-align: left;
  }

  .pixx-app-actions .pixx-app-switcher button:last-child {
    border-bottom: 0;
  }

  .pixx-view-cart,
  .pixx-app-actions #home-button,
  .pixx-app-actions #exit-button {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto !important;
    min-width: 58px;
    min-height: 44px;
    height: 44px !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
    border: 1px solid rgba(103, 157, 201, 0.48);
    border-radius: 6px;
    background: linear-gradient(180deg, #223241 0%, #17232e 100%);
    color: #f4f7f9;
    font: 700 10px/1 Arial, sans-serif;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .pixx-view-cart-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .pixx-app-actions #home-button,
  .pixx-app-actions #exit-button {
    border-color: rgba(190, 202, 211, 0.6);
    background: linear-gradient(180deg, #5b646b 0%, #363e44 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 4px 12px rgba(0, 0, 0, 0.34);
  }

  .pixx-view-cart:hover,
  .pixx-app-actions #home-button:hover,
  .pixx-app-actions #exit-button:hover {
    border-color: rgba(92, 181, 247, 0.76);
    background: linear-gradient(180deg, #2a4052 0%, #1b2b38 100%) !important;
  }

  .pixx-app-actions #home-button:hover,
  .pixx-app-actions #exit-button:hover {
    border-color: rgba(218, 226, 232, 0.8);
    background: linear-gradient(180deg, #6a747c 0%, #424b52 100%) !important;
  }

  .pixx-app-actions .pixx-app-switcher button:hover {
    background: rgba(88, 116, 135, 0.16) !important;
    color: #f2f7fa;
  }

  .pixx-app-actions .pixx-app-switcher button[aria-current="page"] {
    background: rgba(43, 116, 164, 0.36);
    color: #f5fbff;
    box-shadow: inset 3px 0 0 #63b8ee;
  }

  .pixx-app-actions .pixx-app-switcher button:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #8bd0f7;
    outline-offset: -3px;
  }

  .pixx-view-cart-count {
    flex: 0 0 auto;
    display: inline-grid;
    min-width: 22px;
    height: 20px;
    box-sizing: border-box;
    place-items: center;
    padding: 0 6px;
    border-radius: 12px;
    background: #43a7f5;
    color: #07131c;
    font-size: 11px;
    letter-spacing: 0;
    transform: none;
  }

}

@media (max-width: 700px) {
  .pixx-app-actions { display: contents; }
  .pixx-primary-actions { display: contents; }
  .pixx-view-cart { display: none !important; }
  .pixx-scene-cabinet { display: none !important; }
  .pixx-app-switcher-label { display: none; }
}

.pixx-order-choices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 34px;
}

.pixx-order-heading {
  margin: 0 0 3px;
  color: rgba(203, 213, 225, 0.48);
  font: 700 8px/1.2 Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-scene-card {
  position: relative;
}

.pixx-order-choices button {
  position: relative;
  width: 100%;
  min-height: 34px;
  padding: 7px 27px 7px 11px;
  border: 1px solid rgba(174, 194, 214, 0.22);
  border-left: 2px solid rgba(215, 185, 143, 0.66);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(39, 52, 65, 0.78), rgba(22, 32, 42, 0.9));
  color: rgba(248, 250, 252, 0.95);
  font: 700 9.5px/1.18 Arial, sans-serif;
  letter-spacing: 0.055em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 4px 10px rgba(0, 0, 0, 0.16);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.pixx-order-choices button::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: 11px;
  color: rgba(215, 185, 143, 0.72);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-52%);
}

.pixx-order-choices button:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 185, 143, 0.48);
  border-left-color: rgba(239, 211, 170, 0.94);
  background: linear-gradient(180deg, rgba(52, 68, 83, 0.9), rgba(27, 40, 52, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 7px 16px rgba(0, 0, 0, 0.24);
}
.pixx-order-choices button:disabled { cursor: wait; opacity: 0.62; }

/* Shared cart thumbnails are always square; product artwork supplies its own edge. */
.cart-thumb,
.cart-thumb-wrap img,
.cart-item-thumb {
  border-radius: 0 !important;
}

.pixx-integration-status {
  width: 100%;
  box-sizing: border-box;
  padding: 5px 10px;
  border-radius: 5px;
  background: rgba(17, 20, 22, 0.88);
  color: #eef3f6;
  font: 600 11px/1.2 Arial, sans-serif;
  text-align: center;
}

html.pixx-handoff-loading {
  min-height: 100%;
  background: #000;
}

html.pixx-handoff-loading body {
  opacity: 0 !important;
}

html.pixx-handoff-loading::before {
  content: "Restoring image\2026";
  position: fixed;
  left: 50%;
  top: calc(50% + 25px);
  z-index: 2147483647;
  color: rgba(255, 255, 255, 0.82);
  font: 600 13px/1.2 Arial, sans-serif;
  letter-spacing: 0.04em;
  transform: translate(-50%, -50%);
}

html.pixx-handoff-loading::after {
  content: "";
  position: fixed;
  left: 50%;
  top: calc(50% - 10px);
  z-index: 2147483647;
  width: 25px;
  height: 25px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pixx-handoff-spin 0.8s linear infinite;
}

@keyframes pixx-handoff-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
