.fbquote {
    box-sizing: border-box;
    width: 100%;
    margin: 12px 0;
    border: 1px solid #efc9a8;
    border-radius: 12px;
    background: #fff7ef;
    color: #10243e;
    direction: rtl;
}
.fbquote summary {
    cursor: pointer;
    padding: 11px 14px;
    min-height: 44px;
    box-sizing: border-box;
    font-weight: 700;
}
.fbquote-body { padding: 0 14px 14px; }
.fbquote form { display: grid; gap: 10px; }
.fbquote label { display: grid; gap: 4px; }
.fbquote input:not([type=hidden]) {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid #bbc8d5;
    border-radius: 7px;
    background: #fff;
    font-size: 16px;
}
.fbquote button {
    justify-self: start;
    border: 0;
    border-radius: 8px;
    min-height: 44px;
    padding: 8px 18px;
    background: #10243e;
    color: #fff;
}
.fbquote :focus-visible { outline: 2px solid #a74810; outline-offset: 2px; }
@media (min-width: 1024px) {
    .fbquote:not([open]) { width: fit-content; }
    .fbquote form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.fbquote {
    background: transparent;
    border: 0;
}
.fbquote .fbquote-open {
    width: 100%;
    border: 1px solid #efbf97;
    background: #fff5eb;
    color: #803b12;
    font-weight: 700;
}
.fbquote .fbquote-open:hover { background: #ffe8d4; }
.fbquote-dialog {
    box-sizing: border-box;
    width: min(94vw, 540px);
    max-height: 88vh;
    max-height: 88dvh;
    padding: 0;
    border: 1px solid #dce5ef;
    border-radius: 18px;
    color: #10243e;
    background: #fff;
    box-shadow: 0 24px 70px #10243e45;
    overflow: auto;
}
.fbquote-dialog::backdrop { background: #10243eaa; }
.fbquote-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-block-start: 4px solid #ed7a21;
    background: #10243e;
    color: #fff;
}
.fbquote-header h2 { margin: 0; color: inherit; font-size: 19px; }
.fbquote .fbquote-close { padding: 0; min-width: 44px; background: #26445f; font-size: 25px; }
.fbquote-body { padding: 14px; }
.fbquote-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #edf3fa;
    overflow-wrap: anywhere;
}
.fbquote-product img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; background: white; }
.fbquote button[type=submit] { grid-column: 1 / -1; width: 100%; background: #a64b13; }
.fbquote-dialog .fbquote-header {position:sticky;top:0;z-index:2;background:linear-gradient(120deg,#10243e,#183d60)}
.fbquote-dialog .fbquote-close {border-radius:50%;height:44px;background:#ffffff1a}
.fbquote-dialog .fbquote-body {padding:16px}
.fbquote-dialog .fbquote-product {background:#f2f6fa;border:1px solid #e4ecf5;font-weight:600}
.fbquote-dialog form {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.fbquote-dialog label {font-size:13px;font-weight:600;min-width:0}
.fbquote-dialog input:not([type=hidden]):not([type=checkbox]),.fbquote-dialog select {min-width:0;width:100%;min-height:44px;background:#f7f9fc;border:1px solid #d6e0ea;border-radius:9px;font-size:16px}
.fbquote-dialog .fbquote-help {grid-column:1/-1;display:flex;gap:8px;align-items:center;padding:9px 10px;background:#fff2e6;border-radius:9px}
.fbquote-dialog .fbquote-help input {width:18px;min-height:18px;accent-color:#a64b13}
.fbquote-dialog .fbquote-method {grid-column:1/-1}
.fbquote-dialog .fbquote-method[hidden] {display:none!important}
.fbquote-dialog button[type=submit] {background:#a84610;font-weight:700}
.fbquote-contact {display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.fbquote-contact a {padding:8px 11px;background:#edf3fa;border-radius:8px;color:#183d60;font-size:13px}
@media(max-width:350px){.fbquote-dialog .fbquote-body{padding:10px}.fbquote-dialog form{gap:7px}.fbquote-dialog label{font-size:12px}}

.fbquote .fbquote-open,.fbquote-card-link {
    color:#7f370e!important;
    background:linear-gradient(120deg,#fff8f1,#ffead6);
    border:1px solid #edc49f;
    border-radius:9px;
    text-decoration:none!important;
    transition:background-color .15s,box-shadow .15s;
}
.fbquote-card-link {
    display:flex;
    align-items:center;
    justify-content:center;
    margin:8px auto 0;
    padding:4px 8px;
    min-height:36px;
    width:fit-content;
    max-width:100%;
    box-sizing:border-box;
    text-align:center;
    font-size:12px;
    font-weight:700;
    line-height:1.55;
}
.fbquote .fbquote-open:hover,.fbquote-card-link:hover {background:#ffe0c3;box-shadow:0 2px 6px #a8461022}
.fbquote-card-link:focus-visible {outline:2px solid #a74810;outline-offset:2px}
.fbquote-dialog .fbquote-header {border-block-start-width:2px;padding-block:9px;}
.fbquote-dialog .fbquote-product {background:#f5f8fc}
.fbquote-dialog button[type=submit] {background:#10243e;border-block-end:3px solid #ed7a21}
