.wcdp{--wcdp-pink:#965e74;--wcdp-dark:#793e55;--wcdp-pale:#f8eef2;--wcdp-line:#e7dfe3;--wcdp-muted:#766e72;--wcdp-text:#393236;color:var(--wcdp-text);font-family:inherit;font-size:14px;line-height:1.65;max-width:1260px;margin:auto;padding:24px 0 50px;box-sizing:border-box}
.wcdp *{box-sizing:border-box}.wcdp button,.wcdp input,.wcdp select{font:inherit}.wcdp button{cursor:pointer}.wcdp button:disabled{cursor:not-allowed;opacity:.48}.wcdp button:focus-visible,.wcdp input:focus-visible,.wcdp select:focus-visible,.wcdp summary:focus-visible{outline:3px solid #dba3b5;outline-offset:3px}.wcdp [hidden]{display:none!important}
.wcdp-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:25px}.wcdp-kicker{letter-spacing:.18em;font-size:11px;font-weight:700;color:var(--wcdp-pink)}.wcdp-heading h2{font-size:30px;font-weight:600;line-height:1.3;margin:10px 0}.wcdp-heading p{margin:0;color:var(--wcdp-muted)}.wcdp-currency{color:var(--wcdp-muted);font-size:12px;white-space:nowrap}
.wcdp-admin{background:var(--wcdp-pale);border:1px solid #ecd4de;border-radius:8px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;flex-wrap:wrap}.wcdp-admin-intro{display:flex;flex-direction:column;gap:4px}.wcdp-admin-intro strong{font-size:16px}.wcdp-admin-intro span{font-size:12px;color:#785b67}.wcdp-admin-actions{display:flex;gap:8px;flex-wrap:wrap}.wcdp .wcdp-btn{background:white;color:var(--wcdp-dark);border:1px solid #d8c0ca;padding:8px 13px;border-radius:4px;min-height:40px;font-weight:600;font-size:13px;display:inline-flex;justify-content:center;align-items:center;text-align:center;line-height:1.4}.wcdp .wcdp-btn:hover{background:#fff9fb;border-color:var(--wcdp-pink)}.wcdp .wcdp-primary{background:var(--wcdp-dark);color:#fff;border-color:var(--wcdp-dark)}.wcdp .wcdp-primary:hover{background:#633044;color:#fff}
.wcdp-filter-panel{border:1px solid var(--wcdp-line);border-radius:8px;background:white;padding:26px 28px}.wcdp-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.wcdp-panel-head h3{font-size:18px;font-weight:600;margin:0}.wcdp-panel-head span{font-size:12px;color:var(--wcdp-muted)}.wcdp-label,.wcdp fieldset legend{font-weight:650;font-size:13px;display:block;margin-bottom:12px;padding:0}.wcdp-shape-grid{display:flex;flex-wrap:wrap;gap:10px}.wcdp .wcdp-chip{border:1px solid #dad3d6;background:white;color:#4b4447;border-radius:4px;min-height:42px;padding:8px 11px;font-size:13px;display:flex;align-items:center;justify-content:center;gap:6px;transition:border-color .15s ease,background-color .15s ease,color .15s ease}.wcdp .wcdp-chip:hover{border-color:#cda6b5;background:#fcf5f8}.wcdp .wcdp-chip[aria-pressed=true]{background:#fcf0f4;border:2px solid var(--wcdp-pink);color:var(--wcdp-dark);font-weight:700}.wcdp .wcdp-shape-chip{width:108px;min-width:108px;max-width:108px;min-height:58px;flex-direction:column;gap:4px;padding:8px 6px;line-height:1.25;border-radius:4px}.wcdp-shape-icon{width:30px;height:30px;display:inline-block;flex:none;color:#926175}.wcdp-table-shape{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;white-space:nowrap;line-height:1;vertical-align:middle}.wcdp-table-shape .wcdp-shape-icon{width:24px;height:24px;display:block;align-self:center}.wcdp-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:25px 0}.wcdp-chips{display:flex;flex-wrap:wrap;gap:8px}.wcdp-chips .wcdp-chip{flex:0 0 56px;min-width:56px;max-width:56px;padding-left:0;padding-right:0}.wcdp-range-grid{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:24px;padding-top:22px;border-top:1px solid #f0ebed}.wcdp fieldset{margin:0;border:0;min-width:0;padding:0}.wcdp-range{display:flex;gap:10px;align-items:center}.wcdp-range span{font-size:12px;color:#948991}.wcdp-range input{width:100%;min-width:0;height:42px;border:1px solid #d9d0d5;border-radius:4px;background:white;color:#393236;padding:9px 10px}.wcdp .wcdp-clear{background:transparent;border:0;color:var(--wcdp-dark);font-weight:700;white-space:nowrap;padding:11px 0}.wcdp-advanced{margin-top:20px;border-top:1px solid #eee9ec;padding-top:18px}.wcdp-advanced summary{list-style:none;color:var(--wcdp-dark);cursor:pointer;font-weight:600}.wcdp-advanced summary::-webkit-details-marker{display:none}.wcdp-advanced summary:before{content:'＋ ';font-size:16px}.wcdp-advanced[open] summary:before{content:'− '}.wcdp-advanced-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:18px}.wcdp-advanced-grid label{font-size:12px;color:var(--wcdp-muted)}.wcdp-advanced-grid select{display:block;width:100%;height:40px;margin-top:6px;border:1px solid #ddd2d8;background:white;color:#393236;border-radius:4px;padding:5px 9px}
.wcdp-results-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:28px 0 15px}.wcdp-results-head h3{font-size:19px;font-weight:600;margin:0}.wcdp-results-head h3 strong{color:var(--wcdp-dark);font-size:23px}.wcdp-results-head span{font-size:12px;color:var(--wcdp-muted)}.wcdp-sort{display:flex;gap:10px;align-items:center;font-size:12px;white-space:nowrap}.wcdp-sort select{border:1px solid #dad2d6;border-radius:6px;min-height:41px;padding:9px 12px;background:white;color:#393236}.wcdp-desktop-table{width:100%;overflow-x:auto;border:1px solid var(--wcdp-line);border-radius:7px}.wcdp-desktop-table table{border-collapse:collapse;border-spacing:0;background:#fff;width:100%;white-space:nowrap;font-size:13px}.wcdp-desktop-table th{background:#faf8f9;color:#766d72;border-bottom:1px solid var(--wcdp-line);font-weight:650;text-align:left;padding:13px 11px}.wcdp-desktop-table td{border-bottom:1px solid #f2edef;padding:14px 11px;vertical-align:middle}.wcdp-desktop-table tr:last-child td{border-bottom:0}.wcdp-desktop-table tbody tr:hover{background:#fffafd}.wcdp-price{color:#88485f;font-weight:750;white-space:nowrap}.wcdp-contact{font-weight:600;color:#ab6c82;white-space:nowrap}.wcdp-item-actions{display:flex;gap:7px;align-items:center}.wcdp .wcdp-mini-btn{border:1px solid #d6bbc6;border-radius:5px;padding:5px 10px;background:white;color:var(--wcdp-dark);font-size:12px;white-space:nowrap}.wcdp .wcdp-delete{border:0;color:#826d77;background:transparent;padding:6px 4px;font-size:12px}.wcdp-mobile-cards{display:none}.wcdp-no-results{text-align:center;padding:35px;color:var(--wcdp-muted)}.wcdp-no-results strong{display:block;color:var(--wcdp-text);font-size:16px}.wcdp-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin:20px 0}.wcdp-pagination button{border:1px solid #e2d7dd;background:white;border-radius:5px;color:var(--wcdp-dark);padding:8px 12px}.wcdp-pagination span{font-size:12px;color:var(--wcdp-muted)}.wcdp-footnote{font-size:12px;color:var(--wcdp-muted);margin:18px 0 0}
.wcdp-toast{position:fixed;right:24px;bottom:24px;z-index:20000;max-width:min(380px,90vw);background:#4b3942;color:white;padding:13px 17px;border-radius:5px;font-size:13px;box-shadow:0 5px 22px #0002;opacity:0;visibility:hidden;transition:opacity .2s}.wcdp-toast-visible{opacity:1;visibility:visible}.wcdp-toast-error{background:#9c3148}.wcdp-overlay{position:fixed;inset:0;background:rgba(25,16,21,.55);z-index:19999;display:flex;align-items:center;justify-content:center;padding:20px}.wcdp-dialog{width:min(680px,100%);max-height:92dvh;overflow:auto;overscroll-behavior:contain;border-radius:8px;background:white;padding:26px;box-shadow:0 20px 60px #0003;outline:none}.wcdp-dialog-head{display:flex;justify-content:space-between;gap:20px}.wcdp-dialog-head h3{margin:0;font-size:20px}.wcdp-dialog-head p{font-size:13px;color:var(--wcdp-muted);margin:8px 0 19px}.wcdp .wcdp-dialog-close{background:transparent;border:0;font-size:25px;color:#74666d;align-self:flex-start;line-height:1}.wcdp-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.wcdp-form label{font-size:12px;color:#6f6169}.wcdp-form select,.wcdp-form input{display:block;width:100%;height:42px;border:1px solid #d9cdd3;border-radius:6px;background:white;color:#342c31;padding:8px 11px;margin-top:5px}.wcdp-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:25px}.wcdp-upload-label{display:block;font-weight:600}.wcdp-upload-label input{display:block;border:1px dashed #cbb0bd;border-radius:5px;margin-top:10px;padding:13px;width:100%;background:#fffafc;font-weight:400}.wcdp-help{font-size:12px;color:var(--wcdp-muted);margin-top:10px}.wcdp-error,.wcdp-warning{border-radius:5px;padding:13px;margin-top:15px;font-size:13px;line-height:1.7}.wcdp-error{background:#fff0f0;border:1px solid #edc1c6;color:#9b3044}.wcdp-warning{background:#fff8e8;border:1px solid #e4d0a0;color:#815c1b}.wcdp-error ul{padding-left:20px;max-height:240px;overflow:auto;margin:7px 0 0}.wcdp-preview{border:1px solid #e8d7de;border-radius:5px;padding:14px;margin-top:17px;background:#fcf8fa}.wcdp-preview>strong{font-size:19px;color:var(--wcdp-dark)}.wcdp-preview p{font-size:12px;color:#695a63}.wcdp-preview-scroll{overflow-x:auto}.wcdp-preview table{border-collapse:collapse;background:white;font-size:12px;white-space:nowrap}.wcdp-preview th,.wcdp-preview td{border:1px solid #e9e0e4;padding:6px 10px;text-align:left}.wcdp-backups{display:grid;gap:8px;max-height:52vh;overflow:auto}.wcdp-backups>div{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #e9dee3;border-radius:5px;padding:10px 12px}.wcdp-backups span{display:flex;flex-direction:column}.wcdp-backups small{font-size:11px;color:var(--wcdp-muted)}
@media(max-width:1100px){.wcdp .wcdp-shape-chip{width:100px;min-width:100px;max-width:100px}.wcdp-advanced-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wcdp-admin{align-items:flex-start}}
@media(max-width:760px){.wcdp{padding:14px 0 32px}.wcdp-heading{margin-bottom:20px}.wcdp-heading h2{font-size:25px}.wcdp-currency{display:none}.wcdp-filter-panel{padding:20px 16px}.wcdp-admin{padding:15px}.wcdp-admin-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.wcdp .wcdp-admin-actions .wcdp-btn{min-height:44px}.wcdp-shape-grid{gap:8px}.wcdp .wcdp-shape-chip{width:88px;min-width:88px;max-width:88px;min-height:62px;font-size:11px;padding:8px 4px}.wcdp-shape-icon{width:27px;height:27px}.wcdp-filter-grid{grid-template-columns:1fr;gap:18px;margin:20px 0}.wcdp-chips .wcdp-chip{flex:0 0 56px;min-width:56px;max-width:56px}.wcdp-range-grid{grid-template-columns:1fr;gap:16px}.wcdp .wcdp-clear{text-align:left;padding:3px 0}.wcdp-advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wcdp-results-head{align-items:flex-start;flex-direction:column;gap:12px}.wcdp-sort{width:100%;justify-content:space-between}.wcdp-sort select{flex:1;max-width:260px}.wcdp-desktop-table{display:none}.wcdp-mobile-cards{display:grid;gap:12px}.wcdp-card{border:1px solid var(--wcdp-line);background:white;border-radius:7px;padding:18px}.wcdp-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding-bottom:12px;border-bottom:1px solid #f1e9ed}.wcdp-card-head .wcdp-table-shape small{display:block;color:var(--wcdp-muted);font-size:12px;font-weight:400}.wcdp-card dl{display:grid;grid-template-columns:1fr 1fr;gap:6px 15px;margin:12px 0 0}.wcdp-card dl>div{display:flex;justify-content:space-between;border-bottom:1px solid #f7f1f4;padding:5px 0;gap:8px}.wcdp-card dt{color:var(--wcdp-muted);font-size:12px}.wcdp-card dd{margin:0;font-size:12px;font-weight:650}.wcdp-card .wcdp-item-actions{justify-content:flex-end;margin-top:13px}.wcdp-dialog{padding:20px;max-height:92dvh}.wcdp-form{grid-template-columns:1fr 1fr;gap:12px}.wcdp-dialog-actions .wcdp-btn{flex:1}}
@media(max-width:390px){.wcdp .wcdp-shape-chip{width:calc(50% - 4px);min-width:calc(50% - 4px);max-width:calc(50% - 4px)}.wcdp-form{grid-template-columns:1fr}}

.wcdp .wcdp-processing{font-size:13px;color:var(--wcdp-dark);font-weight:600;margin:10px 0;}

/* 1.1.0: clickable, accessible sortable headings and per-page selection. */
.wcdp-results-controls{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap}
.wcdp .wcdp-sort-heading{display:inline-flex;align-items:center;justify-content:flex-start;gap:5px;border:0;background:transparent;color:inherit;text-align:left;font-weight:700;font-size:inherit;padding:2px 0;min-height:28px;white-space:nowrap}
.wcdp .wcdp-sort-heading::after{content:'↕';font-size:13px;color:#97878f;display:inline-block;width:12px;text-align:center}
.wcdp .wcdp-sort-heading:hover,.wcdp .wcdp-sort-heading.wcdp-sort-active{color:var(--wcdp-dark)}
.wcdp .wcdp-sort-heading.wcdp-sort-active[data-direction="asc"]::after{content:'↑';color:var(--wcdp-dark)}
.wcdp .wcdp-sort-heading.wcdp-sort-active[data-direction="desc"]::after{content:'↓';color:var(--wcdp-dark)}
.wcdp .wcdp-sort-heading:focus-visible{outline:3px solid #dba3b5;outline-offset:3px;border-radius:3px}
.wcdp .wcdp-shape-icon{display:block;object-fit:contain;mix-blend-mode:multiply;color:inherit}
.wcdp .wcdp-pagination{flex-wrap:wrap;gap:10px 14px}
.wcdp .wcdp-page-summary{color:var(--wcdp-muted);font-size:12px}
@media(max-width:760px){.wcdp-results-controls{justify-content:flex-start;width:100%;gap:10px}.wcdp-results-controls .wcdp-sort{flex:1 1 165px;display:grid;gap:5px}.wcdp-results-controls .wcdp-sort select{width:100%;max-width:none}.wcdp .wcdp-page-summary{flex-basis:100%;text-align:center}}

/* 1.1.1: display each original 64×64 PNG at half its previous on-page size.
   Explicitly scope dimensions to beat broad WordPress theme image rules. */
.wcdp .wcdp-shape-chip img.wcdp-shape-icon,
.wcdp .wcdp-table-shape img.wcdp-shape-icon {
  display: block;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px !important;
  max-height: 24px !important;
  flex: 0 0 24px;
  object-fit: contain;
  margin-bottom: 0 !important;
}

/* 1.1.2: refine chip/button radii and normalize color/clarity filter button sizes. */

/* 1.1.3: smaller top shape buttons and improved icon/text alignment in result rows. */

/* 1.1.4: use direct-click, theme-independent buttons for items per page. */
.wcdp .wcdp-page-size-control{position:relative;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;font-size:12px}
.wcdp .wcdp-page-size-trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:9px;min-width:74px;min-height:41px;padding:9px 10px;background:#fff;color:var(--wcdp-text);border:1px solid #dad2d6;border-radius:4px;font-size:12px;font-weight:400;line-height:1.4;cursor:pointer}
.wcdp .wcdp-page-size-trigger:hover,.wcdp .wcdp-page-size-trigger[aria-expanded="true"]{border-color:var(--wcdp-pink)}
.wcdp .wcdp-page-size-trigger [aria-hidden="true"]{color:var(--wcdp-muted);font-size:16px;line-height:1}
.wcdp .wcdp-page-size-menu{position:absolute;top:calc(100% + 4px);right:0;z-index:100;min-width:86px;display:grid;gap:2px;padding:4px;background:#fff;border:1px solid #dad2d6;border-radius:5px;box-shadow:0 6px 20px rgba(0,0,0,.1)}
.wcdp .wcdp-page-size-menu[hidden]{display:none!important}
.wcdp .wcdp-page-size-menu button{display:block;width:100%;background:white;border:1px solid transparent;border-radius:3px;padding:7px 10px;min-height:34px;color:var(--wcdp-text);text-align:left;white-space:nowrap;font-size:12px;line-height:1.4;cursor:pointer}
.wcdp .wcdp-page-size-menu button:hover{background:#fcf5f8;border-color:#efdfE5}
.wcdp .wcdp-page-size-menu button[aria-pressed="true"]{background:var(--wcdp-pale);color:var(--wcdp-dark);font-weight:700}
@media(max-width:760px){.wcdp .wcdp-page-size-control{flex:1 1 115px;justify-content:flex-start}}


/* 1.1.7: compact mobile shape filters (4 + 3) and two-row specifications. */
@media (max-width: 760px) {
  .wcdp .wcdp-shape-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    max-width: 480px;
  }
  .wcdp .wcdp-shape-grid .wcdp-shape-chip {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 68px;
    padding: 8px 2px;
    gap: 5px;
    font-size: 11px;
    line-height: 1.25;
    border-radius: 4px;
  }
  .wcdp .wcdp-shape-grid .wcdp-shape-chip > span {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
  }
  .wcdp .wcdp-card-specs { display: grid; gap: 0; padding-top: 5px; }
  .wcdp .wcdp-card .wcdp-spec-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    gap: 0;
  }
  .wcdp .wcdp-card .wcdp-spec-row + .wcdp-spec-row {
    /* Two full, aligned rows of four specifications. */
    border-top: 1px solid #f1e9ed;
  }
  .wcdp .wcdp-card .wcdp-spec-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding: 10px 2px;
    border: 0;
    text-align: center;
  }
  .wcdp .wcdp-card .wcdp-spec-cell dt {
    color: var(--wcdp-muted);
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
  }
  .wcdp .wcdp-card .wcdp-spec-cell dd {
    margin: 0;
    padding-left: 0;
    color: var(--wcdp-text);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
  }
}

/* 1.1.9 — single place to adjust the plugin control radius.
   Wedding Code/Salient may apply a global !important pill radius to buttons.
   Limit the override to controls inside [wcdp], never theme-wide elements. */
.wcdp {
  --wcdp-control-radius: 4px;
}

/* Buttons of the diamond filters (including selected state), administration,
   pagination and the visible "per page" dropdown trigger/options. */
body .wcdp button.wcdp-chip,
body .wcdp .wcdp-shape-grid button.wcdp-shape-chip,
body .wcdp button.wcdp-btn,
body .wcdp button.wcdp-mini-btn,
body .wcdp .wcdp-pagination button,
body .wcdp button.wcdp-page-size-trigger,
body .wcdp .wcdp-page-size-menu button,
body .wcdp button.wcdp-sort-heading,
body .wcdp button.wcdp-clear,
body .wcdp button.wcdp-delete,
body .wcdp button.wcdp-dialog-close {
  border-radius: var(--wcdp-control-radius) !important;
}

/* Keep native fields consistent with the other square-ish controls. */
body .wcdp .wcdp-sort select,
body .wcdp .wcdp-advanced-grid select,
body .wcdp .wcdp-form select,
body .wcdp .wcdp-range input[type="number"],
body .wcdp .wcdp-form input,
body .wcdp .wcdp-upload-label input[type="file"] {
  border-radius: var(--wcdp-control-radius) !important;
}

/* 1.1.10 — prevent global theme styles for <dd> from shifting mobile values.
   Scoped to the plugin's specification cards; desktop layout is unchanged. */
@media (max-width: 760px) {
  body .wcdp .wcdp-mobile-cards .wcdp-card .wcdp-spec-cell dd {
    padding-left: 0 !important;
    padding-inline-start: 0 !important;
    margin-left: 0 !important;
  }
}

/* 1.1.12 — mobile-only four-option sorting and collapsed filter panel.
   Desktop sorting, table headers and filter layout are unchanged. */
.wcdp .wcdp-sort-mobile,
.wcdp .wcdp-filter-toggle { display: none; }
@media (max-width: 760px) {
  .wcdp .wcdp-sort-desktop { display: none !important; }
  .wcdp .wcdp-sort-mobile {
    display: grid;
    gap: 5px;
    flex: 1 1 160px;
    min-width: 0;
  }
  .wcdp .wcdp-sort-mobile select { width: 100%; max-width: none; }
  .wcdp .wcdp-filter-panel .wcdp-panel-head { margin-bottom: 0; }
  .wcdp .wcdp-filter-panel .wcdp-panel-head > h3,
  .wcdp .wcdp-filter-panel .wcdp-panel-head > .wcdp-panel-hint { display: none; }
  .wcdp .wcdp-filter-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    gap: 8px;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--wcdp-text);
    text-align: left;
    cursor: pointer;
  }
  .wcdp .wcdp-filter-toggle-title { font-size: 17px; font-weight: 650; }
  .wcdp .wcdp-filter-toggle-hint { margin-left: auto; font-size: 12px; color: var(--wcdp-muted); }
  .wcdp .wcdp-filter-chevron { font-size: 20px; line-height: 1; transition: transform .2s ease; }
  .wcdp .wcdp-filter-expanded .wcdp-filter-chevron { transform: rotate(180deg); }
  .wcdp .wcdp-filter-panel:not(.wcdp-filter-expanded) .wcdp-filter-content { display: none; }
  .wcdp .wcdp-filter-expanded .wcdp-panel-head { margin-bottom: 20px; }
  .wcdp .wcdp-filter-toggle:focus-visible { outline: 3px solid #dba3b5; outline-offset: 3px; }
}


/* 1.1.13 — align "排序方式" / "每頁顯示" as two equal-height control groups.
   Stacking labels above fields prevents the theme's form styles from pulling
   labels into different baselines; desktop controls remain compact and right-aligned. */
.wcdp .wcdp-results-controls {
  display: grid;
  grid-template-columns: minmax(0, 184px) minmax(0, 116px);
  align-items: end;
  justify-content: end;
  gap: 14px;
  width: auto;
}
.wcdp .wcdp-results-controls .wcdp-sort,
.wcdp .wcdp-results-controls .wcdp-page-size-control {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  min-width: 0;
  width: 100%;
  margin: 0;
  gap: 7px;
  font-size: 12px;
  line-height: 1.4;
}
/* Some WordPress themes apply display/centering to every label globally. */
body .wcdp .wcdp-results-controls label.wcdp-sort {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-end !important;
  margin: 0 !important;
}
body .wcdp .wcdp-results-controls label.wcdp-sort-mobile {
  display: none !important;
}
.wcdp .wcdp-results-controls .wcdp-control-label,
.wcdp .wcdp-results-controls .wcdp-sort > span:first-child,
.wcdp .wcdp-results-controls .wcdp-page-size-control > span:first-child {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: var(--wcdp-muted);
  white-space: nowrap;
  text-align: left;
  margin: 0;
  padding: 0;
}
.wcdp .wcdp-results-controls .wcdp-sort select,
body .wcdp .wcdp-results-controls button.wcdp-page-size-trigger {
  display: flex;
  align-items: center;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid #dad2d6;
  border-radius: var(--wcdp-control-radius, 4px) !important;
  background-color: #fff;
  color: var(--wcdp-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}
body .wcdp .wcdp-results-controls button.wcdp-page-size-trigger {
  justify-content: space-between;
}
.wcdp .wcdp-results-controls .wcdp-page-size-menu {
  top: calc(100% + 5px);
  right: 0;
  min-width: 100%;
}
@media (max-width: 760px) {
  .wcdp .wcdp-results-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    gap: 12px;
    justify-content: stretch;
  }
  body .wcdp .wcdp-results-controls label.wcdp-sort-desktop {
    display: none !important;
  }
  body .wcdp .wcdp-results-controls label.wcdp-sort-mobile {
    display: flex !important;
  }
}

/* 1.1.14 — one shared table on desktop and mobile. Retire the count and
   dropdown toolbars, even if older shortcode HTML remains in page cache. */
body .wcdp .wcdp-results-head,
body .wcdp .wcdp-results-controls,
body .wcdp .wcdp-mobile-cards {
  display: none !important;
}
.wcdp .wcdp-load-error {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #edc1c6;
  border-radius: 4px;
  color: #9b3044;
  background: #fff0f0;
}
.wcdp .wcdp-load-error[hidden] { display: none !important; }
@media (max-width: 760px) {
  /* Keep horizontal scrolling inside the table, not on the whole page. */
  body .wcdp .wcdp-desktop-table {
    display: block !important;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    border-radius: 7px;
  }
  body .wcdp .wcdp-desktop-table table {
    width: max-content;
    min-width: 1080px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
  }
  body .wcdp .wcdp-desktop-table th,
  body .wcdp .wcdp-desktop-table td {
    white-space: nowrap;
  }
  /* Shape column stays visible as the user swipes through the other specs. */
  body .wcdp .wcdp-desktop-table th:first-child,
  body .wcdp .wcdp-desktop-table td:first-child:not([colspan]) {
    position: sticky;
    left: 0;
    min-width: 126px;
    z-index: 2;
    background: #fff;
    border-right: 1px solid var(--wcdp-line);
    box-shadow: 2px 0 4px rgba(57, 50, 54, .045);
  }
  body .wcdp .wcdp-desktop-table th:first-child {
    z-index: 3;
    background: #faf8f9;
  }
  body .wcdp .wcdp-desktop-table tbody tr:hover > td:first-child:not([colspan]) {
    background: #fffafd;
  }
  /* Shape label and icon remain horizontally aligned in the frozen column. */
  body .wcdp .wcdp-desktop-table td:first-child .wcdp-table-shape {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
  }
}
