/* ============================================================
   ULTRA-PREMIUM SINGLE PRODUCT LAYOUTS
   Scoped to .ccp-single-product so the theme can't wreck it
   Presets: luxe, retail, modern, flat
   ============================================================ */

/* Hide Astra "Free Shipping" microcopy inside our custom layout */
.ccp-single-product .ast-shipping-text {
    display: none !important;
}

/* Neutralise hover/active backgrounds on headers + popup links */
.ccp-sp-accordion__header,
.ccp-sp-links__btn {
    background: transparent !important;
}

/* Hover */
.ccp-sp-accordion__header:hover,
.ccp-sp-links__btn:hover {
    background: transparent !important;
    color: rgba(0, 0, 0, 0.7) !important;
}

/* Active (mouse down) */
.ccp-sp-accordion__header:active,
.ccp-sp-links__btn:active {
    background: transparent !important;
    color: #000 !important;
}

/* Focus (remove theme focus blocks) */
.ccp-sp-accordion__header:focus,
.ccp-sp-links__btn:focus {
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    color: #000 !important;
}

/* Visited links */
.ccp-sp-links__btn:visited {
    background: transparent !important;
}

/* ============================================================
   ROOT LAYOUT VARS
   ============================================================ */

.ccp-single-product {
    --ccp-font-body: var(--ccp-sp-body-font, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif);
    --ccp-font-heading: var(--ccp-sp-heading-font, var(--ccp-font-body));
    --ccp-page-bg: var(--ccp-sp-page-bg, #f5f5f5);
    --ccp-card-bg: var(--ccp-sp-card-bg, #ffffff);
    --ccp-heading-color: var(--ccp-sp-heading-color, #111111);
    --ccp-text-color: var(--ccp-sp-text-color, #333333);
    --ccp-accent: var(--ccp-sp-accent, #c19a6b);
    --ccp-link-color: var(--ccp-sp-link-color, #222222);
    --ccp-link-hover: var(--ccp-sp-link-hover, #000000);
    --ccp-radius: var(--ccp-sp-radius, 18px);
    --ccp-btn-radius: var(--ccp-sp-btn-radius, 999px);
    --ccp-btn-bg: var(--ccp-sp-btn-bg, #111111);
    --ccp-btn-color: var(--ccp-sp-btn-color, #ffffff);
    --ccp-btn-hover-bg: var(--ccp-sp-btn-hover-bg, #000000);
    --ccp-btn-hover-tx: var(--ccp-sp-btn-hover-tx, #ffffff);
    --ccp-btn-pad-v: var(--ccp-sp-btn-pad-v, 12px);
    --ccp-btn-pad-h: var(--ccp-sp-btn-pad-h, 34px);

    background: var(--ccp-page-bg);
    padding: 40px 16px;
    font-family: var(--ccp-font-body);
    color: var(--ccp-text-color);
}

.ccp-single-product *,
.ccp-single-product *::before,
.ccp-single-product *::after {
    box-sizing: border-box;
}

/* ============================================================
   WRAPPER & BREADCRUMBS
   ============================================================ */

.ccp-single-product-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px 60px;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.ccp-breadcrumbs {
    max-width: 1180px;
    margin: 0 auto 18px;
    font-size: 10px !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.45);
}

.ppcp-messages {
    display: none !important;
}

.ccp-breadcrumbs a {
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
}

.ccp-breadcrumbs a:hover {
    color: var(--ccp-link-hover);
}

.ccp-breadcrumb-delimiter {
    margin: 0 6px;
    display: inline-block;
}

/* ============================================================
   GRID: GALLERY + SUMMARY
   ============================================================ */

.ccp-sp-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 56%) minmax(0, 44%);
    gap: 36px;
    align-items: flex-start;
}

.ccp-sp-layout-image-right .ccp-sp-inner {
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
}

.ccp-sp-layout-image-right .ccp-sp-gallery {
    order: 2;
}

.ccp-sp-layout-image-right .ccp-sp-summary {
    order: 1;
}

/* Stacked layout (image above) */
.ccp-sp-layout-stacked .ccp-sp-inner {
    grid-template-columns: minmax(0, 1fr);
}

.ccp-sp-layout-stacked .ccp-sp-gallery {
    max-width: 780px;
    margin: 0 auto 28px;
}

/* ============================================================
   GALLERY: MAIN IMAGE + VERTICAL THUMBS
   ============================================================ */

.ccp-sp-gallery {
    position: relative;
}

/* Base Woo gallery container */
.ccp-sp-gallery .woocommerce-product-gallery {
    margin-bottom: 0;
}

/* Rounded corners on the whole sliding area */
.ccp-sp-gallery .woocommerce-product-gallery__wrapper {
    border-radius: calc(var(--ccp-radius) - 4px);
    overflow: hidden;
}

/* --- Desktop: vertical thumbs left, main image right --- */

@media (min-width: 768px) {

    /* Make Woo gallery a two-column flex layout */
    .ccp-sp-gallery .woocommerce-product-gallery {
        display: flex;
        align-items: flex-start;
        gap: 24px;
    }

    /* Main viewport on the right, fixed 500 x 300 */
    .ccp-single-product .ccp-sp-gallery .flex-viewport {
        order: 2;
        flex: 0 0 auto;
        width: 500px !important;
        max-width: 500px !important;
        height: 300px !important;
        max-height: 300px !important;
        overflow: hidden;
        position: relative;
    }

    /* Each slide inside the viewport */
    .ccp-single-product .ccp-sp-gallery .woocommerce-product-gallery__image {
        height: 300px !important;
        max-height: 300px !important;
        /* Let Flexslider handle width/float; we only control height */
        position: relative;
        overflow: hidden;
    }

    /* Main image fills 500 x 300 box and covers it */
    .ccp-single-product .ccp-sp-gallery .flex-viewport .woocommerce-product-gallery__image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: cover;
        display: block;
    }

    /* Thumbnails on the left, vertical stack */
    .ccp-sp-gallery .flex-control-thumbs {
        order: 1;
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        width: 80px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .ccp-sp-gallery .flex-control-thumbs li {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Square-ish thumbs, cropped nicely */
    .ccp-sp-gallery .flex-control-thumbs img {
        display: block;
        width: 100%;
        height: 80px;
        object-fit: cover;
        border-radius: 6px;
        border: 1px solid rgba(0, 0, 0, 0.06);
        cursor: pointer;
    }

    /* Active thumb highlight */
    .ccp-sp-gallery .flex-control-thumbs img.flex-active {
        border-color: var(--ccp-accent);
        box-shadow: 0 0 0 1px var(--ccp-accent);
    }

    /* Max 4 thumbs visible */
    .ccp-sp-gallery .flex-control-thumbs li:nth-child(n+5) {
        display: none !important;
    }
}

/* --- Mobile / tablet main image behaviour --- */

@media (max-width: 767.98px) {
    .ccp-sp-gallery .woocommerce-product-gallery {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }

    .ccp-sp-gallery .flex-viewport {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: hidden;
    }

    .ccp-sp-gallery .woocommerce-product-gallery__image {
        height: auto !important;
        max-height: none !important;
    }

    .ccp-sp-gallery .woocommerce-product-gallery__image img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }
}

/* Disable hover zoom but keep click-to-enlarge:
   - Only on main image inside flex-viewport
   - Thumbnails stay clickable normally
*/
.ccp-single-product .ccp-sp-gallery .flex-viewport .woocommerce-product-gallery__image img {
    pointer-events: none; /* hover zoom scripts on <img> won't fire; click passes to parent <a> */
}

/* ============================================================
   SUMMARY / BUY BOX
   ============================================================ */

.ccp-sp-summary {
    padding-top: 6px;
}

/* Title */
.ccp-sp-summary .product_title {
    font-family: var(--ccp-font-heading);
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ccp-heading-color);
    margin: 0 0 8px;
}

.ccp-sp-style-luxe .ccp-sp-summary .product_title {
    font-size: 28px;
    letter-spacing: 0.12em;
}

.ccp-sp-style-retail .ccp-sp-summary .product_title {
    font-size: 28px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Price */
.ccp-sp-summary .price {
    font-size: 20px;
    font-weight: 500;
    color: var(--ccp-heading-color);
    margin-bottom: 10px;
}

.ccp-sp-style-luxe .ccp-sp-summary .price {
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 14px;
}

/* Rating */
.ccp-sp-summary .woocommerce-product-rating {
    margin-bottom: 10px;
}

/* Short description */
.ccp-sp-summary .woocommerce-product-details__short-description {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
    color: rgba(0, 0, 0, 0.74);
}
/* ============================================================
   INLINE ATTRIBUTE LABEL + SWATCHES
   RESULT: SIZE  S  M  L  XL
   ============================================================ */

/* Make the row behave like a flex row */
.ccp-sp-summary .variations tr {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Attribute label cell */
.ccp-sp-summary .variations td.label {
    display: inline-flex !important;
    align-items: center;
    margin: 0;
    padding: 0;
    width: auto;
    border: 0;
}

/* The actual "Size" text */
.ccp-sp-summary .variations td.label label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
    margin: 0 8px 0 0;
    display: inline-block;
}

/* Value cell (buttons / swatches) */
.ccp-sp-summary .variations td.value {
    flex: 1 1 auto;
}


/* ============================================================
   QUANTITY + ADD TO CART (SportsDirect-style row)
   ============================================================ */

.ccp-sp-summary form.cart {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
    margin-bottom: 20px;
}

/* Quantity block */
.ccp-sp-summary .quantity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    min-width: 110px;
		width: 100%;
}

/* "Quantity" label */
.ccp-sp-summary .quantity::before {
    content: "Quantity";
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 6px;

}

/* Quantity input */
.ccp-sp-summary .qty {
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    padding: 9px 14px;
    width: 72px;
    font-size: 13px;
    text-align: center;
    background: #ffffff;
}

/* Let quantity radius use button radius if you want */
.ccp-sp-summary form.cart .qty {
    border-radius: var(--ccp-btn-radius) !important;
}
 div.ccp-sp-inner > div.ccp-sp-summary.summary.entry-summary > form > button{
    background: var(--ccp-btn-bg) !important;
    padding-top: calc(var(--ccp-sp-btn-pad-v, 12px)) !important;
	padding-bottom: calc(var(--ccp-sp-btn-pad-v, 12px)) !important;
	padding-left: calc(var(--ccp-sp-btn-pad-h, 34px)) !important;
	padding-right: calc(var(--ccp-sp-btn-pad-h, 34px)) !important;
}

.single_add_to_cart_button {
	background: var(--ccp-btn-bg) !important;
    padding-top: calc(var(--ccp-sp-btn-pad-v, 12px)) !important;
	padding-bottom: calc(var(--ccp-sp-btn-pad-v, 12px)) !important;
	padding-left: calc(var(--ccp-sp-btn-pad-h, 34px)) !important;
	padding-right: calc(var(--ccp-sp-btn-pad-h, 34px)) !important;
}

/* Add to cart button */
.ccp-single-product .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ccp-btn-radius);
    background: var(--ccp-btn-bg);
    color: var(--ccp-btn-color);
    padding: 14px 32px;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        background 180ms ease,
        color 180ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);

    flex: 1 1 auto;
    text-align: center;
    max-width: 340px;
}

/* Hover / active */
.ccp-single-product .single_add_to_cart_button:hover {
    background: var(--ccp-btn-hover-bg);
    color: var(--ccp-btn-hover-tx);
    transform: translateY(-1px);
}

.ccp-single-product .single_add_to_cart_button:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* Retail preset: slightly stronger */
.ccp-sp-style-retail .single_add_to_cart_button {
    font-weight: 600;
    letter-spacing: 0.18em;
}

/* Mobile: stack qty above button */
@media (max-width: 640px) {
    .ccp-sp-summary form.cart {
        flex-direction: column;
        align-items: stretch;
    }

    .ccp-sp-summary .quantity {
        width: 100%;
        max-width: 220px;
    }

    .ccp-single-product .single_add_to_cart_button {
        width: 100%;
        max-width: none;
    }
}

/* ============================================================
   META + LINKS
   ============================================================ */

.ccp-sp-summary .product_meta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(0, 0, 0, 0.45);
    margin-top: 14px;
}

.ccp-sp-summary .product_meta a {
    color: var(--ccp-link-color);
    text-decoration: none;
}

.ccp-sp-summary .product_meta a:hover {
    color: var(--ccp-link-hover);
}

/* "View full details / Shipping / Returns" links (modal mode) */

.ccp-sp-links {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ccp-sp-links__btn {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.ccp-sp-links__btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.ccp-sp-links__btn:hover {
    color: var(--ccp-link-hover);
}

.ccp-sp-links__btn:hover::after {
    transform: scaleX(1);
}

/* After-summary content (related, upsells) */
.ccp-sp-after-summary {
    margin-top: 30px;
}

/* ============================================================
   VERTICAL ACCORDIONS
   ============================================================ */

.ccp-sp-accordions {
    margin-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ccp-sp-accordion {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ccp-sp-accordion__header {
    width: 100%;
    padding: 12px 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.7);
}

.ccp-sp-accordion__header span:first-child {
    pointer-events: none;
}

.ccp-sp-accordion__icon {
    font-size: 14px;
    line-height: 1;
    margin-left: 10px;
    transition: transform 160ms ease, color 160ms ease;
}

.ccp-sp-accordion.is-open .ccp-sp-accordion__header {
    color: var(--ccp-link-hover);
}

.ccp-sp-accordion.is-open .ccp-sp-accordion__icon {
    transform: rotate(45deg);
}

/* Panel body */
.ccp-sp-accordion__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 220ms ease;
}

.ccp-sp-accordion__inner {
    padding: 0 0 14px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.8);
}

.ccp-sp-accordion__inner p {
    margin-bottom: 10px;
}

/* ============================================================
   MODALS (DETAILS / SHIPPING / RETURNS)
   ============================================================ */

.ccp-sp-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ccp-sp-modal.is-open {
    display: flex;
}

.ccp-sp-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.36);
    opacity: 0;
    transition: opacity 200ms ease;
}

.ccp-sp-modal.is-open .ccp-sp-modal__overlay {
    opacity: 1;
}

.ccp-sp-modal__dialog {
    position: relative;
    max-width: 620px;
    width: calc(100% - 40px);
    max-height: calc(100vh - 80px);
    background: #ffffff;
    border-radius: 22px;
    padding: 26px 26px 22px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition:
        opacity 200ms ease,
        transform 200ms ease;
    overflow-y: auto;
}

.ccp-sp-modal.is-open .ccp-sp-modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ccp-sp-modal__title {
    font-family: var(--ccp-font-heading);
    font-size: 18px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ccp-heading-color);
    margin: 0 0 12px;
}

.ccp-sp-modal__content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--ccp-text-color);
}

