#ppr-ribbon-designer.ppr-trophy-preview .ppr-designer-stage {
    padding: 0;
    background: #f5f5f5;
    overflow: hidden;
    border-radius: 10px;
}

#ppr-ribbon-designer.ppr-trophy-preview .ppr-preview-ribbon {
    display: none !important;
}

.ppr-trophy-scene {
    position: relative;
    width: 100%;
    aspect-ratio: 1140 / 794;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.ppr-trophy-tail {
    position: absolute;
    top: 11.2%;
    height: 80.4%;
    background: #ffffff;
    border-radius: 18px 18px 2px 2px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07), inset 0 0 0 1px rgba(0,0,0,0.03);
    overflow: hidden;
    opacity: 0.98;
}

#ppr-ribbon-designer.ppr-trophy-mode-single .ppr-trophy-tail-left {
    left: 18.1%;
    width: 10.2%;
    transform: rotate(0.8deg);
}

#ppr-ribbon-designer.ppr-trophy-mode-single .ppr-trophy-tail-right {
    right: 18.1%;
    width: 10.2%;
    transform: rotate(-0.8deg);
}

#ppr-ribbon-designer.ppr-trophy-mode-full .ppr-trophy-tail-left {
    left: 19.1%;
    width: 8.6%;
    transform: rotate(0.8deg);
}

#ppr-ribbon-designer.ppr-trophy-mode-full .ppr-trophy-tail-right {
    right: 19.1%;
    width: 8.6%;
    transform: rotate(-0.8deg);
}

.ppr-trophy-tail-art {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    color: #111111;
}

#ppr-ribbon-designer.ppr-trophy-mode-single .ppr-trophy-tail-art {
    width: 255%;
    height: 52%;
}

#ppr-ribbon-designer.ppr-trophy-mode-full .ppr-trophy-tail-art {
    width: 220%;
    height: 48%;
}

.ppr-trophy-tail-art img {
    display: none;
    object-fit: contain;
}

#ppr-ribbon-designer.ppr-trophy-mode-single .ppr-trophy-tail-art img {
    max-height: 84%;
    max-width: 72%;
}

#ppr-ribbon-designer.ppr-trophy-mode-full .ppr-trophy-tail-art img {
    max-height: 78%;
    max-width: 68%;
}

.ppr-trophy-tail-text {
    font-family: Arial, sans-serif;
    line-height: 1;
    max-width: 82%;
    overflow: hidden;
    text-overflow: ellipsis;
}

#ppr-ribbon-designer.ppr-trophy-mode-single .ppr-trophy-tail-text {
    font-size: 20px;
}

#ppr-ribbon-designer.ppr-trophy-mode-full .ppr-trophy-tail-text {
    font-size: 17px;
}

#ppr-ribbon-designer.ppr-trophy-preview .ppr-designer-note {
    text-align: center;
}

@media (max-width: 600px) {
    .ppr-trophy-tail {
        border-radius: 12px 12px 2px 2px;
    }

    #ppr-ribbon-designer.ppr-trophy-mode-single .ppr-trophy-tail-text {
        font-size: 14px;
    }

    #ppr-ribbon-designer.ppr-trophy-mode-full .ppr-trophy-tail-text {
        font-size: 12px;
    }

    .ppr-trophy-tail-art {
        gap: 4px;
    }
}

#ppr-ribbon-designer.ppr-trophy-preview .ppr-info-width { display:none !important; }


#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail-art {
    white-space: normal;
}

#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail-text {
    display: block;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.01em;
}

#ppr-ribbon-designer.ppr-trophy-mode-single.ppr-trophy-has-text:not(.ppr-trophy-has-logo) .ppr-trophy-tail-text {
    font-size: 17px;
}

#ppr-ribbon-designer.ppr-trophy-mode-single.ppr-trophy-has-logo .ppr-trophy-tail-art {
    width: 265%;
    height: 60%;
    gap: 10px;
}

