:root {
    --mj-sq-accent: #234b55;
    --mj-sq-border: #d9dfdf;
    --mj-sq-radius: 8px
}

body ul.products:has(>.mj-sq-service) {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    grid-template-columns: 1fr !important
}

body ul.products li.product.mj-sq-service {
    box-sizing: border-box;
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 20px !important;
    border: 1px solid var(--mj-sq-border);
    border-radius: var(--mj-sq-radius);
    background: #fff;
    box-shadow: none;
    text-align: left
}

.mj-sq-service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.mj-sq-choice {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer
}

.mj-sq-choice input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--mj-sq-accent)
}

body .mj-sq-button {
    border: 1px solid var(--mj-sq-accent);
    border-radius: var(--mj-sq-radius);
    background: var(--mj-sq-accent);
    color: #fff;
    padding: 10px 18px;
    font: inherit;
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
    white-space: nowrap
}

body .mj-sq-outline {
    background: transparent;
    color: var(--mj-sq-accent)
}

body .mj-sq-button:disabled {
    opacity: .5;
    cursor: not-allowed
}

.mj-sq-service-details {
    margin: 12px 0 0 34px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    font-size: 14px
}

.mj-sq-service-details details {
    flex: 1
}

.mj-sq-service-details summary {
    cursor: pointer;
    color: var(--mj-sq-accent);
    width: fit-content
}

.mj-sq-service-details a {
    flex-shrink: 0;
    text-decoration: underline
}

.mj-sq-description {
    padding-top: 16px;
    color: #424a4d;
    line-height: 1.7
}

.mj-sq-description p:last-child {
    margin-bottom: 0
}

.mj-sq-in-quote {
    background: #f5f8f7 !important
}

.mj-sq-bar[hidden] {
    display: none !important
}

.mj-sq-bar {
    position: fixed;
    z-index: 900;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    box-sizing: border-box;
    width: min(960px, calc(100% - 32px));
    padding: 16px 22px;
    background: #fff;
    color: #25383e;
    border: 1px solid var(--mj-sq-border);
    border-radius: 12px;
    box-shadow: 0 5px 30px #0002;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}

.mj-sq-bar strong {
    font-size: 15px
}

.mj-sq-bar [data-mj-feedback] {
    display: block;
    font-size: 13px
}

.mj-sq-bar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0
}

.mj-sq-bar-actions a {
    font-size: 14px;
    text-decoration: underline
}

.mj-sq-has-bar {
    padding-bottom: 120px !important
}

.mj-sq-single {
    margin: 24px 0
}

.mj-sq-service :focus-visible,
.mj-sq-bar :focus-visible,
.mj-sq-single :focus-visible {
    outline: 3px solid var(--mj-sq-accent);
    outline-offset: 4px
}

.mj-sq-quote-list {
    list-style: none;
    padding: 0
}

.mj-sq-quote-list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--mj-sq-border)
}

body .sq-form [data-mj-remove] {
    background: transparent;
    color: #444;
    text-decoration: underline;
    font-size: 14px;
    padding: 8px
}

.sq-form [hidden] {
    display: none !important
}

@media(max-width:600px) {
    .mj-sq-service-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px
    }

    .mj-sq-service-top>.mj-sq-button {
        margin-left: 34px
    }

    .mj-sq-service-details {
        flex-direction: column;
        gap: 12px
    }

    .mj-sq-bar {
        bottom: 8px;
        padding: 12px 16px;
        gap: 10px;
        align-items: stretch;
        flex-direction: column
    }

    .mj-sq-bar-actions {
        justify-content: space-between;
        gap: 12px
    }

    .mj-sq-has-bar {
        padding-bottom: 160px !important
    }

    .mj-sq-bar strong {
        font-size: 14px
    }
}

.mj-sq-clear {
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    padding: 8px 0;
    font: inherit;
    font-size: 13px;
    cursor: pointer
}

.mj-sq-clear[hidden] {
    display: none !important
}

@media(max-width:600px) {
    .mj-sq-bar-actions {
        flex-wrap: wrap
    }

    .mj-sq-clear {
        flex-basis: 100%;
        text-align: left;
        order: 3
    }

    .mj-sq-has-bar {
        padding-bottom: 190px !important
    }
}

/* Theme tokens and compact two-column service rows. */
.mj-sq-service,
.mj-sq-bar,
.mj-sq-single,
.sq-form {
    font-family: var(--mj-sq-font, inherit);
    color: var(--mj-sq-text, #545454)
}

body ul.products li.product.mj-sq-service {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 20px
}

.mj-sq-service-main {
    min-width: 0
}

.mj-sq-service-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px
}

.mj-sq-service-details {
    display: block;
    margin: 14px 0 0 34px;
    font-size: 14px
}

