/* Scoped additions for the existing About certificates and Contact/RFQ components. */
.gw-cert-slider .gw-cert-track{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 64px)/5);gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;list-style:none;padding:0;margin:32px 0 16px;direction:ltr}
.gw-cert-track::-webkit-scrollbar{display:none}
.gw-cert-slider .gw-cert-track>li{border:0;padding:0;margin:0;border-radius:0;min-width:0;scroll-snap-align:start}
.gw-cert-image-button{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.gw-cert-image-button img{display:block;width:100%;height:280px;object-fit:contain;border:1px solid #f7f3ea;box-sizing:border-box;background:transparent}
.gw-cert-controls{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:20px}
.gw-cert-controls>button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--forest);cursor:pointer}
.gw-cert-controls>button:disabled{opacity:.35;cursor:default}
.gw-cert-dots{display:flex;gap:8px;align-items:center}
.gw-cert-dot{width:9px;height:9px;padding:0;border:1px solid var(--forest);border-radius:50%;background:transparent;cursor:pointer}
.gw-cert-dot[aria-current=true]{background:var(--forest)}
.gw-cert-image-button:focus-visible,.gw-cert-controls button:focus-visible,.gw-cert-close:focus-visible{outline:2px solid var(--forest);outline-offset:4px}
.gw-certificate-dialog{max-width:96vw;max-height:96dvh;border:0;padding:40px;background:transparent;overflow:visible;margin:auto}
.gw-certificate-dialog::backdrop{background:rgba(0,0,0,.8)}
.gw-certificate-dialog>img{display:block;max-width:calc(96vw - 80px);max-height:calc(96dvh - 80px);width:auto;height:auto;object-fit:contain;margin:auto}
.gw-cert-close{position:absolute;inset-block-start:0;inset-inline-end:0;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:#fff;color:#123b2a;cursor:pointer}
.gw-rfq-field{min-width:0}
fieldset.gw-rfq-field:not(.option-grid){border:0;padding:0;margin:0}
.gw-rfq-field>legend:not(.sr-only){font-size:13px;font-weight:500;padding:0;margin-bottom:8px}
.gw-rfq-field.field>label:not(.consent){display:block;margin:0;font-size:13px;font-weight:500}
.gw-rfq-field input:not([type=radio]):not([type=checkbox]),.gw-rfq-field select,.gw-rfq-field textarea{width:100%;box-sizing:border-box}
.gw-rfq-field-error{color:var(--error,#b91c1c);font-size:12px;line-height:1.5}
.gw-rfq-field-error:empty{display:none}
.gw-rfq-field-error:not(:empty){display:block;margin-top:6px}
.gw-rfq-field [aria-invalid=true]{border-color:var(--error,#b91c1c)}
.gw-rfq-consent{display:flex;gap:10px;align-items:flex-start;cursor:pointer;margin-top:8px}
.gw-rfq-consent input{margin-top:4px;flex:none}
.gw-rfq-consent>span{font-size:13px;color:var(--muted);line-height:1.5}
.gw-rfq-radio{display:flex;align-items:center;gap:10px;margin-block:8px}
.gw-rfq-radio input{flex:none}
.gw-rfq-radio strong{font-weight:400}
.gw-form-step[hidden],.gw-rfq-step-subtitle[hidden]{display:none!important}
#greatwall-rfq-form .product-choice input[type=checkbox]{width:14px;height:14px;accent-color:var(--green);flex:none}
#greatwall-rfq-form .product-choice:focus-within{outline:2px solid var(--forest);outline-offset:3px}
#greatwall-rfq-form .product-choice .product-check{display:none}\n#greatwall-rfq-form .product-choice.selected .product-check{display:inline-flex;opacity:1}
#gw-rfq-next:disabled{opacity:.55;cursor:not-allowed}
.chat-panel .gw-chat-answer-link{display:inline-flex;align-items:center;gap:6px;margin-top:8px;text-decoration:underline}
.chat-panel .gw-chat-menu-back{font:inherit;color:var(--forest);background:transparent;border:0;padding:4px 0;cursor:pointer;text-align:start}
@media(max-width:1023px){.gw-cert-slider .gw-cert-track{grid-auto-columns:calc((100% - 16px)/2)}}
@media(max-width:767px){.gw-cert-slider .gw-cert-track{grid-auto-columns:100%}.gw-cert-image-button img{height:360px}.gw-certificate-dialog{padding:40px 10px 10px}.gw-certificate-dialog>img{max-width:calc(96vw - 20px);max-height:calc(96dvh - 50px)}}
@media(prefers-reduced-motion:reduce){.gw-cert-track{scroll-behavior:auto}}

.gw-rfq-field select{min-height:48px;border:1px solid #d3dad3;border-radius:6px;padding:12px 14px;background:white;color:var(--ink);font-size:15px}


/* A single, persistent message thread for information and quote requests. */
#gw-chat-panel.gw-conversation{width:400px;height:600px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 112px);border:1px solid #dce3db;border-radius:18px;overflow:hidden;box-shadow:0 18px 65px #123b2a2b;background:#fff}
#gw-chat-panel.gw-conversation [hidden]{display:none!important}
#gw-chat-panel.gw-conversation .chat-header{flex:none;padding:17px 20px;gap:12px;background:#123b2a;color:#fff}
#gw-chat-panel.gw-conversation .chat-header strong{font-size:16px;line-height:1.4}
#gw-chat-panel.gw-conversation .chat-header small{display:block;opacity:.8;margin-top:3px;font-size:11px;line-height:1.5}
#gw-chat-panel.gw-conversation .chat-header button{flex:none;width:36px;height:36px;color:#fff}
#gw-chat-panel.gw-conversation .chat-content{flex:1;min-height:0;overflow-y:auto;padding:20px 16px;background:#fafbf8;overscroll-behavior:contain;scroll-behavior:auto}
#gw-chat-panel.gw-conversation .chat-messages{display:flex;flex-direction:column;gap:16px;margin:0;padding:0}
#gw-chat-panel.gw-conversation .gw-chat-message{align-self:flex-start;max-width:94%;min-width:0;padding:12px 14px;border:1px solid #e5e9df;border-radius:3px 14px 14px;background:#fff;font-size:13px;line-height:1.65;color:#263b2f;overflow-wrap:anywhere}
#gw-chat-panel.gw-conversation .gw-chat-message.is-user{align-self:flex-end;background:#e8efe4;border-color:#e8efe4;border-radius:14px 3px 14px 14px;max-width:88%}
[dir=rtl] #gw-chat-panel.gw-conversation .gw-chat-message{border-radius:14px 3px 14px 14px}
[dir=rtl] #gw-chat-panel.gw-conversation .gw-chat-message.is-user{border-radius:3px 14px 14px}
#gw-chat-panel.gw-conversation .gw-chat-text{white-space:pre-wrap;margin:0;font:inherit;color:inherit}
#gw-chat-panel.gw-conversation .gw-chat-links{display:flex;flex-direction:column;gap:5px;margin-top:8px}
#gw-chat-panel.gw-conversation .gw-chat-answer-link{display:block;margin:0;color:#245335;font-size:12px;line-height:1.6;text-decoration:underline;text-underline-offset:3px}
#gw-chat-panel.gw-conversation .gw-chat-replies{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
#gw-chat-panel.gw-conversation button{font-family:inherit;cursor:pointer}
#gw-chat-panel.gw-conversation .gw-chat-choice{display:block;padding:9px 11px;border:1px solid #bccfba;border-radius:9px;background:#fff;color:#245335;font-size:12px;line-height:1.45;text-align:start;min-height:40px;max-width:100%;overflow-wrap:anywhere}
#gw-chat-panel.gw-conversation .gw-chat-choice:hover{background:#f1f6ed}
#gw-chat-panel.gw-conversation .gw-chat-choice[aria-pressed=true]{background:#e1ecdb;border-color:#396a37;box-shadow:inset 0 0 0 1px #396a37}
#gw-chat-panel.gw-conversation .gw-chat-choice[aria-pressed=true]::before{content:'✓ ';font-weight:700}
#gw-chat-panel.gw-conversation .gw-chat-primary{padding:11px 14px;border:1px solid #245335;border-radius:9px;background:#245335;color:white;font-size:12px;font-weight:600;line-height:1.5;min-height:42px;width:100%}
#gw-chat-panel.gw-conversation .gw-chat-text-action,#gw-chat-panel.gw-conversation .gw-chat-edit{padding:7px 3px;min-height:36px;border:0;background:transparent;color:#315f35;font-size:11px;line-height:1.5;text-decoration:underline;text-underline-offset:3px}
#gw-chat-panel.gw-conversation button:disabled{opacity:.45;cursor:default}
#gw-chat-panel.gw-conversation .chat-compose{flex:none;display:flex;align-items:flex-end;gap:9px;margin:0;padding:13px 14px;background:white;border-top:1px solid #e5e9df}
#gw-chat-panel.gw-conversation .chat-compose textarea{flex:1;display:block;min-width:0;width:100%;max-height:104px;min-height:44px;padding:11px 12px;border:1px solid #d6dfd0;border-radius:11px;background:#fafbf8;color:#263b2f;font:inherit;font-size:14px;line-height:20px;resize:none;box-sizing:border-box;overflow-y:auto}
#gw-chat-panel.gw-conversation .chat-compose textarea::placeholder{color:#677360;opacity:1}
#gw-chat-panel.gw-conversation .chat-compose textarea[aria-invalid=true]{border-color:#b14938}
#gw-chat-panel.gw-conversation .chat-compose button{flex:none;width:44px;height:44px;border:0;border-radius:11px;background:#245335;color:#fff}
#gw-chat-panel.gw-conversation .chat-compose button svg{width:18px;height:18px}
#gw-chat-panel.gw-conversation :is(button,a,textarea):focus-visible{outline:2px solid #8f6d28;outline-offset:3px}
#gw-chat-panel.gw-conversation .gw-chat-summary{margin:14px 0 0;font-size:12px}
#gw-chat-panel.gw-conversation .gw-chat-summary dt{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:7px;border-top:1px solid #e5e9df;font-weight:600}
#gw-chat-panel.gw-conversation .gw-chat-summary dd{white-space:pre-wrap;margin:0 0 9px;color:#52614e}
#gw-chat-panel.gw-conversation .gw-chat-edit{flex:none;white-space:nowrap}
.gw-rfq-draft-notice{padding:12px;background:#f4f6f2;border-inline-start:3px solid var(--forest);font-size:13px;line-height:1.6}
#request{scroll-margin-top:120px}
@media(max-width:767px){#gw-chat-panel.gw-conversation{inset-inline:12px;width:auto;max-width:none;height:min(640px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);bottom:12px;border-radius:16px}#gw-chat-panel.gw-conversation .chat-compose textarea{font-size:16px}#gw-chat-panel.gw-conversation .gw-chat-message{font-size:14px}}

.gw-language-footer>div{display:flex;flex-wrap:wrap;gap:12px 20px}
