/* Pack contents. Compact price styles are delivered separately in the page head. */
.kpack-contents,
.kpack-description {
    --kpack-accent: var(--cc-primary, #e52629);
    --kpack-text: var(--cc-text, #20242c);
    --kpack-muted: var(--cc-muted, #59616f);
    --kpack-line: var(--cc-line, #e6e8ed);
    --kpack-surface: var(--cc-surface, #f7f8fa);
    color: var(--kpack-text);
    min-width: 0;
    max-width: 100%;
}
.kpack-contents,
.kpack-contents *,
.kpack-description,
.kpack-description * { box-sizing: border-box; }
.kpack-contents {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid var(--kpack-line);
    border-radius: 14px;
    background: var(--kpack-surface);
}
.kpack-contents .kpack-contents-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 12px;
    margin-bottom: 12px;
}
.kpack-contents .kpack-contents-heading h2 {
    font-size: 17px;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -.01em;
    color: inherit;
}
.kpack-contents-count { font-size: 12px; color: var(--kpack-muted); line-height: 1.4; }
.kpack-contents .kpack-contents-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kpack-contents .kpack-contents-item { list-style: none; margin: 0; padding: 0; min-width: 0; }
.kpack-contents .kpack-content-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--kpack-line);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    box-shadow: none;
    transition: border-color .15s ease;
}
.kpack-contents .kpack-content-link:hover { border-color: var(--kpack-accent); color: inherit; }
.kpack-component-thumb {
    display: block;
    position: relative;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    background: #fff;
    border-radius: 7px;
}
.kpack-contents .kpack-component-thumb img,
.kpack-description .kpack-component-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    object-fit: contain;
    border-radius: inherit;
}
.kpack-quantity {
    position: absolute;
    inset-block-end: -3px;
    inset-inline-end: -3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 22px;
    padding: 1px 5px;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 750;
    color: var(--kpack-accent);
    background: #fff;
    border: 1px solid var(--kpack-line);
    border-radius: 5px;
}
.kpack-component-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 0%; overflow-wrap: anywhere; }
.kpack-component-copy > strong { display: block; font-size: 14px; font-weight: 650; line-height: 1.4; color: inherit; }
.kpack-component-variation { display: block; font-size: 12px; line-height: 1.5; color: var(--kpack-muted); }
.kpack-content-detail-label { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--kpack-accent); }
.kpack-contents .kpack-contents-note { font-size: 12px; color: var(--kpack-muted); line-height: 1.5; margin: 12px 0 0; }
.kpack-contents .kpack-contents-note > span { display: block; margin-top: 4px; }
/* Scope to the pack's own price/media areas, leaving related items untouched. */
.kpack-product > .cc-product-top > .summary .klack-app-price-badge,
.kpack-product > .summary .klack-app-price-badge,
.kpack-product > a .klack-app-price-badge,
.kpack-product > .cc-compact-purchase .klack-app-price-badge,
.kpack-product > .cc-compact-media > .cc-compact-discount[data-klack-app-discount="1"],
.kpack-product > .onsale[data-klack-app-discount="1"],
.kpack-product > .cc-product-top > .onsale[data-klack-app-discount="1"],
.kpack-product > .cc-product-top > .summary .cc-sale-percent-badge[data-klack-app-discount="1"],
.kpack-product > .summary .cc-sale-percent-badge[data-klack-app-discount="1"] { display: none !important; }
.kpack-more { margin-top: 9px; }
.kpack-more > summary,
.kpack-component-detail > summary { list-style: none; cursor: pointer; }
.kpack-more > summary::-webkit-details-marker,
.kpack-component-detail > summary::-webkit-details-marker { display: none; }
.kpack-more > summary::marker,
.kpack-component-detail > summary::marker { content: ""; }
.kpack-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 2px; font-size: 13px; font-weight: 600; }
.kpack-more > summary::after,
.kpack-component-detail > summary::after { content: ""; display: block; width: 8px; height: 8px; flex: 0 0 8px; margin-inline-end: 3px; border-inline-end: 1.7px solid currentColor; border-block-end: 1.7px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
.kpack-more[open] > summary::after,
.kpack-component-detail[open] > summary::after { transform: rotate(225deg); }
.kpack-contents a:focus-visible,
.kpack-contents summary:focus-visible,
.kpack-description a:focus-visible,
.kpack-description summary:focus-visible { outline: 2px solid var(--kpack-accent); outline-offset: 3px; border-radius: 8px; }
.kpack-description { margin: 0; }
.kpack-description > h2 { margin: 0 0 8px; font-size: clamp(21px, 2.2vw, 27px); line-height: 1.25; letter-spacing: -.02em; color: inherit; }
.kpack-description .kpack-description-intro { margin: 0 0 20px; color: var(--kpack-muted); font-size: 14px; line-height: 1.6; }
.kpack-component-detail { margin: 0 0 12px; border: 1px solid var(--kpack-line); border-radius: 12px; background: #fff; scroll-margin-top: calc(var(--cc-site-header-height, 80px) + var(--cc-product-tabs-height, 48px) + 18px); }
.kpack-component-detail > summary { display: flex; align-items: center; gap: 16px; padding: 16px; color: inherit; border-radius: 12px; }
.kpack-component-detail > summary:hover { background: var(--kpack-surface); }
.kpack-component-detail > summary .kpack-component-thumb { width: 78px; height: 78px; flex-basis: 78px; }
.kpack-component-detail > summary .kpack-component-copy > strong { font-size: 17px; line-height: 1.35; }
.kpack-component-units { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--kpack-accent); }
.kpack-component-body { padding: 0 20px 20px; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.kpack-component-body::before { content: ""; display: block; height: 1px; background: var(--kpack-line); margin: 0 0 20px; }
.kpack-component-body p { margin-top: 0; }
.kpack-component-body img { max-width: 100%; height: auto; }
.kpack-component-body pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
.kpack-component-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.kpack-component-body h1,
.kpack-component-body h2,
.kpack-component-body h3,
.kpack-component-body h4 { color: inherit; font-size: 19px; line-height: 1.35; margin: 20px 0 12px; }
.kpack-component-body .kpack-attributes-heading { margin-top: 24px; font-size: 16px; }
.kpack-variation-description { padding: 12px 14px; margin-bottom: 18px; border-radius: 8px; background: var(--kpack-surface); }
.kpack-variation-description > :last-child,
.kpack-component-description > :last-child { margin-bottom: 0; }
.kpack-description .kpack-attributes { margin: 0 0 20px; padding: 0; font-size: 13px; }
.kpack-attributes > div { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--kpack-line); }
.kpack-attributes dt { font-weight: 600; margin: 0; }
.kpack-attributes dd { margin: 0; color: var(--kpack-muted); }
.kpack-component-body .kpack-individual-link { margin: 20px 0 0; font-size: 13px; }
.kpack-individual-link a { color: var(--kpack-accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) {
    .kpack-contents { padding: 12px; margin-block: 16px; }
    .kpack-contents .kpack-content-link { padding: 8px; gap: 10px; }
    .kpack-component-thumb { width: 56px; height: 56px; flex-basis: 56px; }
    .kpack-component-copy > strong { font-size: 13px; }
    .kpack-component-detail > summary { gap: 10px; padding: 12px; }
    .kpack-component-detail > summary .kpack-component-thumb { width: 56px; height: 56px; flex-basis: 56px; }
    .kpack-component-detail > summary .kpack-component-copy > strong { font-size: 15px; }
    .kpack-component-body { padding: 0 14px 16px; font-size: 14px; }
    .kpack-attributes > div { grid-template-columns: minmax(80px, 1fr) minmax(0, 1.6fr); gap: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .kpack-content-link,
    .kpack-more > summary::after,
    .kpack-component-detail > summary::after { transition: none; }
}
