.post-ad-extra {
    border: 2px solid #e8dff5;
    border-radius: 12px;
    background: #fff;
    padding: 1rem 1rem 1.25rem;
}

html.dark-mode .post-ad-extra,
.dark-mode .post-ad-extra {
    background: #191c24;
    border-color: #6a11cf;
    color-scheme: dark;
}

html.dark-mode .post-ad-extra .form-control,
html.dark-mode .post-ad-extra .form-select,
html.dark-mode .post-ad-extra .form-control-sm,
html.dark-mode .post-ad-extra textarea,
.dark-mode .post-ad-extra .form-control,
.dark-mode .post-ad-extra .form-select,
.dark-mode .post-ad-extra .form-control-sm,
.dark-mode .post-ad-extra textarea {
    background-color: #272827 !important;
    color: #f2f2f2 !important;
    border-color: #4a4d52 !important;
    box-shadow: none !important;
}

html.dark-mode .post-ad-extra .form-control:hover,
html.dark-mode .post-ad-extra .form-control:active,
html.dark-mode .post-ad-extra .form-select:hover,
html.dark-mode .post-ad-extra .form-select:active,
html.dark-mode .post-ad-extra .form-control-sm:hover,
html.dark-mode .post-ad-extra .form-control-sm:active,
html.dark-mode .post-ad-extra textarea:hover,
html.dark-mode .post-ad-extra textarea:active,
.dark-mode .post-ad-extra .form-control:hover,
.dark-mode .post-ad-extra .form-control:active,
.dark-mode .post-ad-extra .form-select:hover,
.dark-mode .post-ad-extra .form-select:active,
.dark-mode .post-ad-extra .form-control-sm:hover,
.dark-mode .post-ad-extra .form-control-sm:active,
.dark-mode .post-ad-extra textarea:hover,
.dark-mode .post-ad-extra textarea:active {
    background-color: #272827 !important;
    color: #f2f2f2 !important;
    border-color: #4a4d52 !important;
}

html.dark-mode .post-ad-extra input:-webkit-autofill,
html.dark-mode .post-ad-extra input:-webkit-autofill:hover,
html.dark-mode .post-ad-extra input:-webkit-autofill:focus,
html.dark-mode .post-ad-extra input:-webkit-autofill:active,
html.dark-mode .post-ad-extra textarea:-webkit-autofill,
html.dark-mode .post-ad-extra textarea:-webkit-autofill:hover,
html.dark-mode .post-ad-extra textarea:-webkit-autofill:focus,
html.dark-mode .post-ad-extra textarea:-webkit-autofill:active,
html.dark-mode .post-ad-extra select:-webkit-autofill,
html.dark-mode .post-ad-extra select:-webkit-autofill:hover,
html.dark-mode .post-ad-extra select:-webkit-autofill:focus,
html.dark-mode .post-ad-extra select:-webkit-autofill:active,
.dark-mode .post-ad-extra input:-webkit-autofill,
.dark-mode .post-ad-extra input:-webkit-autofill:hover,
.dark-mode .post-ad-extra input:-webkit-autofill:focus,
.dark-mode .post-ad-extra input:-webkit-autofill:active,
.dark-mode .post-ad-extra textarea:-webkit-autofill,
.dark-mode .post-ad-extra textarea:-webkit-autofill:hover,
.dark-mode .post-ad-extra textarea:-webkit-autofill:focus,
.dark-mode .post-ad-extra textarea:-webkit-autofill:active,
.dark-mode .post-ad-extra select:-webkit-autofill,
.dark-mode .post-ad-extra select:-webkit-autofill:hover,
.dark-mode .post-ad-extra select:-webkit-autofill:focus,
.dark-mode .post-ad-extra select:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #272827 inset !important;
    box-shadow: 0 0 0 1000px #272827 inset !important;
    -webkit-text-fill-color: #f2f2f2 !important;
    caret-color: #f2f2f2 !important;
    border-color: #4a4d52 !important;
    transition: background-color 99999s ease-out 0s;
}

html.dark-mode .post-ad-extra .form-select option,
.dark-mode .post-ad-extra .form-select option {
    background-color: #272827;
    color: #f2f2f2;
}

.post-ad-extra .form-control,
.post-ad-extra .form-select,
.post-ad-extra .form-control-sm {
    border-radius: 0.5rem;
}

.post-ad-extra select.form-select[data-post-extra-field]:not(.selectized) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    background-image: none;
}

/* Empty dash before Selectize mounts — same violet as post-ad placeholder. */
.post-ad-extra select.form-select[data-post-extra-field]:not(.selectized):has(option[value=""]:checked) {
    color: #6a11cf !important;
}

.post-ad-extra__field:has(select[data-post-extra-field]) {
    min-height: calc(1.5rem + 36px);
}

.post-ad-extra .selectize-control,
.post-ad-extra .selectize-control.single {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    position: relative;
}

.post-ad-extra .selectize-control .selectize-input,
.post-ad-extra .selectize-input {
    margin-top: 0 !important;
}

.post-ad-extra .selectize-control.single .selectize-input,
.post-ad-extra .selectize-control.single .selectize-input.input-active,
.post-ad-extra .selectize-control.single .selectize-input.dropdown-active {
    min-height: 36px;
    height: auto !important;
    padding: 8px !important;
    font-size: 13px;
    line-height: 18px;
    box-sizing: border-box;
    border-radius: 0.5rem !important;
    background-image: none !important;
    display: flex !important;
    align-items: center !important;
}

/* Match post-ad: no chevron (Selectize default :after + custom SVG). */
.post-ad-extra .selectize-control.single .selectize-input:after,
.post-ad-extra .selectize-control.single .selectize-input::after {
    content: none !important;
    display: none !important;
}

