/**
 * WooCommerce Convenience Addon — 프론트엔드 공통 스타일
 */

.wcca-catalog-mode .single_add_to_cart_button,
.wcca-catalog-mode .add_to_cart_button,
.wcca-catalog-mode .ajax_add_to_cart {
	display: none !important;
}

.wcca-catalog-mode.wcca-catalog-hide-quantity .quantity,
.wcca-catalog-mode.wcca-catalog-hide-quantity .woocommerce-variation-add-to-cart {
	display: none !important;
}

.wcca-catalog-price-label,
.wcca-catalog-price {
	font-weight: 600;
}

.wcca-catalog-price-link {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.wcca-catalog-price-cta-append {
	display: block;
	margin-top: 0.35rem;
}

.wcca-catalog-single-cta {
	display: block;
	margin-top: 0.75rem;
	margin-bottom: 0.5rem;
}

.wcca-buy-now {
	margin-top: 0.75rem;
}

.wcca-buy-now--loop {
	margin-top: 0.5rem;
}

/* 문의 모달 */
body.wcca-contact-modal-open {
	overflow: hidden;
}

.wcca-contact-modal[hidden] {
	display: none !important;
}

.wcca-contact-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.wcca-contact-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
	.wcca-contact-modal__backdrop {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

.wcca-contact-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 28rem);
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.wcca-contact-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
}

.wcca-contact-modal__title {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
}

.wcca-contact-modal__intro {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	color: #64748b;
	line-height: 1.55;
}

.wcca-url-copy-modal__message {
	margin: 0;
	font-size: 0.875rem;
	color: #334155;
	line-height: 1.6;
	white-space: pre-wrap;
	word-break: break-word;
}

.wcca-url-copy-modal__body {
	margin-bottom: 1.25rem;
}

.wcca-url-copy-modal__body .wcca-contact-modal__title {
	margin-bottom: 1rem;
}

.wcca-url-copy-modal__footer {
	margin: 0;
	padding: 0;
	border: 0;
}

.wcca-url-copy-modal__product {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 1rem;
	padding: 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f8fafc;
}

.wcca-url-copy-modal__media {
	margin-bottom: 0.75rem;
}

.wcca-url-copy-modal__product-image {
	display: block;
	width: auto;
	max-width: 100%;
	height: 160px;
	object-fit: contain;
	border-radius: 10px;
	background: #fff;
}

.wcca-url-copy-modal__product-name {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.45;
}

.wcca-url-copy-modal__product-mgmt {
	margin: 0;
	font-size: 0.875rem;
	color: #475569;
	line-height: 1.5;
}

.wcca-url-copy-modal__product-mgmt-label {
	font-weight: 600;
	color: #334155;
	margin-right: 0.35rem;
}

.wcca-url-copy-modal__product-mgmt-value {
	word-break: break-all;
}

.wcca-contact-modal__form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
	font-size: 0.875rem;
}

.wcca-contact-modal__form input,
.wcca-contact-modal__form textarea {
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 0.75rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.875rem;
}

.wcca-contact-modal__product {
	font-size: 0.875rem;
	color: #475569;
	margin: 0 0 0.75rem;
}

.wcca-contact-modal__product-summary {
	display: flex;
	gap: 0.875rem;
	align-items: flex-start;
	margin: 0 0 1rem;
	padding: 0.875rem;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f8fafc;
}

.wcca-contact-modal__product-media {
	flex-shrink: 0;
}

.wcca-contact-modal__product-image {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	background: #fff;
}

.wcca-contact-modal__product-body {
	min-width: 0;
	flex: 1;
}

.wcca-contact-modal__product-kicker {
	margin: 0 0 0.2rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
}

.wcca-contact-modal__product-name {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.4;
}

.wcca-contact-modal__product-meta {
	margin: 0 0 0.5rem;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
	color: #475569;
	line-height: 1.5;
}

.wcca-contact-modal__product-meta li + li {
	margin-top: 0.15rem;
}

.wcca-contact-modal__product-meta span {
	font-weight: 600;
	color: #334155;
}

.wcca-contact-modal__product-link {
	display: inline-flex;
	align-items: center;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #7f54b3;
	text-decoration: underline;
	cursor: pointer;
}

.wcca-contact-modal__product-link:hover,
.wcca-contact-modal__product-link:focus {
	color: #6b4599;
}

.wcca-contact-modal__status {
	font-size: 0.875rem;
	color: #16a34a;
	min-height: 1.25rem;
}

.wcca-contact-modal__actions {
	margin: 0;
}

.wcca-cta-button,
.wcca-inquiry-button {
	display: inline-block;
	margin: 0.25rem 0.5rem 0.25rem 0;
	cursor: pointer;
}

.wcca-inquiry-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.75rem 0;
}

.wcca-inquiry-buttons--loop {
	justify-content: center;
	margin-top: 0.5rem;
}

.wcca-empty-cart-cta {
	margin-top: 1rem;
	text-align: center;
}

.wcca-min-order-notice {
	margin: 0 0 1.25rem;
}

.wcca-min-order-notice--mini-cart {
	margin: 0 0 0.75rem;
	padding: 0.65rem 0.75rem;
	font-size: 0.875rem;
	line-height: 1.45;
	background: #f0f6fc;
	border-radius: 6px;
	color: #1e293b;
}

.wcca-min-order-checkout-disabled,
.wcca-min-order-checkout-disabled:hover,
.wcca-min-order-checkout-disabled:focus {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.wcca-order-lookup {
	max-width: 32rem;
	margin: 0 auto;
}

.wcca-order-lookup-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.wcca-order-lookup-form input[type="text"],
.wcca-order-lookup-form input[type="email"] {
	width: 100%;
	margin-bottom: 0.75rem;
}

.wcca-order-lookup-items {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
}

.wcca-oos-cta {
	margin-top: 0.5rem;
}
