/**
 * Cake Print Constructor — plugin-only additions.
 * Only styles NOT covered by the theme's style.min.css.
 *
 * Do NOT add styles for elements already styled by the theme.
 */

/* Loading state for gallery while AJAX is in progress */
#cpc-gallery-items.is-loading {
    opacity: 0.4;
    pointer-events: none;
}

/* Pagination */
.cpc-pagination {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cpc-pagination__btn {
    padding: 6px 12px;
    border: 1px solid currentColor;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.875rem;
    line-height: 1;
    opacity: 0.6;
}

.cpc-pagination__btn.is-active {
    opacity: 1;
    font-weight: 700;
}

/* Level-2 category row */
#cpc-cat-level2 {
    margin-top: 8px;
}

/* Thank-you block — placeholder until Step 8 */
.cpc-thankyou-block {
    margin: 2rem 0;
}

/* Compact CPC item meta in cart & checkout.
   WC renders item_data as <dl class="variation"> with dt + dd[class] pairs.
   dd contains a <p> tag — override everything to inline. */
dl.variation {
    font-size: 0.82em;
    line-height: 1.5;
    margin: 4px 0 0;
}

dl.variation dt,
dl.variation dd {
    display: inline;
    float: none;
    margin: 0;
    padding: 0;
    font-size: inherit;
}

dl.variation dt {
    font-weight: 600;
    color: #888;
}

dl.variation dt::after {
    content: ":\00a0";
    font-weight: normal;
}

/* <p> inside dd must also be inline */
dl.variation dd p {
    display: inline;
    margin: 0;
    padding: 0;
}

dl.variation dd::after {
    content: "\00a0\00b7\00a0";
    color: #bbb;
    font-weight: normal;
}

dl.variation dd:last-of-type::after {
    content: "";
}