html:not(.dark-mode) .post-ad-extra .selectize-control.single .selectize-input,
html:not(.dark-mode) .post-ad-extra .selectize-control.single .selectize-input.input-active,
html:not(.dark-mode) .post-ad-extra .selectize-control.single .selectize-input.dropdown-active {
    border: 1px solid #ced4da !important;
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* After Selectize mounts: kill native <select> hard — Samsung Internet otherwise
   still opens the OS radio picker on top of the custom control. */
.post-ad-extra .selectize-control select.form-select[data-post-extra-field],
.post-ad-extra select.form-select[data-post-extra-field].selectized {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 1px !important;
    max-height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    z-index: -1 !important;
}

.post-ad-extra .selectize-input .item,
.post-ad-extra .selectize-input.has-items .item {
    display: block !important;
    width: 100%;
    color: #212529 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 18px !important;
}

.post-ad-extra .selectize-control.single .selectize-input.has-items > input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

html:not(.dark-mode) .post-ad-extra .selectize-input > input {
    color: #000000 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 18px !important;
}

/* Empty "—" placeholder / option — same violet as post-ad. */
.post-ad-extra .selectize-control.single .selectize-input > input::placeholder {
    color: #6a11cf !important;
    opacity: 1 !important;
    font-weight: 600 !important;
}

.post-ad-extra .selectize-input .item[data-value=""],
.post-ad-extra .selectize-input.has-items .item[data-value=""],
html.dark-mode .post-ad-extra .selectize-input .item[data-value=""],
html.dark-mode .post-ad-extra .selectize-input.has-items .item[data-value=""],
.dark-mode .post-ad-extra .selectize-input .item[data-value=""],
.dark-mode .post-ad-extra .selectize-input.has-items .item[data-value=""] {
    color: #6a11cf !important;
}

.post-ad-extra .selectize-input.dropdown-active::before {
    display: none !important;
}

.post-ad-extra .selectize-dropdown,
.post-ad-extra .selectize-dropdown.single {
    position: absolute !important;
    left: 0 !important;
    top: calc(100% + 4px) !important;
    width: 100% !important;
    margin-top: 0 !important;
    height: auto !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.35rem 0.85rem rgba(0, 0, 0, 0.12) !important;
    z-index: 1060 !important;
    overflow: hidden !important;
    background-color: #fff !important;
}

.post-ad-extra .selectize-dropdown:before,
.post-ad-extra .selectize-dropdown.form-control:before {
    display: none !important;
}

.post-ad-extra .selectize-dropdown-content {
    top: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    padding: 0.2rem 0 !important;
    border-radius: 0.5rem !important;
    background-color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

.post-ad-extra .selectize-dropdown .option,
.post-ad-extra .selectize-dropdown [data-selectable].option {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0.45rem 0.75rem !important;
    color: #212529 !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    background: transparent !important;
}

html:not(.dark-mode) .post-ad-extra .selectize-dropdown [data-selectable].option {
    color: #212529 !important;
    font-weight: 600 !important;
}

html:not(.dark-mode) .post-ad-extra .selectize-dropdown .option.active,
html:not(.dark-mode) .post-ad-extra .selectize-dropdown [data-selectable].option:hover {
    color: #6A11CF !important;
    background-color: rgba(106, 17, 207, 0.12) !important;
}

html.dark-mode .post-ad-extra .selectize-control.single .selectize-input,
html.dark-mode .post-ad-extra .selectize-control.single .selectize-input.input-active,
html.dark-mode .post-ad-extra .selectize-control.single .selectize-input.dropdown-active,
.dark-mode .post-ad-extra .selectize-control.single .selectize-input,
.dark-mode .post-ad-extra .selectize-control.single .selectize-input.input-active,
.dark-mode .post-ad-extra .selectize-control.single .selectize-input.dropdown-active {
    background-color: #272827 !important;
    color: #f2f2f2 !important;
    border-color: #4a4d52 !important;
    background-image: none !important;
    box-shadow: none !important;
}

html.dark-mode .post-ad-extra .selectize-control.single .selectize-input > input,
.dark-mode .post-ad-extra .selectize-control.single .selectize-input > input {
    color: #d1cbc1 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 18px !important;
}

html.dark-mode .post-ad-extra .selectize-input .item,
html.dark-mode .post-ad-extra .selectize-input.has-items .item,
.dark-mode .post-ad-extra .selectize-input .item,
.dark-mode .post-ad-extra .selectize-input.has-items .item {
    color: #f2f2f2 !important;
}

html.dark-mode .post-ad-extra .selectize-dropdown,
.dark-mode .post-ad-extra .selectize-dropdown {
    background-color: #272827 !important;
    border-color: #4a4d52 !important;
}

html.dark-mode .post-ad-extra .selectize-dropdown-content,
.dark-mode .post-ad-extra .selectize-dropdown-content {
    top: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: hidden !important;
    background-color: #272827 !important;
    border-color: #4a4d52 !important;
}

html.dark-mode .post-ad-extra .selectize-dropdown .option,
html.dark-mode .post-ad-extra .selectize-dropdown [data-selectable].option,
.dark-mode .post-ad-extra .selectize-dropdown .option,
.dark-mode .post-ad-extra .selectize-dropdown [data-selectable].option {
    color: #f2f2f2 !important;
    background: transparent !important;
}

html.dark-mode .post-ad-extra .selectize-dropdown .option.active,
html.dark-mode .post-ad-extra .selectize-dropdown [data-selectable].option:hover,
.dark-mode .post-ad-extra .selectize-dropdown .option.active,
.dark-mode .post-ad-extra .selectize-dropdown [data-selectable].option:hover {
    background-color: rgba(106, 17, 207, 0.35) !important;
    color: #f2f2f2 !important;
}

.post-ad-extra .form-control:focus,
.post-ad-extra .form-control:focus-visible,
.post-ad-extra .form-select:focus,
.post-ad-extra .form-select:focus-visible,
.post-ad-extra .form-control-sm:focus,
.post-ad-extra .form-control-sm:focus-visible,
.post-ad-extra textarea:focus,
.post-ad-extra textarea:focus-visible,
#multiStepForm .post-ad-extra .form-control:focus,
#multiStepForm .post-ad-extra .form-control:focus-visible,
#multiStepForm .post-ad-extra .form-select:focus,
#multiStepForm .post-ad-extra .form-select:focus-visible,
#multiStepForm .post-ad-extra .form-control-sm:focus,
#multiStepForm .post-ad-extra .form-control-sm:focus-visible,
#multiStepForm .post-ad-extra textarea:focus,
#multiStepForm .post-ad-extra textarea:focus-visible {
    border-color: #6a11cf !important;
    box-shadow: 0 0 0 0.15rem rgba(106, 17, 207, 0.2) !important;
    outline: none !important;
}

/* Selectize focus — same violet frame as backend additional-info (overrides grey input-active). */
.post-ad-extra .selectize-control.single .selectize-input.focus,
.post-ad-extra .selectize-control.single .selectize-input.input-active,
.post-ad-extra .selectize-control.single .selectize-input.dropdown-active,
.post-ad-extra .selectize-control.single.focus .selectize-input,
#multiStepForm .post-ad-extra .selectize-control.single .selectize-input.focus,
#multiStepForm .post-ad-extra .selectize-control.single .selectize-input.input-active,
#multiStepForm .post-ad-extra .selectize-control.single .selectize-input.dropdown-active,
#multiStepForm .post-ad-extra .selectize-control.single.focus .selectize-input,
html.dark-mode .post-ad-extra .selectize-control.single .selectize-input.focus,
html.dark-mode .post-ad-extra .selectize-control.single .selectize-input.input-active,
html.dark-mode .post-ad-extra .selectize-control.single .selectize-input.dropdown-active,
html.dark-mode #multiStepForm .post-ad-extra .selectize-control.single .selectize-input.input-active,
.dark-mode .post-ad-extra .selectize-control.single .selectize-input.focus,
.dark-mode .post-ad-extra .selectize-control.single .selectize-input.input-active,
.dark-mode .post-ad-extra .selectize-control.single .selectize-input.dropdown-active,
.dark-mode #multiStepForm .post-ad-extra .selectize-control.single .selectize-input.input-active {
    border-color: #6a11cf !important;
    box-shadow: 0 0 0 0.15rem rgba(106, 17, 207, 0.2) !important;
    outline: none !important;
}

