.wc-quote-request-product-box {
    margin-top: 12px;
}

.wc-quote-request-button {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.wc-quote-request-hint,
.wc-quote-request-message {
    margin: 8px 0 0;
    font-size: 14px;
}

.wc-quote-request-message.is-success {
    color: #198754;
}

.wc-quote-request-message.is-error {
    color: #dc3545;
}

.wc-quote-request-message a {
    text-decoration: underline;
}

.wc-quote-account {
    display: grid;
    gap: 20px;
}

.wc-quote-card {
    padding: 24px;
    border: 1px solid rgba(28, 28, 28, 0.12);
    border-radius: 16px;
    background: #fff;
}

.wc-quote-card__head,
.wc-quote-card__footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.wc-quote-card h3 {
    margin: 0 0 4px;
}

.wc-quote-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    background: #f5f6fa;
    color: #1c1c1c;
}


.wcqr-submit-request {
    margin: 16px 0;
}

.wcqr-submit-request__button {
    border-radius: 8px;
}


.wcqr-accept-offer,
.wcqr-submit-request {
    margin: 16px 0;
}

.wcqr-accept-offer__button,
.wcqr-submit-request__button {
    border-radius: 8px;
}

.wcqr-offer-expired {
    margin: 16px 0;
    color: #b3261e;
    font-weight: 600;
}

.wcqr-customer-message {
    margin: 16px 0;
    display: grid;
    gap: 6px;
}

.wcqr-customer-message label {
    font-size: 14px;
}

.wcqr-customer-message textarea {
    width: 100%;
    border: 1px solid rgba(28, 28, 28, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 90px;
}

.wcqr-customer-message textarea:focus {
    border-color: #1c1c1c;
    outline: none;
}

.wcqr-customer-message--readonly {
    padding: 14px 16px;
    background: #f5f6fa;
    border-radius: 12px;
}

.wcqr-customer-message--readonly .wcqr-customer-message__body {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.wcqr-customer-message--readonly .wcqr-customer-message__body p {
    margin: 0 0 8px;
}

.wcqr-customer-message--readonly .wcqr-customer-message__body p:last-child {
    margin-bottom: 0;
}


.wcqr-customer-note {
    margin: 16px 0;
    padding: 14px 16px;
    background: #f5f6fa;
    border-radius: 12px;
}

.wcqr-customer-note__body {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.wcqr-customer-note__body p {
    margin: 0 0 8px;
}

.wcqr-customer-note__body p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   Landing-Page Formular [wcqr_landing_form]
   ========================================================= */

.wcqr-landing-wrap {
    max-width: 780px;
}

.wcqr-landing-title {
    margin: 0 0 8px;
}

.wcqr-landing-subtitle {
    margin: 0 0 28px;
    color: #555;
    font-size: 15px;
}

.wcqr-landing-success {
    padding: 20px 24px;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 12px;
    color: #065f46;
    font-size: 15px;
    line-height: 1.6;
}

.wcqr-landing-items {
    margin-bottom: 28px;
}

.wcqr-landing-items h3 {
    margin-bottom: 10px;
}

.wcqr-landing-table {
    width: 100%;
    margin-bottom: 0;
}

.wcqr-landing-form {
    display: grid;
    gap: 0;
}

.wcqr-landing-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.wcqr-landing-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wcqr-landing-field label {
    font-size: 14px;
    font-weight: 500;
}

.wcqr-landing-field--half {
    /* schon durch Grid geregelt */
}

/* Volle Breite */
.wcqr-landing-field:has(textarea),
.wcqr-landing-field:has(#wcqr_products_text) {
    grid-column: 1 / -1;
}

.wcqr-landing-field input[type="text"],
.wcqr-landing-field input[type="email"],
.wcqr-landing-field input[type="tel"],
.wcqr-landing-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(28, 28, 28, 0.2);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.wcqr-landing-field input:focus,
.wcqr-landing-field textarea:focus {
    outline: none;
    border-color: #1c1c1c;
}

.wcqr-landing-field textarea {
    resize: vertical;
    min-height: 80px;
}

.wcqr-landing-privacy {
    margin: 16px 0 24px;
}

.wcqr-landing-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.wcqr-landing-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.wcqr-landing-submit {
    justify-self: start;
    padding: 12px 28px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
}

@media (max-width: 600px) {
    .wcqr-landing-fields {
        grid-template-columns: 1fr;
    }

    .wcqr-landing-field--half {
        grid-column: auto;
    }
}

/* =========================================================
   Quick-Order-nahe Angebot-Liste
   ========================================================= */

.wcqr-landing-wrap,
.wc-quote-account {
    --wcqr-primary: #1c1c1c;
    --wcqr-secondary: #009FE3;
    --wcqr-bg: #fafafa;
    --wcqr-surface: #ffffff;
    --wcqr-light-grey: #F7F7F7;
    --wcqr-border: #e5e5e5;
    --wcqr-border-strong: #d4d4d4;
    --wcqr-text: #1c1c1c;
    --wcqr-text-muted: #6b6b6b;
    --wcqr-danger: #dc3545;
    --wcqr-success: #198754;
    --wcqr-radius: 8px;
    --wcqr-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --wcqr-transition: 0.3s ease;
}

.wcqr-landing-wrap {
    width: 100%;
    max-width: none;
    color: var(--wcqr-text);
}

.woocommerce .wcqr-landing-wrap,
.entry-content .wcqr-landing-wrap,
.wp-block-shortcode .wcqr-landing-wrap {
    width: 100%;
    max-width: none;
}

.wcqr-list,
.wc-quote-card {
    background: var(--wcqr-surface);
    border: 1px solid var(--wcqr-border);
    border-radius: var(--wcqr-radius);
    box-shadow: var(--wcqr-shadow);
}

.wcqr-list {
    margin: 0 0 24px;
    overflow: hidden;
}

.wcqr-list__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--wcqr-border);
    background: var(--wcqr-light-grey);
}

.wcqr-list__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.wcqr-list__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--wcqr-secondary);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