.mj-sq-description {
    color: var(--mj-sq-text, #545454)
}

.mj-sq-service-details summary {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
    line-height: normal;
    color: var(--mj-sq-text, #545454);
    list-style: none
}

.mj-sq-service-details summary::-webkit-details-marker {
    display: none
}

.mj-sq-service-details summary::marker {
    content: ""
}

.mj-sq-service-details summary svg {
    margin-left: 10px;
    vertical-align: middle;
    transition: transform .18s
}

.mj-sq-service-details[open] summary svg {
    transform: rotate(90deg)
}

.mj-sq-service-link {
    color: var(--mj-sq-text, #545454);
    font-size: 12px;
    text-decoration: underline
}

.mj-sq-service-link>svg {
    display: none
}

.mj-sq-bar a,
.mj-sq-single a {
    color: var(--mj-sq-text, #545454)
}

.mj-sq-add-icon,
.mj-sq-check-icon {
    display: none
}

.mj-sq-added .mj-sq-add-icon {
    display: none !important
}

@media(max-width:600px) {
    body ul.products li.product.mj-sq-service {
        padding: 16px !important;
        grid-template-columns: minmax(0, 1fr) 44px !important;
        gap: 12px
    }

    .mj-sq-choice {
        gap: 10px;
        align-items: flex-start;
        font-size: 14px;
        line-height: 1.5
    }

    .mj-sq-choice input {
        margin-top: 1px
    }

    .mj-sq-service-details {
        margin-left: 30px
    }

    .mj-sq-service-actions {
        gap: 8px
    }

    body .mj-sq-service-actions .mj-sq-button,
    .mj-sq-service-link {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0
    }

    .mj-sq-service-actions [data-mj-button-label],
    .mj-sq-service-link>span {
        display: none
    }

    .mj-sq-service-actions .mj-sq-add-icon,
    .mj-sq-service-link>svg {
        display: inline-flex
    }

    .mj-sq-service-actions .mj-sq-added .mj-sq-check-icon {
        display: inline-flex
    }

    .mj-sq-service-link {
        border: 1px solid var(--mj-sq-border);
        border-radius: var(--mj-sq-radius)
    }
}

@media(prefers-reduced-motion:reduce) {
    .mj-sq-service-details summary svg {
        transition: none
    }
}

body.woocommerce-page ul.products li.product.mj-sq-service,
body .woocommerce ul.products li.product.mj-sq-service {
    grid-template-columns: minmax(0, 1fr) auto !important
}

@media(max-width:600px) {

    body.woocommerce-page ul.products li.product.mj-sq-service,
    body .woocommerce ul.products li.product.mj-sq-service {
        grid-template-columns: minmax(0, 1fr) 44px !important
    }
}

/* Icon actions on every screen, arranged horizontally. */
body .mj-sq-service-actions {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px
}

body .mj-sq-service-actions .mj-sq-button,
body .mj-sq-service-actions .mj-sq-service-link {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0
}

.mj-sq-service-actions [data-mj-button-label],
.mj-sq-service-link>span {
    display: none
}

.mj-sq-service-actions .mj-sq-add-icon,
.mj-sq-service-link>svg {
    display: inline-flex
}

.mj-sq-service-actions .mj-sq-added .mj-sq-check-icon {
    display: inline-flex
}

body .mj-sq-service-link {
    border: 1px solid var(--mj-sq-border);
    border-radius: var(--mj-sq-radius)
}

body ul.products li.product.mj-sq-service,
body.woocommerce-page ul.products li.product.mj-sq-service,
body .woocommerce ul.products li.product.mj-sq-service {
    grid-template-columns: minmax(0, 1fr) auto !important
}

/* A single clear action in the service's existing quote panel. */
.mj-sq-single [hidden] {
    display: none !important
}

.mj-sq-single {
    margin: 0
}

body .mj-sq-single [data-mj-add] {
    background: transparent;
    color: var(--mj-sq-accent);
    border: 0;
    border-radius: 0;
    padding: 0;
    font-size: 24px;
    text-align: left;
    white-space: normal
}

.mj-sq-single [data-mj-single-added] p {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.6
}

.mj-sq-single-remove {
    font: inherit;
    font-weight: 600;
    color: var(--mj-sq-accent);
    border: 0;
    background: transparent;
    padding: 0;
    text-decoration: underline;
    cursor: pointer
}

.mj-sq-single-remove:disabled {
    opacity: .5;
    cursor: wait
}

.mj-sq-single-feedback:empty {
    display: none
}

.mj-sq-single-feedback {
    font-size: 13px;
    margin: 12px 0 0
}

/* Review and contact details side by side; quantities save over AJAX. */
body .sq-form {
    max-width: 100%
}

.mj-sq-request-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: start;
    gap: 48px
}

.mj-sq-request-services,
.mj-sq-request-details {
    min-width: 0
}

.mj-sq-request-layout h2 {
    font-size: 26px;
    margin: 0 0 24px
}

body .mj-sq-quote-list li {
    display: block;
    padding: 18px 0
}

.mj-sq-quote-name {
    font-weight: 600;
    color: var(--mj-sq-text, #545454);
    text-decoration: underline
}

.mj-sq-quote-controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px
}

.mj-sq-quote-controls label {
    font-size: 12px;
    font-weight: 500;
    margin: 0
}

body .sq-form .mj-sq-quote-controls input {
    display: block;
    box-sizing: border-box;
    width: 90px;
    margin-top: 6px;
    padding: 9px 10px;
    border: 1px solid var(--mj-sq-border);
    border-radius: 4px;
    color: var(--mj-sq-text, #545454);
    font: inherit;
    font-size: 16px;
    background: #fff
}

.mj-sq-quote-controls input:disabled {
    opacity: .6
}

@media(max-width:800px) {
    .mj-sq-request-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px
    }

    .mj-sq-request-layout h2 {
        font-size: 24px
    }
}

/* Consistent selection and icon controls. */
.mj-sq-choice input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    place-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid #aaa;
    border-radius: 2px;
    background: #fff;
    margin: 0;
    cursor: pointer
}

.mj-sq-choice input[type=checkbox]:checked {
    background: var(--mj-sq-accent);
    border-color: var(--mj-sq-accent)
}

.mj-sq-choice input[type=checkbox]:checked::after {
    content: "";
    display: block;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translateY(-1px) rotate(45deg)
}

.mj-sq-choice input[type=checkbox]:disabled {
    cursor: not-allowed;
    opacity: .5
}

body .mj-sq-button,
body .mj-sq-service-link {
    border: 1px solid var(--mj-sq-border);
    color: var(--mj-sq-text, #545454);
    background: transparent
}

body .mj-sq-button:not(:disabled):hover,
body .mj-sq-button:not(:disabled):focus-visible,
body .mj-sq-service-link:hover,
body .mj-sq-service-link:focus-visible {
    border-color: var(--mj-sq-accent);
    background: var(--mj-sq-accent);
    color: #fff
}

body ul.products li.product.mj-sq-service {
    align-items: center
}

body .mj-sq-service-details {
    margin-top: 6px
}

body .mj-sq-service-details summary {
    display: flex;
    align-items: center;
    gap: 6px
}

body .mj-sq-service-details summary svg {
    margin-left: 0;
    flex-shrink: 0
}

/* Compact, semantic three-column quote table. */
.mj-sq-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

body .sq-form table.mj-sq-quote-list {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 0;
    margin: 0 0 18px
}

body .sq-form .mj-sq-quote-list th,
body .sq-form .mj-sq-quote-list td {
    padding: 10px 8px;
    border: 0;
    border-bottom: 1px solid var(--mj-sq-border);
    vertical-align: middle;
    text-align: left;
    background: transparent
}

body .sq-form .mj-sq-quote-list th {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap
}

body .sq-form .mj-sq-quote-list :is(th, td):first-child {
    padding-left: 0;
    overflow-wrap: anywhere
}

body .sq-form .mj-sq-quote-list :is(th, td):nth-child(2) {
    width: 82px;
    text-align: center
}

body .sq-form .mj-sq-quote-list :is(th, td):last-child {
    width: 36px;
    padding-right: 0;
    text-align: right
}

body .sq-form .mj-sq-quote-list input {
    box-sizing: border-box;
    width: 66px;
    max-width: 100%;
    padding: 7px 5px;
    border: 1px solid var(--mj-sq-border);
    border-radius: 4px;
    background: #fff;
    color: var(--mj-sq-text, #545454);
    font: inherit;
    font-size: 14px
}

body .sq-form .mj-sq-quote-list [data-mj-remove] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-height: 44px;
    padding: 0;
    text-decoration: none;
    font-size: 24px;
    line-height: 1;
    color: var(--mj-sq-text, #545454)
}

body .sq-form .mj-sq-quote-list [data-mj-remove]:hover {
    color: var(--mj-sq-accent)
}

body .sq-form .sq-field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23545454' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    background-size: 12px 8px
}

@media(forced-colors:active) {
    .mj-sq-choice input[type=checkbox] {
        appearance: auto;
        -webkit-appearance: auto
    }

    .mj-sq-choice input[type=checkbox]::after {
        display: none !important
    }
}

/* Added catalog actions remain interactive: check at rest, remove on hover/focus. */
.mj-sq-remove-icon {
    display: none;
    font-size: 26px;
    line-height: 1;
    font-weight: 400
}

body .mj-sq-service-actions .mj-sq-button.mj-sq-added {
    background: var(--mj-sq-accent);
    border-color: var(--mj-sq-accent);
    color: #fff
}

body .mj-sq-service-actions .mj-sq-added:not(:disabled):is(:hover, :focus-visible) .mj-sq-check-icon {
    display: none
}

body .mj-sq-service-actions .mj-sq-added:not(:disabled):is(:hover, :focus-visible) .mj-sq-remove-icon {
    display: inline-flex
}

/* Keep the bulk action prominent, including its disabled state. */
body .mj-sq-bar-actions .mj-sq-button {
    background: var(--mj-sq-accent);
    border-color: var(--mj-sq-accent);
    color: #fff
}

body .mj-sq-bar-actions .mj-sq-button:disabled {
    opacity: 1
}

.mj-sq-remove-icon svg {
    transform: rotate(45deg)
}