/* Premium Form Styles */
.oef-form-wrapper {
    border-radius: 12px;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.oef-public-form {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.oef-form-field {
    box-sizing: border-box;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 0 0 100%;
}

/* Field Sizes: Controls the width of the input/dropdown within the field line */
/* Large (Default = 100% full width of the line) */
.oef-form-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.oef-form-field textarea,
.oef-form-field select,
.oef-form-field .oef-custom-select,
.oef-form-field .oef-signature-pad-wrapper,
.oef-form-field .oef-file-upload-wrap,
.oef-form-field .oef-richtext-editor,
.oef-form-field .oef-slider-wrap,
.oef-form-field .oef-name-grid,
.oef-form-field .oef-address-grid,
.oef-form-field.oef-size-large input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.oef-form-field.oef-size-large textarea,
.oef-form-field.oef-size-large select,
.oef-form-field.oef-size-large .oef-custom-select,
.oef-form-field.oef-size-large .oef-signature-pad-wrapper,
.oef-form-field.oef-size-large .oef-file-upload-wrap,
.oef-form-field.oef-size-large .oef-richtext-editor,
.oef-form-field.oef-size-large .oef-slider-wrap,
.oef-form-field.oef-size-large .oef-name-grid,
.oef-form-field.oef-size-large .oef-address-grid {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Medium (~60% width of the line) */
.oef-form-field.oef-size-medium input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.oef-form-field.oef-size-medium textarea,
.oef-form-field.oef-size-medium select,
.oef-form-field.oef-size-medium .oef-custom-select,
.oef-form-field.oef-size-medium .oef-signature-pad-wrapper,
.oef-form-field.oef-size-medium .oef-file-upload-wrap,
.oef-form-field.oef-size-medium .oef-richtext-editor,
.oef-form-field.oef-size-medium .oef-slider-wrap,
.oef-form-field.oef-size-medium .oef-name-grid,
.oef-form-field.oef-size-medium .oef-address-grid {
    width: 60% !important;
    max-width: 60% !important;
    min-width: 240px;
    box-sizing: border-box !important;
}

/* Small (~33.3% width of the line) */
.oef-form-field.oef-size-small input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.oef-form-field.oef-size-small textarea,
.oef-form-field.oef-size-small select,
.oef-form-field.oef-size-small .oef-custom-select,
.oef-form-field.oef-size-small .oef-signature-pad-wrapper,
.oef-form-field.oef-size-small .oef-file-upload-wrap,
.oef-form-field.oef-size-small .oef-richtext-editor,
.oef-form-field.oef-size-small .oef-slider-wrap,
.oef-form-field.oef-size-small .oef-name-grid,
.oef-form-field.oef-size-small .oef-address-grid {
    width: 33.333% !important;
    max-width: 33.333% !important;
    min-width: 180px;
    box-sizing: border-box !important;
}

/* Compatibility with nested layout columns */
.oef-col > .oef-form-field {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
}

/* Field-Level Alignment: Left, Center, Right */
/* Left Alignment */
.oef-form-field.oef-align-left {
    text-align: left;
}
.oef-form-field.oef-align-left > label,
.oef-form-field.oef-align-left .oef-field-description,
.oef-form-field.oef-align-left .oef-field-sublabel {
    text-align: left;
    display: block;
}
.oef-form-field.oef-align-left input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.oef-form-field.oef-align-left textarea,
.oef-form-field.oef-align-left select,
.oef-form-field.oef-align-left .oef-custom-select,
.oef-form-field.oef-align-left .oef-signature-pad-wrapper,
.oef-form-field.oef-align-left .oef-file-upload-wrap,
.oef-form-field.oef-align-left .oef-richtext-editor,
.oef-form-field.oef-align-left .oef-slider-wrap,
.oef-form-field.oef-align-left .oef-name-grid,
.oef-form-field.oef-align-left .oef-address-grid {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left;
}
.oef-form-field.oef-align-left .oef-custom-select-toggle .oef-selected-text {
    text-align: left;
}
.oef-form-field.oef-align-left .oef-options-group,
.oef-form-field.oef-align-left .oef-choices-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.oef-form-field.oef-align-left .oef-checkbox-group,
.oef-form-field.oef-align-left .oef-radio-group {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
    justify-items: start !important;
}
.oef-form-field.oef-align-left .oef-choice-item {
    text-align: left !important;
}
.oef-form-field.oef-align-left .oef-choice-item:not(.oef-choice-style-image .oef-choice-item):not(:has(.oef-choice-image)) {
    display: flex;
    justify-content: flex-start !important;
}
.oef-form-field.oef-align-left .oef-option-label {
    justify-content: flex-start !important;
    text-align: left !important;
}
.oef-form-field.oef-align-left .oef-choice-image {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Center Alignment */
.oef-form-field.oef-align-center {
    text-align: center;
}
.oef-form-field.oef-align-center > label,
.oef-form-field.oef-align-center .oef-field-description,
.oef-form-field.oef-align-center .oef-field-sublabel {
    text-align: center;
    display: block;
}
.oef-form-field.oef-align-center input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.oef-form-field.oef-align-center textarea,
.oef-form-field.oef-align-center select,
.oef-form-field.oef-align-center .oef-custom-select,
.oef-form-field.oef-align-center .oef-signature-pad-wrapper,
.oef-form-field.oef-align-center .oef-file-upload-wrap,
.oef-form-field.oef-align-center .oef-richtext-editor,
.oef-form-field.oef-align-center .oef-slider-wrap,
.oef-form-field.oef-align-center .oef-name-grid,
.oef-form-field.oef-align-center .oef-address-grid {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}
.oef-form-field.oef-align-center .oef-custom-select-toggle .oef-selected-text {
    text-align: center;
}
.oef-form-field.oef-align-center .oef-options-group,
.oef-form-field.oef-align-center .oef-choices-list,
.oef-form-field.oef-align-center .oef-likert-table-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.oef-form-field.oef-align-center .oef-checkbox-group,
.oef-form-field.oef-align-center .oef-radio-group {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    justify-items: center !important;
}
.oef-form-field.oef-align-center .oef-choice-item {
    text-align: center !important;
}
.oef-form-field.oef-align-center .oef-choice-item:not(.oef-choice-style-image .oef-choice-item):not(:has(.oef-choice-image)) {
    display: flex;
    justify-content: center !important;
}
.oef-form-field.oef-align-center .oef-option-label {
    justify-content: center !important;
    text-align: center !important;
}
.oef-form-field.oef-align-center .oef-choice-image {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Right Alignment */
.oef-form-field.oef-align-right {
    text-align: right;
}
.oef-form-field.oef-align-right > label,
.oef-form-field.oef-align-right .oef-field-description,
.oef-form-field.oef-align-right .oef-field-sublabel {
    text-align: right;
    display: block;
}
.oef-form-field.oef-align-right input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.oef-form-field.oef-align-right textarea,
.oef-form-field.oef-align-right select,
.oef-form-field.oef-align-right .oef-custom-select,
.oef-form-field.oef-align-right .oef-signature-pad-wrapper,
.oef-form-field.oef-align-right .oef-file-upload-wrap,
.oef-form-field.oef-align-right .oef-richtext-editor,
.oef-form-field.oef-align-right .oef-slider-wrap,
.oef-form-field.oef-align-right .oef-name-grid,
.oef-form-field.oef-align-right .oef-address-grid {
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: right;
}
.oef-form-field.oef-align-right .oef-custom-select-toggle .oef-selected-text {
    text-align: right;
    margin-right: 6px;
}
.oef-form-field.oef-align-right .oef-options-group,
.oef-form-field.oef-align-right .oef-choices-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.oef-form-field.oef-align-right .oef-checkbox-group,
.oef-form-field.oef-align-right .oef-radio-group {
    justify-content: flex-end !important;
    align-items: flex-end !important;
    text-align: right !important;
    justify-items: end !important;
}
.oef-form-field.oef-align-right .oef-choice-item {
    text-align: right !important;
}
.oef-form-field.oef-align-right .oef-choice-item:not(.oef-choice-style-image .oef-choice-item):not(:has(.oef-choice-image)) {
    display: flex;
    justify-content: flex-end !important;
}
.oef-form-field.oef-align-right .oef-option-label {
    justify-content: flex-end !important;
    text-align: right !important;
}
.oef-form-field.oef-align-right .oef-choice-image {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Structural elements taking full form row */
.oef-form-submit,
.oef-global-calc-wrap,
.oef-form-response,
.oef-step-buttons {
    flex: 0 0 100%;
    width: 100%;
}

/* Mobile Responsiveness: Stretch inputs to full width on small screens */
@media (max-width: 640px) {
    .oef-form-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
    .oef-form-field textarea,
    .oef-form-field select,
    .oef-form-field .oef-custom-select,
    .oef-form-field .oef-signature-pad-wrapper,
    .oef-form-field .oef-file-upload-wrap,
    .oef-form-field .oef-richtext-editor,
    .oef-form-field .oef-slider-wrap,
    .oef-form-field .oef-name-grid,
    .oef-form-field .oef-address-grid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

.oef-form-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #1d2327;
}

.oef-required {
    color: #d63638;
    margin-left: 2px;
}

/* Input Styling */
.oef-form-field input[type="text"],
.oef-form-field input[type="number"],
.oef-form-field input[type="email"],
.oef-form-field input[type="tel"],
.oef-form-field input[type="url"],
.oef-form-field input[type="date"],
.oef-form-field input[type="time"],
.oef-form-field input[type="datetime-local"],
.oef-form-field textarea,
.oef-form-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #dcdcde;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
    transition: all 0.2s ease;
    background-color: #fbfbfc;
}

.oef-form-field input:focus,
.oef-form-field textarea:focus,
.oef-form-field select:focus {
    outline: none;
    border-color: #2271b1;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.oef-form-field textarea {
    min-height: 120px;
    line-height: 1.5;
}

/* Name Grid */
.oef-name-grid {
    display: flex;
    gap: 12px;
}

.oef-name-col {
    flex: 1;
    min-width: 0;
}

.oef-sublabel {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #646970;
    font-weight: 500;
}

/* Address Grid */
.oef-address-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oef-address-row {
    display: flex;
    gap: 12px;
}

.oef-address-row input,
.oef-address-row select {
    flex: 1;
    min-width: 0;
}

.oef-col-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Address Grid */
.oef-address-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oef-address-row {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.oef-address-row input,
.oef-address-row select {
    flex: 1;
    min-width: 0;
}

.oef-col-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Image Choices Customization */
.oef-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
    gap: 20px;
    margin-top: 10px;
}

/* Layout Variations */
.oef-choice-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--oef-img-size, 140px) + 34px)), 1fr));
    gap: 16px;
}

.oef-choice-layout-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.oef-choice-layout-row,
.oef-checkbox-group.oef-choice-layout-row,
.oef-radio-group.oef-choice-layout-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x proximity !important;
    gap: 14px !important;
    padding: 6px 4px 14px 4px !important;
    align-items: stretch !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.oef-choice-layout-row.is-overflowing,
.oef-choice-layout-tablet-row.is-overflowing,
.oef-choice-layout-mobile-row.is-overflowing,
.oef-checkbox-group.oef-choice-layout-row.is-overflowing,
.oef-radio-group.oef-choice-layout-row.is-overflowing,
[class*="oef-choice-layout-row"].is-overflowing,
[class*="oef-choice-layout-tablet-row"].is-overflowing,
[class*="oef-choice-layout-mobile-row"].is-overflowing {
    cursor: grab;
}

.oef-choice-layout-row.is-dragging,
.oef-choice-layout-tablet-row.is-dragging,
.oef-choice-layout-mobile-row.is-dragging,
.oef-checkbox-group.oef-choice-layout-row.is-dragging,
.oef-radio-group.oef-choice-layout-row.is-dragging,
[class*="oef-choice-layout-row"].is-dragging,
[class*="oef-choice-layout-tablet-row"].is-dragging,
[class*="oef-choice-layout-mobile-row"].is-dragging {
    cursor: grabbing !important;
    user-select: none !important;
    scroll-snap-type: none !important;
}

.oef-choice-layout-row.is-dragging .oef-choice-item,
.oef-choice-layout-tablet-row.is-dragging .oef-choice-item,
.oef-choice-layout-mobile-row.is-dragging .oef-choice-item,
.oef-checkbox-group.oef-choice-layout-row.is-dragging .oef-choice-item,
.oef-radio-group.oef-choice-layout-row.is-dragging .oef-choice-item,
[class*="oef-choice-layout-row"].is-dragging .oef-choice-item,
[class*="oef-choice-layout-tablet-row"].is-dragging .oef-choice-item,
[class*="oef-choice-layout-mobile-row"].is-dragging .oef-choice-item {
    pointer-events: none !important;
}

.oef-choice-layout-row .oef-choice-item,
.oef-checkbox-group.oef-choice-layout-row .oef-choice-item,
.oef-radio-group.oef-choice-layout-row .oef-choice-item {
    flex: 0 0 auto !important;
    scroll-snap-align: start !important;
}

.oef-choice-layout-wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 12px 18px !important;
    padding: 0 !important;
    align-items: center !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.oef-choice-layout-wrap .oef-choice-item {
    flex: 0 0 auto !important;
}