#ppr-ribbon-designer.ppr-trophy-mode-single.ppr-trophy-has-logo .ppr-trophy-tail-art img {
    max-height: 64%;
    max-width: 56%;
}

#ppr-ribbon-designer.ppr-trophy-mode-single.ppr-trophy-has-logo .ppr-trophy-tail-text {
    font-size: 13px;
}

#ppr-ribbon-designer.ppr-trophy-mode-full.ppr-trophy-has-logo .ppr-trophy-tail-art {
    width: 228%;
    height: 56%;
    gap: 8px;
}

#ppr-ribbon-designer.ppr-trophy-mode-full.ppr-trophy-has-logo .ppr-trophy-tail-text {
    font-size: 12px;
}

@media (max-width: 600px) {
    #ppr-ribbon-designer.ppr-trophy-mode-single.ppr-trophy-has-logo .ppr-trophy-tail-text,
    #ppr-ribbon-designer.ppr-trophy-mode-full.ppr-trophy-has-logo .ppr-trophy-tail-text {
        font-size: 10px;
    }
}


/* Trophy-only branded plaque and stable specification line. */
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-brand-logo {
    position: absolute;
    left: 50%;
    top: 82.15%;
    width: 12.2%;
    height: auto;
    max-height: 7.0%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    z-index: 4;
    pointer-events: none;
    opacity: 1;
    filter: contrast(1.18) saturate(1.10) drop-shadow(0 1px 0 rgba(255,255,255,.50)) drop-shadow(0 0 2px rgba(15,39,68,.18));
}

#ppr-ribbon-designer.ppr-trophy-preview .ppr-designer-info > .ppr-info-ribbon,
#ppr-ribbon-designer.ppr-trophy-preview .ppr-designer-info > .ppr-info-print,
#ppr-ribbon-designer.ppr-trophy-preview .ppr-designer-info > .ppr-info-font,
#ppr-ribbon-designer.ppr-trophy-preview .ppr-designer-info > .ppr-info-width {
    display: none !important;
}

#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-fixed-info {
    display: block;
    width: 100%;
    text-align: center;
    color: inherit;
}

#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-fixed-info span {
    display: inline-block;
    margin: 0 .55em;
    opacity: .55;
}

@media (max-width:600px) {
    #ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-brand-logo {
        width: 19.2%;
        max-height: 7.3%;
    }
    #ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-fixed-info span {
        margin: 0 .3em;
    }
}


/* v2.4.9 tidy-up: clearer information lines and gentler logo+text spacing. */
#ppr-ribbon-designer.ppr-trophy-preview .ppr-designer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .18rem;
}

#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-fixed-info {
    font-weight: 500;
}

#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-live-info {
    display: block;
    width: 100%;
    text-align: center;
    font-size: .92em;
    opacity: .82;
}

#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-live-info span {
    display: inline-block;
    margin: 0 .45em;
    opacity: .55;
}

#ppr-ribbon-designer.ppr-trophy-preview .ppr-designer-note {
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
}

#ppr-ribbon-designer.ppr-trophy-mode-single.ppr-trophy-has-logo.ppr-trophy-has-text .ppr-trophy-tail-art {
    width: 272%;
    height: 62%;
    gap: 12px;
}

#ppr-ribbon-designer.ppr-trophy-mode-single.ppr-trophy-has-logo.ppr-trophy-has-text .ppr-trophy-tail-art img {
    max-height: 62%;
    max-width: 52%;
}

#ppr-ribbon-designer.ppr-trophy-mode-single.ppr-trophy-has-logo.ppr-trophy-has-text .ppr-trophy-tail-text {
    font-size: 12px;
    letter-spacing: 0;
}

#ppr-ribbon-designer.ppr-trophy-mode-full.ppr-trophy-has-logo.ppr-trophy-has-text .ppr-trophy-tail-art {
    width: 235%;
    height: 58%;
    gap: 9px;
}