.wcqr-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.wcqr-table,
.wcqr-landing-table,
.wc-quote-table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: auto !important;
    border: 0 !important;
}

.wcqr-table th,
.wcqr-table td {
    padding: 14px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--wcqr-border) !important;
    text-align: left;
    vertical-align: middle;
    color: var(--wcqr-text);
}

.wcqr-table thead th {
    background: #fff;
    color: var(--wcqr-text-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
    white-space: nowrap;
}

.wcqr-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.wcqr-th--price,
.wcqr-table td:nth-child(3) {
    white-space: nowrap;
}

.wcqr-th--qty,
.wcqr-table td:nth-child(4) {
    width: 120px;
}

.wcqr-th--remove,
.wcqr-table td:nth-child(5) {
    width: 130px;
    text-align: right;
}

.wcqr-qty-input {
    width: 90px !important;
    min-height: 44px;
    padding: 8px 12px !important;
    border: 1px solid var(--wcqr-secondary) !important;
    border-radius: var(--wcqr-radius) !important;
    background: #fff;
    color: var(--wcqr-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    outline: none;
    transition: border-color var(--wcqr-transition);
}

.wcqr-qty-input:focus {
    border-color: var(--wcqr-primary) !important;
}

.wcqr-product-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 280px;
}

.wcqr-product-cell__image {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border: 1px solid var(--wcqr-border);
    border-radius: var(--wcqr-radius);
    background: #fff;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wcqr-product-cell__img,
.wcqr-product-cell__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.wcqr-product-cell__image--placeholder {
    background: var(--wcqr-light-grey);
}

.wcqr-product-cell__content strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
}

.wcqr-remove-button {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--wcqr-danger) !important;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    white-space: nowrap;
}

.wcqr-remove-button:hover,
.wcqr-remove-button:focus {
    color: #9f1d2a !important;
    background: transparent !important;
    outline: none;
}

.wcqr-remove-button.is-loading {
    opacity: 0.55;
    cursor: wait;
}

.wcqr-list__hint {
    margin: 0;
    padding: 12px 20px 16px;
    color: var(--wcqr-text-muted);
    font-size: 14px;
    line-height: 1.5;
    background: #fff;
}

