.elementor-3848 .elementor-element.elementor-element-4a19545{--display:flex;--flex-direction:column;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--align-items:stretch;--gap:10px 10px;--row-gap:10px;--column-gap:10px;--overflow:hidden;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;overflow:visible;}.elementor-3848 .elementor-element.elementor-element-4a19545:not(.elementor-motion-effects-element-type-background), .elementor-3848 .elementor-element.elementor-element-4a19545 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFFFF;}.elementor-widget-loop-grid .elementor-button{background-color:var( --e-global-color-accent );font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}.elementor-widget-loop-grid .elementor-pagination{font-family:var( --e-global-typography-secondary-font-family ), Sans-serif;font-weight:var( --e-global-typography-secondary-font-weight );}.elementor-widget-loop-grid .e-load-more-message{font-family:var( --e-global-typography-secondary-font-family ), Sans-serif;font-weight:var( --e-global-typography-secondary-font-weight );}.elementor-3848 .elementor-element.elementor-element-5a49a16{--grid-columns:1;}#elementor-popup-modal-3848 .dialog-widget-content{animation-duration:1s;border-radius:20px 20px 20px 20px;box-shadow:2px 8px 23px 3px rgba(0,0,0,0.2);margin:0px 0px 0px 0px;}#elementor-popup-modal-3848{background-color:#B5406973;justify-content:center;align-items:center;pointer-events:all;}#elementor-popup-modal-3848 .dialog-message{width:640px;height:90vh;align-items:flex-start;}#elementor-popup-modal-3848 .dialog-close-button{display:flex;top:16px;}body:not(.rtl) #elementor-popup-modal-3848 .dialog-close-button{right:40px;}body.rtl #elementor-popup-modal-3848 .dialog-close-button{left:40px;}@media(min-width:768px){.elementor-3848 .elementor-element.elementor-element-4a19545{--width:570px;}}@media(max-width:1024px){.elementor-3848 .elementor-element.elementor-element-4a19545{--padding-top:20px;--padding-bottom:20px;--padding-left:20px;--padding-right:20px;}.elementor-3848 .elementor-element.elementor-element-5a49a16{--grid-columns:2;}}@media(max-width:767px){.elementor-3848 .elementor-element.elementor-element-5a49a16{--grid-columns:1;}}/* Start custom CSS for container, class: .elementor-element-4a19545 */.dialog-widget-content.dialog-lightbox-widget-content.animated {
    border-radius: 20px !important;
    overflow: hidden !important;
    padding: 10px;
}
.elementor-popup-modal {
    z-index: 999999;
}/* End custom CSS */
/* Start custom CSS */.shopengine_swatches .swatch_image img {
    object-fit: cover !important;
    height:44px;
    width:49px;
}

/* Create a wrapper to hold our custom arrow */
.custom-select-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

/* Style the 'Size' and 'Design' select elements */
#pa_size,
#pa_design {
    /* Reset default browser styles */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Custom Styles */
    background-color: #ffb7a1;
    color: white;
    border: none;
    border-radius: 10px; /* This creates the pill shape */
    padding: 15px 50px 15px 25px; /* Extra right padding for the arrow */
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Style the placeholder ("Choose an option") */
#pa_size:invalid,
#pa_design:invalid {
  color: white;
}

/* Create the custom dropdown arrow using an SVG */
.custom-select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none; /* Allows clicks to pass through to the select element */
}

/* Style the dropdown options */
td:has(>#pa_size), td:has(>#pa_design) {
    position:relative !important;
}
td:has(>#pa_size)::after, td:has(>#pa_design)::after {
    content:" ";
    position:absolute;
    background-image: url("https://onceuponathread.co.za/wp-content/uploads/2025/09/Down_Arrow.webp");
    right:10px;
    background-size: 100% 100% !important;
    repeat:no-repeat;
    background-position: center !important;
    width:36px;
    display:block;
    height:60px;
    pointer-events: none
}
td:has(>#pa_size):active::after, td:has(>#pa_design):active::after {
    rotate:180deg;
}


#pa_size option,
#pa_design option {
    background-color: #ffb7a1;
    border:none !important;
    font-weight:700 !important;
    color: #fff; /* A darker color for readability */
    font-weight: normal;
    text-shadow:-1px 1px 2px #000 !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer;
}
.woocommerce-variation-add-to-cart button {
    transition-duration: .3s;
    transition-property: transform;
}
.woocommerce-variation-add-to-cart button:not(.disabled):hover {
    transform: scale(.9);
}
.shopengine-quick-checkout-button {
    width:calc(100% - 218px);
    margin-right:0 !important;
    padding-right:0 !important;
    box-shadow: -5px 5px 12px -2px #ffb7a1aa, 0 0 12px 0 #ffb7a1aa !important;
}
.woocommerce-variation-add-to-cart button.disabled {
    background-color:#aaa !important;
}
a.reset_variations {
    display: none;
}
.swatch.selected {
    box-shadow: 0 0 16px #E3A949, 0 0 3px #000;
}/* End custom CSS */