/* WC Product Inquiry – front end */
.piq-price-text { font-weight: 600; opacity: .85; }

.piq-single-inquiry { display: flex; flex-wrap: wrap; gap: .75em; align-items: stretch; margin: 1em 0 1.5em; }
.piq-single-inquiry .piq-quantity { margin: 0; }
.piq-single-inquiry .piq-qty { width: 4.5em; height: 100%; text-align: center; }
.piq-add-to-inquiry.loading { opacity: .6; pointer-events: none; }
.piq-add-to-inquiry.added::after { content: " \2713"; }
.piq-block-wrap { margin-top: .5em; }

/* Inquiry list */
.piq-inquiry-wrap { position: relative; transition: opacity .2s; }
.piq-inquiry-wrap.is-loading { opacity: .5; pointer-events: none; }
.piq-table { width: 100%; border-collapse: collapse; margin-bottom: 2em; }
.piq-table th, .piq-table td { padding: .75em; border-bottom: 1px solid rgba(0,0,0,.1); text-align: left; vertical-align: middle; }
.piq-table thead th { font-size: .85em; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.piq-col-thumb { width: 72px; }
.piq-col-thumb img { width: 60px; height: auto; display: block; border-radius: 4px; }
.piq-col-part { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
.piq-col-qty { width: 7em; }
.piq-row-qty { width: 5em; text-align: center; }
.piq-col-remove { width: 2.5em; text-align: center; }
.piq-remove { background: none; border: 0; font-size: 1.5em; line-height: 1; cursor: pointer; color: #b32d2e; padding: .1em .35em; border-radius: 50%; }
.piq-remove:hover, .piq-remove:focus-visible { background: rgba(179,45,46,.1); }

.piq-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1em 1.5em; max-width: 760px; }
.piq-form h3, .piq-notice, .piq-field-wide, .piq-actions { grid-column: 1 / -1; }
.piq-form h3 { margin: 0 0 .25em; }
.piq-field { margin: 0; display: flex; flex-direction: column; gap: .35em; }
.piq-field input, .piq-field textarea { width: 100%; box-sizing: border-box; }
.piq-field .required { color: #b32d2e; text-decoration: none; border: 0; }
.piq-field.has-error input, .piq-field.has-error textarea { border-color: #b32d2e; box-shadow: 0 0 0 1px #b32d2e; }
.piq-field-error { color: #b32d2e; font-size: .85em; }
.piq-notice { padding: .8em 1em; border-radius: 4px; }
.piq-notice.is-error { background: #fcf0f1; color: #8a2424; border-left: 4px solid #b32d2e; }
.piq-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.piq-actions { margin: 0; }

.piq-success, .piq-empty { padding: 2em; text-align: center; border: 1px solid rgba(0,0,0,.1); border-radius: 8px; }
.piq-success { background: #f0f8f1; border-color: #b8dfc0; }
.piq-success-title { font-size: 1.15em; font-weight: 600; margin: 0 0 .5em; }
.piq-success-number { font-family: ui-monospace, Menlo, Consolas, monospace; margin: 0; opacity: .8; }

/* Badges / floating button / toast */
.piq-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5em; height: 1.5em; padding: 0 .4em; border-radius: 1em; background: #b32d2e; color: #fff; font-size: .75em; font-weight: 700; line-height: 1; box-sizing: border-box; }
.piq-floating { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 9998; display: inline-flex; align-items: center; gap: .5em; padding: .75em 1.1em; border-radius: 2em; background: #1e1e1e; color: #fff !important; text-decoration: none !important; box-shadow: 0 6px 20px rgba(0,0,0,.2); font-size: 15px; transition: transform .2s, opacity .2s; }
.piq-floating:hover { transform: translateY(-2px); }
.piq-floating.piq-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }

.piq-toast { position: fixed; left: 50%; bottom: 24px; z-index: 9999; transform: translate(-50%, 20px); opacity: 0; max-width: calc(100% - 32px); padding: .85em 1.2em; border-radius: 6px; background: #1e1e1e; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: opacity .25s, transform .25s; pointer-events: none; }
.piq-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.piq-toast.is-error { background: #8a2424; }
.piq-toast a { color: #fff; text-decoration: underline; margin-left: .5em; font-weight: 600; }

@media (max-width: 640px) {
	.piq-form { grid-template-columns: 1fr; }
	.piq-table thead { display: none; }
	.piq-table, .piq-table tbody, .piq-table tr, .piq-table td { display: block; width: 100%; }
	.piq-table tr { position: relative; padding: .75em 2.5em .75em 0; border-bottom: 1px solid rgba(0,0,0,.1); }
	.piq-table td { border: 0; padding: .25em 0; }
	.piq-table td[data-title]::before { content: attr(data-title) ": "; font-weight: 600; font-size: .85em; opacity: .7; }
	.piq-col-remove { position: absolute; top: .5em; right: 0; width: auto; }
	.piq-floating .piq-floating-label { display: none; }
}