html:not(.dark-mode) .post-ad-extra .form-control:focus,
html:not(.dark-mode) .post-ad-extra .form-control:focus-visible,
html:not(.dark-mode) .post-ad-extra .form-select:focus,
html:not(.dark-mode) .post-ad-extra .form-select:focus-visible,
html:not(.dark-mode) .post-ad-extra .form-control-sm:focus,
html:not(.dark-mode) .post-ad-extra .form-control-sm:focus-visible,
html:not(.dark-mode) .post-ad-extra textarea:focus,
html:not(.dark-mode) .post-ad-extra textarea:focus-visible {
    background-color: #fff !important;
    color: #212529 !important;
}

html.dark-mode .post-ad-extra .form-control:focus,
html.dark-mode .post-ad-extra .form-control:focus-visible,
html.dark-mode .post-ad-extra .form-select:focus,
html.dark-mode .post-ad-extra .form-select:focus-visible,
html.dark-mode .post-ad-extra .form-control-sm:focus,
html.dark-mode .post-ad-extra .form-control-sm:focus-visible,
html.dark-mode .post-ad-extra textarea:focus,
html.dark-mode .post-ad-extra textarea:focus-visible,
.dark-mode .post-ad-extra .form-control:focus,
.dark-mode .post-ad-extra .form-control:focus-visible,
.dark-mode .post-ad-extra .form-select:focus,
.dark-mode .post-ad-extra .form-select:focus-visible,
.dark-mode .post-ad-extra .form-control-sm:focus,
.dark-mode .post-ad-extra .form-control-sm:focus-visible,
.dark-mode .post-ad-extra textarea:focus,
.dark-mode .post-ad-extra textarea:focus-visible {
    background-color: #272827 !important;
    color: #f2f2f2 !important;
}

.post-ad-extra input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.post-ad-extra input[type="number"]::-webkit-outer-spin-button,
.post-ad-extra input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.post-ad-extra__section + .post-ad-extra__section {
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(106, 17, 207, 0.18);
}

/* Working hours left, rates right; rates hug the right on wide screens. */
.post-ad-extra__rates-hours-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(0.75rem, 3vw, 2.5rem);
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(106, 17, 207, 0.18);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.post-ad-extra__rates-hours-row > .post-ad-extra__section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    min-width: 0;
}

.post-ad-extra__rates-hours-row > .post-ad-extra__section--hours {
    flex: 0 0 auto;
    width: max-content;
    order: 1;
}

.post-ad-extra__rates-hours-row > .post-ad-extra__section--rates {
    flex: 0 0 auto;
    width: max-content;
    order: 2;
    margin-left: auto;
}

.post-ad-extra__rates-hours-row + .post-ad-extra__section {
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(106, 17, 207, 0.18);
}

.post-ad-extra__table--rates {
    width: auto !important;
    max-width: none;
    table-layout: auto;
}

.post-ad-extra__table--rates th,
.post-ad-extra__table--rates td {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    white-space: nowrap;
}

.post-ad-extra__table--rates input.form-control,
.post-ad-extra__table--rates input.form-control-sm {
    width: 4.75rem !important;
    max-width: 4.75rem !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.post-ad-extra__table--rates td:first-child input.form-control,
.post-ad-extra__table--rates td:first-child input.form-control-sm {
    width: 5.5rem !important;
    max-width: 5.5rem !important;
}

.post-ad-extra__section--rates .post-ad-extra__table-wrap {
    overflow-x: visible;
}

.post-ad-extra__section--hours .post-ad-extra__table-wrap {
    overflow-x: visible;
}

.post-ad-extra__heading,
.main-panel .post-ad-extra__heading,
.admin-add-post-editor .post-ad-extra__heading {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #6a11cf !important;
    text-transform: lowercase;
    letter-spacing: 0.03em;
}

.post-ad-extra__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 0.85rem;
}

.post-ad-extra__checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 0.85rem;
}

.post-ad-extra__check-group {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(106, 17, 207, 0.16);
    border-radius: 10px;
}

.post-ad-extra__check-group legend {
    margin-bottom: 0.35rem;
    padding: 0;
    float: none;
    width: auto;
    text-transform: lowercase;
}

.post-ad-extra__check,
.main-panel .post-ad-extra__check,
.admin-add-post-editor .post-ad-extra__check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 0.85rem;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    color: #6a11cf !important;
}

/*
 * Same purple squares as frontend post-ad. Beat admin-header-inline
 * `.main-panel input[type=checkbox]` outline boxes. Scoped to .post-ad-extra.
 */
.post-ad-extra input[type="checkbox"],
#multiStepForm .post-ad-extra input[type="checkbox"],
.main-panel .post-ad-extra input[type="checkbox"],
.admin-add-post-editor .post-ad-extra input[type="checkbox"],
.post-ad-extra input[type="checkbox"]:not(:checked),
#multiStepForm .post-ad-extra input[type="checkbox"]:not(:checked),
.main-panel .post-ad-extra input[type="checkbox"]:not(:checked),
.admin-add-post-editor .post-ad-extra input[type="checkbox"]:not(:checked),
.post-ad-extra input[type="checkbox"]:checked,
#multiStepForm .post-ad-extra input[type="checkbox"]:checked,
.main-panel .post-ad-extra input[type="checkbox"]:checked,
.admin-add-post-editor .post-ad-extra input[type="checkbox"]:checked {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    box-sizing: border-box !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #7F00FF none !important;
    background-color: #7F00FF !important;
    background-image: none !important;
    border: 0 none !important;
    border-radius: 4px !important;
    cursor: pointer;
    position: relative !important;
    vertical-align: middle;
    flex: 0 0 20px;
    accent-color: #7F00FF;
    box-shadow: none !important;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
}