#ppr-ribbon-designer.ppr-trophy-mode-full.ppr-trophy-has-logo.ppr-trophy-has-text .ppr-trophy-tail-art img {
    max-height: 60%;
    max-width: 50%;
}

#ppr-ribbon-designer.ppr-trophy-mode-full.ppr-trophy-has-logo.ppr-trophy-has-text .ppr-trophy-tail-text {
    font-size: 11px;
    letter-spacing: 0;
}

@media (max-width:600px) {
    #ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-live-info {
        font-size: .84em;
    }
    #ppr-ribbon-designer.ppr-trophy-mode-single.ppr-trophy-has-logo.ppr-trophy-has-text .ppr-trophy-tail-text,
    #ppr-ribbon-designer.ppr-trophy-mode-full.ppr-trophy-has-logo.ppr-trophy-has-text .ppr-trophy-tail-text {
        font-size: 9px;
    }
}


/* v2.5.0: 48mm single-colour trophy ribbon uses an approx. 40mm print height. */
#ppr-ribbon-designer.ppr-trophy-mode-single .ppr-trophy-tail-art {
    width: 400%;
    height: 64%;
}

#ppr-ribbon-designer.ppr-trophy-mode-single.ppr-trophy-has-text:not(.ppr-trophy-has-logo) .ppr-trophy-tail-art {
    width: 420%;
}

#ppr-ribbon-designer.ppr-trophy-mode-single.ppr-trophy-has-logo:not(.ppr-trophy-has-text) .ppr-trophy-tail-art {
    width: 390%;
    gap: 0;
}

#ppr-ribbon-designer.ppr-trophy-mode-single.ppr-trophy-has-logo:not(.ppr-trophy-has-text) .ppr-trophy-tail-art img {
    max-width: 30%;
    max-height: 72%;
}

#ppr-ribbon-designer.ppr-trophy-mode-single.ppr-trophy-has-logo.ppr-trophy-has-text .ppr-trophy-tail-art {
    width: 440%;
    height: 66%;
    gap: 14px;
}

#ppr-ribbon-designer.ppr-trophy-mode-single.ppr-trophy-has-logo.ppr-trophy-has-text .ppr-trophy-tail-art img {
    max-width: 29%;
    max-height: 70%;
}

#ppr-ribbon-designer.ppr-trophy-mode-single .ppr-trophy-tail-text {
    line-height: .95;
    font-weight: 600;
}

@media (max-width: 600px) {
    #ppr-ribbon-designer.ppr-trophy-mode-single .ppr-trophy-tail-art {
        width: 410%;
    }
    #ppr-ribbon-designer.ppr-trophy-mode-single.ppr-trophy-has-logo.ppr-trophy-has-text .ppr-trophy-tail-art {
        width: 445%;
        gap: 10px;
    }
}


/* v2.5.1 full-colour trophy polish */
#ppr-ribbon-designer.ppr-trophy-mode-full .ppr-trophy-tail-art {
    width: 290%;
    height: 68%;
}

#ppr-ribbon-designer.ppr-trophy-mode-full.ppr-trophy-has-logo .ppr-trophy-tail-art {
    width: 286%;
    height: 72%;
    gap: 12px;
}

#ppr-ribbon-designer.ppr-trophy-mode-full.ppr-trophy-has-logo .ppr-trophy-tail-art img {
    max-height: 82%;
    max-width: 68%;
}

#ppr-ribbon-designer.ppr-trophy-mode-full.ppr-trophy-has-text:not(.ppr-trophy-has-logo) .ppr-trophy-tail-text {
    font-size: 28px;
}

#ppr-ribbon-designer.ppr-trophy-mode-full.ppr-trophy-has-logo.ppr-trophy-has-text .ppr-trophy-tail-art {
    width: 296%;
    height: 74%;
    gap: 12px;
}

