/*
 * Docyart product page — CEP shipping estimate panel.
 * Enqueued only on is_product().
 */

.docyart-cep {
	/* Clear space above so we're never flush against the qty/button row. */
	margin-top: 32px;
	clear: both;
	padding: 16px;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background: #fafafa;
	max-width: 420px;
}
.docyart-cep__title {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 10px;
	color: #1a1a1a;
}
.docyart-cep__form {
	display: flex;
	gap: 8px;
}
.docyart-cep__form input[type="text"] {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #d5d5d5;
	border-radius: 8px;
	font: inherit;
	background: #fff;
}
.docyart-cep__form input[type="text"]:focus {
	outline: 2px solid #b83262;
	outline-offset: 1px;
	border-color: transparent;
}
.docyart-cep__form .button {
	flex: 0 0 auto;
	white-space: nowrap;
}

.docyart-cep__loading,
.docyart-cep__error {
	margin: 10px 0 0;
	font-size: 13px;
}
.docyart-cep__loading { color: #666; }
.docyart-cep__error   { color: #b8323b; }

.docyart-cep__results {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	border-top: 1px solid #e5e5e5;
}
.docyart-cep__results li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}
.docyart-cep__results li:last-child { border-bottom: 0; }
.docyart-cep__method { color: #333; }
.docyart-cep__cost   { font-weight: 700; color: #1a1a1a; }
.docyart-cep__cost .amount { color: inherit; }

.docyart-cep__hint {
	margin: 10px 0 0;
	font-size: 12px;
	color: #666;
}
.docyart-cep__hint a { color: inherit; text-decoration: underline; }

body.single-product .woocommerce-shipping-calculator,
body.single-product .shipping-calculator-button,
body.single-product .shipping-calculator-form,
body.single-product .wc-block-components-shipping-calculator {
	display: none !important;
}
