.cpo-wrapper {
    margin: 15px 0 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
    clear: both;
    float: none !important;
    width: 100% !important;
}

.cpo-field {
    margin-bottom: 16px;
}

.cpo-label {
    display: block !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-bottom: 6px !important;
    color: #333 !important;
}

.cpo-required {
    color: red;
    margin-right: 4px;
}

.cpo-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Force native select dropdown - override any theme styling */
select.cpo-select,
.cpo-select {
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: auto !important;
    display: block !important;
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 9px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    font-weight: normal !important;
    line-height: 1.5 !important;
    background-color: #fff !important;
    background-image: none !important;
    color: #333 !important;
    cursor: pointer !important;
    height: auto !important;
    box-shadow: none !important;
    outline: none !important;
    text-align: left !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    border-bottom: 1px solid #ccc !important;
    transition: border-color 0.2s !important;
    /* Remove any pseudo-element arrows from theme */
    background-position: initial !important;
    background-size: initial !important;
    background-repeat: initial !important;
}

select.cpo-select:focus,
.cpo-select:focus {
    border-color: #0073aa !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15) !important;
}

/* Hide any ::after pseudo-elements themes add for custom arrows */
.cpo-row::after,
.cpo-field::after {
    display: none !important;
    content: none !important;
}

.cpo-price-display {
    min-width: 70px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.cpo-total-box {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cpo-total-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.cpo-total-amount {
    font-size: 22px;
    font-weight: 700;
    color: #e74c3c;
}

/* ============================================================
   Move Add to Cart & Buy Now buttons inside options wrapper
   ============================================================ */

/* Hide the separate dark Elementor columns that contain buttons */
.elementor-add-to-cart .quantity,
.elementor-add-to-cart .single_add_to_cart_button,
.elementor-add-to-cart .wc-buy-now-btn {
    display: block !important;
    visibility: visible !important;
}

/* Make buttons appear nicely after the options */
.cpo-wrapper ~ .quantity,
.cpo-wrapper ~ .single_add_to_cart_button,
.cpo-wrapper ~ .wc-buy-now-btn {
    margin-top: 12px !important;
}

/* Fix quantity + buttons layout */
.elementor-add-to-cart form.cart {
    display: block !important;
}

.elementor-add-to-cart form.cart .quantity {
    display: inline-block !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
}

.elementor-add-to-cart form.cart .single_add_to_cart_button {
    display: inline-block !important;
    vertical-align: middle !important;
}
