/* Camera button injected right next to Woodmart's own search submit button (desktop + mobile
   search forms), styled as a real button matching the search button's own proportions —
   not a bare floating icon. !important beats Woodmart's generic button reset. */
.cia-trigger {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 100%;
	min-height: 38px;
	padding: 0 !important;
	margin: 0;
	border: none !important;
	border-inline-start: 1px solid rgba(17, 18, 20, .12);
	background: #f4f4f4 !important;
	color: #111214 !important;
	cursor: pointer;
	flex-shrink: 0;
	transition: background .15s ease, color .15s ease;
}
.cia-trigger:hover {
	background: #FCB819 !important;
}
.cia-trigger svg {
	width: 18px;
	height: 18px;
}

/* Inline shortcode button. */
.cia-inline-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border: 2px solid #111214;
	border-radius: 8px;
	background: #111214;
	color: #FCB819;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}
.cia-inline-btn:hover {
	background: #FCB819;
	color: #111214;
	border-color: #FCB819;
}

/* Injected into the shop toolbar, styled like the theme's own "Filters" toolbar control
   (plain text + icon, no fill, no pill) instead of a custom yellow badge. */
.cia-shop-tool-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 0 10px 15px;
	margin: 0;
	height: 45px;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #333;
	font-weight: 400;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
}
.cia-shop-tool-btn:hover {
	color: #FCB819;
}
.cia-shop-tool-btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}
@media (max-width: 600px) {
	.cia-shop-tool-btn span { display: none; } /* icon-only on small screens */
}

.cia-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
}
.cia-modal.is-open {
	display: block;
}
.cia-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 18, 20, .72);
}
.cia-modal__panel {
	position: relative;
	z-index: 1;
	width: min(440px, calc(100vw - 32px));
	max-height: calc(100vh - 64px);
	overflow-y: auto;
	margin: 32px auto;
	background: #fff;
	border-radius: 14px;
	padding: 20px 22px 22px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.cia-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}
.cia-modal__title {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.2;
}
/* !important throughout: Woodmart's generic button reset (square corners, svg sizing) would
   otherwise flatten this close button and collapse its X icon to 0 width. */
.cia-modal__close {
	flex-shrink: 0;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 34px !important;
	height: 34px !important;
	min-width: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	background: #f1f1f1 !important;
	color: #333 !important;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.cia-modal__close svg {
	width: 18px !important;
	height: 18px !important;
	display: block;
}
.cia-modal__close:hover {
	background: #111214 !important;
	color: #fff !important;
}

.cia-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 160px;
	border: 2px dashed #d8d8d8;
	border-radius: 10px;
	cursor: pointer;
	text-align: center;
	padding: 20px;
	margin-bottom: 16px;
	transition: border-color .15s ease, background .15s ease;
}
.cia-dropzone:hover {
	border-color: #FCB819;
	background: #fffdf5;
}
.cia-dropzone__icon {
	display: inline-flex;
	color: #FCB819;
}
.cia-dropzone__icon svg {
	width: 34px;
	height: 34px;
}
.cia-dropzone.has-photo .cia-dropzone__icon {
	display: none;
}
.cia-dropzone__preview {
	max-width: 100%;
	max-height: 200px;
	border-radius: 8px;
	object-fit: contain;
}
.cia-dropzone__label {
	font-size: 14px;
	font-weight: 600;
	color: #444;
}

.cia-submit {
	width: 100%;
	padding: 13px;
	border: none;
	border-radius: 8px;
	background: #FCB819;
	color: #111214;
	font-weight: 800;
	font-size: 15px;
	cursor: pointer;
}
.cia-submit:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.cia-status {
	margin-top: 16px;
	font-size: 14px;
	text-align: center;
	color: #666;
}
.cia-status.is-error {
	color: #c0392b;
}

.cia-detected {
	margin-top: 14px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #f6f6f6;
	font-size: 13px;
	color: #444;
}

