/*
 * Rounded banner: a "Rounded banner" section on Elementor's own Container (see rounded-banner.php).
 * Switch it on in a container's Style tab and drag anything inside; the container gets a colour, a curved
 * end (single or double, left or right), an optional texture and an optional yellow star.
 * All of it is classes and CSS variables set by the container's controls, so it also shows in the editor.
 */
.e-con.ozo-rb-on-yes { --ozo-rb-radius: 60px; background-color: var(--ozo-rb-color, #3e8a55); }

/* Curve side (dir) and style (curve): single rounds the bottom corner only, double rounds top and bottom */
.e-con.ozo-rb-on-yes.ozo-rb-dir-right { border-bottom-right-radius: var(--ozo-rb-radius); }
.e-con.ozo-rb-on-yes.ozo-rb-dir-left { border-bottom-left-radius: var(--ozo-rb-radius); }
.e-con.ozo-rb-on-yes.ozo-rb-dir-right.ozo-rb-curve-double { border-top-right-radius: var(--ozo-rb-radius); }
.e-con.ozo-rb-on-yes.ozo-rb-dir-left.ozo-rb-curve-double { border-top-left-radius: var(--ozo-rb-radius); }

/* Texture: a generated grain (three strengths) or the designer's own tiling image, blended over the colour */
.e-con.ozo-rb-on-yes[class*="ozo-rb-tex-"] { background-size: var(--ozo-rb-tile, 600px); background-repeat: repeat; background-blend-mode: var(--ozo-rb-blend, overlay); }
.e-con.ozo-rb-on-yes.ozo-rb-tex-grain-light { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27200%27%20height=%27200%27%3E%3Cfilter%20id=%27n%27%3E%3CfeTurbulence%20type=%27fractalNoise%27%20baseFrequency=%270.9%27%20numOctaves=%272%27%20stitchTiles=%27stitch%27/%3E%3CfeColorMatrix%20type=%27saturate%27%20values=%270%27/%3E%3C/filter%3E%3Crect%20width=%27100%25%27%20height=%27100%25%27%20filter=%27url%28%23n%29%27%20opacity=%270.2%27/%3E%3C/svg%3E"); }
.e-con.ozo-rb-on-yes.ozo-rb-tex-grain { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27200%27%20height=%27200%27%3E%3Cfilter%20id=%27n%27%3E%3CfeTurbulence%20type=%27fractalNoise%27%20baseFrequency=%270.9%27%20numOctaves=%272%27%20stitchTiles=%27stitch%27/%3E%3CfeColorMatrix%20type=%27saturate%27%20values=%270%27/%3E%3C/filter%3E%3Crect%20width=%27100%25%27%20height=%27100%25%27%20filter=%27url%28%23n%29%27%20opacity=%270.35%27/%3E%3C/svg%3E"); }
.e-con.ozo-rb-on-yes.ozo-rb-tex-grain-strong { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27200%27%20height=%27200%27%3E%3Cfilter%20id=%27n%27%3E%3CfeTurbulence%20type=%27fractalNoise%27%20baseFrequency=%270.9%27%20numOctaves=%272%27%20stitchTiles=%27stitch%27/%3E%3CfeColorMatrix%20type=%27saturate%27%20values=%270%27/%3E%3C/filter%3E%3Crect%20width=%27100%25%27%20height=%27100%25%27%20filter=%27url%28%23n%29%27%20opacity=%270.55%27/%3E%3C/svg%3E"); }

/* Star: always yellow; hangs off the curved side, so it can overhang the bar */
.e-con.ozo-rb-on-yes.ozo-rb-star-yes { --ozo-rb-star-size: 90px; --ozo-rb-star-end: -20px; --ozo-rb-star-top: -35px; --ozo-rb-star-rot: 0deg; }
.e-con.ozo-rb-on-yes.ozo-rb-star-yes::after {
    content: ""; position: absolute; top: var(--ozo-rb-star-top); z-index: 2; pointer-events: none;
    width: var(--ozo-rb-star-size); height: var(--ozo-rb-star-size);
    background: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%20100%20100%27%3E%3Cpolygon%20points=%2750.00,2.00%2056.01,23.68%2070.83,6.75%2066.83,28.89%2087.53,20.07%2074.33,38.29%2096.80,39.32%2077.00,50.00%2096.80,60.68%2074.33,61.71%2087.53,79.93%2066.83,71.11%2070.83,93.25%2056.01,76.32%2050.00,98.00%2043.99,76.32%2029.17,93.25%2033.17,71.11%2012.47,79.93%2025.67,61.71%203.20,60.68%2023.00,50.00%203.20,39.32%2025.67,38.29%2012.47,20.07%2033.17,28.89%2029.17,6.75%2043.99,23.68%27%20fill=%27%23fccf4f%27%20stroke=%27%231a1a1a%27%20stroke-width=%271.5%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat; transform: rotate(var(--ozo-rb-star-rot));
}
.e-con.ozo-rb-on-yes.ozo-rb-star-yes.ozo-rb-dir-right::after { right: var(--ozo-rb-star-end); }
.e-con.ozo-rb-on-yes.ozo-rb-star-yes.ozo-rb-dir-left::after { left: var(--ozo-rb-star-end); }
