/* PSProject */

/* Badge */

@keyframes ps-badge-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.ps-prime-project-count.is-just-updated {
  animation: ps-badge-pop 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Header trigger */

.ps-prime-project-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  position: relative;
  flex-shrink: 0;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px !important;
  transition: background-color 0.18s ease;
}

.ps-prime-project-btn:focus-visible,
.ps-prime-project-btn.is-active {
  background: rgb(var(--ps-blue-rgb) / 0.12) !important;
}

@media (hover: hover) {
  .ps-prime-project-btn:hover {
    background: rgb(var(--ps-blue-rgb) / 0.12) !important;
  }
}

.ps-prime-project-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: currentColor;
  stroke-width: 2;
  transition: stroke-width 0.18s ease;
}

.ps-prime-project-btn:focus-visible svg,
.ps-prime-project-btn.is-active svg {
  stroke-width: 2.5;
}

@media (hover: hover) {
  .ps-prime-project-btn:hover svg {
    stroke-width: 2.5;
  }
}

.ps-prime-project-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ps-blue, #223D90);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 14px rgb(34 61 144 / 0.18);
}

.ps-prime-project-count[hidden] {
  display: none !important;
}

.ps-project-wrap {
  position: relative;
  display: flex;
  align-items: center;
  align-self: center;
  height: 100%;
  flex: 0 0 auto;
  margin-left: 18px;
}

.ps-prime-mobile-controls {
  align-self: center !important;
  height: 100%;
}

.ps-prime-header .ps-prime-mobile-toggle {
  align-self: center;
  line-height: 1;
}

/* Desktop panel */


.ps-prime-header.is-project-open .ps-prime-mega-grid {
  grid-template-columns: minmax(0, 1fr);
}

.ps-prime-header.is-project-open .ps-prime-mega-image {
  display: none;
}

.ps-prime-header.is-project-open .ps-prime-mega {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.ps-prime-header.is-project-open .ps-prime-mega-grid {
  height: auto;
  min-height: 0;
  max-height: none;
}

.ps-prime-header.is-project-open .ps-prime-mega-content {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 14px 18px 16px;
}

.ps-prime-header.is-project-open .ps-prime-pane {
  height: auto;
  max-height: none;
  overflow: visible;
}

.ps-prime-pane-project {
  min-height: 0;
}

/* Project panel */

.ps-project-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}