.post-ad-extra input[type="checkbox"]:checked::after,
#multiStepForm .post-ad-extra input[type="checkbox"]:checked::after,
.main-panel .post-ad-extra input[type="checkbox"]:checked::after,
.admin-add-post-editor .post-ad-extra input[type="checkbox"]:checked::after {
    content: '✓' !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    right: auto;
    bottom: auto;
    width: auto !important;
    height: auto !important;
    transform: translate(-50%, -50%) !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center;
    background: none !important;
    border: 0 none !important;
}

.post-ad-extra input[type="checkbox"]:not(:checked)::after,
#multiStepForm .post-ad-extra input[type="checkbox"]:not(:checked)::after,
.main-panel .post-ad-extra input[type="checkbox"]:not(:checked)::after,
.admin-add-post-editor .post-ad-extra input[type="checkbox"]:not(:checked)::after {
    content: none !important;
    display: none !important;
}

.post-ad-extra__table-wrap {
    overflow-x: auto;
}

.post-ad-extra__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
}

.post-ad-extra__table th {
    background: #591e98;
    color: #fff;
    font-weight: 700;
    text-align: left;
    text-transform: none;
    padding: 0.45rem 0.55rem;
    border: 0;
}

.post-ad-extra__table thead tr th:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.post-ad-extra__table thead tr th:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.post-ad-extra__table td {
    padding: 0.35rem 0.4rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(106, 17, 207, 0.12);
}

.post-ad-extra__service-search-row td {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(106, 17, 207, 0.12);
}

.post-ad-extra__service-search {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    width: 100%;
    max-width: 100%;
}

.post-ad-extra__service-search-field {
    position: relative;
    width: 35%;
    max-width: 100%;
    min-width: 8.5rem;
    flex: 0 0 auto;
}

.post-ad-extra__service-search-field .form-control {
    width: 100%;
}

.post-ad-extra__service-search-field input[type="search"]::-webkit-search-cancel-button,
.post-ad-extra__service-search-field input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.post-ad-extra__service-search-clear {
    flex: 0 0 auto;
}

.post-ad-extra__service-search-clear[hidden] {
    display: none !important;
}

.post-ad-extra__service-name {
    font-weight: 600;
    color: #6a11cf;
    min-width: 10rem;
    width: 100%;
}