.oef-choice-layout-2-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.oef-choice-layout-3-column {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.oef-choice-layout-4-column {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.oef-choice-layout-2-column .oef-choice-item,
.oef-choice-layout-3-column .oef-choice-item,
.oef-choice-layout-4-column .oef-choice-item,
.oef-choice-layout-2-column .oef-choice-card,
.oef-choice-layout-3-column .oef-choice-card,
.oef-choice-layout-4-column .oef-choice-card {
    width: 100% !important;
    box-sizing: border-box !important;
}

.oef-choice-style-basic.oef-choice-layout-2-column,
.oef-choice-style-basic.oef-choice-layout-3-column,
.oef-choice-style-basic.oef-choice-layout-4-column {
    display: grid !important;
    gap: 8px 16px !important;
}

.oef-choice-style-basic.oef-choice-layout-2-column {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.oef-choice-style-basic.oef-choice-layout-3-column {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.oef-choice-style-basic.oef-choice-layout-4-column {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.oef-choice-style-fancy.oef-choice-layout-2-column,
.oef-choice-style-fancy.oef-choice-layout-3-column,
.oef-choice-style-fancy.oef-choice-layout-4-column {
    display: grid !important;
    gap: 12px !important;
}

.oef-choice-style-fancy.oef-choice-layout-2-column {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.oef-choice-style-fancy.oef-choice-layout-3-column {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.oef-choice-style-fancy.oef-choice-layout-4-column {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* Image Choices Layout Variations */
.oef-choice-style-image.oef-choice-layout-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.oef-choice-style-image.oef-choice-layout-row,
.oef-choice-layout-row:has(.oef-choice-image),
.oef-checkbox-group.oef-choice-style-image.oef-choice-layout-row,
.oef-radio-group.oef-choice-style-image.oef-choice-layout-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x proximity !important;
    gap: 16px !important;
    padding: 6px 4px 14px 4px !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.oef-choice-style-image.oef-choice-layout-row .oef-choice-item,
.oef-choice-layout-row .oef-choice-item:has(.oef-choice-image),
.oef-checkbox-group.oef-choice-layout-row .oef-choice-item:has(.oef-choice-image),
.oef-radio-group.oef-choice-layout-row .oef-choice-item:has(.oef-choice-image) {
    flex: 0 0 auto !important;
    width: var(--oef-img-size, 140px) !important;
    min-width: var(--oef-img-size, 140px) !important;
    max-width: none !important;
    box-sizing: border-box !important;
    scroll-snap-align: start !important;
}

.oef-choice-style-image.oef-choice-layout-wrap,
.oef-choice-layout-wrap:has(.oef-choice-image),
.oef-checkbox-group.oef-choice-style-image.oef-choice-layout-wrap,
.oef-radio-group.oef-choice-style-image.oef-choice-layout-wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.oef-choice-style-image.oef-choice-layout-wrap .oef-choice-item,
.oef-choice-layout-wrap .oef-choice-item:has(.oef-choice-image),
.oef-checkbox-group.oef-choice-layout-wrap .oef-choice-item:has(.oef-choice-image),
.oef-radio-group.oef-choice-layout-wrap .oef-choice-item:has(.oef-choice-image) {
    flex: 0 0 auto !important;
    width: var(--oef-img-size, 140px) !important;
    min-width: var(--oef-img-size, 140px) !important;
    box-sizing: border-box !important;
}

.oef-choice-style-image.oef-choice-layout-grid,
.oef-choice-layout-grid:has(.oef-choice-image),
.oef-checkbox-group.oef-choice-style-image.oef-choice-layout-grid,
.oef-radio-group.oef-choice-style-image.oef-choice-layout-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--oef-img-size, 140px) + 34px)), 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 5px 0;
}

.oef-choice-style-image.oef-choice-layout-2-column {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.oef-choice-style-image.oef-choice-layout-3-column {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.oef-choice-style-image.oef-choice-layout-4-column {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.oef-choice-layout-grid .oef-choice-item,
.oef-choice-style-image.oef-choice-layout-grid .oef-choice-item,
.oef-choice-layout-grid .oef-choice-item:has(.oef-choice-image),
.oef-choice-style-image.oef-choice-layout-2-column .oef-choice-item,
.oef-choice-style-image.oef-choice-layout-3-column .oef-choice-item,
.oef-choice-style-image.oef-choice-layout-4-column .oef-choice-item,
.oef-choice-style-basic.oef-choice-layout-grid .oef-choice-item,
.oef-choice-style-basic.oef-choice-layout-2-column .oef-choice-item,
.oef-choice-style-basic.oef-choice-layout-3-column .oef-choice-item,
.oef-choice-style-basic.oef-choice-layout-4-column .oef-choice-item,
.oef-choice-style-fancy.oef-choice-layout-grid .oef-choice-item,
.oef-choice-style-fancy.oef-choice-layout-2-column .oef-choice-item,
.oef-choice-style-fancy.oef-choice-layout-3-column .oef-choice-item,
.oef-choice-style-fancy.oef-choice-layout-4-column .oef-choice-item,
[class*="oef-choice-layout-grid"]:not([class*="oef-choice-layout-row"]):not([class*="oef-choice-layout-tablet-row"]):not([class*="oef-choice-layout-mobile-row"]) .oef-choice-item,
[class*="oef-choice-layout-tablet-grid"]:not([class*="oef-choice-layout-tablet-row"]):not([class*="oef-choice-layout-mobile-row"]) .oef-choice-item,
[class*="oef-choice-layout-mobile-grid"]:not([class*="oef-choice-layout-mobile-row"]) .oef-choice-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
}

/* Base Choice Item - Standard Spacing */
.oef-choice-item {
    position: relative;
    cursor: pointer;
    user-select: none;
    margin-bottom: 10px;
}

/* Image Card Look - Applied to both :has(.oef-choice-image) and .oef-choice-style-image */
.oef-choice-item:has(.oef-choice-image),
.oef-choice-style-image .oef-choice-item {
    position: relative !important;
    border: 2px solid #dcdcde;
    border-radius: 12px;
    padding: 15px;
    background: var(--oef-choice-bg, #fff);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    box-sizing: border-box;
}

.oef-choice-item:has(.oef-choice-image):hover,
.oef-choice-style-image .oef-choice-item:hover {
    border-color: #2271b1;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.oef-choice-item.is-selected:has(.oef-choice-image),
.oef-choice-style-image .oef-choice-item.is-selected {
    border-color: var(--oef-accent, #2271b1);
    background-color: color-mix(in srgb, var(--oef-accent, #2271b1) 8%, var(--oef-choice-bg, #ffffff));
    box-shadow: 0 0 0 1px var(--oef-accent, #2271b1), 0 8px 20px color-mix(in srgb, var(--oef-accent, #2271b1) 15%, transparent);
}

/* Selection Indicator - Centered over the Image specifically */
.oef-choice-item:has(.oef-choice-image) input[type="checkbox"],
.oef-choice-item:has(.oef-choice-image) input[type="radio"],
.oef-choice-style-image .oef-choice-item input[type="checkbox"],
.oef-choice-style-image .oef-choice-item input[type="radio"] {
    position: absolute !important;
    left: 50% !important;
    top: calc( (var(--oef-img-size, 140px) * 0.75) / 2 + 15px ) !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) scale(1) !important;
    width: 24px !important;
    height: 24px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 10 !important;
    margin: 0 !important;
}

/* Precise centering over the image part in Card mode (Image on Top) */
.oef-display-card .oef-choice-item:has(.oef-choice-image) input,
.oef-display-card.oef-choice-style-image .oef-choice-item input {
    top: calc( (var(--oef-img-size, 140px) * 0.75) / 2 + 15px ) !important;
    bottom: auto !important;
}

/* Precise centering over the image part in Label-Image mode (Image on Bottom) */
.oef-display-label-image .oef-choice-item:has(.oef-choice-image) input,
.oef-display-label-image.oef-choice-style-image .oef-choice-item input {
    top: auto !important;
    bottom: calc( (var(--oef-img-size, 140px) * 0.75) / 2 + 15px ) !important;
}

.oef-choice-item:has(.oef-choice-image) input:checked,
.oef-choice-style-image .oef-choice-item input:checked {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1.2) !important;
}

.oef-choice-item:has(.oef-choice-image) input[type="checkbox"],
.oef-choice-style-image .oef-choice-item input[type="checkbox"] {
    border-radius: 6px !important;
    background-color: #ffffff !important;
    border: 2px solid #dcdcde !important;
}

.oef-choice-item:has(.oef-choice-image) input[type="checkbox"]::after,
.oef-choice-item:has(.oef-choice-image) input[type="checkbox"]::before,
.oef-choice-style-image .oef-choice-item input[type="checkbox"]::after,
.oef-choice-style-image .oef-choice-item input[type="checkbox"]::before {
    content: none !important;
    display: none !important;
}

.oef-choice-item:has(.oef-choice-image) input[type="checkbox"]:checked,
.oef-choice-style-image .oef-choice-item input[type="checkbox"]:checked {
    border-color: var(--oef-accent, #16a34a) !important;
    background-color: var(--oef-accent, #16a34a) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3e%3cpath fill=%27none%27 stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%273%27 d=%27m6 10 3 3 6-6%27/%3e%3c/svg%3e") !important;
    background-size: 14px 14px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--oef-accent, #16a34a) 40%, transparent) !important;
}

.oef-choice-item:has(.oef-choice-image) input[type="radio"],
.oef-choice-style-image .oef-choice-item input[type="radio"] {
    border-radius: 50% !important;
    background-color: #ffffff !important;
    border: 2px solid #dcdcde !important;
}

.oef-choice-item:has(.oef-choice-image) input[type="radio"]:checked,
.oef-choice-style-image .oef-choice-item input[type="radio"]:checked {
    border-color: var(--oef-accent, #2271b1) !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--oef-accent, #2271b1) 40%, transparent) !important;
}

.oef-choice-item:focus-within .oef-option-label,
.oef-choice-style-image .oef-choice-item:focus-within .oef-option-label {
    border-color: var(--oef-accent, #2271b1);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--oef-accent, #2271b1) 20%, transparent);
}

/* Accessibility Focus Rings: keyboard navigation & tabbing visibility */
.oef-choice-item:focus-within,
.oef-choice-style-image .oef-choice-item:focus-within {
    outline: 2px solid #2271b1 !important;
    outline-offset: 2px !important;
}

.oef-custom-select-toggle:focus-visible,
.oef-custom-select-toggle:focus {
    outline: 2px solid #2271b1 !important;
    outline-offset: 1px !important;
    border-color: #2271b1 !important;
}

.oef-form-field select:focus-visible,
.oef-form-field select:focus {
    outline: 2px solid #2271b1 !important;
    outline-offset: 1px !important;
    border-color: #2271b1 !important;
}

.oef-choice-image {
    width: 100%;
    max-width: var(--oef-img-size, 100%);
    aspect-ratio: 4 / 3;
    height: auto;
    max-height: calc(var(--oef-img-size, 140px) * 0.75);
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    background-color: transparent;
    margin: 0 auto;
    box-sizing: border-box;
}

.oef-choice-image.oef-choice-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    box-sizing: border-box;
}

/* Display Modes */
.oef-display-card .oef-choice-image { margin-bottom: 12px; }
.oef-display-label-image .oef-option-label { margin-bottom: 12px; }
.oef-display-image .oef-option-label { 
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}
.oef-display-image .oef-option-text {
    display: none !important;
}

/* Centering for Image Only mode */
.oef-display-image .oef-choice-item:has(.oef-choice-image) input,
.oef-display-image.oef-choice-style-image .oef-choice-item input {
    top: 50% !important;
    bottom: auto !important;
}

/* Remove card-specific centering when inside an Image Choice card */
.oef-choice-item:has(.oef-choice-image) .oef-option-label,
.oef-choice-style-image .oef-choice-item .oef-option-label {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    justify-content: center !important;
    min-height: auto !important;
    position: static !important;
}

.oef-option-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 600;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 14px;
    color: #1d2327;
}

.oef-option-label input {
    margin-right: 8px;
}

/* 1.5 Rows Limit Wrapper for Image Choices */
.oef-choice-limit-wrapper {
    position: relative;
    width: 100%;
}

.oef-choice-limit-wrapper .oef-choice-limited-rows,
.oef-choice-limit-wrapper .oef-choice-preview-group {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Gradient Fade Overlay across bottom of 1.5 rows */
.oef-choice-limit-wrapper .oef-choice-fade-overlay {
    position: absolute;
    bottom: 46px;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.96) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.oef-choice-limit-wrapper.is-expanded .oef-choice-fade-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Show More / Show Less Button Container */
.oef-choice-show-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    position: relative;
    z-index: 6;
}

/* Pill Action Button */
.oef-show-more-choices-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 24px;
    background: #ffffff;
    color: var(--oef-accent, #2271b1);
    border: 1.5px solid var(--oef-accent, #2271b1);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    user-select: none;
    outline: none;
    line-height: 1.4;
}

.oef-show-more-choices-btn:hover {
    background: #f0f7ff;
    border-color: var(--oef-accent, #135e96);
    color: var(--oef-accent, #135e96);
    filter: brightness(0.9);
    box-shadow: 0 4px 14px rgba(34, 113, 177, 0.18);
    transform: translateY(-1px);
}

.oef-show-more-choices-btn:active {
    transform: translateY(0);
}

.oef-show-more-choices-btn .oef-show-more-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.oef-choice-limit-wrapper.is-expanded .oef-show-more-choices-btn .oef-show-more-icon {
    transform: rotate(180deg);
}

/* Scroll Layout Overrides: Hide Show More button & fade overlay, and release max-height */
.oef-choice-limit-wrapper.is-scroll-layout .oef-choice-show-more-wrap,
.oef-choice-limit-wrapper.is-scroll-layout .oef-choice-fade-overlay,
.oef-choice-limit-wrapper:has(.oef-choice-layout-row:not([class*="oef-choice-layout-tablet-"]):not([class*="oef-choice-layout-mobile-"])) .oef-choice-show-more-wrap,
.oef-choice-limit-wrapper:has(.oef-choice-layout-row:not([class*="oef-choice-layout-tablet-"]):not([class*="oef-choice-layout-mobile-"])) .oef-choice-fade-overlay,
.oef-choice-layout-row ~ .oef-choice-fade-overlay,
.oef-choice-layout-row ~ .oef-choice-show-more-wrap {
    display: none !important;
}

.oef-choice-limit-wrapper.is-scroll-layout .oef-choice-limited-rows,
.oef-choice-limit-wrapper:has(.oef-choice-layout-row:not([class*="oef-choice-layout-tablet-"]):not([class*="oef-choice-layout-mobile-"])) .oef-choice-limited-rows,
.oef-choice-layout-row.oef-choice-limited-rows,
.oef-choice-limit-wrapper .oef-choice-layout-row {
    max-height: none !important;
    overflow-y: hidden !important;
}

@media (max-width: 1024px) {
    .oef-choice-limit-wrapper:has(.oef-choice-layout-tablet-row) .oef-choice-show-more-wrap,
    .oef-choice-limit-wrapper:has(.oef-choice-layout-tablet-row) .oef-choice-fade-overlay,
    .oef-choice-layout-tablet-row ~ .oef-choice-fade-overlay,
    .oef-choice-layout-tablet-row ~ .oef-choice-show-more-wrap {
        display: none !important;
    }
    .oef-choice-limit-wrapper:has(.oef-choice-layout-tablet-row) .oef-choice-limited-rows,
    .oef-choice-layout-tablet-row.oef-choice-limited-rows,
    .oef-choice-limit-wrapper .oef-choice-layout-tablet-row {
        max-height: none !important;
        overflow-y: hidden !important;
    }
}

@media (max-width: 768px) {
    .oef-choice-limit-wrapper:has(.oef-choice-layout-mobile-row) .oef-choice-show-more-wrap,
    .oef-choice-limit-wrapper:has(.oef-choice-layout-mobile-row) .oef-choice-fade-overlay,
    .oef-choice-layout-mobile-row ~ .oef-choice-fade-overlay,
    .oef-choice-layout-mobile-row ~ .oef-choice-show-more-wrap {
        display: none !important;
    }
    .oef-choice-limit-wrapper:has(.oef-choice-layout-mobile-row) .oef-choice-limited-rows,
    .oef-choice-layout-mobile-row.oef-choice-limited-rows,
    .oef-choice-limit-wrapper .oef-choice-layout-mobile-row {
        max-height: none !important;
        overflow-y: hidden !important;
    }
}

.oef-device-tablet .oef-choice-limit-wrapper:has(.oef-choice-layout-tablet-row) .oef-choice-show-more-wrap,
.oef-device-tablet .oef-choice-limit-wrapper:has(.oef-choice-layout-tablet-row) .oef-choice-fade-overlay,
.oef-device-tablet .oef-choice-layout-tablet-row ~ .oef-choice-fade-overlay,
.oef-device-tablet .oef-choice-layout-tablet-row ~ .oef-choice-show-more-wrap {
    display: none !important;
}
.oef-device-tablet .oef-choice-limit-wrapper:has(.oef-choice-layout-tablet-row) .oef-choice-limited-rows,
.oef-device-tablet .oef-choice-layout-tablet-row.oef-choice-limited-rows,
.oef-device-tablet .oef-choice-limit-wrapper .oef-choice-layout-tablet-row {
    max-height: none !important;
    overflow-y: hidden !important;
}

.oef-device-mobile .oef-choice-limit-wrapper:has(.oef-choice-layout-mobile-row) .oef-choice-show-more-wrap,
.oef-device-mobile .oef-choice-limit-wrapper:has(.oef-choice-layout-mobile-row) .oef-choice-fade-overlay,
.oef-device-mobile .oef-choice-layout-mobile-row ~ .oef-choice-fade-overlay,
.oef-device-mobile .oef-choice-layout-mobile-row ~ .oef-choice-show-more-wrap {
    display: none !important;
}
.oef-device-mobile .oef-choice-limit-wrapper:has(.oef-choice-layout-mobile-row) .oef-choice-limited-rows,
.oef-device-mobile .oef-choice-layout-mobile-row.oef-choice-limited-rows,
.oef-device-mobile .oef-choice-limit-wrapper .oef-choice-layout-mobile-row {
    max-height: none !important;
    overflow-y: hidden !important;
}

/* Custom Image Dropdown */
.oef-custom-select {
    position: relative;
    width: 100%;
    max-width: 100%;
    font-family: inherit;
    box-sizing: border-box !important;
}

.oef-custom-select-toggle {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #dcdcde;
    border-radius: 8px;
    background: #fbfbfc;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    color: #1d2327;
    box-sizing: border-box !important;
}

.oef-selected-image {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    margin-right: 10px;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.oef-selected-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.oef-custom-select.is-open .oef-custom-select-toggle {
    border-color: #2271b1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
    border-radius: 8px 8px 0 0;
}

.oef-form-field select option {
    color: #1e293b !important;
    background-color: #ffffff !important;
}

.oef-custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    color: #1e293b;
    border: 1.5px solid #2271b1;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.oef-custom-select.is-open .oef-custom-select-dropdown {
    display: block;
}

.oef-custom-select-toggle:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.2);
}

.oef-custom-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    gap: 12px;
    color: #1e293b;
}

.oef-custom-option:hover,
.oef-custom-option.is-focused {
    background: #f0f7ff;
    color: #1e293b;
}

.oef-custom-option.is-selected {
    background: #e7f3ff;
    color: #0f172a;
    font-weight: 600;
}

.oef-custom-option-image {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.oef-custom-option-label {
    flex: 1;
    font-size: 14px;
    color: inherit;
}

/* Unified Rating & NPS Scale */
.oef-rating-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.oef-rating-option {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s;
}

.oef-rating-option input {
    display: none !important;
}

/* Box Style */
.oef-style-box .oef-rating-box {
    width: 38px;
    height: 38px;
    border: 1.5px solid #dcdcde;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fbfbfc;
    font-weight: 700;
    font-size: 14px;
    color: #1d2327;
}

.oef-style-box .oef-rating-option:hover .oef-rating-box {
    border-color: #2271b1;
    background: #f0f7ff;
}

.oef-style-box .oef-rating-option input:checked + .oef-rating-box {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

/* Icon Styles (Star, Heart, Thumb) */
.oef-rating-container .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #dcdcde;
    transition: all 0.2s;
}

.oef-rating-option:hover .dashicons {
    color: #ffb900;
    transform: scale(1.1);
}

.oef-rating-option input:checked + .dashicons {
    color: #ffb900;
}

.oef-style-heart .oef-rating-option input:checked + .dashicons,
.oef-style-heart .oef-rating-option:hover .dashicons {
    color: #d63638;
}

.oef-style-thumb .oef-rating-option input:checked + .dashicons,
.oef-style-thumb .oef-rating-option:hover .dashicons {
    color: #2271b1;
}

.oef-rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #646970;
    font-weight: 500;
    padding: 0 5px;
}

/* Likert Table */
.oef-likert-table-wrapper {
    overflow-x: auto;
}

.oef-likert-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dcdcde;
    font-size: 14px;
}

.oef-likert-table th, 
.oef-likert-table td {
    padding: 12px;
    border: 1px solid #dcdcde;
    text-align: left;
}

.oef-likert-table th {
    background: #f6f7f7;
    font-weight: 600;
}

.oef-likert-cell {
    text-align: center !important;
}

.oef-likert-cell input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* Modern Style */
.oef-likert-style-modern .oef-likert-table {
    border-collapse: separate;
    border-spacing: 0 10px;
    border: none;
    background: transparent;
}

.oef-likert-style-modern .oef-likert-table th {
    background: transparent;
    border: none;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    color: #8c8f94;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    text-align: center;
}

.oef-likert-style-modern .oef-likert-table tbody tr {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.oef-likert-style-modern .oef-likert-table tbody tr:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.oef-likert-style-modern .oef-likert-table td {
    border: none;
    padding: 15px;
}

.oef-likert-style-modern .oef-likert-table td:first-child {
    border-radius: 8px 0 0 8px;
    font-weight: 600;
    color: #1d2327;
}

.oef-likert-style-modern .oef-likert-table td:last-child {
    border-radius: 0 8px 8px 0;
}

/* Boxed Style */
.oef-likert-style-boxed .oef-likert-boxed-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.oef-likert-style-boxed .oef-likert-boxed-item {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.oef-likert-style-boxed .oef-likert-row-label {
    font-weight: 700;
    margin-bottom: 15px;
    color: #1d2327;
    font-size: 16px;
}

.oef-likert-style-boxed .oef-likert-boxed-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.oef-likert-style-boxed .oef-likert-boxed-choice {
    flex: 1 0 calc(20% - 10px);
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    border: 1.5px solid #dcdcde;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fbfbfc;
    text-align: center;
}

.oef-likert-style-boxed .oef-likert-boxed-choice:hover {
    border-color: #2271b1;
    background: #fff;
}

.oef-likert-style-boxed .oef-likert-boxed-choice input {
    margin-right: 8px;
}

.oef-likert-style-boxed .oef-likert-boxed-choice.is-selected {
    border-color: #2271b1;
    background: #f0f7ff;
    color: #2271b1;
}

/* Signature Pad */
.oef-signature-pad {
    border: 1.5px solid #dcdcde;
    border-radius: 8px;
    background: #ffffff;
    padding: 10px 12px;
    position: relative;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.oef-signature-pad:focus-within {
    border-color: var(--oef-accent, #2271b1);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--oef-accent, #2271b1) 15%, transparent);
}

.oef-signature-pad canvas {
    width: 100%;
    height: 120px;
    cursor: crosshair;
    display: block;
    background: transparent;
    border: none;
    touch-action: none;
}

.oef-sig-clear {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 4px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.oef-sig-clear:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: var(--oef-accent, #2271b1);
}

/* Repeater */
.oef-repeater-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.oef-repeater-remove {
    color: #d63638;
    cursor: pointer;
    font-size: 20px;
}

/* Captcha */
.oef-captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f6f7f7;
    border-radius: 8px;
    border: 1px solid #dcdcde;
}

.oef-captcha-question {
    font-weight: 600;
    color: #2271b1;
}

/* Submit Button */
.oef-submit-btn {
    padding: 14px 32px;
    background-color: #2271b1;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.oef-submit-btn:hover {
    background-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.oef-submit-btn:active {
    transform: translateY(0);
}

/* Response Messages */
.oef-form-response {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.oef-form-response.oef-standalone,
.oef-form-response:only-child {
    margin-top: 0;
    padding: 20px 24px;
    font-size: 15px;
    line-height: 1.6;
}

.oef-form-response.success {
    background-color: #edfaef;
    color: #1e5e24;
    border: 1px solid #c9e7cb;
}

.oef-form-response.error {
    background-color: #fcf0f1;
    color: #a00;
    border: 1px solid #f5d3d5;
}

/* Layout Grid */
.oef-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.oef-col {
    flex: 1;
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
}

.oef-divider {
    border: 0;
    border-top: 1px solid #dcdcde;
    margin: 32px 0;
}

.oef-divider.oef-divider-dotted {
    border-top-style: dotted;
}

.oef-divider.oef-divider-dashed {
    border-top-style: dashed;
}

.oef-divider.oef-divider-small {
    margin: 16px 0;
}

.oef-divider.oef-divider-medium {
    margin: 32px 0;
}

.oef-divider.oef-divider-large {
    margin: 64px 0;
}

.oef-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: oef-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-left: 12px;
}

@media (max-width: 600px) {
    .oef-name-grid {
        gap: 12px;
    }
    .oef-address-row {
        flex-direction: column;
    }
}

@keyframes oef-spin {
    to { transform: rotate(360deg); }
}

/* File Upload Styling */
.oef-type-file input[type="file"],
.oef-type-camera input[type="file"] {
    width: 100%;
    border: 2px dashed #dcdcde;
    padding: 20px;
    background: #fbfbfc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #646970;
}

.oef-type-file input[type="file"]:hover,
.oef-type-camera input[type="file"]:hover {
    border-color: #2271b1;
    background: rgba(34, 113, 177, 0.05);
}

.oef-type-file input[type="file"]::file-selector-button,
.oef-type-camera input[type="file"]::file-selector-button {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #dcdcde;
    background: #fff;
    cursor: pointer;
    margin-right: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.oef-type-file input[type="file"]::file-selector-button:hover,
.oef-type-camera input[type="file"]::file-selector-button:hover {
    background: #f6f7f7;
    border-color: #2271b1;
}

/* Entry Preview Styles */
.oef-entry-preview-container {
    background: #fbfbfc;
    border: 1.5px solid #dcdcde;
    border-radius: 12px;
    padding: 25px;
    margin-top: 10px;
}

.oef-entry-preview-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oef-preview-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.oef-preview-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.oef-preview-label {
    font-weight: 600;
    color: #646970;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oef-preview-value {
    font-weight: 500;
    color: #1d2327;
    text-align: right;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.oef-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.oef-preview-item-img {
    width: 32px;
    height: 32px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.oef-preview-signature .oef-preview-item-img {
    width: 150px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #fff;
}

.oef-preview-item-text {
    line-height: 1.2;
}

.oef-entry-preview-loading,
.oef-entry-preview-empty {
    text-align: center;
    color: #8c8f94;
    font-style: italic;
    padding: 20px 0;
}

@media (max-width: 600px) {
    .oef-preview-row {
        flex-direction: column;
        gap: 4px;
    }
    .oef-preview-value {
        text-align: left;
        max-width: 100%;
        align-items: flex-start;
    }
    .oef-preview-item {
        justify-content: flex-start;
    }
}

/* Modern File Dropzone */
.oef-file-dropzone {
    position: relative;
    border: 2px dashed #2271b1;
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    background: rgba(34, 113, 177, 0.02);
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 10px;
    color: #646970;
}

.oef-file-dropzone:hover, .oef-file-dropzone.drag-over {
    border-color: #135e96;
    background: rgba(34, 113, 177, 0.04);
}

.oef-file-dropzone-inner {
    pointer-events: none;
}

.oef-file-dropzone-icon {
    margin-bottom: 12px;
}

.oef-file-dropzone-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #2271b1;
}

.oef-file-dropzone-text strong {
    display: block;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 4px;
    font-size: 14px;
}

.oef-file-dropzone-text p {
    margin: 0;
    font-size: 12px;
    color: #8c8f94;
}

.oef-file-preview-container {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.oef-file-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-size: 13px;
    color: #2c3338;
}

.oef-file-preview-name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oef-file-preview-remove {
    cursor: pointer;
    color: #d63638;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}

.oef-file-preview-remove:hover {
    color: #b32d2e;
}

/* Standardized Radio Button Styling (Front-end) */
.oef-option-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 18px !important;
    border: 1.5px solid #dcdcde !important;
    border-radius: 10px !important;
    background: var(--oef-choice-bg, #fff) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #1d2327 !important;
    justify-content: flex-start !important;
    margin-bottom: 0 !important;
}

.oef-option-label:hover {
    border-color: #2271b1 !important;
    background: #fbfbfc !important;
}

.oef-choice-item.is-selected .oef-option-label {
    border-color: var(--oef-accent, #2271b1) !important;
    background: color-mix(in srgb, var(--oef-accent, #2271b1) 8%, var(--oef-choice-bg, #ffffff)) !important;
}

.oef-option-label input[type="radio"],
.oef-form-field input[type="radio"],
.oef-choice-item input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    position: relative !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    transition: border-color 0.15s ease, background-color 0.15s ease !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
}

.oef-option-label input[type="radio"]::before,
.oef-form-field input[type="radio"]::before,
.oef-choice-item input[type="radio"]::before {
    content: "" !important;
    display: block !important;
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
    max-width: 10px !important;
    max-height: 10px !important;
    border-radius: 50% !important;
    background-color: var(--oef-accent, #2271b1) !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    transform: scale(0) !important;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

.oef-option-label input[type="radio"]:checked,
.oef-form-field input[type="radio"]:checked,
.oef-choice-item input[type="radio"]:checked {
    border-color: var(--oef-accent, #2271b1) !important;
    border-width: 2px !important;
    background: #ffffff !important;
}

.oef-option-label input[type="radio"]:checked::before,
.oef-form-field input[type="radio"]:checked::before,
.oef-choice-item input[type="radio"]:checked::before {
    transform: scale(1) !important;
    background-color: var(--oef-accent, #2271b1) !important;
}

.oef-conv-wrapper input[type="radio"]:checked {
    border-color: var(--oef-accent, #2271b1) !important;
}
.oef-conv-wrapper input[type="radio"]:checked::before {
    background-color: var(--oef-accent, #2271b1) !important;
}

.oef-option-label input[type="checkbox"]::before,
.oef-form-field input[type="checkbox"]::before,
.oef-choice-item input[type="checkbox"]::before {
    content: none !important;
    display: none !important;
}

.oef-option-label input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    border-radius: 6px !important;
    border: 2px solid #dcdcde !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #fff !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
}

.oef-option-label input[type="checkbox"]:checked,
.oef-form-field input[type="checkbox"]:checked,
.oef-choice-item input[type="checkbox"]:checked,
input[type="checkbox"].oef-checkbox:checked,
.oef-consent-checkbox:checked {
    border-color: var(--oef-accent, #16a34a) !important;
    background-color: var(--oef-accent, #16a34a) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3e%3cpath fill=%27none%27 stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%273%27 d=%27m6 10 3 3 6-6%27/%3e%3c/svg%3e") !important;
    background-size: 70% 70% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: #ffffff !important;
}

.oef-option-label input[type="checkbox"]:checked::after {
    content: none !important;
    display: none !important;
}

/* ==========================================================================
   Dark Mode Indigo / Dark Theme Support for Choice & Form Elements
   ========================================================================== */
.oef-theme-dark-slate,
.oef-is-dark,
[data-theme="dark-slate"],
.oef-block-wrapper.oef-theme-dark-slate,
.oef-block-wrapper.oef-is-dark {
    --oef-accent: rgb(79, 124, 255);
    color-scheme: dark;
}

.oef-theme-dark-slate .oef-option-label,
.oef-is-dark .oef-option-label,
[data-theme="dark-slate"] .oef-option-label {
    background: rgb(30, 35, 54) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: rgb(232, 236, 244) !important;
}

.oef-theme-dark-slate .oef-option-label:hover,
.oef-is-dark .oef-option-label:hover,
[data-theme="dark-slate"] .oef-option-label:hover,
.oef-theme-dark-slate .oef-choice-item:hover .oef-option-label,
.oef-is-dark .oef-choice-item:hover .oef-option-label,
[data-theme="dark-slate"] .oef-choice-item:hover .oef-option-label {
    background: rgba(79, 124, 255, 0.12) !important;
    border-color: rgb(79, 124, 255) !important;
}

.oef-theme-dark-slate .oef-choice-item.is-selected .oef-option-label,
.oef-is-dark .oef-choice-item.is-selected .oef-option-label,
[data-theme="dark-slate"] .oef-choice-item.is-selected .oef-option-label {
    background: rgba(79, 124, 255, 0.22) !important;
    border-color: rgb(79, 124, 255) !important;
    color: #ffffff !important;
}

.oef-theme-dark-slate .oef-option-text,
.oef-is-dark .oef-option-text,
[data-theme="dark-slate"] .oef-option-text,
.oef-theme-dark-slate .oef-choice-text,
.oef-is-dark .oef-choice-text,
[data-theme="dark-slate"] .oef-choice-text,
.oef-theme-dark-slate .oef-choice-label,
.oef-is-dark .oef-choice-label,
[data-theme="dark-slate"] .oef-choice-label {
    color: rgb(232, 236, 244) !important;
}

/* Radio button in Dark Mode */
.oef-theme-dark-slate .oef-option-label input[type="radio"],
.oef-theme-dark-slate .oef-form-field input[type="radio"],
.oef-theme-dark-slate .oef-choice-item input[type="radio"],
.oef-is-dark .oef-option-label input[type="radio"],
.oef-is-dark .oef-form-field input[type="radio"],
.oef-is-dark .oef-choice-item input[type="radio"],
[data-theme="dark-slate"] .oef-option-label input[type="radio"],
[data-theme="dark-slate"] .oef-form-field input[type="radio"],
[data-theme="dark-slate"] .oef-choice-item input[type="radio"],
.oef-theme-dark-slate input[type="radio"].oef-radio,
.oef-is-dark input[type="radio"].oef-radio,
[data-theme="dark-slate"] input[type="radio"].oef-radio,
.oef-theme-dark-slate .oef-matrix-radio,
.oef-is-dark .oef-matrix-radio,
[data-theme="dark-slate"] .oef-matrix-radio {
    background: rgb(30, 35, 54) !important;
    background-color: rgb(30, 35, 54) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.oef-theme-dark-slate .oef-option-label input[type="radio"]:checked,
.oef-theme-dark-slate .oef-form-field input[type="radio"]:checked,
.oef-theme-dark-slate .oef-choice-item input[type="radio"]:checked,
.oef-is-dark .oef-option-label input[type="radio"]:checked,
.oef-is-dark .oef-form-field input[type="radio"]:checked,
.oef-is-dark .oef-choice-item input[type="radio"]:checked,
[data-theme="dark-slate"] .oef-option-label input[type="radio"]:checked,
[data-theme="dark-slate"] .oef-form-field input[type="radio"]:checked,
[data-theme="dark-slate"] .oef-choice-item input[type="radio"]:checked,
.oef-theme-dark-slate input[type="radio"].oef-radio:checked,
.oef-is-dark input[type="radio"].oef-radio:checked,
[data-theme="dark-slate"] input[type="radio"].oef-radio:checked,
.oef-theme-dark-slate .oef-matrix-radio:checked,
.oef-is-dark .oef-matrix-radio:checked,
[data-theme="dark-slate"] .oef-matrix-radio:checked {
    background: rgb(30, 35, 54) !important;
    background-color: rgb(30, 35, 54) !important;
    border-color: rgb(79, 124, 255) !important;
}

.oef-theme-dark-slate .oef-option-label input[type="radio"]:checked::before,
.oef-theme-dark-slate .oef-form-field input[type="radio"]:checked::before,
.oef-theme-dark-slate .oef-choice-item input[type="radio"]:checked::before,
.oef-is-dark .oef-option-label input[type="radio"]:checked::before,
.oef-is-dark .oef-form-field input[type="radio"]:checked::before,
.oef-is-dark .oef-choice-item input[type="radio"]:checked::before,
[data-theme="dark-slate"] .oef-option-label input[type="radio"]:checked::before,
[data-theme="dark-slate"] .oef-form-field input[type="radio"]:checked::before,
[data-theme="dark-slate"] .oef-choice-item input[type="radio"]:checked::before {
    background-color: rgb(79, 124, 255) !important;
}

/* Checkbox button in Dark Mode */
.oef-theme-dark-slate .oef-option-label input[type="checkbox"],
.oef-theme-dark-slate .oef-form-field input[type="checkbox"],
.oef-theme-dark-slate .oef-choice-item:not(:has(.oef-choice-image)):not(.oef-choice-style-image .oef-choice-item) input[type="checkbox"],
.oef-is-dark .oef-option-label input[type="checkbox"],
.oef-is-dark .oef-form-field input[type="checkbox"],
.oef-is-dark .oef-choice-item:not(:has(.oef-choice-image)):not(.oef-choice-style-image .oef-choice-item) input[type="checkbox"],
[data-theme="dark-slate"] .oef-option-label input[type="checkbox"],
[data-theme="dark-slate"] .oef-form-field input[type="checkbox"],
[data-theme="dark-slate"] .oef-choice-item:not(:has(.oef-choice-image)):not(.oef-choice-style-image .oef-choice-item) input[type="checkbox"],
.oef-theme-dark-slate input[type="checkbox"].oef-checkbox,
.oef-is-dark input[type="checkbox"].oef-checkbox,
[data-theme="dark-slate"] input[type="checkbox"].oef-checkbox,
.oef-theme-dark-slate .oef-choice-style-basic input[type="checkbox"],
.oef-is-dark .oef-choice-style-basic input[type="checkbox"],
[data-theme="dark-slate"] .oef-choice-style-basic input[type="checkbox"],
.oef-theme-dark-slate .oef-consent-checkbox,
.oef-is-dark .oef-consent-checkbox,
[data-theme="dark-slate"] .oef-consent-checkbox {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: rgb(30, 35, 54) !important;
    background-color: rgb(30, 35, 54) !important;
    background-image: none !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 5px !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

.oef-theme-dark-slate .oef-option-label input[type="checkbox"]:checked,
.oef-theme-dark-slate .oef-form-field input[type="checkbox"]:checked,
.oef-theme-dark-slate .oef-choice-item:not(:has(.oef-choice-image)):not(.oef-choice-style-image .oef-choice-item) input[type="checkbox"]:checked,
.oef-is-dark .oef-option-label input[type="checkbox"]:checked,
.oef-is-dark .oef-form-field input[type="checkbox"]:checked,
.oef-is-dark .oef-choice-item:not(:has(.oef-choice-image)):not(.oef-choice-style-image .oef-choice-item) input[type="checkbox"]:checked,
[data-theme="dark-slate"] .oef-option-label input[type="checkbox"]:checked,
[data-theme="dark-slate"] .oef-form-field input[type="checkbox"]:checked,
[data-theme="dark-slate"] .oef-choice-item:not(:has(.oef-choice-image)):not(.oef-choice-style-image .oef-choice-item) input[type="checkbox"]:checked,
.oef-theme-dark-slate input[type="checkbox"].oef-checkbox:checked,
.oef-is-dark input[type="checkbox"].oef-checkbox:checked,
[data-theme="dark-slate"] input[type="checkbox"].oef-checkbox:checked,
.oef-theme-dark-slate .oef-choice-style-basic input[type="checkbox"]:checked,
.oef-is-dark .oef-choice-style-basic input[type="checkbox"]:checked,
[data-theme="dark-slate"] .oef-choice-style-basic input[type="checkbox"]:checked,
.oef-theme-dark-slate .oef-consent-checkbox:checked,
.oef-is-dark .oef-consent-checkbox:checked,
[data-theme="dark-slate"] .oef-consent-checkbox:checked {
    background-color: var(--oef-accent, #16a34a) !important;
    border-color: var(--oef-accent, #16a34a) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3e%3cpath fill=%27none%27 stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%273%27 d=%27m6 10 3 3 6-6%27/%3e%3c/svg%3e") !important;
    background-size: 70% 70% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: #ffffff !important;
}

.oef-theme-dark-slate .oef-option-label input[type="checkbox"]:checked::after,
.oef-is-dark .oef-option-label input[type="checkbox"]:checked::after,
[data-theme="dark-slate"] .oef-option-label input[type="checkbox"]:checked::after {
    content: none !important;
    display: none !important;
}

/* Image choices in Dark Mode */
.oef-theme-dark-slate .oef-choice-item:has(.oef-choice-image) input,
.oef-theme-dark-slate .oef-choice-style-image .oef-choice-item input,
.oef-is-dark .oef-choice-item:has(.oef-choice-image) input,
.oef-is-dark .oef-choice-style-image .oef-choice-item input,
[data-theme="dark-slate"] .oef-choice-item:has(.oef-choice-image) input,
[data-theme="dark-slate"] .oef-choice-style-image .oef-choice-item input {
    position: absolute !important;
    left: 50% !important;
    top: calc( (var(--oef-img-size, 140px) * 0.75) / 2 + 15px ) !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) scale(1) !important;
    width: 24px !important;
    height: 24px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 10 !important;
    margin: 0 !important;
    background-color: rgb(30, 35, 54) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.oef-theme-dark-slate .oef-display-label-image .oef-choice-item:has(.oef-choice-image) input,
.oef-theme-dark-slate .oef-display-label-image.oef-choice-style-image .oef-choice-item input,
.oef-is-dark .oef-display-label-image .oef-choice-item:has(.oef-choice-image) input,
.oef-is-dark .oef-display-label-image.oef-choice-style-image .oef-choice-item input,
[data-theme="dark-slate"] .oef-display-label-image .oef-choice-item:has(.oef-choice-image) input,
[data-theme="dark-slate"] .oef-display-label-image.oef-choice-style-image .oef-choice-item input {
    top: auto !important;
    bottom: calc( (var(--oef-img-size, 140px) * 0.75) / 2 + 15px ) !important;
}

.oef-theme-dark-slate .oef-display-image .oef-choice-item:has(.oef-choice-image) input,
.oef-theme-dark-slate .oef-display-image.oef-choice-style-image .oef-choice-item input,
.oef-is-dark .oef-display-image .oef-choice-item:has(.oef-choice-image) input,
.oef-is-dark .oef-display-image.oef-choice-style-image .oef-choice-item input,
[data-theme="dark-slate"] .oef-display-image .oef-choice-item:has(.oef-choice-image) input,
[data-theme="dark-slate"] .oef-display-image.oef-choice-style-image .oef-choice-item input {
    top: 50% !important;
    bottom: auto !important;
}

.oef-theme-dark-slate .oef-choice-item:has(.oef-choice-image) input:checked,
.oef-theme-dark-slate .oef-choice-style-image .oef-choice-item input:checked,
.oef-is-dark .oef-choice-item:has(.oef-choice-image) input:checked,
.oef-is-dark .oef-choice-style-image .oef-choice-item input:checked,
[data-theme="dark-slate"] .oef-choice-item:has(.oef-choice-image) input:checked,
[data-theme="dark-slate"] .oef-choice-style-image .oef-choice-item input:checked {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1.2) !important;
}

.oef-theme-dark-slate .oef-choice-item:has(.oef-choice-image) input[type="checkbox"]:checked,
.oef-theme-dark-slate .oef-choice-style-image .oef-choice-item input[type="checkbox"]:checked,
.oef-is-dark .oef-choice-item:has(.oef-choice-image) input[type="checkbox"]:checked,
.oef-is-dark .oef-choice-style-image .oef-choice-item input[type="checkbox"]:checked,
[data-theme="dark-slate"] .oef-choice-item:has(.oef-choice-image) input[type="checkbox"]:checked,
[data-theme="dark-slate"] .oef-choice-style-image .oef-choice-item input[type="checkbox"]:checked {
    background-color: var(--oef-accent, #16a34a) !important;
    border-color: var(--oef-accent, #16a34a) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3e%3cpath fill=%27none%27 stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%273%27 d=%27m6 10 3 3 6-6%27/%3e%3c/svg%3e") !important;
    background-size: 14px 14px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--oef-accent, #16a34a) 40%, transparent) !important;
}

.oef-theme-dark-slate .oef-choice-item:has(.oef-choice-image) input[type="radio"]:checked,
.oef-theme-dark-slate .oef-choice-style-image .oef-choice-item input[type="radio"]:checked,
.oef-is-dark .oef-choice-item:has(.oef-choice-image) input[type="radio"]:checked,
.oef-is-dark .oef-choice-style-image .oef-choice-item input[type="radio"]:checked,
[data-theme="dark-slate"] .oef-choice-item:has(.oef-choice-image) input[type="radio"]:checked,
[data-theme="dark-slate"] .oef-choice-style-image .oef-choice-item input[type="radio"]:checked {
    background-color: rgb(30, 35, 54) !important;
    border-color: rgb(79, 124, 255) !important;
    box-shadow: 0 4px 10px rgba(79, 124, 255, 0.4) !important;
}

.oef-theme-dark-slate .oef-choice-style-image .oef-choice-item,
.oef-theme-dark-slate .oef-choice-item:has(.oef-choice-image),
.oef-is-dark .oef-choice-style-image .oef-choice-item,
.oef-is-dark .oef-choice-item:has(.oef-choice-image),
[data-theme="dark-slate"] .oef-choice-style-image .oef-choice-item,
[data-theme="dark-slate"] .oef-choice-item:has(.oef-choice-image) {
    background: rgb(30, 35, 54) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: rgb(232, 236, 244) !important;
}

.oef-theme-dark-slate .oef-choice-style-image .oef-choice-item.is-selected,
.oef-theme-dark-slate .oef-choice-item.is-selected:has(.oef-choice-image),
.oef-is-dark .oef-choice-style-image .oef-choice-item.is-selected,
.oef-is-dark .oef-choice-item.is-selected:has(.oef-choice-image),
[data-theme="dark-slate"] .oef-choice-style-image .oef-choice-item.is-selected,
[data-theme="dark-slate"] .oef-choice-item.is-selected:has(.oef-choice-image) {
    border-color: rgb(79, 124, 255) !important;
    background-color: rgba(79, 124, 255, 0.22) !important;
    box-shadow: 0 0 0 1px rgb(79, 124, 255), 0 8px 20px rgba(79, 124, 255, 0.2) !important;
}

.oef-theme-dark-slate .oef-choice-item:has(.oef-choice-image) .oef-option-label,
.oef-theme-dark-slate .oef-choice-style-image .oef-choice-item .oef-option-label,
.oef-theme-dark-slate .oef-choice-item:has(.oef-choice-image):hover .oef-option-label,
.oef-theme-dark-slate .oef-choice-style-image .oef-choice-item:hover .oef-option-label,
.oef-theme-dark-slate .oef-choice-item.is-selected:has(.oef-choice-image) .oef-option-label,
.oef-theme-dark-slate .oef-choice-style-image .oef-choice-item.is-selected .oef-option-label,
.oef-is-dark .oef-choice-item:has(.oef-choice-image) .oef-option-label,
.oef-is-dark .oef-choice-style-image .oef-choice-item .oef-option-label,
.oef-is-dark .oef-choice-item:has(.oef-choice-image):hover .oef-option-label,
.oef-is-dark .oef-choice-style-image .oef-choice-item:hover .oef-option-label,
.oef-is-dark .oef-choice-item.is-selected:has(.oef-choice-image) .oef-option-label,
.oef-is-dark .oef-choice-style-image .oef-choice-item.is-selected .oef-option-label,
[data-theme="dark-slate"] .oef-choice-item:has(.oef-choice-image) .oef-option-label,
[data-theme="dark-slate"] .oef-choice-style-image .oef-choice-item .oef-option-label,
[data-theme="dark-slate"] .oef-choice-item:has(.oef-choice-image):hover .oef-option-label,
[data-theme="dark-slate"] .oef-choice-style-image .oef-choice-item:hover .oef-option-label,
[data-theme="dark-slate"] .oef-choice-item.is-selected:has(.oef-choice-image) .oef-option-label,
[data-theme="dark-slate"] .oef-choice-style-image .oef-choice-item.is-selected .oef-option-label {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    justify-content: center !important;
    min-height: auto !important;
}

/* Basic style choice in Dark Mode */
.oef-theme-dark-slate .oef-choice-style-basic .oef-option-label,
.oef-is-dark .oef-choice-style-basic .oef-option-label,
[data-theme="dark-slate"] .oef-choice-style-basic .oef-option-label,
.oef-theme-dark-slate.oef-choice-style-basic .oef-option-label,
.oef-is-dark.oef-choice-style-basic .oef-option-label,
[data-theme="dark-slate"].oef-choice-style-basic .oef-option-label {
    background: transparent !important;
    border: none !important;
    color: rgb(232, 236, 244) !important;
}

.oef-theme-dark-slate .oef-choice-style-basic input[type="checkbox"],
.oef-is-dark .oef-choice-style-basic input[type="checkbox"],
[data-theme="dark-slate"] .oef-choice-style-basic input[type="checkbox"],
.oef-theme-dark-slate.oef-choice-style-basic input[type="checkbox"],
.oef-is-dark.oef-choice-style-basic input[type="checkbox"],
[data-theme="dark-slate"].oef-choice-style-basic input[type="checkbox"] {
    accent-color: var(--oef-accent, #16a34a) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.oef-theme-dark-slate .oef-choice-style-basic input[type="radio"],
.oef-is-dark .oef-choice-style-basic input[type="radio"],
[data-theme="dark-slate"] .oef-choice-style-basic input[type="radio"],
.oef-theme-dark-slate.oef-choice-style-basic input[type="radio"],
.oef-is-dark.oef-choice-style-basic input[type="radio"],
[data-theme="dark-slate"].oef-choice-style-basic input[type="radio"] {
    accent-color: rgb(79, 124, 255) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Consent in Dark Mode */
.oef-theme-dark-slate .oef-consent-label,
.oef-is-dark .oef-consent-label,
[data-theme="dark-slate"] .oef-consent-label,
.oef-theme-dark-slate .oef-consent-text,
.oef-is-dark .oef-consent-text,
[data-theme="dark-slate"] .oef-consent-text {
    color: rgb(232, 236, 244) !important;
}

.oef-theme-dark-slate .oef-consent-terms-box,
.oef-is-dark .oef-consent-terms-box,
[data-theme="dark-slate"] .oef-consent-terms-box {
    background: rgb(24, 28, 42) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: rgb(232, 236, 244) !important;
}

.oef-theme-dark-slate .oef-consent-checkbox,
.oef-is-dark .oef-consent-checkbox,
[data-theme="dark-slate"] .oef-consent-checkbox {
    accent-color: rgb(79, 124, 255) !important;
}

/* Likert & Matrix in Dark Mode */
.oef-theme-dark-slate .oef-likert-table,
.oef-is-dark .oef-likert-table,
[data-theme="dark-slate"] .oef-likert-table {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.oef-theme-dark-slate .oef-likert-table th,
.oef-theme-dark-slate .oef-likert-table td,
.oef-is-dark .oef-likert-table th,
.oef-is-dark .oef-likert-table td,
[data-theme="dark-slate"] .oef-likert-table th,
[data-theme="dark-slate"] .oef-likert-table td {
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgb(232, 236, 244) !important;
}

.oef-theme-dark-slate .oef-likert-cell input[type="radio"],
.oef-is-dark .oef-likert-cell input[type="radio"],
[data-theme="dark-slate"] .oef-likert-cell input[type="radio"] {
    background: rgb(30, 35, 54) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    accent-color: rgb(79, 124, 255) !important;
}

/* Signature Pad in Dark Mode */
.oef-theme-dark-slate .oef-signature-pad,
.oef-is-dark .oef-signature-pad,
[data-theme="dark-slate"] .oef-signature-pad {
    background: rgb(30, 35, 54) !important;
    background-color: rgb(30, 35, 54) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    color: rgb(232, 236, 244) !important;
}

.oef-theme-dark-slate .oef-signature-pad:focus-within,
.oef-is-dark .oef-signature-pad:focus-within,
[data-theme="dark-slate"] .oef-signature-pad:focus-within {
    border-color: rgb(79, 124, 255) !important;
    box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.25) !important;
}

.oef-theme-dark-slate .oef-signature-pad canvas,
.oef-is-dark .oef-signature-pad canvas,
[data-theme="dark-slate"] .oef-signature-pad canvas {
    background: transparent !important;
    border: none !important;
    color: rgb(232, 236, 244) !important;
}

.oef-theme-dark-slate .oef-sig-clear,
.oef-is-dark .oef-sig-clear,
[data-theme="dark-slate"] .oef-sig-clear {
    background: rgba(255, 255, 255, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgb(232, 236, 244) !important;
}

.oef-theme-dark-slate .oef-sig-clear:hover,
.oef-is-dark .oef-sig-clear:hover,
[data-theme="dark-slate"] .oef-sig-clear:hover {
    background: rgba(79, 124, 255, 0.2) !important;
    background-color: rgba(79, 124, 255, 0.2) !important;
    border-color: rgb(79, 124, 255) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Choice Styles: Basic vs Fancy vs Image
   ========================================================================== */

/* --- Basic (Standard Browser Look) --- */
.oef-choice-style-basic.oef-choice-layout-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.oef-choice-style-basic.oef-choice-layout-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x proximity !important;
    gap: 20px !important;
    padding: 4px 4px 8px 4px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.oef-choice-style-basic.oef-choice-layout-wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    padding: 0 !important;
    overflow: visible !important;
}

.oef-choice-style-basic.oef-choice-layout-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)) !important;
    gap: 8px 16px !important;
}

.oef-choice-style-basic .oef-choice-item {
    margin-bottom: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 0 !important;
    width: auto !important;
}

.oef-choice-style-basic.oef-choice-layout-row .oef-choice-item {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    scroll-snap-align: start !important;
}

.oef-choice-style-basic.oef-choice-layout-wrap .oef-choice-item {
    flex: 0 0 auto !important;
}

.oef-choice-style-basic .oef-option-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 4px 2px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #1d2327 !important;
    cursor: pointer !important;
    transition: none !important;
    min-height: 0 !important;
    width: auto !important;
    line-height: 1.4 !important;
}

.oef-choice-style-basic .oef-option-label:hover,
.oef-choice-style-basic .oef-choice-item:hover .oef-option-label,
.oef-choice-style-basic .oef-choice-item.is-selected .oef-option-label {
    border: none !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Basic Radio Button Appearance */
.oef-choice-style-basic input[type="radio"],
.oef-choice-style-basic .oef-option-label input[type="radio"],
.oef-choice-style-basic .oef-choice-item input[type="radio"] {
    appearance: auto !important;
    -webkit-appearance: radio !important;
    -moz-appearance: radio !important;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
    margin: 0 6px 0 0 !important;
    padding: 0 !important;
    border: 1px solid #767676 !important;
    border-radius: 50% !important;
    background: initial !important;
    position: static !important;
    opacity: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    accent-color: var(--oef-accent, #2271b1) !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.oef-choice-style-basic input[type="radio"]::before,
.oef-choice-style-basic .oef-option-label input[type="radio"]::before,
.oef-choice-style-basic .oef-choice-item input[type="radio"]::before {
    content: none !important;
    display: none !important;
}

/* Basic Checkbox Appearance */
.oef-choice-style-basic input[type="checkbox"],
.oef-choice-style-basic .oef-option-label input[type="checkbox"],
.oef-choice-style-basic .oef-choice-item input[type="checkbox"] {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
    margin: 0 6px 0 0 !important;
    padding: 0 !important;
    border: 1px solid #767676 !important;
    border-radius: 3px !important;
    background: initial !important;
    position: static !important;
    opacity: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    accent-color: var(--oef-accent, #16a34a) !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.oef-choice-style-basic input[type="checkbox"]::before,
.oef-choice-style-basic input[type="checkbox"]::after,
.oef-choice-style-basic .oef-option-label input[type="checkbox"]::before,
.oef-choice-style-basic .oef-option-label input[type="checkbox"]::after,
.oef-choice-style-basic .oef-choice-item input[type="checkbox"]::before,
.oef-choice-style-basic .oef-choice-item input[type="checkbox"]::after {
    content: none !important;
    display: none !important;
}

/* --- Fancy (Pill / Card Look) Layout Adjustments --- */
.oef-choice-style-fancy.oef-choice-layout-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.oef-choice-style-fancy.oef-choice-layout-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x proximity !important;
    gap: 12px !important;
    padding: 4px 4px 10px 4px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.oef-choice-style-fancy.oef-choice-layout-wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 0 !important;
    overflow: visible !important;
}

.oef-choice-style-fancy.oef-choice-layout-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)) !important;
    gap: 12px !important;
}

.oef-choice-style-fancy .oef-choice-item {
    margin-bottom: 0 !important;
}

.oef-choice-style-fancy.oef-choice-layout-row .oef-choice-item {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    scroll-snap-align: start !important;
}

.oef-choice-style-fancy.oef-choice-layout-wrap .oef-choice-item {
    flex: 0 0 auto !important;
}

/* Repeater Enhancements */
.oef-repeater-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.oef-repeater-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oef-repeater-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    background: #fbfbfc;
    border: 1px solid #dcdcde;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
}

.oef-repeater-row:hover {
    border-color: #c3c4c7;
    background: #f6f7f7;
}

.oef-repeater-fields {
    flex: 1;
    display: flex;
    gap: 12px;
    min-width: 0; /* Important for flex children */
}

/* Force horizontal layout for rows mode with high specificity */
.oef-repeater-display-rows .oef-repeater-fields {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
}

.oef-repeater-field-col {
    min-width: 0;
    flex-basis: 0; /* Ensure flex-grow works correctly */
}

.oef-repeater-field-col input {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Blocks Mode */
.oef-repeater-display-blocks .oef-repeater-row {
    flex-direction: column;
    border: 1.5px dashed #dcdcde;
    background: #fff;
}

.oef-repeater-display-blocks .oef-repeater-fields {
    flex-direction: column !important;
    width: 100%;
    gap: 15px;
}

.oef-repeater-display-blocks .oef-repeater-field-item input {
    width: 100% !important;
}

.oef-repeater-display-blocks .oef-repeater-row-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* Row Actions */
.oef-repeater-row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  
}

.oef-repeater-remove-icon {
    color: #8c8f94;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.2s;
    line-height: 1;
}

.oef-repeater-remove-icon:hover {
    color: #d63638;
}

.oef-repeater-remove-btn {
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.oef-btn-link {
    background: none;
    border: none;
    color: #2271b1;
    text-decoration: underline;
    padding: 0;
    font-size: inherit;
    cursor: pointer;
}

.oef-btn-link:hover {
    color: #135e96;
    text-decoration: none;
}

/* Add Button Styling */
.oef-repeater-actions {
    display: flex;
}

.oef-repeater-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.oef-repeater-add.button {
    padding: 10px 20px;
}

.oef-repeater-add .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Mobile Responsiveness for Rows */
@media (max-width: 768px) {
    .oef-repeater-display-rows .oef-repeater-fields {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 10px !important;
    }
    
    .oef-repeater-field-col {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .oef-repeater-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .oef-repeater-row-actions {
        width: 100% !important;
        justify-content: flex-end !important;
    }
}
.oef-public-form [data-logic-hidden="true"] { display: none !important; }

/* Field Description */
.oef-field-description {
    font-size: 13px;
    color: #646970;
    line-height: 1.5;
    white-space: pre-line;
}

.oef-field-description.oef-desc-below,
.oef-field-description:not(.oef-desc-above) {
    margin-top: 8px;
    margin-bottom: 0;
}

.oef-field-description.oef-desc-above {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Map Field Frontend Styles */
.oef-map-field-wrapper {
    position: relative;
    width: 100%;
}

.oef-map-location-item {
    border: 1.5px solid #dcdcde;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.oef-map-location-item:hover {
    border-color: #2271b1;
    background: #fbfbfc;
}
.oef-map-location-item.active {
    border-color: #2271b1;
    background: #f0f7ff;
    box-shadow: 0 0 0 1px #2271b1, 0 4px 12px rgba(34, 113, 177, 0.1);
}

.oef-map-location-item input[type="radio"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.oef-loc-info {
    flex: 1;
    min-width: 0;
}

.oef-map-info-window {
    padding: 5px;
    max-width: 200px;
}

.oef-map-info-window strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.oef-choice-item.oef-choice-grayed {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #f0f0f1 !important;
    border-color: #dcdcde !important;
}

.oef-custom-option.oef-choice-grayed {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #f0f0f1;
}

/* Layout Ratios */
.oef-form-field.oef-type-layout { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
.oef-row.oef-layout-100 > .oef-col { flex: 0 0 100%; max-width: 100%; width: 100%; }
.oef-row.oef-layout-50-50 > .oef-col { flex: 0 0 calc(50% - 12px); }
.oef-row.oef-layout-33-67 > .oef-col:nth-child(1) { flex: 0 0 calc(33.33% - 16px); }
.oef-row.oef-layout-33-67 > .oef-col:nth-child(2) { flex: 0 0 calc(66.66% - 16px); }
.oef-row.oef-layout-67-33 > .oef-col:nth-child(1) { flex: 0 0 calc(66.66% - 16px); }
.oef-row.oef-layout-67-33 > .oef-col:nth-child(2) { flex: 0 0 calc(33.33% - 16px); }
.oef-row.oef-layout-25-75 > .oef-col:nth-child(1) { flex: 0 0 calc(25% - 18px); }
.oef-row.oef-layout-25-75 > .oef-col:nth-child(2) { flex: 0 0 calc(75% - 18px); }
.oef-row.oef-layout-75-25 > .oef-col:nth-child(1) { flex: 0 0 calc(75% - 18px); }
.oef-row.oef-layout-75-25 > .oef-col:nth-child(2) { flex: 0 0 calc(25% - 18px); }
.oef-row.oef-layout-35-65 > .oef-col:nth-child(1) { flex: 0 0 calc(35% - 15px); }
.oef-row.oef-layout-35-65 > .oef-col:nth-child(2) { flex: 0 0 calc(65% - 15px); }
.oef-row.oef-layout-65-35 > .oef-col:nth-child(1) { flex: 0 0 calc(65% - 15px); }
.oef-row.oef-layout-65-35 > .oef-col:nth-child(2) { flex: 0 0 calc(35% - 15px); }
.oef-row.oef-layout-33-33-33 > .oef-col { flex: 0 0 calc(33.33% - 16px); }
.oef-row.oef-layout-25-50-25 > .oef-col:nth-child(1) { flex: 0 0 calc(25% - 18px); }
.oef-row.oef-layout-25-50-25 > .oef-col:nth-child(2) { flex: 0 0 calc(50% - 18px); }
.oef-row.oef-layout-25-50-25 > .oef-col:nth-child(3) { flex: 0 0 calc(25% - 18px); }

@media (max-width: 768px) {
    .oef-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        height: 100%;
        flex-wrap: nowrap;
    }
    .oef-row > .oef-col,
    .oef-row[class*="oef-layout-"] > .oef-col {
        flex: 0 0 100% !important;
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Smart Phone (intl-tel-input) Integration */
.iti {
    width: 100% !important;
    display: block !important;
}

.iti__flag-container {
    padding: 2px;
    z-index: 5;
}

.iti__selected-flag {
    border-radius: 8px 0 0 8px;
    padding: 0 10px 0 12px;
    background-color: transparent !important;
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: rgba(0, 0, 0, 0.03) !important;
    border-right: 1.5px solid #dcdcde;
}

.iti__country-list {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid #dcdcde;
    z-index: 1000 !important;
    background-color: #fff;
}

.iti__country {
    padding: 10px 15px;
    font-size: 14px;
}

.iti__country-name {
    color: #1d2327;
}

.iti__dial-code {
    color: #646970;
}

.iti__selected-dial-code {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin-left: 8px;
}

/* Ensure our input still looks right when wrapped by ITI */
.oef-smart-phone-field {
    width: 100% !important;
}

/* ── Gutenberg Block Theme Selector & Controls ── */
.oef-gutenberg-themes-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-top: 6px !important;
    width: 100% !important;
}

.oef-theme-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: 1px solid #dcdcde !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
    height: auto !important;
    min-height: 54px !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
    text-align: left !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    position: relative !important;
    text-decoration: none !important;
}

.oef-theme-card:hover {
    border-color: #2271b1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.oef-theme-card.is-selected {
    border-color: #2271b1 !important;
    background: #f0f6fc !important;
    box-shadow: 0 0 0 1.5px #2271b1 !important;
}

.oef-theme-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 6px !important;
    width: 100% !important;
}

.oef-theme-card-name {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #1d2327 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
}

.oef-theme-card-check {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    color: #2271b1 !important;
    line-height: 1 !important;
}

.oef-theme-indicators {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.oef-theme-indicators .component-color-indicator {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
    margin-inline-end: -5px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.oef-theme-indicators .component-color-indicator:last-child {
    margin-inline-end: 0 !important;
}

.oef-inspector-two-col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.oef-inspector-two-col .components-base-control {
    margin-bottom: 0 !important;
}

.oef-inspector-col {
    min-width: 0 !important;
}

.oef-gutenberg-panel-notice {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 10px 12px;
    margin: 12px 0;
    font-size: 12px;
    line-height: 1.5;
    color: #1d2327;
    border-radius: 2px;
}

.oef-gutenberg-panel-notice strong {
    display: block;
    margin-bottom: 3px;
    color: #1d2327;
}

.oef-gutenberg-panel-notice.oef-warning {
    background: #fcf9e8;
    border-left-color: #dba617;
}

.oef-gutenberg-form-selector-actions {
    margin: 8px 0 16px 0 !important;
    font-size: 13px !important;
}

.oef-gutenberg-form-selector-legend {
    font-size: 12px;
    color: #646970;
    margin-top: 8px;
    line-height: 1.4;
}

.oef-block-wrapper .oef-form-wrapper {
    background: transparent !important;
}

/* Responsive Device Visibility (Frontend Only) */
@media (min-width: 1025px) {
    body:not(.wp-admin) .oef-hide-desktop,
    body:not(.wp-admin) .oef-form-field.oef-hide-desktop,
    body:not(.wp-admin) .oef-row.oef-hide-desktop,
    body:not(.wp-admin) .oef-conv-screen.oef-hide-desktop {
        display: none !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    body:not(.wp-admin) .oef-hide-tablet,
    body:not(.wp-admin) .oef-form-field.oef-hide-tablet,
    body:not(.wp-admin) .oef-row.oef-hide-tablet,
    body:not(.wp-admin) .oef-conv-screen.oef-hide-tablet {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body:not(.wp-admin) .oef-hide-mobile,
    body:not(.wp-admin) .oef-form-field.oef-hide-mobile,
    body:not(.wp-admin) .oef-row.oef-hide-mobile,
    body:not(.wp-admin) .oef-conv-screen.oef-hide-mobile {
        display: none !important;
    }
}

/* ==========================================================================
   Responsive Choice Layout Overrides (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
    .oef-choice-preview-group,
    .oef-checkbox-group,
    .oef-radio-group {
        --oef-img-size: var(--oef-img-size-tablet, var(--oef-img-size-desktop, 140px)) !important;
    }

    .oef-choice-layout-tablet-column,
    [class*="oef-choice-layout-"].oef-choice-layout-tablet-column,
    .oef-choice-style-image.oef-choice-layout-tablet-column,
    .oef-checkbox-group.oef-choice-layout-tablet-column,
    .oef-radio-group.oef-choice-layout-tablet-column {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid-auto-flow: initial !important;
        gap: 12px !important;
    }
    .oef-choice-layout-tablet-row,
    [class*="oef-choice-layout-"].oef-choice-layout-tablet-row,
    .oef-choice-style-image.oef-choice-layout-tablet-row,
    .oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-tablet-row,
    .oef-checkbox-group.oef-choice-layout-tablet-row,
    .oef-radio-group.oef-choice-layout-tablet-row,
    .oef-checkbox-group.oef-choice-style-image.oef-choice-layout-tablet-row,
    .oef-radio-group.oef-choice-style-image.oef-choice-layout-tablet-row,
    .oef-checkbox-group.oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-tablet-row,
    .oef-radio-group.oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-tablet-row,
    [class*="oef-choice-layout-grid"].oef-choice-layout-tablet-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;
        grid-auto-flow: initial !important;
        grid-auto-columns: initial !important;
        grid-auto-rows: initial !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x proximity !important;
        gap: 14px !important;
        padding: 4px 4px 10px 4px !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .oef-choice-layout-tablet-wrap,
    [class*="oef-choice-layout-"].oef-choice-layout-tablet-wrap,
    .oef-choice-style-image.oef-choice-layout-tablet-wrap,
    .oef-checkbox-group.oef-choice-layout-tablet-wrap,
    .oef-radio-group.oef-choice-layout-tablet-wrap {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        grid-template-columns: none !important;
        grid-auto-flow: initial !important;
        overflow: visible !important;
        gap: 14px !important;
    }
    .oef-choice-layout-tablet-grid,
    [class*="oef-choice-layout-"].oef-choice-layout-tablet-grid,
    .oef-choice-style-image.oef-choice-layout-tablet-grid,
    .oef-checkbox-group.oef-choice-layout-tablet-grid,
    .oef-radio-group.oef-choice-layout-tablet-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--oef-img-size, 140px) + 34px)), 1fr)) !important;
        gap: 14px !important;
    }
    .oef-choice-layout-tablet-2-column,
    [class*="oef-choice-layout-"].oef-choice-layout-tablet-2-column,
    .oef-choice-style-image.oef-choice-layout-tablet-2-column,
    .oef-checkbox-group.oef-choice-layout-tablet-2-column,
    .oef-radio-group.oef-choice-layout-tablet-2-column {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
    .oef-choice-layout-tablet-3-column,
    [class*="oef-choice-layout-"].oef-choice-layout-tablet-3-column,
    .oef-choice-style-image.oef-choice-layout-tablet-3-column,
    .oef-checkbox-group.oef-choice-layout-tablet-3-column,
    .oef-radio-group.oef-choice-layout-tablet-3-column {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
    .oef-choice-layout-tablet-4-column,
    [class*="oef-choice-layout-"].oef-choice-layout-tablet-4-column,
    .oef-choice-style-image.oef-choice-layout-tablet-4-column,
    .oef-checkbox-group.oef-choice-layout-tablet-4-column,
    .oef-radio-group.oef-choice-layout-tablet-4-column {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .oef-choice-layout-tablet-row .oef-choice-item,
    [class*="oef-choice-layout-"].oef-choice-layout-tablet-row .oef-choice-item,
    .oef-checkbox-group.oef-choice-layout-tablet-row .oef-choice-item,
    .oef-radio-group.oef-choice-layout-tablet-row .oef-choice-item,
    [class*="oef-choice-layout-grid"].oef-choice-layout-tablet-row .oef-choice-item {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        scroll-snap-align: start !important;
    }
    .oef-choice-style-image.oef-choice-layout-tablet-row .oef-choice-item,
    .oef-choice-layout-tablet-row .oef-choice-item:has(.oef-choice-image),
    .oef-checkbox-group.oef-choice-layout-tablet-row .oef-choice-item:has(.oef-choice-image),
    .oef-radio-group.oef-choice-layout-tablet-row .oef-choice-item:has(.oef-choice-image),
    .oef-checkbox-group.oef-choice-style-image.oef-choice-layout-tablet-row .oef-choice-item,
    .oef-radio-group.oef-choice-style-image.oef-choice-layout-tablet-row .oef-choice-item,
    .oef-checkbox-group.oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-tablet-row .oef-choice-item,
    .oef-radio-group.oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-tablet-row .oef-choice-item,
    [class*="oef-choice-layout-"].oef-choice-layout-tablet-row .oef-choice-item:has(.oef-choice-image),
    [class*="oef-choice-layout-"].oef-choice-style-image.oef-choice-layout-tablet-row .oef-choice-item,
    [class*="oef-choice-layout-grid"].oef-choice-style-image.oef-choice-layout-tablet-row .oef-choice-item {
        width: var(--oef-img-size, 140px) !important;
        min-width: var(--oef-img-size, 140px) !important;
        max-width: none !important;
        flex: 0 0 auto !important;
    }
    .oef-choice-layout-tablet-wrap .oef-choice-item,
    [class*="oef-choice-layout-"].oef-choice-layout-tablet-wrap .oef-choice-item {
        flex: 0 0 auto !important;
        width: auto !important;
    }
    .oef-choice-style-image.oef-choice-layout-tablet-wrap .oef-choice-item,
    .oef-choice-layout-tablet-wrap .oef-choice-item:has(.oef-choice-image),
    [class*="oef-choice-layout-"].oef-choice-layout-tablet-wrap .oef-choice-item:has(.oef-choice-image) {
        width: var(--oef-img-size, 140px) !important;
        min-width: var(--oef-img-size, 140px) !important;
    }
    .oef-choice-layout-tablet-column .oef-choice-item,
    .oef-choice-layout-tablet-2-column .oef-choice-item,
    .oef-choice-layout-tablet-3-column .oef-choice-item,
    .oef-choice-layout-tablet-4-column .oef-choice-item,
    [class*="oef-choice-layout-"].oef-choice-layout-tablet-column .oef-choice-item,
    [class*="oef-choice-layout-"].oef-choice-layout-tablet-2-column .oef-choice-item,
    [class*="oef-choice-layout-"].oef-choice-layout-tablet-3-column .oef-choice-item,
    [class*="oef-choice-layout-"].oef-choice-layout-tablet-4-column .oef-choice-item {
        width: 100% !important;
    }

    /* Graceful auto-downscale for 4 columns if inherit on tablet */
    .oef-choice-layout-4-column:not([class*="oef-choice-layout-tablet-"]) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Also apply when canvas is in Tablet mode (Builder Canvas & Live Preview Modal) */
.oef-device-tablet .oef-choice-preview-group,
.oef-device-tablet .oef-checkbox-group,
.oef-device-tablet .oef-radio-group {
    --oef-img-size: var(--oef-img-size-tablet, var(--oef-img-size-desktop, 140px)) !important;
}

.oef-device-tablet .oef-choice-layout-tablet-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}
.oef-device-tablet .oef-choice-layout-tablet-row,
.oef-device-tablet [class*="oef-choice-layout-"].oef-choice-layout-tablet-row,
.oef-device-tablet .oef-choice-style-image.oef-choice-layout-tablet-row,
.oef-device-tablet .oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-tablet-row,
.oef-device-tablet .oef-checkbox-group.oef-choice-layout-tablet-row,
.oef-device-tablet .oef-radio-group.oef-choice-layout-tablet-row,
.oef-device-tablet .oef-checkbox-group.oef-choice-style-image.oef-choice-layout-tablet-row,
.oef-device-tablet .oef-radio-group.oef-choice-style-image.oef-choice-layout-tablet-row,
.oef-device-tablet .oef-checkbox-group.oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-tablet-row,
.oef-device-tablet .oef-radio-group.oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-tablet-row,
.oef-device-tablet [class*="oef-choice-layout-grid"].oef-choice-layout-tablet-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x proximity !important;
    gap: 14px !important;
    padding: 6px 4px 14px 4px !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.oef-device-tablet .oef-choice-layout-tablet-wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 14px !important;
}
.oef-device-tablet .oef-choice-layout-tablet-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--oef-img-size, 140px) + 34px)), 1fr)) !important;
    gap: 14px !important;
}
.oef-device-tablet .oef-choice-layout-tablet-2-column {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}
.oef-device-tablet .oef-choice-layout-tablet-3-column {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
}
.oef-device-tablet .oef-choice-layout-tablet-4-column {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
}
.oef-device-tablet .oef-choice-layout-tablet-row .oef-choice-item,
.oef-device-tablet [class*="oef-choice-layout-"].oef-choice-layout-tablet-row .oef-choice-item,
.oef-device-tablet .oef-checkbox-group.oef-choice-layout-tablet-row .oef-choice-item,
.oef-device-tablet .oef-radio-group.oef-choice-layout-tablet-row .oef-choice-item,
.oef-device-tablet [class*="oef-choice-layout-grid"].oef-choice-layout-tablet-row .oef-choice-item {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    scroll-snap-align: start !important;
}
.oef-device-tablet .oef-choice-style-image.oef-choice-layout-tablet-row .oef-choice-item,
.oef-device-tablet .oef-choice-layout-tablet-row .oef-choice-item:has(.oef-choice-image),
.oef-device-tablet .oef-checkbox-group.oef-choice-layout-tablet-row .oef-choice-item:has(.oef-choice-image),
.oef-device-tablet .oef-radio-group.oef-choice-layout-tablet-row .oef-choice-item:has(.oef-choice-image),
.oef-device-tablet .oef-checkbox-group.oef-choice-style-image.oef-choice-layout-tablet-row .oef-choice-item,
.oef-device-tablet .oef-radio-group.oef-choice-style-image.oef-choice-layout-tablet-row .oef-choice-item,
.oef-device-tablet .oef-checkbox-group.oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-tablet-row .oef-choice-item,
.oef-device-tablet .oef-radio-group.oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-tablet-row .oef-choice-item,
.oef-device-tablet [class*="oef-choice-layout-grid"].oef-choice-style-image.oef-choice-layout-tablet-row .oef-choice-item {
    width: var(--oef-img-size, 140px) !important;
    min-width: var(--oef-img-size, 140px) !important;
    max-width: none !important;
    flex: 0 0 auto !important;
}
.oef-device-tablet .oef-choice-layout-tablet-wrap .oef-choice-item {
    flex: 0 0 auto !important;
    width: auto !important;
}
.oef-device-tablet .oef-choice-style-image.oef-choice-layout-tablet-wrap .oef-choice-item,
.oef-device-tablet .oef-choice-layout-tablet-wrap .oef-choice-item:has(.oef-choice-image) {
    width: var(--oef-img-size, 140px) !important;
    min-width: var(--oef-img-size, 140px) !important;
}
.oef-device-tablet .oef-choice-layout-tablet-column .oef-choice-item,
.oef-device-tablet .oef-choice-layout-tablet-2-column .oef-choice-item,
.oef-device-tablet .oef-choice-layout-tablet-3-column .oef-choice-item,
.oef-device-tablet .oef-choice-layout-tablet-4-column .oef-choice-item {
    width: 100% !important;
}
.oef-device-tablet .oef-choice-layout-4-column:not([class*="oef-choice-layout-tablet-"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 768px) {
    .oef-choice-preview-group,
    .oef-checkbox-group,
    .oef-radio-group {
        --oef-img-size: var(--oef-img-size-mobile, var(--oef-img-size-tablet, var(--oef-img-size-desktop, 140px))) !important;
    }

    .oef-choice-layout-mobile-column,
    [class*="oef-choice-layout-"].oef-choice-layout-mobile-column,
    .oef-choice-style-image.oef-choice-layout-mobile-column,
    .oef-checkbox-group.oef-choice-layout-mobile-column,
    .oef-radio-group.oef-choice-layout-mobile-column {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid-auto-flow: initial !important;
        gap: 10px !important;
    }
    .oef-choice-layout-mobile-row,
    [class*="oef-choice-layout-"].oef-choice-layout-mobile-row,
    .oef-choice-style-image.oef-choice-layout-mobile-row,
    .oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-mobile-row,
    .oef-checkbox-group.oef-choice-layout-mobile-row,
    .oef-radio-group.oef-choice-layout-mobile-row,
    .oef-checkbox-group.oef-choice-style-image.oef-choice-layout-mobile-row,
    .oef-radio-group.oef-choice-style-image.oef-choice-layout-mobile-row,
    .oef-checkbox-group.oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-mobile-row,
    .oef-radio-group.oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-mobile-row,
    [class*="oef-choice-layout-grid"].oef-choice-layout-mobile-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;
        grid-auto-flow: initial !important;
        grid-auto-columns: initial !important;
        grid-auto-rows: initial !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x proximity !important;
        gap: 10px !important;
        padding: 4px 4px 8px 4px !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .oef-choice-layout-mobile-wrap,
    [class*="oef-choice-layout-"].oef-choice-layout-mobile-wrap,
    .oef-choice-style-image.oef-choice-layout-mobile-wrap,
    .oef-checkbox-group.oef-choice-layout-mobile-wrap,
    .oef-radio-group.oef-choice-layout-mobile-wrap {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        grid-template-columns: none !important;
        grid-auto-flow: initial !important;
        overflow: visible !important;
        gap: 10px !important;
    }
    .oef-choice-layout-mobile-grid,
    [class*="oef-choice-layout-"].oef-choice-layout-mobile-grid,
    .oef-choice-style-image.oef-choice-layout-mobile-grid,
    .oef-checkbox-group.oef-choice-layout-mobile-grid,
    .oef-radio-group.oef-choice-layout-mobile-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--oef-img-size, 130px) + 34px)), 1fr)) !important;
        gap: 10px !important;
    }
    .oef-choice-layout-mobile-2-column,
    [class*="oef-choice-layout-"].oef-choice-layout-mobile-2-column,
    .oef-choice-style-image.oef-choice-layout-mobile-2-column,
    .oef-checkbox-group.oef-choice-layout-mobile-2-column,
    .oef-radio-group.oef-choice-layout-mobile-2-column {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .oef-choice-layout-mobile-3-column,
    [class*="oef-choice-layout-"].oef-choice-layout-mobile-3-column,
    .oef-choice-style-image.oef-choice-layout-mobile-3-column,
    .oef-checkbox-group.oef-choice-layout-mobile-3-column,
    .oef-radio-group.oef-choice-layout-mobile-3-column {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .oef-choice-layout-mobile-row .oef-choice-item,
    [class*="oef-choice-layout-"].oef-choice-layout-mobile-row .oef-choice-item,
    .oef-checkbox-group.oef-choice-layout-mobile-row .oef-choice-item,
    .oef-radio-group.oef-choice-layout-mobile-row .oef-choice-item,
    [class*="oef-choice-layout-grid"].oef-choice-layout-mobile-row .oef-choice-item {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        scroll-snap-align: start !important;
    }
    .oef-choice-style-image.oef-choice-layout-mobile-row .oef-choice-item,
    .oef-choice-layout-mobile-row .oef-choice-item:has(.oef-choice-image),
    .oef-checkbox-group.oef-choice-layout-mobile-row .oef-choice-item:has(.oef-choice-image),
    .oef-radio-group.oef-choice-layout-mobile-row .oef-choice-item:has(.oef-choice-image),
    .oef-checkbox-group.oef-choice-style-image.oef-choice-layout-mobile-row .oef-choice-item,
    .oef-radio-group.oef-choice-style-image.oef-choice-layout-mobile-row .oef-choice-item,
    .oef-checkbox-group.oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-mobile-row .oef-choice-item,
    .oef-radio-group.oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-mobile-row .oef-choice-item,
    [class*="oef-choice-layout-"].oef-choice-layout-mobile-row .oef-choice-item:has(.oef-choice-image),
    [class*="oef-choice-layout-"].oef-choice-style-image.oef-choice-layout-mobile-row .oef-choice-item,
    [class*="oef-choice-layout-grid"].oef-choice-style-image.oef-choice-layout-mobile-row .oef-choice-item {
        width: min(80vw, var(--oef-img-size, 140px)) !important;
        min-width: 120px !important;
        max-width: none !important;
        flex: 0 0 auto !important;
    }
    .oef-choice-style-basic.oef-choice-layout-mobile-row .oef-choice-item,
    .oef-choice-style-fancy.oef-choice-layout-mobile-row .oef-choice-item,
    [class*="oef-choice-layout-"].oef-choice-style-basic.oef-choice-layout-mobile-row .oef-choice-item,
    [class*="oef-choice-layout-"].oef-choice-style-fancy.oef-choice-layout-mobile-row .oef-choice-item {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .oef-choice-layout-mobile-wrap .oef-choice-item,
    [class*="oef-choice-layout-"].oef-choice-layout-mobile-wrap .oef-choice-item {
        flex: 0 0 auto !important;
        width: auto !important;
    }
    .oef-choice-style-image.oef-choice-layout-mobile-wrap .oef-choice-item,
    .oef-choice-layout-mobile-wrap .oef-choice-item:has(.oef-choice-image),
    .oef-checkbox-group.oef-choice-layout-mobile-wrap .oef-choice-item:has(.oef-choice-image),
    .oef-radio-group.oef-choice-layout-mobile-wrap .oef-choice-item:has(.oef-choice-image),
    [class*="oef-choice-layout-"].oef-choice-layout-mobile-wrap .oef-choice-item:has(.oef-choice-image) {
        width: min(80vw, var(--oef-img-size, 140px)) !important;
        min-width: 120px !important;
    }
    .oef-choice-layout-mobile-column .oef-choice-item,
    .oef-choice-layout-mobile-2-column .oef-choice-item,
    .oef-choice-layout-mobile-3-column .oef-choice-item,
    [class*="oef-choice-layout-"].oef-choice-layout-mobile-column .oef-choice-item,
    [class*="oef-choice-layout-"].oef-choice-layout-mobile-2-column .oef-choice-item,
    [class*="oef-choice-layout-"].oef-choice-layout-mobile-3-column .oef-choice-item {
        width: 100% !important;
    }

    /* Graceful collapse to 1 column for 3 and 4 column layouts on mobile if inherit */
    .oef-choice-layout-3-column:not([class*="oef-choice-layout-mobile-"]),
    .oef-choice-layout-4-column:not([class*="oef-choice-layout-mobile-"]) {
        grid-template-columns: 1fr !important;
    }
    .oef-choice-layout-grid:not([class*="oef-choice-layout-mobile-"]) {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--oef-img-size, 130px) + 34px)), 1fr)) !important;
    }
}

/* Also apply when canvas is in Mobile mode (Builder Canvas & Live Preview Modal) */
.oef-device-mobile .oef-choice-preview-group,
.oef-device-mobile .oef-checkbox-group,
.oef-device-mobile .oef-radio-group {
    --oef-img-size: var(--oef-img-size-mobile, var(--oef-img-size-tablet, var(--oef-img-size-desktop, 140px))) !important;
}

.oef-device-mobile .oef-choice-layout-mobile-column,
.oef-device-mobile [class*="oef-choice-layout-"].oef-choice-layout-mobile-column,
.oef-device-mobile .oef-choice-style-image.oef-choice-layout-mobile-column {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-auto-flow: initial !important;
    gap: 10px !important;
}
.oef-device-mobile .oef-choice-layout-mobile-row,
.oef-device-mobile [class*="oef-choice-layout-"].oef-choice-layout-mobile-row,
.oef-device-mobile .oef-choice-style-image.oef-choice-layout-mobile-row,
.oef-device-mobile .oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-mobile-row,
.oef-device-mobile .oef-checkbox-group.oef-choice-layout-mobile-row,
.oef-device-mobile .oef-radio-group.oef-choice-layout-mobile-row,
.oef-device-mobile .oef-checkbox-group.oef-choice-style-image.oef-choice-layout-mobile-row,
.oef-device-mobile .oef-radio-group.oef-choice-style-image.oef-choice-layout-mobile-row,
.oef-device-mobile .oef-checkbox-group.oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-mobile-row,
.oef-device-mobile .oef-radio-group.oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-mobile-row,
.oef-device-mobile [class*="oef-choice-layout-grid"].oef-choice-layout-mobile-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    grid-auto-flow: initial !important;
    grid-auto-columns: initial !important;
    grid-auto-rows: initial !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x proximity !important;
    gap: 10px !important;
    padding: 4px 4px 8px 4px !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.oef-device-mobile .oef-choice-layout-mobile-wrap,
.oef-device-mobile [class*="oef-choice-layout-"].oef-choice-layout-mobile-wrap,
.oef-device-mobile .oef-choice-style-image.oef-choice-layout-mobile-wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    grid-template-columns: none !important;
    grid-auto-flow: initial !important;
    overflow: visible !important;
    gap: 10px !important;
}
.oef-device-mobile .oef-choice-layout-mobile-grid,
.oef-device-mobile [class*="oef-choice-layout-"].oef-choice-layout-mobile-grid,
.oef-device-mobile .oef-choice-style-image.oef-choice-layout-mobile-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--oef-img-size, 130px) + 34px)), 1fr)) !important;
    gap: 10px !important;
}
.oef-device-mobile .oef-choice-layout-mobile-2-column,
.oef-device-mobile [class*="oef-choice-layout-"].oef-choice-layout-mobile-2-column,
.oef-device-mobile .oef-choice-style-image.oef-choice-layout-mobile-2-column {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}
.oef-device-mobile .oef-choice-layout-mobile-3-column,
.oef-device-mobile [class*="oef-choice-layout-"].oef-choice-layout-mobile-3-column,
.oef-device-mobile .oef-choice-style-image.oef-choice-layout-mobile-3-column {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}
.oef-device-mobile .oef-choice-layout-mobile-row .oef-choice-item,
.oef-device-mobile [class*="oef-choice-layout-"].oef-choice-layout-mobile-row .oef-choice-item,
.oef-device-mobile .oef-checkbox-group.oef-choice-layout-mobile-row .oef-choice-item,
.oef-device-mobile .oef-radio-group.oef-choice-layout-mobile-row .oef-choice-item,
.oef-device-mobile [class*="oef-choice-layout-grid"].oef-choice-layout-mobile-row .oef-choice-item {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    scroll-snap-align: start !important;
}
.oef-device-mobile .oef-choice-style-image.oef-choice-layout-mobile-row .oef-choice-item,
.oef-device-mobile .oef-choice-layout-mobile-row .oef-choice-item:has(.oef-choice-image),
.oef-device-mobile .oef-checkbox-group.oef-choice-layout-mobile-row .oef-choice-item:has(.oef-choice-image),
.oef-device-mobile .oef-radio-group.oef-choice-layout-mobile-row .oef-choice-item:has(.oef-choice-image),
.oef-device-mobile .oef-checkbox-group.oef-choice-style-image.oef-choice-layout-mobile-row .oef-choice-item,
.oef-device-mobile .oef-radio-group.oef-choice-style-image.oef-choice-layout-mobile-row .oef-choice-item,
.oef-device-mobile .oef-checkbox-group.oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-mobile-row .oef-choice-item,
.oef-device-mobile .oef-radio-group.oef-choice-style-image.oef-choice-layout-grid.oef-choice-layout-mobile-row .oef-choice-item,
.oef-device-mobile [class*="oef-choice-layout-"].oef-choice-layout-mobile-row .oef-choice-item:has(.oef-choice-image),
.oef-device-mobile [class*="oef-choice-layout-"].oef-choice-style-image.oef-choice-layout-mobile-row .oef-choice-item,
.oef-device-mobile [class*="oef-choice-layout-grid"].oef-choice-style-image.oef-choice-layout-mobile-row .oef-choice-item {
    width: min(80vw, var(--oef-img-size, 140px)) !important;
    min-width: 120px !important;
    max-width: none !important;
    flex: 0 0 auto !important;
}
.oef-device-mobile .oef-choice-style-basic.oef-choice-layout-mobile-row .oef-choice-item,
.oef-device-mobile .oef-choice-style-fancy.oef-choice-layout-mobile-row .oef-choice-item,
.oef-device-mobile [class*="oef-choice-layout-"].oef-choice-style-basic.oef-choice-layout-mobile-row .oef-choice-item,
.oef-device-mobile [class*="oef-choice-layout-"].oef-choice-style-fancy.oef-choice-layout-mobile-row .oef-choice-item {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.oef-device-mobile .oef-choice-layout-mobile-wrap .oef-choice-item,
.oef-device-mobile [class*="oef-choice-layout-"].oef-choice-layout-mobile-wrap .oef-choice-item {
    flex: 0 0 auto !important;
    width: auto !important;
}
.oef-device-mobile .oef-choice-style-image.oef-choice-layout-mobile-wrap .oef-choice-item,
.oef-device-mobile .oef-choice-layout-mobile-wrap .oef-choice-item:has(.oef-choice-image),
.oef-device-mobile .oef-checkbox-group.oef-choice-layout-mobile-wrap .oef-choice-item:has(.oef-choice-image),
.oef-device-mobile .oef-radio-group.oef-choice-layout-mobile-wrap .oef-choice-item:has(.oef-choice-image),
.oef-device-mobile [class*="oef-choice-layout-"].oef-choice-layout-mobile-wrap .oef-choice-item:has(.oef-choice-image) {
    width: min(80vw, var(--oef-img-size, 140px)) !important;
    min-width: 120px !important;
}
.oef-device-mobile .oef-choice-layout-mobile-column .oef-choice-item,
.oef-device-mobile .oef-choice-layout-mobile-2-column .oef-choice-item,
.oef-device-mobile .oef-choice-layout-mobile-3-column .oef-choice-item,
.oef-device-mobile [class*="oef-choice-layout-"].oef-choice-layout-mobile-column .oef-choice-item,
.oef-device-mobile [class*="oef-choice-layout-"].oef-choice-layout-mobile-2-column .oef-choice-item,
.oef-device-mobile [class*="oef-choice-layout-"].oef-choice-layout-mobile-3-column .oef-choice-item {
    width: 100% !important;
}
.oef-device-mobile .oef-choice-layout-3-column:not([class*="oef-choice-layout-mobile-"]),
.oef-device-mobile .oef-choice-layout-4-column:not([class*="oef-choice-layout-mobile-"]) {
    grid-template-columns: 1fr !important;
}
.oef-device-mobile .oef-choice-layout-grid:not([class*="oef-choice-layout-mobile-"]) {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--oef-img-size, 130px) + 34px)), 1fr)) !important;
}

/* Horizontal Scrollbar Styling for Scrollable Choice Rows */
.oef-choice-layout-row::-webkit-scrollbar,
.oef-choice-layout-tablet-row::-webkit-scrollbar,
.oef-choice-layout-mobile-row::-webkit-scrollbar {
    height: 6px !important;
}
.oef-choice-layout-row::-webkit-scrollbar-track,
.oef-choice-layout-tablet-row::-webkit-scrollbar-track,
.oef-choice-layout-mobile-row::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 4px !important;
}
.oef-choice-layout-row::-webkit-scrollbar-thumb,
.oef-choice-layout-tablet-row::-webkit-scrollbar-thumb,
.oef-choice-layout-mobile-row::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px !important;
}
.oef-choice-layout-row::-webkit-scrollbar-thumb:hover,
.oef-choice-layout-tablet-row::-webkit-scrollbar-thumb:hover,
.oef-choice-layout-mobile-row::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}
.oef-choice-layout-row,
.oef-choice-layout-tablet-row,
.oef-choice-layout-mobile-row {
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 rgba(0, 0, 0, 0.05) !important;
}

/* ==========================================================================
   Range Slider Styling
   ========================================================================== */
.oef-slider-container {
    padding: 6px 0;
    width: 100%;
}

.oef-slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100% !important;
    height: 8px !important;
    border-radius: 6px !important;
    background: #e2e8f0;
    background: linear-gradient(to right, var(--oef-accent, #2271b1) 0%, var(--oef-accent, #2271b1) var(--oef-slider-progress, 50%), #e2e8f0 var(--oef-slider-progress, 50%), #e2e8f0 100%) !important;
    accent-color: var(--oef-accent, #2271b1);
    outline: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 10px 0 !important;
    cursor: pointer;
    transition: background 0.1s ease;
}

.oef-slider-input:focus {
    outline: none !important;
}

.oef-slider-input:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.oef-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2271b1;
    background: var(--oef-accent, #2271b1);
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px color-mix(in srgb, var(--oef-accent, #2271b1) 40%, transparent), 0 1px 3px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, filter 0.15s ease;
}

.oef-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    filter: brightness(0.9);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--oef-accent, #2271b1) 50%, transparent), 0 2px 4px rgba(0, 0, 0, 0.15);
}

.oef-slider-input::-webkit-slider-thumb:active {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.oef-slider-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2271b1;
    background: var(--oef-accent, #2271b1);
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px color-mix(in srgb, var(--oef-accent, #2271b1) 40%, transparent), 0 1px 3px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, filter 0.15s ease;
}

.oef-slider-input::-moz-range-thumb:hover {
    transform: scale(1.15);
    filter: brightness(0.9);
}

.oef-slider-input::-moz-range-thumb:active {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.oef-slider-input::-moz-range-progress {
    background-color: var(--oef-accent, #2271b1);
    border-radius: 6px;
    height: 8px;
}

.oef-slider-input::-moz-range-track {
    background-color: #e2e8f0;
    border-radius: 6px;
    height: 8px;
}

.oef-slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.oef-slider-value-label {
    font-size: 14px;
    font-weight: 700 !important;
    color: #2271b1;
    color: var(--oef-accent, #2271b1) !important;
    background: #f0f9ff;
    background: color-mix(in srgb, var(--oef-accent, #2271b1) 10%, #ffffff) !important;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid #bae6fd;
    border-color: color-mix(in srgb, var(--oef-accent, #2271b1) 25%, #ffffff) !important;
}

/* ==========================================================================
   Calculator Field Display Styling
   ========================================================================== */
.oef-field-calculator {
    margin-top: 6px;
}

.oef-calc-display {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    background: #f0f9ff;
    background: color-mix(in srgb, var(--oef-accent, #2271b1) 8%, #ffffff) !important;
    border: 2px solid #38bdf8;
    border-color: color-mix(in srgb, var(--oef-accent, #2271b1) 35%, #ffffff) !important;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #0369a1;
    color: var(--oef-accent, #0369a1) !important;
    letter-spacing: -0.01em;
    min-height: 52px;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
    box-shadow: 0 2px 6px color-mix(in srgb, var(--oef-accent, #2271b1) 15%, transparent) !important;
    transition: all 0.2s ease;
}

/* ==========================================================================
   Distance / Mileage Field Styling
   ========================================================================== */
.oef-type-distance.oef-distance-display-hidden,
.oef-field-distance-wrap.oef-distance-display-hidden {
    display: none !important;
}

.oef-field-distance-wrap {
    width: 100%;
    margin-top: 4px;
}

.oef-distance-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.oef-distance-visible-input {
    width: 100%;
    height: 44px;
    padding: 10px 65px 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.oef-distance-visible-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.oef-distance-visible-input[readonly] {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
    cursor: default;
}

.oef-distance-suffix {
    position: absolute;
    right: 14px;
    color: #64748b;
    font-weight: 600;
    font-size: 13px;
    text-transform: lowercase;
    pointer-events: none;
    user-select: none;
}

.oef-distance-display-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    margin-top: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.oef-distance-display-box:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.oef-distance-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.oef-distance-info .dashicons-location-alt {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oef-distance-value {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.oef-distance-num {
    font-variant-numeric: tabular-nums;
}

.oef-distance-unit {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-left: 2px;
}

.oef-duration-text {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.oef-duration-text .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
}

.oef-distance-status {
    font-size: 12px;
    color: #64748b;
}

.oef-distance-loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-weight: 500;
}

.oef-distance-loading .spinner {
    float: none;
    margin: 0;
    visibility: visible;
}

.oef-distance-error {
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    line-height: 1.4;
}

.oef-distance-route-map {
    width: 100%;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    margin-top: 10px;
    overflow: hidden;
}

.oef-field-distance-wrap.oef-distance-mileage-hidden .oef-distance-input-wrap,
.oef-field-distance-wrap.oef-distance-mileage-hidden .oef-distance-display-box {
    display: none !important;
}

.oef-field-distance-wrap.oef-distance-display-map_only .oef-distance-route-map {
    margin-top: 4px;
}

/* ── Consent & Compliance Field ────────────────────────────────────────────── */
.oef-type-consent .oef-consent-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.oef-type-consent .oef-consent-terms-box {
    max-height: 140px;
    overflow-y: auto;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.oef-type-consent .oef-consent-terms-box:focus {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}

.oef-type-consent .oef-consent-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    color: #1e293b !important;
    margin: 0 !important;
    user-select: text;
    font-weight: 400 !important;
}

.oef-type-consent .oef-consent-checkbox {
    margin: 3px 0 0 0 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    accent-color: #2563eb;
}

.oef-type-consent .oef-consent-text {
    flex: 1;
}

.oef-type-consent .oef-consent-text a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.15s ease;
}

.oef-type-consent .oef-consent-text a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.oef-type-consent .oef-consent-text .oef-required {
    color: #d63638;
    margin-left: 2px;
    font-weight: bold;
}
