/* Plato Wishlist — product page (Phase 2) */
.plato-wl-wrap { flex-basis: 100%; width: 100%; margin-top: 12px; }
.plato-wl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid currentColor; border-radius: 4px;
  background: transparent; color: inherit; font: inherit; font-weight: 600; line-height: 1.2;
  cursor: pointer;
}
.plato-wl-btn:hover, .plato-wl-btn:focus-visible { background: rgba(0,0,0,.05); }
.plato-wl-btn svg { width: 18px; height: 18px; flex: none; }
.plato-wl-note { display: block; margin-top: 6px; font-size: 14px; color: #b42318; }
.plato-wl-note:empty { display: none; }

.plato-wl-modal[hidden], .plato-wl-pane[hidden], .plato-wl-new[hidden] { display: none !important; }
.plato-wl-modal {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(17,24,39,.55);
}
.plato-wl-box {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto;
  padding: 24px; border-radius: 8px; background: #fff; color: #1f2933;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.plato-wl-close {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px;
  border: 0; background: transparent; color: #52606d; font-size: 26px; line-height: 1; cursor: pointer;
}
.plato-wl-title { margin: 0 32px 6px 0; font-size: 20px; }
.plato-wl-hint { margin: 0 0 16px; font-size: 14px; color: #52606d; }
.plato-wl-list { display: grid; gap: 8px; margin-bottom: 12px; }
.plato-wl-option {
  display: flex; align-items: center; gap: 10px; margin: 0;
  padding: 12px; border: 1px solid #d9dee3; border-radius: 6px; cursor: pointer;
}
.plato-wl-option:has(input:checked) { border-color: #1f2933; background: #f5f7f9; }
.plato-wl-option input { margin: 0; flex: none; }
.plato-wl-option-name { flex: 1; font-weight: 600; word-break: break-word; }
.plato-wl-option-count { font-size: 13px; color: #7b8794; white-space: nowrap; }
.plato-wl-new-input {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  border: 1px solid #9aa5b1; border-radius: 6px; font: inherit;
}
.plato-wl-msg { min-height: 20px; margin: 0 0 12px; font-size: 14px; color: #b42318; }
.plato-wl-save, .plato-wl-view { width: 100%; justify-content: center; text-align: center; }
.plato-wl-save[disabled] { opacity: .6; cursor: wait; }
.plato-wl-done-text { margin: 0 0 16px; color: #3e4c59; }
.plato-wl-actions { display: grid; gap: 8px; }
.plato-wl-more {
  padding: 10px; border: 0; background: transparent; color: #3e4c59;
  font: inherit; text-decoration: underline; cursor: pointer;
}
body.plato-wl-open { overflow: hidden; }

/* Wishlist page (Phase 3) */
.plato-wl-page { max-width: 1000px; margin: 0 auto; }
.plato-wl-preview { padding: 10px 14px; border-radius: 6px; background: #fff7e6; color: #7a4b00; font-size: 14px; }
.plato-wl-form { margin: 0; }
.plato-wl-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plato-wl-inline input[type=text] { flex: 1 1 200px; min-width: 0; }
.plato-wl-link {
  padding: 4px 0; border: 0; background: none; color: inherit;
  font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer;
}
.plato-wl-danger { color: #b42318; }
.plato-wl-details > summary { cursor: pointer; font-size: 14px; text-decoration: underline; list-style: none; }
.plato-wl-details > summary::-webkit-details-marker { display: none; }
.plato-wl-details[open] > summary { margin-bottom: 8px; }

.plato-wl-projects { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; }
.plato-wl-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1px solid #d9dee3; border-radius: 999px; color: inherit; text-decoration: none; font-weight: 600;
}
.plato-wl-chip.is-active { border-color: currentColor; background: #f5f7f9; }
.plato-wl-chip-count { font-size: 12px; font-weight: 400; color: #7b8794; }
.plato-wl-new-project { flex-basis: 100%; }
.plato-wl-new-project:not([open]) { flex-basis: auto; }

.plato-wl-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #e4e7eb;
}
.plato-wl-name { margin: 0; }
.plato-wl-count { margin: 4px 0 0; color: #7b8794; font-size: 14px; }
.plato-wl-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.plato-wl-head-actions .plato-wl-inline input[type=text] { width: 220px; }

/* Cart-style table: the theme's cart styles do most of the work. */
.plato-wl-page { max-width: none; }
.plato-wl-table { width: 100%; }
.plato-wl-table .product-thumbnail { width: 120px; }
.plato-wl-table .product-thumbnail img { display: block; width: 100px; max-width: 100px; height: auto; }
.plato-wl-table .product-name > a { text-decoration: none; }
.plato-wl-table .product-name dl.variation { margin: 8px 0 0; }
.plato-wl-table .product-quantity, .plato-wl-table .product-subtotal { white-space: nowrap; }
.plato-wl-table .product-remove { width: 40px; text-align: right; }
.plato-wl-row.is-unavailable td { opacity: .7; }
.plato-wl-unit { margin-top: 10px; }
.plato-wl-unit small { display: block; font-size: 13px; color: #7b8794; }
.plato-wl-warn { margin: 6px 0 0; font-size: 14px; color: #b42318; }
.plato-wl-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; }
.plato-wl-row-actions .button { width: auto; min-height: 0; padding: 8px 18px; font-size: 14px; line-height: 1.3; }
.plato-wl-move { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.plato-wl-move label { margin: 0; color: #7b8794; }
.plato-wl-move select { width: auto; max-width: 180px; height: auto; min-height: 0; padding: 4px 28px 4px 8px; font-size: 14px; }
.plato-wl-remove { padding: 6px; border: 0; background: none; color: inherit; line-height: 0; cursor: pointer; }
.plato-wl-remove svg { width: 18px; height: 18px; }
.plato-wl-remove:hover, .plato-wl-remove:focus-visible { color: #b42318; }
.plato-wl-dash { color: #9aa5b1; }

.plato-wl-cart-footer { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 24px; }
.plato-wl-update { width: auto; padding: 8px 18px; font-size: 14px; }
.plato-wl-totals { flex: 0 1 420px; margin-left: auto; }
.plato-wl-totals h2 { margin: 0 0 12px; font-size: 20px; }
.plato-wl-totals table { width: 100%; }
.plato-wl-totals .checkout-button { display: block; width: 100%; text-align: center; }
.plato-wl-note-price, .plato-wl-empty-project { margin: 10px 0 0; font-size: 13px; color: #7b8794; }
.plato-wl-empty { padding: 32px 0; text-align: center; }
.plato-wl-empty .plato-wl-inline { justify-content: center; max-width: 420px; margin: 0 auto; }

/* Compact top: tabs + project buttons on one line, so the items show on the first screen. */
body.page-id-3943 .ct-container-full { --theme-content-vertical-spacing: 24px; }
body.page-id-3943 .hero-section { margin-bottom: 8px !important; }
body.page-id-3943 .hero-section .page-title { font-size: clamp(28px, 3vw, 40px); }
.plato-wl-preview { margin: 0 0 12px; padding: 6px 12px; font-size: 13px; }
.plato-wl-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin: 0 0 8px; padding-bottom: 12px; border-bottom: 1px solid #e4e7eb;
}
.plato-wl-bar .plato-wl-projects { margin: 0; gap: 6px; }
.plato-wl-bar .plato-wl-chip { padding: 5px 12px; font-size: 14px; }
.plato-wl-bar .plato-wl-new-project, .plato-wl-bar .plato-wl-new-project:not([open]) { flex-basis: auto; }
.plato-wl-bar .plato-wl-head-actions { gap: 16px; }
.plato-wl-bar .plato-wl-head-actions .button { min-height: 0; padding: 8px 18px; font-size: 14px; line-height: 1.3; }
.plato-wl-page .plato-wl-link { background: none !important; color: inherit !important; border: 0 !important; box-shadow: none !important; min-height: 0 !important; width: auto !important; padding: 4px 0 !important; font-size: 14px !important; text-decoration: underline; }
.plato-wl-page .plato-wl-link.plato-wl-danger { color: #b42318 !important; }

/* Line under the last item, matching the lines between items. */
.plato-wl-table tbody tr:last-child td { border-bottom: 1px dashed var(--theme-border-color, #e4e7eb); }
/* Plain trash icon and text-style Move, overriding the theme's button look. */
.plato-wl-table .plato-wl-remove { background: none !important; color: inherit !important; border: 0 !important; box-shadow: none !important; min-height: 0 !important; width: auto !important; padding: 6px !important; }
.plato-wl-table .plato-wl-remove:hover, .plato-wl-table .plato-wl-remove:focus-visible { color: #b42318 !important; }
.plato-wl-table .plato-wl-link { background: none !important; color: inherit !important; border: 0 !important; box-shadow: none !important; min-height: 0 !important; width: auto !important; padding: 4px 0 !important; font-size: 14px !important; text-decoration: underline; }

/* Send to Plato team (under the Project total box, same width). */
.plato-wl-ask { max-width: 420px; margin: 16px 0 0 auto; }
.plato-wl-ask-details > summary { list-style: none; }
.plato-wl-ask-details > summary::-webkit-details-marker { display: none; }
.plato-wl-page .plato-wl-ask-open {
  display: block; width: 100%; box-sizing: border-box; text-align: center; cursor: pointer;
  background: transparent !important; color: inherit !important; border: 1px solid currentColor !important; box-shadow: none !important;
}
.plato-wl-ask-details[open] > .plato-wl-ask-open { margin-bottom: 12px; }
.plato-wl-ask-note { margin: 8px 0 0; font-size: 13px; color: #7b8794; text-align: center; }
.plato-wl-ask-details[open] + .plato-wl-ask-note { display: none; }
.plato-wl-ask-form { display: grid; gap: 12px; padding: 16px; border: 1px solid #e4e7eb; border-radius: 6px; }
.plato-wl-ask-projects { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; }
.plato-wl-ask-projects legend { margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 600; }
.plato-wl-ask-project { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; cursor: pointer; }
.plato-wl-ask-project input { margin: 0; flex: none; }
.plato-wl-ask-project small { color: #7b8794; }
.plato-wl-field { margin: 0; }
.plato-wl-field label { display: block; margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.plato-wl-field input, .plato-wl-field textarea { width: 100%; box-sizing: border-box; }
.plato-wl-ask-contact { display: grid; gap: 12px; }
.plato-wl-ask-send { width: 100%; }
.plato-wl-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; max-width: 420px; margin: 12px 0 0 auto; }
.plato-wl-tools .plato-wl-details[open] { flex-basis: 100%; }
.plato-wl-tools .plato-wl-details > summary { text-align: center; color: #52606d; }
.plato-wl-tools .button { width: auto; min-height: 0; padding: 8px 16px; font-size: 14px; }
.plato-wl-tool-note { margin: 6px 0 0; font-size: 12px; color: #7b8794; }
.plato-wl-shared-name { font-size: 18px; }
.plato-wl-notices { scroll-margin-top: 140px; margin: 16px 0 0; }
#plato-wl-at-tools { max-width: 420px; margin-left: auto; }
.plato-wl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Site outline button: same look as the product page "Order Sample" button. */
.plato-wl-btn,
.plato-wl-page .plato-wl-ask-open,
.plato-wl-page .plato-wl-update,
.plato-wl-page .plato-wl-outline,
.plato-wl-page .plato-wl-inline .button,
.plato-wl-tools .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: auto; min-height: 34px !important; height: auto !important; padding: 6px 14px !important;
  background: #ffffff !important; color: #66583e !important;
  border: 1px solid #a79778 !important; border-radius: 5px !important; box-shadow: none !important;
  font-size: 14px !important; line-height: 1.4 !important; font-weight: 600; text-align: center; cursor: pointer;
}
.plato-wl-btn:hover, .plato-wl-page .plato-wl-ask-open:hover, .plato-wl-page .plato-wl-update:hover,
.plato-wl-page .plato-wl-outline:hover, .plato-wl-page .plato-wl-inline .button:hover, .plato-wl-tools .button:hover { background: #eee8dc !important; }
.plato-wl-btn:focus-visible, .plato-wl-page .plato-wl-ask-open:focus-visible, .plato-wl-page .plato-wl-update:focus-visible,
.plato-wl-page .plato-wl-outline:focus-visible, .plato-wl-page .plato-wl-inline .button:focus-visible, .plato-wl-tools .button:focus-visible { outline: 2px solid #66583e; outline-offset: 3px; }
.plato-wl-page .plato-wl-ask-open { display: flex; width: 100%; }
.plato-wl-bar .plato-wl-chip { border-color: #a79778; border-radius: 5px; background: #ffffff; color: #66583e; }
.plato-wl-bar .plato-wl-chip:hover { background: #eee8dc; }
.plato-wl-bar .plato-wl-chip.is-active { border-color: #66583e; background: #eee8dc; }
.plato-wl-chip-count { color: #8a7b5f; }

/* Text links shown as the same outline buttons. */
.plato-wl-page .plato-wl-bar .plato-wl-details > summary,
.plato-wl-page .plato-wl-tools .plato-wl-details > summary,
.plato-wl-page .plato-wl-head-actions .plato-wl-link {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: auto !important; min-height: 34px !important; padding: 6px 14px !important;
  background: #ffffff !important; color: #66583e !important;
  border: 1px solid #a79778 !important; border-radius: 5px !important; box-shadow: none !important;
  font-size: 14px !important; line-height: 1.4 !important; font-weight: 600; text-decoration: none !important; cursor: pointer;
}
.plato-wl-page .plato-wl-bar .plato-wl-details > summary:hover,
.plato-wl-page .plato-wl-tools .plato-wl-details > summary:hover,
.plato-wl-page .plato-wl-head-actions .plato-wl-link:hover { background: #eee8dc !important; }
.plato-wl-page .plato-wl-bar .plato-wl-details > summary:focus-visible,
.plato-wl-page .plato-wl-tools .plato-wl-details > summary:focus-visible,
.plato-wl-page .plato-wl-head-actions .plato-wl-link:focus-visible { outline: 2px solid #66583e; outline-offset: 3px; }
.plato-wl-page .plato-wl-head-actions .plato-wl-link.plato-wl-danger { color: #b42318 !important; }
.plato-wl-bar .plato-wl-head-actions { gap: 10px; }
.plato-wl-tools { gap: 10px; }

/* Archived tab */
.plato-wl-al-title { margin: 16px 0 8px; font-size: 20px; }
.plato-wl-archived-table { width: 100%; }
.plato-wl-archived-table td { padding: 12px 0; vertical-align: middle; border-bottom: 1px solid #e4e7eb; }
.plato-wl-al-name a { font-weight: 600; text-decoration: none; }
.plato-wl-al-name small { display: block; margin-top: 2px; font-size: 13px; color: #7b8794; }
.plato-wl-al-actions { text-align: right; width: 1%; white-space: nowrap; }
.plato-wl-archived-note { font-size: 14px; color: #52606d; }

@media (max-width: 768px) {
  .plato-wl-ask, .plato-wl-tools, #plato-wl-at-tools { max-width: none; }
  .plato-wl-table .product-thumbnail img { width: 80px; max-width: 80px; }
  .plato-wl-totals { flex-basis: 100%; }
  .plato-wl-head { align-items: flex-start; }
  .plato-wl-head-actions { width: 100%; }
  .plato-wl-head-actions .plato-wl-inline input[type=text] { width: 100%; }
}
