.ccc-bundle-form { display: block; margin: 1em 0; }
.ccc-bundle-rule { font-weight: 600; margin: 0 0 .75em; }
.ccc-notice { padding: .75em 1em; border-radius: 6px; margin: 0 0 .75em; font-size: .92em; line-height: 1.45; }
.ccc-notice-info { background: #eef5ff; border: 1px solid #b8d4f5; color: #1d3b5c; }
.ccc-notice-quality { background: #eaf4fb; border: 1px solid #a9cde6; color: #163a52; }

.ccc-bundle-items { display: grid; gap: .75em; margin: 1em 0; }
.ccc-comp { border: 1px solid rgba(0,0,0,.12); border-radius: 8px; padding: .75em; background: rgba(255,255,255,.92); color: #222; }
.ccc-comp.is-sold-out { opacity: .55; }
.ccc-comp-main { display: flex; align-items: center; gap: .75em; }
.ccc-comp-img { width: 64px !important; height: 64px !important; max-width: none; object-fit: cover; border-radius: 6px; flex: 0 0 64px; }
.ccc-comp-info { flex: 1 1 auto; min-width: 0; }
.ccc-comp-name { font-weight: 600; }
.ccc-comp-meta { font-size: .9em; color: #555; display: flex; gap: .75em; flex-wrap: wrap; }
.ccc-comp-stock { color: #a33; }
.ccc-badge { display: inline-block; font-size: .72em; font-weight: 600; padding: .1em .5em; margin-left: .35em; border-radius: 99px; background: #e9e1ff; color: #4a2a9a; vertical-align: middle; }
.ccc-badge-req { background: #fff1d6; color: #7a4b00; }

.ccc-qty { display: flex; align-items: center; flex: 0 0 auto; }
.ccc-qty-btn { width: 34px; height: 36px; border: 1px solid rgba(0,0,0,.2); background: #f6f6f6; color: #222; cursor: pointer; font-size: 1.1em; line-height: 1; padding: 0; }
.ccc-qty-btn:first-child { border-radius: 6px 0 0 6px; }
.ccc-qty-btn:last-child { border-radius: 0 6px 6px 0; }
.ccc-qty-input { width: 54px; height: 36px; text-align: center; border: 1px solid rgba(0,0,0,.2); border-left: 0; border-right: 0; -moz-appearance: textfield; padding: 0; }
.ccc-qty-input::-webkit-outer-spin-button, .ccc-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.ccc-designs { margin-top: .75em; padding-top: .75em; border-top: 1px dashed rgba(0,0,0,.15); }
.ccc-designs-help { font-size: .9em; margin: 0 0 .5em; }
.ccc-design { background: #fafafa; border: 1px solid rgba(0,0,0,.1); border-radius: 6px; padding: .6em .75em; margin-bottom: .6em; }
.ccc-design-head { font-weight: 600; font-size: .9em; margin-bottom: .4em; }
.ccc-design-row { display: flex; gap: .75em; align-items: flex-start; }
.ccc-thumb { width: 72px !important; height: 72px !important; max-width: none; object-fit: cover; border-radius: 4px; border: 1px solid rgba(0,0,0,.15); cursor: zoom-in; flex: 0 0 72px; }
.ccc-design-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .35em; }
.ccc-design-body > * { margin: 0 !important; }
.ccc-pick { position: relative; overflow: hidden; display: inline-block; cursor: pointer; }
.ccc-pick input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ccc-status { font-size: .85em; word-break: break-all; }
.ccc-status:empty { display: none; }
.ccc-status.is-ok { color: #1a6b2e; }
.ccc-status.is-error { color: #b32020; font-weight: 600; }
.ccc-quality { font-size: .85em; padding: .3em .5em; border-radius: 4px; text-align: left; align-self: stretch; }
.ccc-quality:empty { display: none; }
.ccc-q-great { background: #e2f5e7; color: #14532d; }
.ccc-q-ok { background: #fff6d6; color: #6b4e00; }
.ccc-q-low { background: #fde2e2; color: #8a1c1c; font-weight: 600; }
.ccc-q-unknown { background: #eee; color: #444; }
.ccc-design-qty-label { display: block; font-size: .9em; margin-top: .4em; }
.ccc-design-qty { width: 64px; margin-left: .35em; }
.ccc-notes-label { display: block; font-weight: 600; font-size: .9em; margin-top: .6em; }
.ccc-notes-help, .ccc-notes-disc { font-size: .8em; color: #555; margin: .2em 0; }
.ccc-notes-input { width: 100%; box-sizing: border-box; }
.ccc-remove-design { background: none; border: 0; color: #b32020; text-decoration: underline; cursor: pointer; padding: 0; font-size: .85em; margin-top: .3em; }
.ccc-designs-foot { display: flex; align-items: center; gap: .75em; flex-wrap: wrap; }
.ccc-tally { font-size: .85em; color: #1a6b2e; }
.ccc-add-design[disabled] { opacity: .5; cursor: not-allowed; }
.ccc-designs-foot .ccc-add-design { font-size: .9em; }
.ccc-tally.is-off { color: #b32020; font-weight: 600; }

.ccc-bundle-summary { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5em; padding: .75em 1em; border-radius: 8px; background: rgba(0,0,0,.06); margin-bottom: 1em; }
.ccc-summary-price { font-size: 1.3em; font-weight: 700; }
.ccc-summary-errors { flex-basis: 100%; color: #b32020; font-weight: 600; }
.ccc-summary-errors p { margin: .2em 0; }
.ccc-bundle-actions { display: flex; gap: .75em; align-items: center; }

/* Cart / order display */
.ccc-cart-designs { margin: .25em 0 0; padding: 0; list-style: none; }
.ccc-cart-designs li { display: flex; gap: .5em; align-items: center; margin: .25em 0; }
.ccc-cart-designs img { width: 40px !important; height: 40px !important; max-width: none; object-fit: cover; border-radius: 3px; cursor: zoom-in; }
.ccc-cart-note { font-size: .85em; color: #555; white-space: pre-wrap; }
.ccc-order-bundle { margin-top: .5em; font-size: .92em; }
.ccc-order-bundle ul { margin: .25em 0 .25em 1.2em; }

.ccc-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; flex-direction: column; z-index: 999999; padding: 2em; cursor: zoom-out; }
.ccc-lightbox.is-open { display: flex; }
.ccc-lightbox img { max-width: 92vw; max-height: 80vh; box-shadow: 0 6px 30px rgba(0,0,0,.5); background: #fff; }
.ccc-lightbox-cap { color: #eee; font-size: .9em; margin-top: .75em; text-align: center; }
.ccc-lightbox-close { position: absolute; top: .5em; right: .75em; font-size: 2.2em; background: none; border: 0; color: #fff; cursor: pointer; }

@media (max-width: 520px) {
	.ccc-comp-main { flex-wrap: wrap; }
	.ccc-qty { margin-left: auto; }
}

/* Designer items */
.ccc-proof-thumb { object-fit: contain !important; background: #fff; }
.ccc-customize { margin: 0; }
.ccc-design-designer .ccc-status:not(:empty) { display: block; }
html.ccc-modal-open, html.ccc-modal-open body { overflow: hidden; }
.ccc-designer-modal { position: fixed; inset: 0; z-index: 999998; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; padding: 2vh 2vw; }
.ccc-designer-modal.is-open { display: flex; }
.ccc-designer-box { background: #fff; color: #222; width: min(1200px, 96vw); height: 96vh; border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.ccc-designer-bar { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .6em 1em; border-bottom: 1px solid #e5e5e5; }
.ccc-designer-title { font-weight: 700; }
.ccc-designer-close { background: none; border: 0; font-size: 1.9em; line-height: 1; cursor: pointer; color: #333; padding: 0 .2em; }
.ccc-designer-body { position: relative; flex: 1 1 auto; }
.ccc-designer-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ccc-designer-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #555; }
.ccc-designer-loading[hidden] { display: none; }
@media (max-width: 600px) { .ccc-designer-modal { padding: 0; } .ccc-designer-box { width: 100vw; height: 100vh; border-radius: 0; } }

/* Cart rows for designed bundle items */
tr.cccb-child td.product-name { padding-left: 2em; }
tr.cccb-child td.product-name::before { content: "\21b3"; margin-right: .4em; color: #888; }
.cccb-included { font-size: .9em; color: #555; }
.ccc-comp .ccc-customize { background: #222; color: #fff; border: 0; border-radius: 4px; padding: .55em 1.2em; font-size: .95em; font-weight: 600; cursor: pointer; line-height: 1.3; }
.ccc-comp .ccc-customize:hover { background: #000; }
.ccc-comp .ccc-customize:not(.alt) { background: #fff; color: #222; border: 1px solid #222; }
.ccc-design-qty-label[hidden], .ccc-remove-design[hidden] { display: none !important; }