.ccp-sp-modal__content p {
    margin-bottom: 12px;
}

.ccp-sp-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.55);
    transition: color 160ms ease, transform 160ms ease;
}

.ccp-sp-modal__close:hover {
    color: var(--ccp-link-hover);
    transform: scale(1.05);
}

/* ============================================================
   PRESET-SPECIFIC MICRO STYLES
   ============================================================ */

.ccp-sp-style-modern .ccp-single-product-wrapper {
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
}

.ccp-sp-style-modern .ccp-sp-summary .product_title {
    text-transform: none;
    letter-spacing: 0.02em;
}

.ccp-sp-style-flat .ccp-single-product-wrapper {
    box-shadow: none;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.ccp-sp-style-retail .ccp-single-product-wrapper {
    padding: 28px 32px;
}

.ccp-sp-style-retail .ccp-sp-inner {
    gap: 28px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
    .ccp-single-product {
        padding: 24px 12px;
    }

    .ccp-single-product-wrapper {
        padding: 22px 18px 24px;
        border-radius: 16px;
    }

    .ccp-sp-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .ccp-sp-gallery {
        order: 1 !important;
    }

    .ccp-sp-summary {
        order: 2 !important;
    }
}

@media (max-width: 640px) {
    .ccp-single-product-wrapper {
        padding: 18px 14px 22px;
    }

    .ccp-sp-summary .product_title {
        font-size: 22px;
        letter-spacing: 0.08em;
    }

    .ccp-sp-links {
        flex-direction: column;
    }

    .ccp-sp-modal__dialog {
        width: calc(100% - 24px);
        padding: 22px 18px 18px;
    }
}


/* ============================================================
   Ensure gallery column + summary use full column width
   ============================================================ */

/* Let the gallery fill its grid column width (the 56% / 44%),
   but our 500px viewport inside handles the actual image size. */
.ccp-single-product .ccp-sp-gallery .woocommerce-product-gallery {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

/* Kill theme max-width / float on summary so it uses full column */
.ccp-single-product .entry-summary,
.ccp-single-product .ccp-sp-summary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* ============================================================
   SportsDirect-style: qty small, ADD TO CART full-width
   ============================================================ */

/* Make form.cart stack the button BELOW the qty on desktop */
.ccp-sp-summary form.cart {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

/* Quantity stays small */
.ccp-sp-summary .quantity {
    width: auto;
    min-width: 90px;
}

/* Make Add to Cart button full-width ALWAYS */
.ccp-single-product .single_add_to_cart_button {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    display: block;
}

/* Keep button styling */
.ccp-single-product .single_add_to_cart_button {
    border-radius: 6px;
    padding: 14px 0;
    text-align: center;
}

/* Mobile – unchanged (also full width) */
@media (max-width: 640px) {
    .ccp-sp-summary form.cart {
        width: 100%;
        align-items: stretch;
    }

    .ccp-single-product .single_add_to_cart_button {
        width: 100% !important;
    }
}

.woocommerce-js div.product .product_title{
	margin-bottom: 30px !important;
}


.woocommerce-js div.product .product_meta>span{
	font-size: 10px !important;
}


/* ============================================================
   DIAGONAL STRIKE THROUGH UNAVAILABLE VARIATION OPTIONS
   ============================================================ */

/* Base disabled styling */
.ccp-sp-summary .variations .disabled,
.ccp-sp-summary .variations .out-of-stock,
.ccp-sp-summary .variations .swatch-disabled,
.ccp-sp-summary .variations button[aria-disabled="true"] {
    position: relative;
    opacity: 0.35;
    cursor: not-allowed;
}

/* Diagonal line */
.ccp-sp-summary .variations .disabled::after,
.ccp-sp-summary .variations .out-of-stock::after,
.ccp-sp-summary .variations .swatch-disabled::after,
.ccp-sp-summary .variations button[aria-disabled="true"]::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 50%;
    height: 2px;
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(-20deg);
    pointer-events: none;
}









/* === Custom Thank You Layout (chat 002) === */

.ember-thankyou {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 1.5rem;
}

.ember-thankyou__inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2.5rem;
    background: #ffffff;
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* Left side */

.ember-thankyou__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 0.75rem;
}

.ember-thankyou__heading {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
}

.ember-thankyou__subheading {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    color: #555;
}

.ember-thankyou__meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem 1.5rem;
    margin-bottom: 1.75rem;
}

