<div class="cp_bgpattern24"></div>
.cp_bgpattern24 {
position: relative;
}
.cp_bgpattern24::after {
position: absolute;
z-index: 1;
top: 0;
left: 0;
width: 100%;
height: 100%;
content: '';
background: repeating-linear-gradient(45deg,
#ffffff, #ffffff 10px,
#5C6BC0 0, #5C6BC0 20px,
#ffffff 0, #ffffff 30px,
#C2185B 0, #C2185B 40px);
}
.cp_bgpattern24::before {
position: absolute;
z-index: 2;
top: 12px;
left: 12px;
width: calc(100% - 24px);
height: calc(100% - 24px);
content: '';
border-radius: 14px;
background-color: #ffffff;
}