/* 8.6.6 — restrained course sheets; retain the 8.6.2 visual identity. */
body.scc-template-edition.single-product main { padding-block: clamp(1.2rem, 3vw, 2.6rem); }
body.scc-template-edition.single-product div.product:not(li) { min-width: 0; }
body.scc-template-edition.single-product div.product > .product-entry-wrapper,
body.scc-template-edition.single-product div.product > .ct-product-view { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: start; gap: clamp(1.2rem, 3vw, 2.5rem); }
body.scc-template-edition.single-product div.product .product-entry-wrapper > div.images,
body.scc-template-edition.single-product div.product .product-entry-wrapper > div.summary { width: 100%; max-width: none; float: none; margin: 0; }
body.scc-template-edition.single-product div.product .product-entry-wrapper > div.summary { padding: clamp(1.1rem, 2vw, 1.75rem); border: 1px solid #d9e6eb; border-radius: 1rem; background: #fff; }
body.scc-template-edition.single-product .woocommerce-product-gallery__image img { max-height: 460px; object-fit: contain; border-radius: .9rem; background: #f3f8f9; }
body.scc-template-edition.single-product div.product .product_title.entry-title {
  max-width: none; margin: 0 0 1rem; font-size: clamp(1.65rem, 2.7vw, 2.3rem);
  line-height: 1.18; letter-spacing: -.015em; text-wrap: pretty; overflow-wrap: anywhere;
}
body.scc-template-edition.single-product div.product .summary { min-width: 0; }
body.scc-template-edition.single-product div.product .summary > .price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem;
  margin: .65rem 0 .35rem; color: #28536c; font-size: 1.85rem; font-weight: 800; line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
body.scc-template-edition.single-product div.product .summary > .price del { font-size: 1rem; color: #617680; opacity: 1; font-weight: 400; }
body.scc-template-edition.single-product div.product .summary > .price ins { background: transparent; text-decoration: none; }
.scc-course-offer { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; margin: 0 0 1rem; }
.scc-course-offer > span { padding: .3rem .6rem; border-radius: .4rem; background: #f6e7ed; color: #7e3f57; font-size: .8rem; font-weight: 700; }
.scc-course-offer > small { font-size: .75rem; color: #586d76; }
body.scc-template-edition.single-product .woocommerce-product-details__short-description { font-size: .94rem; line-height: 1.65; }
.scc-course-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; margin: 1.1rem 0; }
.scc-course-facts > div { padding: .7rem; background: #f2f8f9; border: 1px solid #d9e6eb; border-radius: .65rem; }
.scc-course-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.scc-course-facts .scc-icon { flex: 0 0 1.1rem; margin-top: .15rem; }
.scc-course-facts dt { display: flex; align-items: center; gap: .45rem; font-size: .73rem; color: #506871; font-weight: 400; }
.scc-course-facts dd { margin: .15rem 0 0; font-size: .86rem; font-weight: 650; line-height: 1.45; }
.scc-course-region { display: flex; align-items: flex-start; gap: .55rem; margin: .8rem 0; font-size: .84rem; line-height: 1.5; }
.scc-course-region .scc-icon { flex-shrink: 0; margin-top: .15rem; }
body.scc-template-edition.single-product div.product form.cart { margin: 1rem 0; padding-block: 1rem; }
body.scc-template-edition.single-product .single_add_to_cart_button { min-height: 48px; padding: .85rem 1.5rem; border: 0; border-radius: .7rem; font-size: .95rem; background: #315f78; color: #fff; }
body.scc-template-edition.single-product .product_meta { font-size: .78rem; line-height: 1.6; margin-top: .8rem; }
body.scc-template-edition.single-product :where(.woocommerce-tabs, .scc-course-details, .related.products) { grid-column: 1 / -1; min-width: 0; width: 100%; }
body.scc-template-edition.single-product .woocommerce-tabs .panel { max-width: none; width: 100%; overflow-x: auto; font-size: .96rem; line-height: 1.7; }
body.scc-template-edition.single-product :where(.woocommerce-tabs, .scc-course-details) h2 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.25; margin: 0 0 1rem; }
body.scc-template-edition.single-product :where(.woocommerce-tabs, .scc-course-details) h3 { font-size: 1.15rem; line-height: 1.35; }
body.scc-template-edition.single-product :where(.woocommerce-tabs, .scc-course-details) :where(p, li) { text-align: start; text-wrap: pretty; }
body.scc-template-edition.single-product :where(.woocommerce-tabs, .scc-course-details) :where(table, .wp-block-table) { width: 100%; max-width: 100%; margin-block: 1rem; }
body.scc-template-edition.single-product :where(.woocommerce-tabs, .scc-course-details) table { width: 100% !important; table-layout: auto; }
body.scc-template-edition.single-product :where(.woocommerce-tabs, .scc-course-details) :where(td, th) { padding: .85rem 1rem; border: 1px solid #dce7eb; text-align: start; vertical-align: top; line-height: 1.55; }
body.scc-template-edition.single-product :where(.woocommerce-tabs, .scc-course-details) th { background: #eef6f7; }
.scc-course-details { margin: 1.5rem 0 2rem; }
.scc-course-details__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; align-items: start; }
.scc-course-detail { min-width: 0; padding: 1.1rem 1.25rem; border: 1px solid #d9e6eb; border-radius: .85rem; background: #fff; }
.scc-course-detail:only-child, .scc-course-detail:last-child:nth-child(odd) { grid-column: 1 / -1; }
.scc-course-detail > h3 { display: flex; align-items: flex-start; gap: .65rem; margin: 0 0 .8rem; }
.scc-course-detail > h3 .scc-icon { flex-shrink: 0; margin-top: .2rem; }
.scc-course-detail__body { font-size: .92rem; line-height: 1.7; overflow-x: auto; }
.scc-course-detail__body > :last-child { margin-bottom: 0; }
/* Do not let generic search link resets remove button padding. */
.scc-v8-compact .scc-live-search__results .scc-live-search-card .scc-live-search-card__button {
  width: auto; min-width: 0; min-height: 40px; padding: .6rem .85rem; gap: .4rem; font-size: .73rem; line-height: 1.2; white-space: nowrap; grid-column: auto;
}
.scc-v8-compact .scc-live-search-card__price strong { font-size: .9rem; }
.scc-v8-compact .scc-live-search-card__price del { font-size: .73rem; }
.scc-v8-compact .scc-live-search-card__button.is-added { cursor: pointer; }
.scc-cart-feedback { grid-column: 1 / -1; font-size: .8rem; line-height: 1.5; margin: 0; color: #8c3045; }
.scc-cart-feedback:empty { display: none; }
.scc-v8-compact .scc7-catalog-filter__search { position: relative; display: flex; align-items: center; }
.scc-v8-compact .scc7-catalog-filter__search > .scc-icon { position: absolute; top: 50%; left: 1rem; transform: translateY(-50%); pointer-events: none; }
.scc-v8-compact .scc7-catalog-filter__search input[type="search"] { padding: .85rem 1rem .85rem 2.9rem; line-height: 1.3; min-height: 50px; }
.scc-v8-compact .scc7-global-search > div:not(.scc-live-search__results) { display: flex; align-items: center; gap: .65rem; }
.scc-v8-compact .scc7-global-search > div > .scc-icon { position: static; transform: none; flex: 0 0 1.15rem; }
.scc-v8-compact .scc7-global-search input[type="search"] { min-width: 0; flex: 1; padding: .8rem 1rem; line-height: 1.3; }
/* :is retains notice specificity; :where allowed the earlier card padding to win. */
body.scc-template-edition :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) { position: relative; display: block; box-sizing: border-box; padding: 1rem 1.2rem 1rem 3.5rem; line-height: 1.6; text-align: left; overflow-wrap: anywhere; }
body.scc-template-edition :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { content: ''; position: absolute; top: 1.15rem; left: 1.2rem; width: 1.25rem; height: 1.25rem; margin: 0; line-height: 1.25rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330667c' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7v.1'/%3E%3C/svg%3E") center/contain no-repeat; }
body.scc-template-edition .woocommerce-message::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23277965' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m7 12 3 3 7-7'/%3E%3C/svg%3E"); }
body.scc-template-edition .woocommerce-error::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a94c62' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 17v.1'/%3E%3C/svg%3E"); }
body.scc-template-edition :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button { float: right; max-width: 100%; margin: 0 0 .25rem 1rem; margin-inline-start: 1rem !important; padding-inline: 1.1rem; }
.scc-v8-compact .scc-notice { display: flex; align-items: flex-start; gap: .7rem; padding: 1rem 1.15rem; }
.scc-v8-compact .scc-notice > .scc-icon { flex: 0 0 1.15rem; margin-top: .2rem; }
.scc-v8-compact .scc-notice p { margin: .3rem 0 0; font-size: .9rem; line-height: 1.6; }
.scc-v8-compact .scc-institution-story__grid { align-items: start; gap: 2rem; }
.scc-v8-compact .scc-pillar-card { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 1rem; padding: 1.25rem; }
.scc-v8-compact .scc-pillar-card > img { width: 80px; height: auto; margin: 0; }
.scc-v8-compact .scc-pillar-card dl { display: grid; gap: .85rem; margin: 0; }
.scc-v8-compact .scc-pillar-card dd { margin: .2rem 0 0; font-size: .88rem; line-height: 1.55; }
.scc-v8-compact .scc7-footer__brand > p { font-size: .84rem; line-height: 1.65; max-width: 38ch; }
.scc-v8-compact .scc7-footer__column { font-size: .85rem; }
.scc-v8-compact .scc7-footer__bottom p { font-size: .74rem; line-height: 1.7; }
@media (max-width: 767px) {
  body.scc-template-edition.single-product div.product > .product-entry-wrapper { grid-template-columns: 1fr; }
  body.scc-template-edition.single-product .woocommerce-product-gallery__image img { max-height: 290px; }
  body.scc-template-edition.single-product div.product .product_title.entry-title { font-size: 1.7rem; }
  .scc-course-details__grid { grid-template-columns: 1fr; }
  .scc-v8-compact .scc-live-search__results .scc-live-search-card { grid-template-columns: 3.8rem minmax(0,1fr); }
  .scc-v8-compact .scc-live-search-card__action { grid-column: 1 / -1; width: 100%; min-width: 0; display: grid; justify-items: start; gap: .65rem; }
  .scc-v8-compact .scc-live-search-card__buttons { display: flex; width: 100%; flex-wrap: wrap; justify-content: start; }
  .scc-v8-compact .scc-live-search__results .scc-live-search-card .scc-live-search-card__button { flex: 1 1 auto; min-height: 44px; padding-inline: .65rem; }
  .scc-v8-compact .scc-live-search__results .scc-live-search-card__image { width: 3.8rem; height: 3.8rem; }
  body.scc-template-edition :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button { float: none; display: table; margin: 0 0 .7rem; margin-inline-start: 0 !important; }
  .scc-v8-compact .scc-pillar-card { grid-template-columns: 56px minmax(0,1fr); }
  .scc-v8-compact .scc-pillar-card > img { width: 56px; }
}
@media (max-width: 420px) {
  .scc-course-facts { grid-template-columns: 1fr; }
  .scc-v8-compact .scc7-global-search > div:not(.scc-live-search__results) { flex-wrap: wrap; }
  .scc-v8-compact .scc7-global-search > div > button { width: 100%; }
}
