@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap");

:root {
	--Goldsmiths---Off-Black: #1A1718;
	--Goldsmiths---Gold: #FBA100;
	--box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
	--grey-medium: #727172;
	--font-heading: "Libre Baskerville", serif;
	--font-body: "Futura PT", sans-serif;
}

.rb-embed-drawer {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 2147483000;
	background: rgba(26, 23, 24, 0.24);
	backdrop-filter: blur(4px);
	box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.12);
	transform: translateY(calc(100% - 96px));
	transition: transform 0.3s ease, opacity 0.2s ease;
	opacity: 0;
	pointer-events: none;
}

.rb-embed-drawer.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.rb-embed-drawer.is-open {
	transform: translateY(0);
}

.rb-embed-drawer__toggle {
	align-items: center;
	background: #fff;
	border: 0;
	border-bottom: 1px solid #efefef;
	display: flex;
	gap: 12px;
	padding: 12px 16px;
	text-align: left;
	width: 100%;
}

.rb-embed-drawer__sheet {
	background: #fff;
	display: flex;
	flex-direction: column;
	height: 100%;
	margin-top: auto;
	max-height: 100vh;
}

.rb-embed-drawer__preview {
	background: #fafafa;
	display: block;
	flex: 0 0 56px;
	height: 56px;
	overflow: hidden;
	width: 56px;
}

.rb-embed-drawer__preview img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.rb-embed-drawer__copy {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.rb-embed-drawer__title {
	color: var(--Goldsmiths---Off-Black);
	display: -webkit-box;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.rb-embed-drawer__price {
	color: var(--Goldsmiths---Gold);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
}

.rb-embed-drawer__arrow {
	border-bottom: 2px solid var(--Goldsmiths---Off-Black);
	border-right: 2px solid var(--Goldsmiths---Off-Black);
	display: block;
	flex: 0 0 10px;
	height: 10px;
	transform: rotate(-135deg);
	transition: transform 0.3s ease;
	width: 10px;
}

.rb-embed-drawer.is-open .rb-embed-drawer__arrow {
	transform: rotate(45deg);
}

.rb-embed-drawer__body {
	background: #fff;
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 16px;
}

.rb-embed-drawer__body[hidden] {
	display: none;
}

.rb-embed-drawer__hero {
	background: #fafafa;
	border-radius: 8px;
	display: block;
	margin-bottom: 16px;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.rb-embed-drawer__hero-image,
.rb-embed-drawer__hero img {
	aspect-ratio: 1 / 1;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.rb-spin360 {
	cursor: grab;
	position: relative;
	transform: translateZ(0);
	backface-visibility: hidden;
	will-change: transform;
}

.rb-spin360.is-dragging {
	cursor: grabbing;
}

.spin360-loading {
	align-items: center;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 14px;
	justify-content: center;
	min-height: 360px;
	width: 100%;
}

.spin360-loading p {
	color: #555;
	font-family: var(--font-body);
	font-size: 14px;
	margin: 0;
}

.spin360-loading__spinner {
	animation: spin360-loader 0.9s linear infinite;
	border: 3px solid #e5e5e5;
	border-radius: 50%;
	border-top-color: var(--Goldsmiths---Gold);
	height: 34px;
	width: 34px;
}

@keyframes spin360-loader {
	to { transform: rotate(360deg); }
}

.rb-spin360-progress {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 12px;
	height: 4px;
	z-index: 3;
	background: #fdeac9;
	border-radius: 999px;
	overflow: hidden;
	pointer-events: none;
	transition: opacity 180ms ease;
}

.rb-spin360-progress.is-complete {
	opacity: 0;
}

.rb-spin360-progress__bar {
	height: 100%;
	width: 0;
	background: var(--Goldsmiths---Gold);
	transition: width 180ms ease;
}

.rb-embed-drawer__hero.is-spin360-drag-ready::before {
	background-image: url('/dist/public/images/360-degrees.png');
	background-size: auto 32px;
	background-repeat: no-repeat;
	background-position: center left;
	content: "Drag to spin";
	bottom: 20px;
	color: var(--Goldsmiths---Off-Black);
	font-family: var(--font-body);
	font-size: 14px;
	height: 32px;
	display: flex;
	align-items: center;
	pointer-events: none;
	padding-left: 40px;
	position: absolute;
	right: 16px;
	opacity: 1;
	z-index: 4;
}

.rb-embed-drawer__thumbs {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-bottom: 16px;
}

.rb-embed-drawer__thumb {
	appearance: none;
	background: #fff;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	overflow: hidden;
	padding: 0;
}

.rb-embed-drawer__thumb.is-active {
	border-color: var(--Goldsmiths---Off-Black);
	box-shadow: 0 8px 18px rgba(26, 23, 24, 0.12);
}

.rb-embed-drawer__thumb img {
	aspect-ratio: 1 / 1;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.rb-embed-drawer__body-title {
	color: var(--Goldsmiths---Off-Black);
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.35;
	margin: 0 0 12px;
}

.rb-embed-drawer__body-price {
	color: var(--Goldsmiths---Off-Black);
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 500;
	margin: 0;
}

.rb-embed-drawer__body-price strong {
	font-weight: 600;
}

@media (min-width: 768px) {
	.rb-embed-drawer {
		display: none !important;
	}
}