.ember-thankyou__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.ember-thankyou__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
}

.ember-thankyou__value {
    font-size: 0.95rem;
    font-weight: 600;
}

.ember-thankyou__value--status {
    text-transform: capitalize;
}

/* Buttons */

.ember-thankyou__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ember-thankyou__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.ember-thankyou__btn--primary {
    /* Match your “gold” primary tone from chat 001/002 if you want */
    background: #ffc20f;
    border-color: #ffc20f;
    color: #222;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.ember-thankyou__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

.ember-thankyou__btn--ghost {
    background: transparent;
    border-color: rgba(0,0,0,0.08);
    color: #333;
}

.ember-thankyou__btn--ghost:hover {
    background: #f8f8f8;
}

/* Right side */

.ember-thankyou__secondary-heading {
    font-size: 1.05rem;
    margin: 0 0 1rem;
    font-weight: 600;
}

.ember-thankyou__items {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    border-radius: 14px;
    background: #fafafa;
    border: 1px solid #eee;
}

.ember-thankyou__item {
    display: flex;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #eee;
}

.ember-thankyou__item:last-child {
    border-bottom: none;
}

.ember-thankyou__item-main {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.ember-thankyou__item-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.ember-thankyou__item-sku,
.ember-thankyou__item-qty {
    font-size: 0.8rem;
    color: #777;
}

.ember-thankyou__item-price {
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.9rem;
}

.ember-thankyou__totals {
    margin-bottom: 1rem;
}

.ember-thankyou__total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.ember-thankyou__total-label {
    color: #666;
}

.ember-thankyou__total-value {
    font-weight: 600;
}

.ember-thankyou__note {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

/* Responsive */

@media (max-width: 900px) {
    .ember-thankyou__inner {
        grid-template-columns: 1fr;
        padding: 1.75rem;
    }

    .ember-thankyou {
        margin: 1.5rem auto;
        padding: 0.75rem;
    }
}
/* Fix WooCommerce star rating showing "sssss" */
.woocommerce .star-rating,
.woocommerce .star-rating::before,
.woocommerce .star-rating span,
.woocommerce .star-rating span::before {
    font-family: star !important; /* WooCommerce's built-in star font */
    speak: none;
}

.ccp-modal__close:hover,
.ccp-modal__close:focus{
		background: var(--ccp-sp-btn-bg, #000);
	color: var(--ccp-sp-btn-color, #fff);
	border-color: var(--ccp-sp-btn-bg, #000);
	box-shadow: 0 8px 18px rgba(0,0,0,0.12);
	transform: translateY(-1px);
}


/* ============================================================
   VARIATION BUTTON UI (Size grid + disabled strike)
   ============================================================ */

/* Make the Woo variations row vertical: label above, grid below */
.ccp-sp-summary .variations tr {
    display: block;
    margin-bottom: 16px;
}

.ccp-sp-summary .variations th.label,
.ccp-sp-summary .variations td.label {
    display: block;
    margin: 0 0 6px;
    padding: 0;
    border: 0;
}

.ccp-sp-summary .variations td.value {
    display: block;
}

/* Hide the native select but keep it accessible for JS/Woo */
.ccp-var-select--hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Wrapper for our custom buttons */
.ccp-var-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Base button card – matches the screenshot style */
.ccp-var-option {
    position: relative;
    flex: 0 1 90px;
    min-width: 72px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
	font-weight: 300;
    color: #222;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background 150ms ease,
        transform 120ms ease,
        color 150ms ease;
}

/* Hover / active */
.ccp-var-option:hover {
    border-color: rgba(0, 0, 0, 0.45);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
	background: transparent;
	color:black;
}

.ccp-var-option:active,
.ccp-var-option:focus{
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	background: transparent;
    border-color: var(--ccp-accent);
	color: black;
}

/* Selected (the chosen size) */
.ccp-var-option--selected {
    border-color: var(--ccp-accent);
    box-shadow: 0 0 0 1px var(--ccp-accent);
	color: black;
}

/* Out-of-stock / unavailable */
.ccp-var-option--unavailable {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

/* Red diagonal strike for unavailable */
.ccp-var-option--unavailable::after {
    content: "";
    position: absolute;
    left: 1%;
    right: 1%;
    top: 50%;
    height: 1px;
    background: #3d3d3d;
    transform: rotate(-22deg);
    pointer-events: none;
}

/* SWATCH MODE (if you later use it: same card, but with colour chip) */
.ccp-var-option--swatch {
    padding: 10px;
    min-width: 60px;
}

.ccp-var-option--swatch .ccp-var-swatch {
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 auto;
    border-radius: 4px;
    background: var(--ccp-var-swatch-color, #cccccc);
    border: 1px solid rgba(0, 0, 0, 0.16);
}

.ccp-var-option--swatch .ccp-var-swatch-label {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.7);
}

/* Mobile: slightly denser grid */
@media (max-width: 640px) {
    .ccp-var-options {
        gap: 6px;
    }

    .ccp-var-option {
        flex: 0 1 calc(33.333% - 6px);
        min-width: 0;
        font-size: 12px;
        padding: 9px 6px;
    }
}