/* Beat global form label greys (#multiStepForm label / .main-panel label). */
.post-ad-extra__service-name .post-ad-extra__service-name-label,
#multiStepForm .post-ad-extra__service-name .post-ad-extra__service-name-label,
.main-panel .post-ad-extra__service-name .post-ad-extra__service-name-label,
.admin-add-post-editor .post-ad-extra__service-name .post-ad-extra__service-name-label {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 2.5rem !important;
    margin: 0 !important;
    padding: 0.35rem 0.4rem !important;
    cursor: pointer !important;
    color: #6a11cf !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

/* Whole name+incl. area toggles via native <label for> — fill the cell, no dead zones. */
.post-ad-extra__table--services tbody tr[data-post-extra-service-row] {
    cursor: pointer;
}
.post-ad-extra__table--services tbody tr[data-post-extra-service-row] td.post-ad-extra__service-name,
.post-ad-extra__table--services tbody tr[data-post-extra-service-row] td.post-ad-extra__service-included {
    cursor: pointer;
    position: relative;
    align-self: stretch !important;
    align-items: stretch !important;
    padding: 0 !important;
}
.post-ad-extra__table--services tbody tr[data-post-extra-service-row] input[data-post-extra-service="extra"],
.post-ad-extra__table--services tbody tr[data-post-extra-service-row] input[data-post-extra-service="name"] {
    cursor: text;
}

.post-ad-extra__service-included-label {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 2.5rem !important;
    margin: 0 !important;
    padding: 0.35rem 0 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

/* Hover the whole row — do not use :focus-within (admin kept titles red after uncheck). */
[data-post-extra-service-row]:hover .post-ad-extra__service-name-label,
#multiStepForm [data-post-extra-service-row]:hover .post-ad-extra__service-name-label,
.main-panel [data-post-extra-service-row]:hover .post-ad-extra__service-name-label,
.admin-add-post-editor [data-post-extra-service-row]:hover .post-ad-extra__service-name-label {
    color: #FF0000 !important;
    text-decoration: none !important;
}

/* Red title only while “incl.” is checked. */
[data-post-extra-service-row]:has([data-post-extra-service="included"]:checked) .post-ad-extra__service-name,
[data-post-extra-service-row]:has([data-post-extra-service="included"]:checked) .post-ad-extra__service-name-label,
#multiStepForm [data-post-extra-service-row]:has([data-post-extra-service="included"]:checked) .post-ad-extra__service-name-label,
.main-panel [data-post-extra-service-row]:has([data-post-extra-service="included"]:checked) .post-ad-extra__service-name-label,
.admin-add-post-editor [data-post-extra-service-row]:has([data-post-extra-service="included"]:checked) .post-ad-extra__service-name-label,
[data-post-extra-service-row]:has([data-post-extra-service="included"]:checked) .post-ad-extra__service-name input[data-post-extra-service="name"] {
    color: #FF0000 !important;
}

/* Unchecked → violet again (beats admin .main-panel label muted/focus leftovers). */
.main-panel [data-post-extra-service-row]:not(:has([data-post-extra-service="included"]:checked)) .post-ad-extra__service-name-label,
.admin-add-post-editor [data-post-extra-service-row]:not(:has([data-post-extra-service="included"]:checked)) .post-ad-extra__service-name-label,
.main-panel [data-post-extra-service-row]:not(:has([data-post-extra-service="included"]:checked)) .post-ad-extra__service-name,
.admin-add-post-editor [data-post-extra-service-row]:not(:has([data-post-extra-service="included"]:checked)) .post-ad-extra__service-name {
    color: #6a11cf !important;
}

.main-panel [data-post-extra-service-row]:not(:has([data-post-extra-service="included"]:checked)):hover .post-ad-extra__service-name-label,
.admin-add-post-editor [data-post-extra-service-row]:not(:has([data-post-extra-service="included"]:checked)):hover .post-ad-extra__service-name-label {
    color: #FF0000 !important;
}

.post-ad-extra__service-included {
    text-align: center;
    width: 5.5rem;
    vertical-align: middle;
}

/* Services: “extra (€)” on one line + two-column list */
.post-ad-extra__table--services {
    display: block;
    width: 100%;
}

.post-ad-extra__table--services thead {
    display: block;
    width: 100%;
}

.post-ad-extra__table--services thead tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.75rem 5.5rem minmax(0, 1fr) 2.75rem 5.5rem;
    column-gap: 0;
    align-items: stretch;
}

.post-ad-extra__table--services thead th {
    white-space: nowrap;
}

.post-ad-extra__table--services .post-ad-extra__th-extra {
    white-space: nowrap !important;
}

/* One continuous violet bar per column group; gap only between the two groups. */
.post-ad-extra__table--services thead tr th {
    border-radius: 0;
}

.post-ad-extra__table--services thead tr th:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.post-ad-extra__table--services thead tr th:nth-child(3) {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.post-ad-extra__table--services thead tr th:nth-child(4) {
    margin-left: 1rem;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.post-ad-extra__table--services thead tr th:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.post-ad-extra__table--services tbody {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 0.1rem;
    width: 100%;
}

.post-ad-extra__table--services .post-ad-extra__service-search-row {
    grid-column: 1 / -1;
    display: block;
}

.post-ad-extra__table--services .post-ad-extra__service-search-row td {
    display: block;
    width: 100%;
}

.post-ad-extra__table--services tbody tr[data-post-extra-service-row] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.75rem 5.5rem;
    column-gap: 0;
    /* Stretch cells so one row border stays level (not stair-step per-td borders). */
    align-items: stretch;
    min-width: 0;
    border-bottom: 1px solid rgba(106, 17, 207, 0.12);
}

.post-ad-extra__table--services tbody tr[data-post-extra-service-row] td {
    border-bottom: none;
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.post-ad-extra__table--services .post-ad-extra__service-name {
    min-width: 0;
}

.post-ad-extra__table--services .post-ad-extra__service-included {
    width: auto;
}

.post-ad-extra__table--services tbody tr[data-post-extra-service-row] td:last-child .form-control {
    min-width: 0;
    width: 100%;
}

@media (max-width: 700px) {
    .post-ad-extra__table--services thead tr {
        grid-template-columns: minmax(0, 1fr) 2.75rem 5.5rem;
        column-gap: 0;
    }

    .post-ad-extra__table--services thead tr th:nth-child(n+4) {
        display: none;
        margin-left: 0;
    }

    .post-ad-extra__table--services thead tr th:first-child {
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }

    .post-ad-extra__table--services thead tr th:nth-child(3) {
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    .post-ad-extra__table--services tbody {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Red ✓ on service “incl.” boxes (frontend + admin extra). */
#multiStepForm .post-ad-extra__service-included input[type="checkbox"]:checked::after,
#multiStepForm .post-ad-extra input[data-post-extra-service="included"]:checked::after,
.main-panel .post-ad-extra__service-included input[type="checkbox"]:checked::after,
.admin-add-post-editor .post-ad-extra__service-included input[type="checkbox"]:checked::after,
.post-ad-extra input[data-post-extra-service="included"]:checked::after {
    color: #FF0000 !important;
}

.post-ad-extra__weekday-name,
.main-panel .post-ad-extra__weekday-name,
.admin-add-post-editor .post-ad-extra__weekday-name {
    font-weight: 600;
    color: #6a11cf !important;
    width: 5.5rem;
    min-width: 5.5rem;
    text-transform: lowercase;
    white-space: nowrap;
}

.post-ad-extra__table--hours {
    width: auto;
    max-width: 100%;
}

.post-ad-extra__table--hours th,
.post-ad-extra__table--hours td {
    text-align: left;
}

.post-ad-extra__table--hours th:nth-child(2),
.post-ad-extra__table--hours th:nth-child(3),
.post-ad-extra__table--hours .post-ad-extra__hours-time-cell {
    width: 4.75rem;
    padding-left: 0.2rem;
    padding-right: 0.35rem;
}

.post-ad-extra__table--hours th:nth-child(4),
.post-ad-extra__table--hours .post-ad-extra__hours-all-day {
    width: 4.25rem;
    padding-left: 0.2rem;
}

.post-ad-extra__hours-time-input {
    width: 100%;
    max-width: 4.75rem;
    min-width: 0;
    display: block;
}

.post-ad-extra__hours-time-input::placeholder {
    color: rgba(130, 130, 130, 0.9);
    opacity: 1;
}

html.dark-mode .post-ad-extra__hours-time-input::placeholder,
.dark-mode .post-ad-extra__hours-time-input::placeholder {
    color: rgba(180, 180, 180, 0.75);
}

.post-ad-extra__hours-24-7-row td {
    padding-top: 0.55rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(106, 17, 207, 0.12);
}

.post-ad-extra__available-24-7 {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    cursor: pointer;
}

.post-ad-extra__green-badge {
    display: inline-block;
    background-color: green;
    color: #fff;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: lowercase;
    line-height: 1.3;
}

.post-extra-display__green-badge,
.post-extra-display__red-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 2.9em;
    min-width: 2.9em;
    max-width: 2.9em;
    padding: 0.15rem 0;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-transform: lowercase;
    color: #fff;
}

.post-extra-display__green-badge {
    background-color: green;
}

.post-extra-display__red-badge {
    background-color: #ff0000;
}

.post-ad-extra__table--hours.is-available-24-7 [data-post-extra-hours-row] {
    opacity: 0.45;
    pointer-events: none;
}

.post-ad-extra__hours-all-day {
    text-align: left;
    width: 4.25rem;
}

.post-ad-extra__table--hours [data-post-extra-hours-row].is-all-day [data-post-extra-hours="from"],
.post-ad-extra__table--hours [data-post-extra-hours-row].is-all-day [data-post-extra-hours="to"] {
    opacity: 0.45;
}

.post-ad-extra__row-remove,
.main-panel .post-ad-extra__row-remove,
.admin-add-post-editor .post-ad-extra__row-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(127, 127, 127, 0.16);
    color: transparent;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: background 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

/* Geometric × — truly centered (font × sits optically off). */
.post-ad-extra__row-remove::before,
.post-ad-extra__row-remove::after,
.main-panel .post-ad-extra__row-remove::before,
.main-panel .post-ad-extra__row-remove::after,
.admin-add-post-editor .post-ad-extra__row-remove::before,
.admin-add-post-editor .post-ad-extra__row-remove::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2.75px;
    margin: 0;
    border-radius: 1px;
    background: #dc3545;
    pointer-events: none;
}

.post-ad-extra__row-remove::before,
.main-panel .post-ad-extra__row-remove::before,
.admin-add-post-editor .post-ad-extra__row-remove::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.post-ad-extra__row-remove::after,
.main-panel .post-ad-extra__row-remove::after,
.admin-add-post-editor .post-ad-extra__row-remove::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

html.dark-mode .post-ad-extra__row-remove,
.dark-mode .post-ad-extra__row-remove,
.container-scroller .post-ad-extra__row-remove {
    background: rgba(255, 255, 255, 0.12);
    color: transparent;
}

html.dark-mode .post-ad-extra__row-remove::before,
html.dark-mode .post-ad-extra__row-remove::after,
.dark-mode .post-ad-extra__row-remove::before,
.dark-mode .post-ad-extra__row-remove::after,
.container-scroller .post-ad-extra__row-remove::before,
.container-scroller .post-ad-extra__row-remove::after {
    background: #ff6666;
}

.post-ad-extra__row-remove:hover,
.post-ad-extra__row-remove:focus-visible {
    background: rgba(255, 0, 0, 0.18);
    color: transparent;
    outline: none;
}

.post-ad-extra__row-remove:hover::before,
.post-ad-extra__row-remove:hover::after,
.post-ad-extra__row-remove:focus-visible::before,
.post-ad-extra__row-remove:focus-visible::after {
    background: #ff0000;
}

html.dark-mode .post-ad-extra__row-remove:hover,
html.dark-mode .post-ad-extra__row-remove:focus-visible,
.dark-mode .post-ad-extra__row-remove:hover,
.dark-mode .post-ad-extra__row-remove:focus-visible,
.container-scroller .post-ad-extra__row-remove:hover,
.container-scroller .post-ad-extra__row-remove:focus-visible {
    background: rgba(255, 0, 0, 0.22);
    color: transparent;
}

html.dark-mode .post-ad-extra__row-remove:hover::before,
html.dark-mode .post-ad-extra__row-remove:hover::after,
html.dark-mode .post-ad-extra__row-remove:focus-visible::before,
html.dark-mode .post-ad-extra__row-remove:focus-visible::after,
.dark-mode .post-ad-extra__row-remove:hover::before,
.dark-mode .post-ad-extra__row-remove:hover::after,
.dark-mode .post-ad-extra__row-remove:focus-visible::before,
.dark-mode .post-ad-extra__row-remove:focus-visible::after,
.container-scroller .post-ad-extra__row-remove:hover::before,
.container-scroller .post-ad-extra__row-remove:hover::after,
.container-scroller .post-ad-extra__row-remove:focus-visible::before,
.container-scroller .post-ad-extra__row-remove:focus-visible::after {
    background: #ff6666;
}

.post-ad-extra__add-row,
.post-ad-extra__custom-service {
    margin-top: 0.65rem;
}

.post-ad-extra__custom-service {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
}

.post-ad-extra__custom-service .form-control {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    min-width: 0;
}

.post-ad-extra .post-ad-extra__action-btn {
    background-color: #008000 !important;
    border: 0 !important;
    outline: 0 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.post-ad-extra .post-ad-extra__action-btn:hover,
.post-ad-extra .post-ad-extra__action-btn:focus-visible,
.post-ad-extra .post-ad-extra__action-btn:active {
    background-color: #4B0082 !important;
    border: 0 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

html.dark-mode .post-ad-extra .post-ad-extra__action-btn,
.dark-mode .post-ad-extra .post-ad-extra__action-btn {
    background-color: #008000 !important;
    border: 0 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

html.dark-mode .post-ad-extra .post-ad-extra__action-btn:hover,
html.dark-mode .post-ad-extra .post-ad-extra__action-btn:focus-visible,
html.dark-mode .post-ad-extra .post-ad-extra__action-btn:active,
.dark-mode .post-ad-extra .post-ad-extra__action-btn:hover,
.dark-mode .post-ad-extra .post-ad-extra__action-btn:focus-visible,
.dark-mode .post-ad-extra .post-ad-extra__action-btn:active {
    background-color: #4B0082 !important;
    border: 0 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.post-ad-additional-details {
    margin-top: 1.25rem;
    clear: both;
}

.post-ad-additional-details > summary {
    list-style: none;
}

.post-ad-additional-details > summary::-webkit-details-marker {
    display: none;
}

.post-ad-additional-details > summary::marker {
    content: '';
}

.post-ad-additional-panel,
.admin-post-additional-panel {
    margin-top: 1rem;
    overflow: visible;
}

.post-ad-additional-panel.is-animating,
.admin-post-additional-panel.is-animating {
    overflow: hidden !important;
    will-change: height, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .post-ad-additional-panel.is-animating,
    .admin-post-additional-panel.is-animating {
        will-change: auto;
        transition: none !important;
    }
}

.post-ad-additional-panel-inner {
    overflow: visible;
}

/* Keep extra fields mounted after the first open. Closing native <details>
   uses display:none and wipes profile inputs (Selectize + text/checkboxes). */
.post-ad-additional-details.is-extra-collapsed > .post-ad-additional-panel,
.post-ad-additional-details.is-extra-collapsed > .admin-post-additional-panel {
    height: 0 !important;
    max-height: 0 !important;
    margin-top: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden;
}

.post-ad-additional-toggle {
    float: none !important;
    width: 100%;
    display: block;
    margin-top: 0 !important;
    text-transform: none;
    font-weight: 700;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

/* Keep the same green open or closed — no dimming / theme mute on focus. */
.post-ad-additional-toggle.btn-success,
.post-ad-additional-details[open] > summary.post-ad-additional-toggle.btn-success,
.post-ad-additional-toggle.btn-success.is-open,
.post-ad-additional-toggle.btn-success:hover,
.post-ad-additional-toggle.btn-success:focus,
.post-ad-additional-toggle.btn-success:focus-visible,
.post-ad-additional-toggle.btn-success:active,
html.dark-mode .main-panel .post-ad-additional-toggle.btn-success,
html.dark-mode .main-panel .post-ad-additional-toggle.btn-success:hover,
html.dark-mode .main-panel .post-ad-additional-toggle.btn-success:focus,
html.dark-mode .main-panel .post-ad-additional-toggle.btn-success:active,
html.dark-mode .main-panel .post-ad-additional-details[open] > summary.post-ad-additional-toggle.btn-success,
html.dark-mode .page-body-wrapper .post-ad-additional-toggle.btn-success,
.dark-mode .main-panel .post-ad-additional-toggle.btn-success,
.dark-mode .main-panel .post-ad-additional-details[open] > summary.post-ad-additional-toggle.btn-success {
    background-color: green !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    outline: none !important;
}

.post-ad-extra .form-label,
.post-ad-additional-info-block .form-label {
    font-size: 14px;
    font-weight: 700;
    color: #828282;
    margin-bottom: 0;
    text-transform: lowercase;
}

html.dark-mode .post-ad-extra .form-label,
.dark-mode .post-ad-extra .form-label,
html.dark-mode .post-ad-additional-info-block .form-label,
.dark-mode .post-ad-additional-info-block .form-label,
.admin-add-post-editor .post-ad-extra .form-label {
    color: #828282 !important;
}

.post-ad-additional-info-block {
    width: 100%;
    position: relative;
    z-index: 2;
}

/*
 * Admin additional-info slot: same width open or closed = combined upper panels.
 * width:0 + min-width:100% fills the span without letting open content widen the grid.
 */
body.admin-body-post-editor-wide .admin-add-post-editor #postForm > .row:first-of-type > .admin-post-additional-info-slot {
    grid-column: 1 / -1;
    justify-self: stretch;
    align-self: start;
    width: 0;
    min-width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

body.admin-body-post-editor-wide .admin-add-post-editor #postForm > .row:first-of-type > .admin-post-additional-info-slot .post-ad-additional-info-block {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 991.98px) {
    body.admin-body-post-editor-wide .admin-add-post-editor #postForm > .row:first-of-type > .admin-post-additional-info-slot {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-additional-info-block,
body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-additional-details,
body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-additional-panel,
body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-additional-panel-inner,
body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

body.admin-body-post-editor-wide .admin-post-additional-info-slot summary.post-ad-additional-toggle,
body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-additional-toggle {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra {
    overflow-x: visible !important;
}

body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__grid,
body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__checks {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__rates-hours-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: visible !important;
    box-sizing: border-box !important;
}

body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__section--hours {
    order: 1 !important;
    margin-left: 0 !important;
    flex: 0 0 auto !important;
    width: max-content !important;
    max-width: none !important;
}

/* Rates: shrink to remaining space; ONLY this block may scroll when narrow. */
body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__section--rates {
    order: 2 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
}

body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__table--services {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__table--services thead tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 2.75rem 5.5rem minmax(0, 1fr) 2.75rem 5.5rem !important;
    column-gap: 0 !important;
}

body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__table--services thead tr th:nth-child(n+4) {
    display: block !important;
}

body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__table--services thead tr th:nth-child(4) {
    margin-left: 1rem !important;
}

body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__table--services tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    column-gap: 1rem !important;
}

body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-additional-toggle {
    border-radius: 0.375rem !important;
    padding: 0.65rem 1rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra {
    border-radius: 12px !important;
}

/* Extra inputs = frontend post-ad (compact sm), not Star Admin 2.575rem white fields. */
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control-sm,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra select.form-select[data-post-extra-field]:not(.selectized) {
    border-radius: 0.5rem !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: calc(1.5em + 0.5rem + 2px) !important;
    max-height: none !important;
    width: 100% !important;
    max-width: 100% !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Rates: narrower than frontend defaults; scroll only on rates wrap (not services). */
body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__section--rates,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-extra__section--rates {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
}
body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__section--rates .post-ad-extra__table-wrap,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-extra__section--rates .post-ad-extra__table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
}
body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__table--rates,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-extra__table--rates {
    width: auto !important;
    max-width: none !important;
    table-layout: auto !important;
}
body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__table--rates th,
body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__table--rates td,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-extra__table--rates th,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-extra__table--rates td {
    width: 1% !important;
    white-space: nowrap !important;
    padding-left: 0.28rem !important;
    padding-right: 0.28rem !important;
}
body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__table--rates input.form-control,
body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__table--rates input.form-control-sm,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-extra__table--rates input.form-control,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-extra__table--rates input.form-control-sm {
    width: 3.5rem !important;
    max-width: 3.5rem !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__table--rates td:first-child input.form-control,
body.admin-body-post-editor-wide .admin-post-additional-info-slot .post-ad-extra__table--rates td:first-child input.form-control-sm,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-extra__table--rates td:first-child input.form-control,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-extra__table--rates td:first-child input.form-control-sm {
    width: 4.25rem !important;
    max-width: 4.25rem !important;
}

body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra select.form-select[data-post-extra-field]:not(.selectized) {
    padding-right: 0.75rem !important;
    background-image: none !important;
}

html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra select.form-select[data-post-extra-field]:not(.selectized) {
    background-image: none !important;
}

html:not(.dark-mode) body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control,
html:not(.dark-mode) body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control-sm,
html:not(.dark-mode) body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra select.form-select[data-post-extra-field]:not(.selectized) {
    background-color: #F5F5F5 !important;
    color: #212529 !important;
    border: 1px solid #ced4da !important;
}

html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra {
    color-scheme: dark;
}

html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control,
html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control-sm,
html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra textarea,
html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra select.form-select[data-post-extra-field]:not(.selectized),
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control-sm,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra textarea,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra select.form-select[data-post-extra-field]:not(.selectized) {
    background-color: #272827 !important;
    color: #f2f2f2 !important;
    border: 1px solid #4a4d52 !important;
    box-shadow: none !important;
}

html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra input:-webkit-autofill,
html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra input:-webkit-autofill:hover,
html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra input:-webkit-autofill:focus,
html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra input:-webkit-autofill:active,
html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra textarea:-webkit-autofill,
html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra textarea:-webkit-autofill:hover,
html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra textarea:-webkit-autofill:focus,
html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra textarea:-webkit-autofill:active,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra input:-webkit-autofill,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra input:-webkit-autofill:hover,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra input:-webkit-autofill:focus,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra input:-webkit-autofill:active,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra textarea:-webkit-autofill,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra textarea:-webkit-autofill:hover,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra textarea:-webkit-autofill:focus,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #272827 inset !important;
    box-shadow: 0 0 0 1000px #272827 inset !important;
    -webkit-text-fill-color: #f2f2f2 !important;
    caret-color: #f2f2f2 !important;
    border-color: #4a4d52 !important;
    transition: background-color 99999s ease-out 0s;
}

html:not(.dark-mode) body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control:focus,
html:not(.dark-mode) body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control:focus-visible,
html:not(.dark-mode) body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-select:focus,
html:not(.dark-mode) body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-select:focus-visible,
html:not(.dark-mode) body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control-sm:focus,
html:not(.dark-mode) body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control-sm:focus-visible,
html:not(.dark-mode) body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra textarea:focus,
html:not(.dark-mode) body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra textarea:focus-visible {
    background-color: #F5F5F5 !important;
    color: #212529 !important;
    border-color: #6a11cf !important;
    box-shadow: 0 0 0 0.15rem rgba(106, 17, 207, 0.2) !important;
    outline: none !important;
}

html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control:focus,
html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control:focus-visible,
html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-select:focus,
html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-select:focus-visible,
html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control-sm:focus,
html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control-sm:focus-visible,
html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra textarea:focus,
html.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra textarea:focus-visible,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control:focus,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control:focus-visible,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-select:focus,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-select:focus-visible,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control-sm:focus,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .form-control-sm:focus-visible,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra textarea:focus,
.dark-mode body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra textarea:focus-visible {
    background-color: #272827 !important;
    color: #f2f2f2 !important;
    border-color: #6a11cf !important;
    box-shadow: 0 0 0 0.15rem rgba(106, 17, 207, 0.2) !important;
    outline: none !important;
}

body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .btn,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .btn-sm {
    border-radius: 0.5rem !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    box-shadow: none !important;
}

body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .post-ad-extra__action-btn {
    background-color: #008000 !important;
    border: 0 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    min-height: calc(1.5em + 0.5rem + 2px) !important;
    height: auto !important;
}

body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .post-ad-extra__action-btn:hover,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .post-ad-extra__action-btn:focus-visible,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra .post-ad-extra__action-btn:active {
    background-color: #4B0082 !important;
    border: 0 !important;
    color: #ffffff !important;
}

body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .form-label,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block label.form-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #828282 !important;
    margin-bottom: 0 !important;
    text-transform: lowercase !important;
}

body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-additional-info-block .post-ad-extra__check-group {
    border-radius: 10px !important;
}

@media (max-width: 767.98px) {
    .post-ad-extra__grid,
    .post-ad-extra__checks {
        grid-template-columns: 1fr;
    }

    /* Frontend post-ad: hours left / rates right → stack hours then rates. */
    #multiStepForm .post-ad-extra__rates-hours-row {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        gap: 0;
    }

    #multiStepForm .post-ad-extra__rates-hours-row > .post-ad-extra__section--rates,
    #multiStepForm .post-ad-extra__rates-hours-row > .post-ad-extra__section--hours {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    #multiStepForm .post-ad-extra__rates-hours-row > .post-ad-extra__section--hours {
        order: 1;
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

    #multiStepForm .post-ad-extra__rates-hours-row > .post-ad-extra__section--rates {
        order: 2;
        margin-top: 1.35rem;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(106, 17, 207, 0.18);
    }

    #multiStepForm .post-ad-extra__table--rates {
        width: auto;
        max-width: 100%;
    }
}

/*
 * Admin additional-info = frontend post-ad extra (desktop).
 * Must beat admin-header-inline checkbox chrome (empty outline / blue tick).
 */
body.admin-body-post-editor-wide .main-panel .post-ad-extra input[type="checkbox"]:not(.form-check-input),
body.admin-body-post-editor-wide .main-panel .post-ad-extra input[type="checkbox"]:not(.form-check-input):hover,
body.admin-body-post-editor-wide .main-panel .post-ad-extra input[type="checkbox"]:not(.form-check-input):checked,
body.admin-body-post-editor-wide .main-panel .post-ad-extra input[type="checkbox"]:not(.form-check-input):not(:checked),
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-extra input[type="checkbox"]:not(.form-check-input),
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-extra input[type="checkbox"]:not(.form-check-input):checked,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-extra input[type="checkbox"]:not(.form-check-input):not(:checked) {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #7F00FF none !important;
    background-color: #7F00FF !important;
    background-image: none !important;
    border: 0 none !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    position: relative !important;
}
body.admin-body-post-editor-wide .main-panel .post-ad-extra input[type="checkbox"]:not(.form-check-input):focus,
body.admin-body-post-editor-wide .main-panel .post-ad-extra input[type="checkbox"]:not(.form-check-input):focus-visible,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-extra input[type="checkbox"]:not(.form-check-input):focus,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-extra input[type="checkbox"]:not(.form-check-input):focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}
body.admin-body-post-editor-wide .main-panel .post-ad-extra input[type="checkbox"]:not(.form-check-input):checked::after,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-extra input[type="checkbox"]:not(.form-check-input):checked::after {
    content: "✓" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    background: none !important;
}
body.admin-body-post-editor-wide .main-panel .post-ad-extra__service-included input[type="checkbox"]:checked::after,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-extra__service-included input[type="checkbox"]:checked::after,
body.admin-body-post-editor-wide .main-panel .post-ad-extra input[data-post-extra-service="included"]:checked::after,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-extra input[data-post-extra-service="included"]:checked::after {
    color: #FF0000 !important;
}
body.admin-body-post-editor-wide .main-panel .post-ad-extra__heading,
body.admin-body-post-editor-wide .admin-add-post-editor .post-ad-extra__heading {
    color: #6a11cf !important;
}
body.admin-body-post-editor-wide .main-panel [data-post-extra-service-row]:has([data-post-extra-service="included"]:checked) .post-ad-extra__service-name-label,
body.admin-body-post-editor-wide .admin-add-post-editor [data-post-extra-service-row]:has([data-post-extra-service="included"]:checked) .post-ad-extra__service-name-label {
    color: #FF0000 !important;
}
body.admin-body-post-editor-wide .main-panel [data-post-extra-service-row]:not(:has([data-post-extra-service="included"]:checked)) .post-ad-extra__service-name-label,
body.admin-body-post-editor-wide .admin-add-post-editor [data-post-extra-service-row]:not(:has([data-post-extra-service="included"]:checked)) .post-ad-extra__service-name-label {
    color: #6a11cf !important;
}

