/* VGBR RFQ Layout Guard 1.0.0 - standalone stylesheet
   Loaded by plugin vgbr-rfq-guard; independent of Astra / WooCommerce templates.
   Layout hardening covers float, grid and flex product layouts. */

/* 展示型站点：移除加购与价格 */
	.single-product form.cart{display:none!important}
	.single-product .summary .price,.single-product div.product p.price,.single-product div.product span.price{display:none!important}
	.single-product .product_meta .sku_wrapper{display:block!important}

	/* 产品图/摘要靠 float 分栏，必须清除浮动，否则内容被挤进两栏间的窄缝 */
	.woocommerce div.product .vgbr-rfq{clear:both!important;float:none!important;width:100%}
	#vgbr-rfq{position:relative;clear:both!important;float:none!important;width:100%;max-width:1180px;margin:0 auto 56px;background:#fff;border:1px solid #e2e8ef;border-top:4px solid #ee2430;border-radius:8px;box-shadow:0 12px 34px rgba(10,25,42,.07);padding:26px 30px;box-sizing:border-box;clear:both!important;float:none!important;grid-column:1/-1!important;grid-row:auto!important;justify-self:stretch!important;flex:0 0 100%!important;display:block!important;display:flow-root!important;width:100%!important;min-width:0!important}
	.vgbr-rfq *{box-sizing:border-box}
	.vgbr-rfq__toggle{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);border:0}
	.vgbr-rfq__head{display:flex;align-items:center;justify-content:space-between;gap:16px 26px;flex-wrap:wrap}
	.vgbr-rfq__headtext{flex:1 1 300px;min-width:0}
	.vgbr-rfq__title{margin:0 0 6px;font-size:22px;line-height:1.3;color:#071827}
	.vgbr-rfq__sub{margin:0;font-size:14px;line-height:1.5;color:#5b6b7c}
	.vgbr-rfq__sub strong{color:#071827}
	.vgbr-rfq__cta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
	.vgbr-rfq__open{display:inline-flex;align-items:center;justify-content:center;gap:9px;margin:0;background:#ee2430;color:#fff;border:0;border-radius:6px;padding:13px 26px;font-size:15px;font-weight:800;line-height:1.2;cursor:pointer;text-decoration:none;transition:background .2s;-webkit-user-select:none;user-select:none}
	.vgbr-rfq__open:hover{background:#c81b26;color:#fff}
	.vgbr-rfq__open-hide{display:none}
	.vgbr-rfq__chev{transition:transform .25s ease}
	.vgbr-rfq__toggle:checked~.vgbr-rfq__head .vgbr-rfq__open-show{display:none}
	.vgbr-rfq__toggle:checked~.vgbr-rfq__head .vgbr-rfq__open-hide{display:inline}
	.vgbr-rfq__toggle:checked~.vgbr-rfq__head .vgbr-rfq__chev{transform:rotate(180deg)}
	.vgbr-rfq__body{display:none}
	.vgbr-rfq__toggle:checked~.vgbr-rfq__body{display:block;animation:vgbrRfqIn .3s ease both}
	@keyframes vgbrRfqIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
	.vgbr-rfq__grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
	.vgbr-rfq__body .vgbr-rfq__grid{margin-top:24px;padding-top:24px;border-top:1px solid #edf1f5}
	.vgbr-rfq__grid label{display:block;font-size:13px;font-weight:700;color:#071827}
	.vgbr-rfq__grid label span{color:#ee2430}
	.vgbr-rfq__grid input,.vgbr-rfq__grid textarea{width:100%;margin-top:6px;padding:11px 13px;border:1px solid #cfd9e3;border-radius:6px;font-size:15px;font-weight:400;color:#071827;background:#fbfdff}
	.vgbr-rfq__grid input:focus,.vgbr-rfq__grid textarea:focus{outline:none;border-color:#095eb0;background:#fff}
	.vgbr-rfq__full{grid-column:1/-1}
	.vgbr-rfq__hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
	.vgbr-rfq__actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:20px}
	.vgbr-rfq__submit{background:#ee2430;color:#fff;border:0;border-radius:6px;padding:14px 34px;font-size:16px;font-weight:800;cursor:pointer;transition:.2s}
	.vgbr-rfq__submit:hover{background:#c81b26}
	.vgbr-rfq__submit:disabled{opacity:.6;cursor:default}
	.vgbr-rfq__wa{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 24px;border:1px solid #1faa4f;border-radius:6px;color:#fff;font-weight:700;font-size:15px;line-height:1.2;text-decoration:none;background:#25d366;transition:background .2s}
	.vgbr-rfq__wa:hover{background:#1eb457;border-color:#199145;color:#fff}
	.vgbr-rfq__waicon{flex:0 0 auto}
	.vgbr-rfq__note{margin:14px 0 0;font-size:12px;color:#8a99a8}
	.vgbr-rfq__msg{margin-top:14px;font-size:14px;font-weight:600}
	.vgbr-rfq__msg.ok{color:#0d7a3c}
	.vgbr-rfq__msg.err{color:#c81b26}
	@media(max-width:760px){
		#vgbr-rfq{padding:22px 18px;margin-bottom:40px}
		.vgbr-rfq__head{flex-direction:column;align-items:stretch}
		.vgbr-rfq__headtext{flex:none}
		.vgbr-rfq__title{font-size:19px}
		.vgbr-rfq__cta{display:grid;grid-template-columns:1fr;gap:10px}
		.vgbr-rfq__open,.vgbr-rfq__wa,.vgbr-rfq__submit{width:100%;justify-content:center;text-align:center}
		.vgbr-rfq__grid{grid-template-columns:1fr}
		.vgbr-rfq__body .vgbr-rfq__grid{margin-top:20px;padding-top:20px}
	}

/* v1.2.0 - click-to-load product video facade (no YouTube request on load) + form polish */
	.vgbr-rfq__grid textarea{min-height:190px!important;line-height:1.5}
	.vgbr-yt-facade{max-width:100%}
	.vgbr-yt-facade iframe{display:block}
	.vgbr-yt-play:hover>span{background:#c81b26}
	.vgbr-yt-play:focus-visible{outline:3px solid #fff;outline-offset:-4px}
	@media(max-width:760px){
		.vgbr-yt-play>span{font-size:13px!important;padding:11px 16px}
	}
