.bopbid-gb {
	--gb-ink: var(--wp--preset--color--charcoal, #303841);
	--gb-paper: var(--wp--preset--color--cream, #efe8dd);
	--gb-orange: var(--wp--preset--color--orange, #ff5722);
	--gb-line: var(--bopbid-line, rgba(48, 56, 65, .2));
	container-type: inline-size;
}

.bopbid-gb table {
	table-layout: fixed;
	border-spacing: 0;
	margin-block: 1.5rem 2.5rem;
}

.bopbid-gb th, .bopbid-gb td {
	padding: .8rem 1rem;
	vertical-align: middle;
	text-shadow: none;
}

.bopbid-gb th {
	color: var(--gb-ink);
	font-size: .875rem;
	letter-spacing: .045em;
}

.bopbid-gb th:first-child { width: 40%; }
.bopbid-gb th:nth-child(2) { width: 23%; }
.bopbid-gb td { font-size: 1rem; }
.bopbid-gb tbody tr:hover { background: transparent; }
.bopbid-gb td:nth-child(2) { background: transparent; color: var(--gb-ink); }

.bopbid-gb .gb-figure {
	display: flex;
	align-items: center;
	gap: .75rem;
	font-weight: 700;
	color: var(--gb-ink);
	overflow-wrap: anywhere;
}

.gb-figure img { flex: 0 0 auto; width: 4.5rem; height: 4.5rem; object-fit: contain; }
.bopbid-gb .gb-reserved, .bopbid-gb .gb-reserved:hover { background: #e4e3df; }
.gb-reserved .gb-figure { filter: grayscale(1); }
.bopbid-gb .gb-reserved td, .gb-reserved .gb-figure { color: #50545a; }

.gb-status { display: inline-flex; align-items: center; gap: .45rem; font-size: .875rem; font-weight: 650; }
.gb-status::before { content: ''; width: .55rem; height: .55rem; border-radius: 50%; background: #37696a; flex: none; }
.gb-reserved .gb-status::before { background: #72767a; }
.gb-pending .gb-status::before { background: #975323; }

.gb-request summary, .gb-request button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	box-sizing: border-box;
	border: 1px solid var(--gb-ink);
	border-radius: 5px;
	padding: .55rem 1rem;
	font: inherit;
	font-size: .95rem;
	font-weight: 750;
	line-height: 1.25;
	cursor: pointer;
}

.gb-request summary {
	list-style: none;
	background: var(--gb-ink);
	color: var(--gb-paper);
	gap: 1rem;
}

.gb-request summary::-webkit-details-marker { display: none; }
.gb-request summary::after {
	content: '';
	width: .45rem;
	height: .45rem;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: translateY(-2px) rotate(45deg);
}
.gb-request[open] summary::after { transform: translateY(2px) rotate(225deg); }
.gb-request button, .gb-request summary:hover { color: var(--gb-ink); background: var(--gb-orange); }
.gb-request button:hover { background: var(--gb-ink); color: var(--gb-paper); }

.gb-request form {
	display: grid;
	gap: .75rem;
	margin: .75rem 0 .25rem;
	padding: 1rem;
	border: 1px solid var(--gb-line);
	border-radius: 8px;
	background: var(--gb-paper);
}

.gb-request label { display: grid; gap: .25rem; min-width: 0; color: var(--gb-ink); font-size: .875rem; font-weight: 700; }
.gb-request input:not([type="hidden"]) {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 44px;
	border: 1px solid #6b7177;
	border-radius: 5px;
	padding: .5rem .65rem;
	background: #fff;
	color: var(--gb-ink);
	font: inherit;
	font-size: 1rem;
	font-weight: 400;
}
.gb-request :is(input, button, summary):focus-visible { outline: 3px solid var(--gb-ink); outline-offset: 3px; }

@container (max-width: 38rem) {
	.bopbid-gb table, .bopbid-gb caption, .bopbid-gb tbody { display: block; }
	.bopbid-gb thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.bopbid-gb tbody tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: .5rem;
		padding: .75rem;
		border-bottom: 1px solid var(--gb-line);
	}
	.bopbid-gb td { padding: 0; box-shadow: none; }
	.bopbid-gb .gb-action { grid-column: 1 / -1; }
	.bopbid-gb .gb-action:empty { display: none; }
	.gb-figure img { width: 3.25rem; height: 3.25rem; }
}