#ppr-ribbon-designer.ppr-trophy-mode-full.ppr-trophy-has-logo.ppr-trophy-has-text .ppr-trophy-tail-art img {
    max-height: 78%;
    max-width: 64%;
}

#ppr-ribbon-designer.ppr-trophy-mode-full.ppr-trophy-has-logo.ppr-trophy-has-text .ppr-trophy-tail-text {
    font-size: 18px;
}


/* v2.5.2: make the colour treatment look like satin ribbon rather than a flat block. */
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail {
    background: transparent !important;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    opacity: 1;
    isolation: isolate;
}

#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail::before,
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* The colour layer is translucent/multiply so the real white ribbon folds,
   highlights and shadows in the trophy photograph remain visible underneath. */
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail::before {
    inset: -1.5% -10% -1.5% -10%;
    background: var(--ppr-ribbon-colour, #ffffff);
    opacity: .90;
    mix-blend-mode: multiply;
    filter: saturate(.98) contrast(.98);
}

/* Add a restrained satin highlight so dark colours still read as fabric. */
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail::after {
    inset: -1.5% -10% -1.5% -10%;
    background:
        linear-gradient(90deg,
            rgba(255,255,255,.34) 0%,
            rgba(255,255,255,.10) 18%,
            rgba(255,255,255,0) 42%,
            rgba(0,0,0,.08) 62%,
            rgba(255,255,255,.18) 100%);
    opacity: .58;
    mix-blend-mode: soft-light;
}

/* Shape each coloured layer to follow the photographed ribbon tail rather
   than drawing a rounded rectangle over it. */
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail-left::before,
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail-left::after {
    clip-path: polygon(
        23% 0%, 78% 0%, 88% 2.5%, 91% 10%,
        92% 73%, 98% 91%, 91% 97%, 72% 100%,
        28% 99%, 8% 95%, 13% 82%, 15% 11%
    );
}

#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail-right::before,
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail-right::after {
    clip-path: polygon(
        22% 0%, 77% 0%, 85% 11%, 87% 82%,
        92% 95%, 72% 99%, 28% 100%, 9% 97%,
        2% 91%, 8% 73%, 9% 10%, 12% 2.5%
    );
}

/* Move the overlays slightly higher/lower so the colour reaches the real
   tied top and lower tail instead of leaving a conspicuous white cap. */
#ppr-ribbon-designer.ppr-trophy-mode-single .ppr-trophy-tail,
#ppr-ribbon-designer.ppr-trophy-mode-full .ppr-trophy-tail {
    top: 9.6%;
    height: 83.8%;
}

/* Artwork stays above both tint layers. */
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail-art {
    z-index: 2;
}

/* Dark colours benefit from a slightly stronger sheen; white remains almost untouched. */
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail[style*="#ffffff"]::before,
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail[style*="rgb(255, 255, 255)"]::before {
    opacity: .18;
}

@media (max-width:600px) {
    #ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail::before,
    #ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail::after {
        left: -8%;
        right: -8%;
    }
}


/* v2.5.4: colour the photographed ribbon itself using the full-scene mask. */
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-scene {
    isolation: isolate;
}

#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-photo-tint {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(255,255,255,.44) 0%,
            rgba(255,255,255,.22) 10%,
            rgba(255,255,255,.05) 26%,
            rgba(0,0,0,.08) 58%,
            rgba(255,255,255,.15) 84%,
            rgba(255,255,255,.28) 100%),
        linear-gradient(180deg,
            rgba(255,255,255,.12) 0%,
            rgba(255,255,255,0) 16%,
            rgba(0,0,0,.04) 100%),
        var(--ppr-ribbon-colour, #ffffff);
    background-blend-mode: soft-light, multiply, normal;
    opacity: .89;
    mix-blend-mode: multiply;
    filter: saturate(1.08) contrast(1.04) brightness(.96);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 100% 100%;
}

/* The old per-tail blocks are now positioning containers for artwork only. */
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible;
    opacity: 1;
    z-index: 2;
}