.ps-project-panel-mega {
  height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.ps-project-panel-mega[data-ps-project-size="capped"] {
  height: auto;
  max-height: none;
  overflow: visible;
}

.ps-project-panel-header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ps-project-panel-heading {
  min-width: 0;
}

.ps-project-panel-eyebrow {
  margin: 0 0 5px;
  color: rgb(var(--ps-blue-rgb) / 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ps-project-panel-title {
  margin: 0;
  color: var(--ps-blue, #223D90);
  font-size: 1.32rem;
  line-height: 1;
  font-weight: 700;
}

.ps-project-panel-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ps-project-panel-count {
  margin: 0;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgb(var(--ps-blue-rgb) / 0.08);
  color: var(--ps-blue, #223D90);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.ps-project-close-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ps-blue, #223D90);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 0;
}

.ps-project-close-btn:focus-visible {
  opacity: 0.68;
}

@media (hover: hover) {
  .ps-project-close-btn:hover {
    opacity: 0.68;
  }
}

.ps-project-empty {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 0;
  align-content: center;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgb(var(--ps-blue-rgb) / 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: center;
  padding: 0;
}

.ps-project-empty-copy {
  margin: 0;
  max-width: 24rem;
}

.ps-project-empty-actions {
  display: flex;
  justify-content: center;
}

.ps-project-empty-link.ps-btn {
  --ps-btn-pad-v: 11px;
  --ps-btn-pad-h: 18px;
  width: auto;
  max-width: 100%;
}

.ps-project-panel-mega .ps-project-empty {
  min-height: clamp(180px, 24vh, 260px);
}

.ps-project-panel-drawer .ps-project-empty {
  min-height: 0;
  padding: 10px 0 2px;
}

.ps-project-empty[hidden],
.ps-project-list[hidden],
.ps-project-panel-actions[hidden] {
  display: none !important;
}

.ps-project-list {
  min-height: 0;
}

.ps-project-list-mega {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-content: start;
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  padding: 0 4px 0 0;
}

.ps-project-panel-mega[data-ps-project-size="capped"] .ps-project-list-mega {
  flex: 0 1 auto;
  max-height: var(--ps-project-summary-max-height, 440px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ps-project-list-drawer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 2px 88px 0;
}

.ps-project-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgb(var(--ps-blue-rgb) / 0.11);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

.ps-project-panel-prime .ps-project-item,
.ps-project-panel-drawer .ps-project-item {
  border: 1px solid rgb(var(--ps-blue-rgb) / 0.11);
  border-radius: 6px;
  box-shadow: none;
  padding: 12px;
}

.ps-project-item-media {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  padding: 6px;
  box-sizing: border-box;
  border: 1px solid rgb(var(--ps-blue-rgb) / 0.08);
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.ps-project-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.ps-project-item-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgb(var(--ps-blue-rgb) / 0.1);
  color: var(--ps-blue, #223D90);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ps-project-item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ps-project-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ps-project-item-title-wrap {
  min-width: 0;
}

.ps-project-item-title {
  display: inline-block;
  color: var(--ps-blue, #223D90);
  font-size: 1rem;
  line-height: 1.24;
  font-weight: 700;
  text-decoration: none;
}

.ps-project-item-title:focus-visible {
  color: var(--ps-blue, #223D90);
  text-decoration: underline;
}

@media (hover: hover) {
  .ps-project-item-title:hover {
    color: var(--ps-blue, #223D90);
    text-decoration: underline;
  }
}

.ps-project-item-id {
  margin: 6px 0 0;
  color: var(--ps-blue, #223D90);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ps-project-item-remove {
  appearance: none;
  border: none;
  background: rgb(var(--ps-blue-rgb) / 0.08);
  color: var(--ps-blue, #223D90);
  cursor: pointer;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  font-size: 1.2rem;
  line-height: 1;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.ps-project-item-remove:focus-visible {
  background: rgb(34 61 144 / 0.14);
  color: #10204c;
}

@media (hover: hover) {
  .ps-project-item-remove:hover {
    background: rgb(34 61 144 / 0.14);
    color: #10204c;
  }
}

.ps-prime-header .ps-project-item-remove {
  background: rgb(var(--ps-blue-rgb) / 0.08) !important;
  border-radius: 999px !important;
}

.ps-prime-header .ps-project-item-remove:focus-visible {
  background: rgb(34 61 144 / 0.14) !important;
  color: #10204c !important;
}

@media (hover: hover) {
  .ps-prime-header .ps-project-item-remove:hover {
    background: rgb(34 61 144 / 0.14) !important;
    color: #10204c !important;
  }
}

.ps-project-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ps-project-item-price {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgb(250 214 7 / 0.24);
  color: #5b4b00;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.ps-project-item--summary .ps-project-item-body {
  gap: 10px;
}

.ps-project-item--editor .ps-project-item-controls,
.ps-project-item--editor .ps-project-item-notes {
  grid-column: 1 / -1;
}

.ps-project-panel-prime .ps-project-item--summary .ps-project-item-body,
.ps-project-panel-drawer .ps-project-item--summary .ps-project-item-body {
  gap: 8px;
}

.ps-project-item-summary {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgb(var(--ps-blue-rgb) / 0.1);
  padding-top: 12px;
}

.ps-project-item-summary-row {
  margin: 0;
  display: grid;
  gap: 4px;
}

.ps-project-item-summary-label {
  color: rgb(var(--ps-blue-rgb) / 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ps-project-panel-prime .ps-project-item-summary-label,
.ps-project-panel-drawer .ps-project-item-summary-label {
  color: var(--ps-blue, #223D90);
  font-family: "Alternate Gothic Extra Cond ATF", "Arial Narrow", "Inter", sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
}

.ps-project-item-summary-value {
  color: var(--ps-blue, #223D90);
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 600;
}

.ps-project-item-summary-row.is-warning .ps-project-item-summary-value {
  color: #8a5e00;
}

.ps-project-item-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border-top: 1px solid rgb(var(--ps-blue-rgb) / 0.1);
  padding-top: 12px;
}

.ps-project-item-controls.has-colors {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 30px;
  row-gap: 18px;
}

.ps-project-item-quantity,
.ps-project-item-colors {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ps-project-item-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ps-project-item-section-label {
  margin: 0;
  color: var(--ps-blue, #223D90);
  font-family: "Alternate Gothic Extra Cond ATF", "Arial Narrow", "Inter", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ps-project-item-section-subtitle {
  margin: 4px 0 0;
  color: rgb(var(--ps-blue-rgb) / 0.74);
  font-size: 0.76rem;
  line-height: 1.35;
}

.ps-project-item-editor-toggle {
  appearance: none;
  border: 1px solid rgb(var(--ps-blue-rgb) / 0.2);
  border-radius: 6px;
  background: transparent;
  color: var(--ps-blue, #223D90);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 4px 10px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.ps-project-item-editor-toggle:focus-visible {
  opacity: 0.72;
}

@media (hover: hover) {
  .ps-project-item-editor-toggle:hover {
    opacity: 0.72;
  }
}

.ps-project-item-selected-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ps-project-item-selected-chip,
.ps-project-item-selected-more,
.ps-project-item-selected-placeholder {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgb(var(--ps-blue-rgb) / 0.08);
  color: var(--ps-blue, #223D90);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

.ps-project-item-selected-chip {
  gap: 7px;
  padding-right: 6px;
}

.ps-project-item-selected-chip-label {
  display: inline-block;
}

.ps-project-item-selected-remove {
  appearance: none;
  border: none;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  width: 18px;
  height: 18px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1;
}

.ps-project-item-selected-remove:focus-visible {
  background: rgb(var(--ps-blue-rgb) / 0.12);
}

@media (hover: hover) {
  .ps-project-item-selected-remove:hover {
    background: rgb(var(--ps-blue-rgb) / 0.12);
  }
}

.ps-project-item-selected-more {
  background: rgb(var(--ps-blue-rgb) / 0.05);
  color: rgb(var(--ps-blue-rgb) / 0.74);
}

.ps-project-item-color-picker {
  border: 1px solid rgb(var(--ps-blue-rgb) / 0.1);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.82);
  padding: 10px;
}

.ps-project-item-validation {
  margin: 0;
  color: #a82323;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 600;
}

.ps-project-item-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 118px;
  overflow-y: auto;
  padding-right: 2px;
}

.ps-project-item-chip {
  appearance: none;
  border: 1px solid rgb(var(--ps-blue-rgb) / 0.2);
  background: #fff;
  color: var(--ps-blue, #223D90);
  cursor: pointer;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.1;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.ps-project-item-chip:focus-visible,
.ps-project-item-chip.is-selected {
  border-color: var(--ps-blue, #223D90);
}

@media (hover: hover) {
  .ps-project-item-chip:hover {
    border-color: var(--ps-blue, #223D90);
  }
}

.ps-project-item-chip.is-selected {
  background: var(--ps-blue, #223D90);
  color: #fff;
}

.ps-project-item-qty-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: flex-start;
  justify-items: start;
}

.ps-project-item-qty-field {
  display: block;
  width: min(50%, 240px);
  min-width: 176px;
  max-width: 100%;
}

.ps-project-item-qty-select,
.ps-project-item-qty-input {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgb(var(--ps-blue-rgb) / 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ps-blue, #223D90);
  font: inherit;
  font-size: 0.84rem;
}

.ps-project-item-qty-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3e%3cpath stroke='%23223D90' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
}

.ps-project-item-qty-select:focus,
.ps-project-item-qty-input:focus {
  outline: none;
  border-color: var(--ps-blue, #223D90);
  box-shadow: 0 0 0 3px rgb(34 61 144 / 0.12);
}

.ps-project-panel-actions {
  flex-shrink: 0;
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid rgb(var(--ps-blue-rgb) / 0.1);
}

.ps-project-cta.ps-btn {
  --ps-btn-pad-v: 12px;
  --ps-btn-pad-h: 18px;
  width: auto;
  max-width: 100%;
  font-size: clamp(1rem, 0.95rem + 0.18vw, 1.18rem);
}

.ps-project-action-btn,
.ps-share-product-btn {
  --ps-btn-pad-v: 11px;
  --ps-btn-pad-h: 18px;
  --ps-btn-arrow-gap: 9px;
  width: auto;
  max-width: 100%;
  font-size: clamp(0.98rem, 0.94rem + 0.14vw, 1.08rem);
}

.ps-project-action-btn:disabled,
.ps-share-product-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ps-project-share-icon,
.ps-share-product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ps-project-share-icon svg,
.ps-share-product-icon svg {
  display: block;
  width: 0.98em;
  height: 0.98em;
}

.ps-project-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid rgb(var(--ps-blue-rgb) / 0.18);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.88);
  color: var(--ps-blue, #223D90);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.ps-project-share-btn:focus-visible {
  border-color: rgb(var(--ps-blue-rgb) / 0.28);
  background: rgb(var(--ps-blue-rgb) / 0.06);
  outline: none;
}

@media (hover: hover) {
  .ps-project-share-btn:hover {
    border-color: rgb(var(--ps-blue-rgb) / 0.28);
    background: rgb(var(--ps-blue-rgb) / 0.06);
    transform: translateY(-1px);
    outline: none;
  }
}

.ps-project-share-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.ps-project-share-btn--compact {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.78rem;
}

.ps-project-panel-status {
  flex: 1 1 100%;
  margin: 0;
  color: rgb(var(--ps-blue-rgb) / 0.76);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: right;
}

.ps-project-panel-status[hidden] {
  display: none !important;
}

.ps-project-panel-status.is-error {
  color: #a82323;
}

.ps-project-contact-shell {
  margin: 0 0 28px;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid rgb(var(--ps-blue-rgb) / 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgb(250 214 7 / 0.12), transparent 34%),
    linear-gradient(180deg, rgb(255 255 255 / 0.96), rgb(247 249 255 / 0.98));
  box-shadow: 0 18px 42px rgb(34 61 144 / 0.08);
}

.ps-project-contact-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 20px;
  margin-bottom: 20px;
}

.ps-project-contact-title {
  margin: 0;
  color: var(--ps-blue, #223D90);
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2.1rem);
  line-height: 1.05;
  font-weight: 700;
}

.ps-project-contact-copy {
  margin: 10px 0 0;
  color: rgb(var(--ps-blue-rgb) / 0.78);
  font-size: 0.98rem;
  line-height: 1.55;
}

.ps-project-contact-controls {
  display: grid;
  gap: 18px;
}

.ps-project-contact-group-label {
  margin: 0 0 10px;
  color: var(--ps-blue, #223D90);
  font-family: "Alternate Gothic Extra Cond ATF", "Arial Narrow", "Inter", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ps-project-contact-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ps-project-contact-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgb(var(--ps-blue-rgb) / 0.12);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.78);
  color: var(--ps-blue, #223D90);
  font-size: 0.92rem;
  line-height: 1.35;
}

.ps-project-contact-check input {
  margin: 0;
}

.ps-project-contact-date input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgb(var(--ps-blue-rgb) / 0.14);
  border-radius: 12px;
  background: #fff;
  color: var(--ps-blue, #223D90);
  font: inherit;
}

.ps-project-contact-date input:focus {
  outline: none;
  border-color: var(--ps-blue, #223D90);
  box-shadow: 0 0 0 3px rgb(34 61 144 / 0.12);
}

.ps-project-contact-note,
.ps-project-contact-success {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgb(var(--ps-blue-rgb) / 0.06);
  color: var(--ps-blue, #223D90);
  font-size: 0.92rem;
  line-height: 1.5;
}

.ps-project-contact-success {
  background: rgb(250 214 7 / 0.18);
}

.ps-project-contact-note[hidden] {
  display: none !important;
}

.ps-project-contact-note.is-error {
  background: rgb(197 52 52 / 0.12);
  color: #a82323;
}

.ps-project-panel-contact {
  gap: 16px;
}

.ps-project-panel-contact .ps-project-list {
  display: grid;
  gap: 14px;
}

/* Notes */

.ps-project-item-notes {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgb(var(--ps-blue-rgb) / 0.08);
}

.ps-project-item-notes-label {
  display: block;
  margin-bottom: 6px;
  font-family: "Alternate Gothic Extra Cond ATF", "Arial Narrow", "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ps-blue, #223D90);
}

.ps-project-item-notes-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
}

.ps-project-item-notes-field {
  width: 100%;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid rgb(var(--ps-blue-rgb) / 0.14);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.7);
  color: var(--ps-blue, #223D90);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  resize: vertical;
  box-sizing: border-box;
}

.ps-project-item-notes-field:focus {
  outline: none;
  border-color: var(--ps-blue, #223D90);
  box-shadow: 0 0 0 3px rgb(34 61 144 / 0.1);
}

.ps-project-item-notes-field::placeholder {
  color: rgb(var(--ps-blue-rgb) / 0.4);
}

.ps-project-item.is-missing-color,
.ps-project-item.is-missing-quantity,
.ps-project-item.is-missing-preference {
  border-color: rgb(197 52 52 / 0.24);
  box-shadow: 0 10px 24px rgb(168 35 35 / 0.08);
}

.ps-project-panel-prime .ps-project-item.is-missing-color,
.ps-project-panel-prime .ps-project-item.is-missing-quantity,
.ps-project-panel-prime .ps-project-item.is-missing-preference,
.ps-project-panel-drawer .ps-project-item.is-missing-color,
.ps-project-panel-drawer .ps-project-item.is-missing-quantity,
.ps-project-panel-drawer .ps-project-item.is-missing-preference {
  box-shadow: none;
}

/* Mobile drawer */

.ps-project-drawer {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(440px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  z-index: 9999;
  box-sizing: border-box;
}

.ps-project-panel-drawer {
  padding: 16px;
  border: 1px solid rgb(var(--ps-blue-rgb) / 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgb(17 31 76 / 0.16);
  overflow: hidden;
  max-height: min(82vh, 680px);
}

.ps-project-panel-drawer .ps-project-list-drawer {
  max-height: min(56vh, 420px);
}

.ps-project-panel-drawer .ps-project-item {
  border-radius: 18px;
  padding: 12px;
}

/* Product button */

.ps-product-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 10px 0 0;
}

.ps-add-to-project-btn {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0;
  padding: 10px 22px;
  border: none;
  border-radius: var(--ps-btn-radius, 6px);
  box-shadow: inset 0 0 0 2.5px var(--ps-yellow, #FAD607);
  background-color: var(--ps-yellow, #FAD607);
  background-image: linear-gradient(to right, var(--ps-blue, #223D90) 50%, var(--ps-yellow, #FAD607) 50%);
  background-size: 202% 100%;
  background-position: 100% 0;
  color: var(--ps-blue, #223D90);
  font-family: 'Alternate Gothic Extra Cond ATF', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-position 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.28s ease,
    color 0.28s ease;
}

.ps-add-to-project-arrow {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  margin-left: 0;
  transform: translateX(-4px);
  transition:
    max-width 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    margin-left 0.28s ease;
}

@media (hover: hover) {
  .ps-add-to-project-btn:hover:not(:disabled) {
    background-position: 0 0;
    box-shadow: inset 0 0 0 2.5px var(--ps-blue, #223D90);
    color: var(--ps-yellow, #FAD607);
  }

  .ps-add-to-project-btn:hover:not(:disabled) .ps-add-to-project-arrow {
    max-width: 2em;
    opacity: 1;
    transform: translateX(0);
    margin-left: 8px;
  }

  .ps-add-to-project-btn.is-saved:hover .ps-add-to-project-arrow,
  .ps-add-to-project-btn.is-saved:focus .ps-add-to-project-arrow,
  .ps-add-to-project-btn.is-saved:focus-visible .ps-add-to-project-arrow {
    max-width: 0;
    opacity: 0;
    transform: translateX(-4px);
    margin-left: 0;
  }
}

.ps-add-to-project-btn.is-saved {
  background-position: 0 0;
  box-shadow: inset 0 0 0 2.5px var(--ps-blue, #223D90);
  color: var(--ps-yellow, #FAD607);
}

.ps-add-to-project-btn.is-updating {
  background-position: 0 0;
  box-shadow: inset 0 0 0 2.5px var(--ps-blue, #223D90);
  color: var(--ps-yellow, #FAD607);
}

.ps-add-to-project-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ps-add-to-project-btn.is-selection-required:disabled {
  opacity: 1;
  background-image: none;
  background-color: rgb(255 248 219 / 0.98);
  box-shadow: inset 0 0 0 1.5px rgb(250 214 7 / 0.85);
  color: #7a6400;
}

/* Card button */

.pm-product-image {
  position: relative;
}

.ps-card-project-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  background: rgb(255 255 255 / 0.92);
  border: none;
  border-radius: 20px;
  height: 30px;
  min-width: 30px;
  max-width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #888;
  opacity: 0;
  overflow: hidden;
  padding: 0 7px;
  white-space: nowrap;
  z-index: 2;
  touch-action: manipulation;
  transition:
    max-width 0.22s ease,
    opacity 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

@media (hover: none) {
  .ps-card-project-btn {
    opacity: 0.45;
  }
}

.ps-card-project-btn svg {
  flex-shrink: 0;
  fill: none;
  transition: fill 0.15s ease;
}

.ps-card-project-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ps-card-project-text {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  margin-left: 0;
  transition:
    max-width 0.22s ease 0.04s,
    opacity 0.14s ease 0.04s,
    margin-left 0.15s ease;
}

/* Hover reveal */
@media (hover: hover) {
  .pm-product-card:hover .ps-card-project-btn,
  .pm-product-card:focus-within .ps-card-project-btn {
    opacity: 1;
  }
}

/* Focus state */
.ps-card-project-btn:focus-visible,
.ps-card-project-btn.is-disabled {
  opacity: 1;
}

/* Hover state */
@media (hover: hover) {
  .ps-card-project-btn:hover {
    max-width: 160px;
    background: #fff;
    color: var(--ps-blue, #223D90);
  }

  .ps-card-project-btn:hover svg {
    fill: currentColor;
  }

  .ps-card-project-btn:hover .ps-card-project-text {
    max-width: 120px;
    opacity: 1;
    margin-left: 5px;
  }
}

/* Expanded state */
.ps-card-project-btn:focus-visible,
.ps-card-project-btn.is-saved,
.ps-card-project-btn.is-disabled {
  max-width: 160px;
  background: #fff;
  color: var(--ps-blue, #223D90);
}

.ps-card-project-btn:focus-visible svg,
.ps-card-project-btn.is-saved svg,
.ps-card-project-btn.is-disabled svg {
  fill: currentColor;
}

.ps-card-project-btn:focus-visible .ps-card-project-text,
.ps-card-project-btn.is-saved .ps-card-project-text,
.ps-card-project-btn.is-disabled .ps-card-project-text {
  max-width: 120px;
  opacity: 1;
  margin-left: 5px;
}

.ps-card-project-btn.is-saved {
  opacity: 1;
}

.ps-card-project-btn.is-disabled {
  background: rgb(255 248 219 / 0.98);
  color: #7a6400;
  cursor: not-allowed;
}

/* Responsive */

@media (min-width: 901px) {
  .ps-prime-header .ps-project-drawer {
    display: none !important;
  }
}


@media (max-width: 1180px) {
  .ps-project-list-mega {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .ps-project-wrap {
    margin-left: 10px;
  }

  .ps-project-contact-header {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .ps-project-drawer {
    position: fixed;
    top: var(--ps-project-drawer-top, 78px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }

  .ps-project-panel-drawer {
    max-height: calc(100vh - var(--ps-project-drawer-top, 78px) - 32px);
    padding: 14px;
    border-radius: 20px;
  }

  .ps-project-panel-drawer .ps-project-list-drawer {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .ps-project-panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ps-project-panel-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .ps-project-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .ps-project-item-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ps-project-item-qty-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .ps-project-item-qty-field {
    width: 100%;
    min-width: 0;
  }

  .ps-project-item-media {
    width: 64px;
    height: 64px;
  }

  .ps-project-contact-shell {
    padding: 16px;
    border-radius: 18px;
  }

  .ps-project-contact-service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ps-project-item-chip {
    padding: 6px 9px;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .ps-project-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .ps-project-item-media {
    width: 72px;
    height: 72px;
  }

  .ps-project-item-top {
    gap: 10px;
  }

  .ps-project-panel-actions {
    justify-content: stretch;
  }

  .ps-project-action-btn,
  .ps-project-cta.ps-btn {
    width: 100%;
    justify-content: center;
  }

  .ps-project-panel-status {
    text-align: left;
  }
}

@media (hover: none), (pointer: coarse) {
  .ps-prime-project-btn,
  .ps-project-close-btn,
  .ps-project-item-remove,
  .ps-project-item-editor-toggle,
  .ps-project-item-selected-remove,
  .ps-project-item-chip,
  .ps-project-share-btn,
  .ps-project-action-btn,
  .ps-share-product-btn,
  .ps-project-cta.ps-btn,
  .ps-card-project-btn {
    -webkit-tap-highlight-color: rgb(var(--ps-blue-rgb) / 0.14);
  }

  .ps-prime-project-btn:hover {
    background: transparent !important;
  }

  .ps-prime-project-btn:hover svg {
    stroke-width: 2;
  }

  .ps-project-close-btn:hover,
  .ps-project-item-editor-toggle:hover {
    opacity: 1;
  }

  .ps-project-item-remove:hover,
  .ps-prime-header .ps-project-item-remove:hover {
    background: rgb(var(--ps-blue-rgb) / 0.08) !important;
    color: var(--ps-blue, #223D90) !important;
  }

  .ps-project-item-selected-remove:hover {
    background: transparent;
  }

  .ps-project-item-chip:hover {
    border-color: rgb(var(--ps-blue-rgb) / 0.2);
  }

  .ps-project-share-btn:hover {
    border-color: rgb(var(--ps-blue-rgb) / 0.18);
    background: rgb(255 255 255 / 0.88);
    transform: none;
    outline: none;
  }

  .ps-card-project-btn:hover {
    max-width: 44px;
    background: var(--ps-yellow, #FAD607);
    color: #888;
  }

  .ps-card-project-btn:hover svg {
    fill: none;
  }

  .ps-card-project-btn:hover .ps-card-project-text {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
  }
}