.wcqr-landing-form .wcqr-landing-fields {
    background: var(--wcqr-surface);
    border: 1px solid var(--wcqr-border);
    border-radius: var(--wcqr-radius);
    padding: 20px;
    margin-bottom: 16px;
}

.wcqr-landing-field input[type="text"],
.wcqr-landing-field input[type="email"],
.wcqr-landing-field input[type="tel"],
.wcqr-landing-field textarea,
.wcqr-customer-message textarea {
    min-height: 44px;
    border: 1px solid var(--wcqr-secondary);
    border-radius: var(--wcqr-radius);
    font-size: 16px;
    transition: border-color var(--wcqr-transition);
}

.wcqr-landing-field input:focus,
.wcqr-landing-field textarea:focus,
.wcqr-customer-message textarea:focus {
    border-color: var(--wcqr-primary) !important;
}

.wcqr-landing-submit,
.wcqr-submit-request__button,
.wcqr-accept-offer__button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 24px !important;
    border: 1px solid var(--wcqr-secondary) !important;
    border-radius: var(--wcqr-radius) !important;
    background: var(--wcqr-secondary) !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    transition: color var(--wcqr-transition), background var(--wcqr-transition), border-color var(--wcqr-transition);
}

.wcqr-landing-submit:hover,
.wcqr-submit-request__button:hover,
.wcqr-accept-offer__button:hover {
    border-color: var(--wcqr-primary) !important;
    background: var(--wcqr-primary) !important;
    color: #fff !important;
}

.wc-quote-card {
    padding: 0;
    overflow: hidden;
}

.wc-quote-card__head,
.wc-quote-card__footer {
    padding: 18px 20px;
    margin: 0;
}

.wc-quote-card__head {
    background: var(--wcqr-light-grey);
    border-bottom: 1px solid var(--wcqr-border);
}

.wc-quote-card__footer {
    border-top: 1px solid var(--wcqr-border);
    background: #fff;
}

.wcqr-submit-request,
.wcqr-accept-offer,
.wcqr-customer-message,
.wcqr-customer-note,
.wcqr-offer-expired {
    margin-left: 20px;
    margin-right: 20px;
}

.wcqr-submit-request .wcqr-list,
.wcqr-submit-request .wcqr-customer-message {
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 767px) {
    .wcqr-landing-fields {
        grid-template-columns: 1fr;
    }

    .wcqr-table thead {
        display: none;
    }

    .wcqr-table,
    .wcqr-table tbody,
    .wcqr-table tr,
    .wcqr-table td {
        display: block !important;
        width: 100% !important;
    }

    .wcqr-table tr {
        border-bottom: 1px solid var(--wcqr-border);
        padding: 12px 0;
    }

    .wcqr-table tbody tr:last-child {
        border-bottom: 0;
    }

    .wcqr-table td {
        border-bottom: 0 !important;
        padding: 6px 16px !important;
    }

    .wcqr-th--remove,
    .wcqr-table td:nth-child(5) {
        text-align: left;
    }

    .wcqr-product-cell {
        min-width: 0;
    }

    .wcqr-product-cell__image {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
    }
}

/* 2.2.3: volle Breite ohne Viewport-Shift */
.wcqr-landing-wrap {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    clear: both;
}

