.custom-image-dropdown {
    position: relative;
    border: 1px solid #333;
    font-size: 16px;
    border-radius: 4px;
    height: 41px;
}

.validation-message-width , .validation-message-height, .validation-message-length{
    color:red;
    margin: 0px 2px;
}

.custom-image-dropdown .selected-option {
    display: block;
    padding: 10px;
    cursor: pointer;
}

.custom-image-dropdown .options-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    border: 1px solid #333;
    z-index: 999999;
    background-color: white;
}

.custom-image-dropdown .arrow {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

.custom-image-dropdown .options-list li {
    padding: 10px;
    cursor: pointer;
    align-items: center;
    display: flex;
}

.custom-image-dropdown .options-list li:hover {
background-color: #f0f0f0;
}

.custom-image-dropdown .options-list li.active {
    background-color: #f0f7ff !important;
    color: #2b6cb0 !important;
    font-weight: 500 !important;
}

.woocommerce-page .dnb_custom_radiobtn span.woocommerce-input-wrapper label {
    margin: 0 16px 0 0 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    display: inline !important;
    vertical-align: middle !important;
}

.woocommerce-page .dnb_custom_radiobtn span.woocommerce-input-wrapper label abbr.required,
.woocommerce-page .dnb_custom_radiobtn span.woocommerce-input-wrapper label .required,
.woocommerce-page .dnb_custom_radiobtn span.woocommerce-input-wrapper label .optional {
    display: none !important;
}

.woocommerce div.product table.variations tr .dnb_custom_radiobtn span.woocommerce-input-wrapper {
    display: block !important;
}
.cart button {
    /*display: block !important;*/
    margin: 5px !important;
    /*min-width: 60% !important;*/
}
.summary.entry-summary .cart .custom-image-dropdown {
    margin-bottom: 0;
}
.summary.entry-summary .cart .custom-image-dropdown {
    width: 100%;
}

.woocommerce div.product form.cart .dnb-custom-table-variation #options_98_field > label,
.woocommerce div.product form.cart .dnb-custom-table-variation [id^="options_"][id$="_field"] > label,
.woocommerce div.product form.cart .dnb-custom-table-variation .form-row > label {
    display: block !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    line-height: 1.35 !important;
    vertical-align: middle !important;
}
.dnb-custom-table-variation {
    overflow: visible !important;
    border-collapse: collapse !important;
    width: 100% !important;
}

/* Origin cart form only — do NOT force 100% on CommerceKit sticky ATC clone
   (that clone is position:fixed; width:420px; right:-420px — 100%!important
   makes it fill the viewport and show options/buttons twice). */
.woocommerce div.product form.cart:not(.commercekit_sticky-atc) {
    width: 100% !important;
    max-width: none !important;
}

@media (min-width: 993px) {
    div.product form.cart.commercekit_sticky-atc {
        width: 420px !important;
        max-width: 420px !important;
        left: auto !important;
        right: -420px !important;
    }
    body.sticky-atc-open div.product form.cart.commercekit_sticky-atc {
        right: 0 !important;
    }
}

.woocommerce div.product form.cart table.variations.dnb-custom-table-variation,
.woocommerce div.product form.cart table.dnb-custom-table-variation {
    width: 100% !important;
    max-width: none !important;
}

.woocommerce div.product form.cart table.variations.dnb-custom-table-variation td,
.woocommerce div.product form.cart table.variations.dnb-custom-table-variation th,
.woocommerce div.product form.cart table.dnb-custom-table-variation td,
.woocommerce div.product form.cart table.dnb-custom-table-variation th {
    width: 100% !important;
    display: block !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation tr,
.woocommerce div.product form.cart .dnb-custom-table-variation td {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation td {
    padding-bottom: 0px !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .form-row,
.woocommerce div.product form.cart .dnb-custom-table-variation [id$="_field"] {
    width: 100% !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .woocommerce-input-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .validate-required,
.woocommerce div.product form.cart .dnb-custom-table-variation .woocommerce-input-wrapper input[type="number"] {
    margin-top: 0 !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .dnb_custom_radiobtn {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .dnb_custom_radiobtn .form-row {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .dnb_custom_radiobtn input[type="radio"] {
    margin: 0 6px 0 0 !important;
    vertical-align: middle !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .designo-swatches-container {
    margin: 0 !important;
}

/* Keep DesignO PDP option fields visually consistent across themes */
.woocommerce div.product form.cart .dnb-custom-table-variation p.form-row,
.woocommerce div.product form.cart .dnb-custom-table-variation div.form-row,
.woocommerce div.product form.cart .dnb-custom-table-variation p[id$="_field"],
.woocommerce div.product form.cart .dnb-custom-table-variation div[id$="_field"] {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 15px !important;
    padding-bottom: 0 !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .form-row {
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
}

/* Stack label above field so selects match ATC button width.
   Theme Additional CSS uses side-by-side: grid 150px 1fr — that
   makes dropdowns narrower than the full-width action buttons. */
.woocommerce div.product form.cart .dnb-custom-table-variation .form-row,
.woocommerce div.product form.cart .dnb-custom-table-variation td .form-row,
.woocommerce div.product form.cart .dnb-custom-table-variation td .form-row:has(select.product-custom-option),
.woocommerce div.product form.cart .dnb-custom-table-variation td .form-row:has(.select.product-custom-option),
.product-details-wrapper .dnb-custom-table-variation td .form-row:has(.select.product-custom-option) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    grid-template-columns: none !important;
    width: 100% !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .form-row > label {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: block !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation [id$="-width_text_field"],
.woocommerce div.product form.cart .dnb-custom-table-variation [id$="-height_text_field"]{
    margin-bottom: 14px !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .form-row-wide,
.woocommerce div.product form.cart .dnb-custom-table-variation .custom-field {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .form-row > label {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #1f2937 !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .form-row input[type="text"],
.woocommerce div.product form.cart .dnb-custom-table-variation .form-row input[type="number"],
.woocommerce div.product form.cart .dnb-custom-table-variation .form-row select,
.woocommerce div.product form.cart .dnb-custom-table-variation .form-row select.product-custom-option,
.woocommerce div.product form.cart .dnb-custom-table-variation .form-row > select,
.woocommerce div.product form.cart table.variations.dnb-custom-table-variation select,
.woocommerce div.product form.cart .dnb-custom-table-variation .woocommerce-input-wrapper > input[type="text"],
.woocommerce div.product form.cart .dnb-custom-table-variation .woocommerce-input-wrapper > input[type="number"],
.woocommerce div.product form.cart .dnb-custom-table-variation .woocommerce-input-wrapper > select {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: #111827 !important;
    appearance: none !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
}


.woocommerce div.product form.cart .dnb-custom-table-variation .form-row input[type="checkbox"],
.woocommerce div.product form.cart .dnb-custom-table-variation .form-row input[type="radio"] {
    accent-color: #3b82f6 !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .form-row label.checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 6px !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .form-row label.checkbox:last-of-type {
    margin-bottom: 0 !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .dnb_custom_radiobtn .woocommerce-input-wrapper {
    display: block !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .dnb_custom_radiobtn .woocommerce-input-wrapper label {
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    display: inline !important;
    vertical-align: middle !important;
    margin: 0 16px 0 0 !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .dnb_custom_radiobtn .woocommerce-input-wrapper label abbr.required,
.woocommerce div.product form.cart .dnb-custom-table-variation .dnb_custom_radiobtn .woocommerce-input-wrapper label .required,
.woocommerce div.product form.cart .dnb-custom-table-variation .dnb_custom_radiobtn .woocommerce-input-wrapper label .optional {
    display: none !important;
}

/* Make image dropdown match normal select appearance */
.woocommerce div.product form.cart .dnb-custom-table-variation .custom-image-dropdown {
    width: 100% !important;
    min-height: 40px !important;
    height: auto !important;
    margin: 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation p[id$="_field"] > select.hidden,
.woocommerce div.product form.cart .dnb-custom-table-variation div[id$="_field"] > select.hidden,
.woocommerce div.product form.cart .dnb-custom-table-variation .custom-image-dropdown + select,
.woocommerce div.product form.cart .dnb-custom-table-variation .designo-swatches-container + select {
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    pointer-events: none !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .custom-image-dropdown .selected-option {
    min-height: 40px !important;
    padding: 8px 34px 8px 12px !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1.35 !important;
    color: #111827 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .custom-image-dropdown .options-list li,
.woocommerce div.product form.cart .dnb-custom-table-variation .custom-image-dropdown .options-list li span {
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation .custom-image-dropdown .arrow {
    right: 12px !important;
    color: #1f2937 !important;
    font-size: 11px !important;
}

.woocommerce div.product form.cart .dnb-custom-table-variation td > p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Ensure all required field asterisks are styled red */
.required, abbr.required {
    color: red !important;
    text-decoration: none !important;
}

/* DesignO action buttons — match production width/style (icon + title + liner) */
.woocommerce div.product form.cart button.single_add_to_cart_button {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 75px !important;
    margin-left: 0 !important;
    padding: 15px !important;
    white-space: normal !important;
    text-align: left !important;
    line-height: 1.2 !important;
    float: none !important;
}

/* Cart / icon buttons need left padding for background-image icon */
.woocommerce div.product form.cart .commercekit-sticky-atc-intersector > button.single_add_to_cart_button,
.woocommerce div.product form.cart button.single_add_to_cart_button.designo_simple {
    padding-left: 60px !important;
}

.woocommerce div.product form.cart button.single_add_to_cart_button .heading-text {
    display: block !important;
    text-align: left !important;
    line-height: 1.2 !important;
}

.woocommerce div.product form.cart button.single_add_to_cart_button .heading-text > span,
.woocommerce div.product form.cart button.single_add_to_cart_button .heading-text > .amquote-addto-button-text {
    display: block !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-transform: capitalize;
}

.woocommerce div.product form.cart button.single_add_to_cart_button .heading-text .desc {
    display: block !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    margin-top: 4px !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    opacity: 0.85 !important;
}
