/* The basket's own furniture.

   The drawer, the counter and the buttons are the theme's; what is added here
   is only the shape of a line inside them - a thumbnail, a name, a size, a
   quantity and a price - and the two buttons that close the order. Colours,
   type and radii are the theme's variables throughout. */

.tb-cart {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* the theme hides the drawer's heading, because in its own design the drawer
   never had anything in it worth naming. Ours does. */
.tb-cart .dropdown-title {
	display: block;
	margin: 0 0 20px;
}

.tb-cart .tb-lines {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	flex: 1 1 auto;
}

.tb-line {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 0;
	margin: 0;
	border-bottom: 1px solid var(--loobek-border-color, #e6e6e6);
	list-style: none;
}

.tb-line__img {
	flex: 0 0 72px;
	width: 72px;
	line-height: 0;
	background: var(--loobek-second-bg, #f5f5f5);
}

.tb-line__img img {
	width: 100%;
	height: auto;
	display: block;
}

.tb-line__body {
	flex: 1 1 auto;
	min-width: 0;
}

.tb-line__name {
	display: block;
	text-decoration: none;
	font-size: 13px;
	line-height: 1.45;
	color: var(--loobek-text-bold-color, #262320);
}

.tb-line__size {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	letter-spacing: .03em;
	color: var(--loobek-text-color, #6b6b6b);
}

.tb-line__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 8px;
}

.tb-line__price {
	font-size: 13px;
	font-weight: 600;
	color: var(--loobek-text-bold-color, #262320);
	white-space: nowrap;
}

/* the quantity, in the same grey box the product page uses */
.tb-qty {
	display: flex;
	align-items: center;
	background: var(--loobek-second-bg, #f5f5f5);
}

.tb-qty button {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 15px;
	line-height: 1;
	color: var(--loobek-text-bold-color, #262320);
	cursor: pointer;
}

.tb-qty__n {
	min-width: 24px;
	text-align: center;
	font-size: 13px;
}

.tb-line__drop {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 17px;
	line-height: 1;
	color: var(--loobek-text-color, #9a9a9a);
	cursor: pointer;
}

.tb-line__drop:hover {
	color: var(--loobek-text-bold-color, #262320);
}

.tb-cart__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--loobek-border-color, #e6e6e6);
	font-size: 14px;
}

.tb-cart__total strong {
	font-size: 18px;
	color: var(--loobek-text-bold-color, #262320);
}

.tb-cart__note {
	margin: 6px 0 14px;
	font-size: 11px;
	color: var(--loobek-text-color, #8a8a8a);
}

.tb-cart .button {
	display: block;
	width: 100%;
	text-align: center;
}

.tb-cart .tb-cart__send {
	margin-bottom: 10px;
}

/* one action is the order; the other is a way out of it, and should not look
   like the same offer twice */
.tb-cart a.continue-shopping-button,
.tb-cart a.continue-shopping-button:hover,
.tb-cart a.continue-shopping-button:focus {
	background: transparent;
	color: var(--loobek-text-bold-color, #262320);
	border: 1px solid var(--loobek-text-bold-color, #262320);
}

/* the message that a size has to be chosen first */
.tb-cart-flash {
	margin-top: 10px;
	padding: 8px 12px;
	font-size: 12px;
	background: var(--loobek-second-bg, #f5f5f5);
	color: var(--loobek-text-bold-color, #262320);
	border-radius: 2px;
}

/* the page at /cart/ is the same list with room to breathe */
.tb-cart--page {
	max-width: 640px;
	margin: 0 auto;
}

.tb-cart--page .tb-lines {
	overflow: visible;
}

.tb-cart--page .tb-line__img {
	flex-basis: 96px;
	width: 96px;
}

/* the page behind the drawer does not scroll while the drawer is open */
html.tb-cart-open,
html.tb-cart-open body {
	overflow: hidden;
}

/* the two things that float over every page sit exactly where the basket's
   own buttons are; while the basket is open they stand down */
html.tb-cart-open .tb-a11y,
html.tb-cart-open .qlwapp,
html.tb-cart-open .qlwapp__container {
	display: none !important;
}