.woocommerce .wcqr-landing-wrap,
.entry-content .wcqr-landing-wrap,
.wp-block-shortcode .wcqr-landing-wrap,
.wp-block-group .wcqr-landing-wrap,
.wp-site-blocks .wcqr-landing-wrap {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.wcqr-landing-wrap .wcqr-landing-form,
.wcqr-landing-wrap .wcqr-list,
.wcqr-landing-wrap .wcqr-table-wrap,
.wcqr-landing-wrap .wcqr-landing-fields,
.wcqr-landing-wrap .wcqr-landing-privacy {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

.wcqr-landing-wrap .wcqr-table {
    width: 100% !important;
}

.wcqr-remove-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    min-height: 32px;
}

/* 2.2.5: Mengensteuerung wie Theme / Cart-Offcanvas */
.wcqr-qty.cart-offcanvas__quantity.cd-qty {
    display: inline-flex;
    width: auto;
    min-width: 120px;
    max-width: 140px;
    flex-shrink: 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
}

.wcqr-qty .cart-offcanvas__quantity-btn.cd-qty__btn {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    color: #1c1c1c;
    font-size: 18px;
    line-height: 1;
    transition: background .2s, color .2s;
}

.wcqr-qty .cart-offcanvas__quantity-btn.cd-qty__btn:hover,
.wcqr-qty .cart-offcanvas__quantity-btn.cd-qty__btn:focus {
    background: #f5f5f5;
    color: #1c1c1c;
    outline: none;
}

.wcqr-qty .cart-offcanvas__quantity-input.cd-qty__input,
.wcqr-qty .wcqr-qty-input {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
    min-height: 0;
    text-align: center;
    border: 0 !important;
    outline: 0;
    background: transparent;
    margin: 0;
    padding: 8px 6px !important;
    color: #1c1c1c;
    font-size: 1rem;
    line-height: 1.25;
    appearance: textfield;
    -moz-appearance: textfield;
    border-radius: 0 !important;
}

.wcqr-qty .cart-offcanvas__quantity-input::-webkit-outer-spin-button,
.wcqr-qty .cart-offcanvas__quantity-input::-webkit-inner-spin-button,
.wcqr-qty .wcqr-qty-input::-webkit-outer-spin-button,
.wcqr-qty .wcqr-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wcqr-table td:nth-child(4) {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .wcqr-qty.cart-offcanvas__quantity.cd-qty {
        min-width: 120px;
        max-width: 140px;
    }
}


.wcqr-empty-state {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.wcqr-empty-state h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.wcqr-empty-state p {
    margin: 0 0 20px;
    color: #6b7280;
}

.wcqr-empty-state__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.wcqr-landing-notice{
    width:100%;
    margin:0 0 24px;
    padding:18px 20px;
    border-radius:12px;
    border:1px solid #dbeafe;
    background:#eff6ff;
    color:#1e3a8a;
}

.wcqr-landing-notice p{
    margin:6px 0 14px;
}

.wcqr-account-submit-note{
    margin:24px 0;
    padding:16px 18px;
    border:1px solid #e5e7eb;
    border-radius:12px;
    background:#fff;
    color:#374151;
}

.wcqr-landing-fields--logged-in{
    margin-top:0;
}


/* 2.3.1: Checkbox optisch ans Theme angeglichen */
.wcqr-landing-privacy {
    margin: 16px 0 24px;
}

.wcqr-landing-checkbox {
    position: relative;
    display: grid !important;
    grid-template-columns: 20px 1fr;
    column-gap: 10px;
    align-items: start;
    margin: 0;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: #1c1c1c;
}

.wcqr-landing-checkbox::before {
    content: "";
    grid-column: 1;
    grid-row: 1;
    position: relative;
    top: 2px;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.16s ease, background 0.16s ease;
    pointer-events: none;
}

.wcqr-landing-checkbox::after {
    content: "";
    grid-column: 1;
    grid-row: 1;
    position: relative;
    left: 7px;
    top: 5px;
    width: 6px;
    height: 11px;
    border: solid #009FE3;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    transition: transform 0.16s ease, opacity 0.16s ease;
    pointer-events: none;
}

.wcqr-landing-checkbox:has(input:checked)::before {
    border-color: #009FE3;
    background: rgba(0, 159, 227, 0.08);
}

.wcqr-landing-checkbox:has(input:checked)::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.wcqr-landing-checkbox input[type="checkbox"] {
    position: absolute !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    opacity: 0 !important;
    cursor: pointer;
    z-index: 2;
}

.wcqr-landing-checkbox span {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.wcqr-landing-checkbox a {
    color: #009FE3;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Header badge for quote request icon */
.quote-request {
    position: relative;
}

.quote-request__count,
.quote-count,
[data-quote-count] {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--color-primary, #009fe3);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    z-index: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
