/* Corporate Gifts Catalogue - styling.
   Clean white cards, thin borders, rounded corners, white buttons.
   Mobile-friendly throughout. Every button sets its colors explicitly
   (including spans) so pushy theme styles cannot break the look on
   whichever site this plugin is installed on. */

.gmcg-wrap { max-width: 1200px; margin: 0 auto; }

/* The bar and overlay use display:flex, which would override the HTML
   "hidden" attribute - this rule keeps hidden actually meaning hidden. */
.gmcg-bar[hidden],
.gmcg-overlay[hidden] { display: none !important; }

/* ----- category tabs ----- */
.gmcg-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
}
.gmcg-tab {
	font-size: 13px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid #d9d9d9;
	background: #ffffff;
	color: #444444;
	cursor: pointer;
	line-height: 1.2;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.gmcg-tab:hover { background: #f6f6f6; color: #222222; }
.gmcg-tab-on,
.gmcg-tab-on:hover {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #ffffff;
}

/* ----- product grid ----- */
.gmcg-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 20px;
}
@media (max-width: 900px) {
	.gmcg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
}

/* ----- one product card ----- */
.gmcg-card {
	background: #ffffff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	text-align: left;
	transition: box-shadow .15s ease, border-color .15s ease;
}
.gmcg-card:hover { border-color: #d9d9d9; box-shadow: 0 4px 14px rgba(0,0,0,.07); }

.gmcg-img { position: relative; }
.gmcg-img img {
	width: 100% !important;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	margin: 0 !important;
}
.gmcg-pill {
	position: absolute;
	top: 10px;
	left: 10px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 999px;
	background: #ffffff;
	color: #555555;
	border: 1px solid #dddddd;
	box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.gmcg-body {
	padding: 12px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}
.gmcg-name  { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; color: #1f1f1f; }
.gmcg-sku   { margin: 0; font-size: 12px; color: #999999; }
.gmcg-cat   { margin: 0; font-size: 12px; color: #777777; }
.gmcg-desc  { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: #555555; }
.gmcg-empty { grid-column: 1 / -1; text-align: center; color: #777777; padding: 40px 0; }

/* ----- select button on each card ----- */
.gmcg-select {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: auto;
	padding: 11px 14px;
	margin-bottom: 0;
	background: #ffffff;
	color: #2a2a2a;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}
.gmcg-select span { color: inherit !important; }
.gmcg-select:hover { background: #f6f6f6; border-color: #c9c9c9; color: #2a2a2a; }

/* the little square that becomes a tick when selected */
.gmcg-tick {
	width: 15px;
	height: 15px;
	border-radius: 4px;
	border: 1.5px solid #b5b5b5;
	display: inline-block;
	flex: 0 0 auto;
	position: relative;
	background: #ffffff;
}
.gmcg-card.gmcg-selected .gmcg-select {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #ffffff;
}
.gmcg-card.gmcg-selected .gmcg-select:hover { background: #000000; }
.gmcg-card.gmcg-selected .gmcg-tick {
	background: #ffffff;
	border-color: #ffffff;
}
.gmcg-card.gmcg-selected .gmcg-tick::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #1a1a1a;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.gmcg-card.gmcg-selected { border-color: #1a1a1a; }

/* ----- unavailable products: visible but clearly disabled ----- */
.gmcg-unavailable .gmcg-img img { opacity: .5; filter: grayscale(35%); }
.gmcg-unavailable .gmcg-name,
.gmcg-unavailable .gmcg-desc,
.gmcg-unavailable .gmcg-cat { color: #9a9a9a; }
.gmcg-noselect {
	display: block;
	margin-top: auto;
	padding: 11px 14px;
	text-align: center;
	border: 1px dashed #d9d9d9;
	border-radius: 8px;
	font-size: 13px;
	color: #aaaaaa;
}

/* ----- floating enquiry bar ----- */
.gmcg-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 18px;
	display: flex;
	justify-content: center;
	z-index: 9990;
	pointer-events: none; /* only the button itself is clickable */
}
.gmcg-bar-btn {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #1a1a1a;
	color: #ffffff !important;
	border: none;
	border-radius: 999px;
	padding: 14px 24px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0,0,0,.28);
}
.gmcg-bar-btn span { color: #ffffff !important; }
.gmcg-bar-btn:hover { background: #000000; color: #ffffff; }

/* ----- the enquiry pop-up ----- */
.gmcg-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	z-index: 9995;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	overflow-y: auto;
}
.gmcg-modal {
	background: #ffffff;
	border-radius: 14px;
	max-width: 520px;
	width: 100%;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 24px;
	position: relative;
}
.gmcg-modal h3 { margin: 0 0 4px; font-size: 20px; color: #1f1f1f; }
.gmcg-sub { margin: 10px 0 8px; font-size: 13px; font-weight: 600; color: #555555; }
.gmcg-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #999999;
	cursor: pointer;
	padding: 6px;
}
.gmcg-close:hover { color: #333333; background: none; }

/* selected product chips inside the form */
.gmcg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.gmcg-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	background: #f2f2f2;
	color: #333333;
	padding: 6px 10px;
	border-radius: 999px;
	line-height: 1.3;
}
.gmcg-chip button {
	background: none;
	border: none;
	color: #888888;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
}
.gmcg-chip button:hover { color: #c0392b; background: none; }

/* form fields */
.gmcg-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
@media (max-width: 560px) {
	.gmcg-fields { grid-template-columns: 1fr; }
}
.gmcg-modal label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12.5px;
	font-weight: 600;
	color: #555555;
}
.gmcg-modal input,
.gmcg-modal textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 400;
	color: #1f1f1f;
	background: #ffffff;
	box-sizing: border-box;
}
.gmcg-modal input:focus,
.gmcg-modal textarea:focus { border-color: #1a1a1a; outline: none; }
.gmcg-msg { margin-top: 12px; }

/* the invisible honeypot field (bots fill it, humans never see it) */
.gmcg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.gmcg-error {
	margin: 12px 0 0;
	font-size: 13px;
	color: #b3261e;
	background: #fdecea;
	border-radius: 8px;
	padding: 10px 12px;
}

.gmcg-submit {
	width: 100%;
	margin-top: 16px;
	padding: 13px 16px;
	background: #1a1a1a;
	color: #ffffff !important;
	border: none;
	border-radius: 8px;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
}
.gmcg-submit span { color: #ffffff !important; }
.gmcg-submit:hover { background: #000000; color: #ffffff; }
.gmcg-submit:disabled { opacity: .6; cursor: default; }

#gmcg-done { text-align: center; padding: 12px 0 4px; }
#gmcg-done p { color: #555555; font-size: 14.5px; }