#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail::before,
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail::after {
    display: none !important;
    content: none !important;
}

/* Align artwork containers to the actual photographed ribbons. */
#ppr-ribbon-designer.ppr-trophy-mode-single .ppr-trophy-tail-left {
    left: 24.1%;
    width: 10.2%;
    top: 9.8%;
    height: 84.0%;
}

#ppr-ribbon-designer.ppr-trophy-mode-single .ppr-trophy-tail-right {
    right: 24.1%;
    width: 10.2%;
    top: 9.8%;
    height: 84.0%;
}

#ppr-ribbon-designer.ppr-trophy-mode-full .ppr-trophy-tail-left {
    left: 24.6%;
    width: 8.6%;
    top: 9.8%;
    height: 84.0%;
}

#ppr-ribbon-designer.ppr-trophy-mode-full .ppr-trophy-tail-right {
    right: 24.6%;
    width: 8.6%;
    top: 9.8%;
    height: 84.0%;
}

#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-tail-art {
    z-index: 3;
}

/* White ribbon needs no visible tint; other colours retain the photographic satin shading. */
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-scene[style*="#ffffff"] .ppr-trophy-photo-tint,
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-scene[style*="rgb(255, 255, 255)"] .ppr-trophy-photo-tint {
    opacity: .02;
}


/* v2.5.5: preserve more photographed satin sheen and folds. */
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-photo-tint {
    transform: translateZ(0);
}

#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-photo-tint::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(255,255,255,.22) 4%,
        rgba(255,255,255,.08) 14%,
        rgba(255,255,255,0) 30%,
        rgba(0,0,0,.07) 66%,
        rgba(255,255,255,.10) 88%,
        rgba(255,255,255,.18) 100%);
    opacity: .42;
    mix-blend-mode: soft-light;
    pointer-events: none;
    mask-image: inherit;
    mask-repeat: inherit;
    mask-position: inherit;
    mask-size: inherit;
    -webkit-mask-image: inherit;
    -webkit-mask-repeat: inherit;
    -webkit-mask-position: inherit;
    -webkit-mask-size: inherit;
}

#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-scene[style*="#ffffff"] .ppr-trophy-photo-tint,
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-scene[style*="rgb(255, 255, 255)"] .ppr-trophy-photo-tint {
    opacity: .03;
}


/* v2.5.6: richer ribbon colour while retaining satin sheen. */
#ppr-ribbon-designer.ppr-trophy-preview .ppr-trophy-photo-tint {
    box-shadow: inset 0 0 0 0.5px rgba(255,255,255,.02);
}


/* v2.5.7: fuller 38mm full-colour print area, closer to ~30mm print height. */


/* v2.5.8: stronger PPR branding on the trophy plaque to discourage reuse of preview imagery. */


/* v2.5.9: stacked PPR logo fitted to the trophy plaque for stronger ownership branding. */


/* v2.6.0: trophy preview sits beneath the product gallery, not inside the options column. */
#ppr-ribbon-designer.ppr-trophy-preview.ppr-trophy-under-gallery {
    width: 100%;
    clear: both;
    margin: 20px 0 0;
}

.product-gallery > #ppr-ribbon-designer.ppr-trophy-preview.ppr-trophy-under-gallery {
    float: none;
}

/* Standard WooCommerce fallback where gallery and summary are direct siblings. */
#ppr-ribbon-designer.ppr-trophy-preview.ppr-trophy-under-gallery-fallback {
    float: left;
    width: 48%;
    clear: left;
    margin-top: 20px;
}

@media (max-width: 849px) {
    #ppr-ribbon-designer.ppr-trophy-preview.ppr-trophy-under-gallery-fallback {
        float: none;
        width: 100%;
        clear: both;
    }
}


/* v2.6.1 responsive placement: marker stays invisible at the original mobile position. */
.ppr-trophy-original-marker { display:none !important; }
