.decklist {
	/* Not bothering with vendor prefixes for columns here
	 * since browsers that require prefixes don't have good
	 * support for break control and it looks awful, better
	 * just to fall back to a single column. */
	column-count: 2;
	column-gap: 2em;
	font-size: 0.8em;
}
.decklist-title {
	break-after: avoid;
	color: inherit;
	font: inherit;
	font-size: 1.25em;
	font-weight: bold;
	margin: 0;
	text-transform: none;
}
.decklist-content {
	break-inside: avoid;
	list-style: none;
	margin-top: 0;
	padding-left: 0;
}

/*
	Site header
*/

#head form { /* overrides main.css */
	font-size: inherit;
	position: static;
}
#head input, #head button { /* overrides main.css */
	height: auto;
	width: auto;
}

#head-search, #head-user {
	padding-bottom: 0.1em;
	text-align: right;
}
#head-search ul, #head-user p, #head-user ul {
	margin: 0.25em 0;
}

#head-search label {
	display: inline-block;
	margin: 0.25em 0 0.25em 0.5em;
}
#head-search label:first-child {
	float: left;
	font-size: 125%;
	font-weight: bold;
	margin: 0 0 0.2em 0;
}
#head-search input[type="radio"] {
	margin: 0 0.15em 0 1em;
	position: relative;
	top: -2px;
}

#head-search #head-search-main {
	padding-top: 0.15em;
}
#head-search #head-search-main {
	display: flex;
}
#head-search #head-search-main input {
	border-radius: 3px 0 0 3px;
	-webkit-flex: 1;
	-ms-flex: 1;
	flex: 1;
}

#head-search ul {
	display: flex;
	padding-top: 0.25em;
}
#head-search li {
	-webkit-flex: 1;
	-ms-flex: 1;
	flex: 1;
	text-align: left;
}
#head-search li:last-child {
	text-align: right;
}

#head-user li a {
	white-space: pre;
}

/*
	Flexbox grid base
*/

.grid {
	clear: both;
	display: flex;
	-webkit-flex-flow: row wrap;
	-ms-flex-flow: row wrap;
	flex-flow: row wrap;
	list-style: none;
	margin: 1em -5px;
	padding: 0;
}
.grid-item {
	background: #FFF;
	border: 5px solid #EEE;
	-webkit-flex: 0 1 auto;
	-ms-flex: 0 1 auto;
	flex: 0 1 auto;
	padding: 1em;
}
.grid-item-1of1 { width: 100%; }
.grid-item-1of2 { width:  50%; }
.grid-item-1of3 { width:  33%; }
.grid-item-1of4 { width:  25%; }
.grid-item-1of5 { width:  20%; }
.grid-item-golden-lg { width: 62% }
.grid-item-golden-sm { width: 38% }

/* Safari users y u no update */
.safari .grid { display: box }
.safari .grid:before, .safari .grid:after { content: " "; display: table }
.safari .grid:after { clear: both }
.safari .grid-item { float: left }

@media (max-width: 479px) {
	.grid-item-1of2,
	.grid-item-1of3,
	.grid-item-1of4,
	.grid-item-1of5 {
		width: 100%;
	}
}
@media (min-width: 480px) and (max-width: 639px) {
	.grid-item-1of3,
	.grid-item-1of4,
	.grid-item-1of5 {
		width: 50%;
	}
	.safari .grid-item-1of2:nth-of-type(odd),
	.safari .grid-item-1of3:nth-of-type(odd),
	.safari .grid-item-1of4:nth-of-type(odd),
	.safari .grid-item-1of5:nth-of-type(odd) {
		clear: left;
	}
}
@media (min-width: 640px) and (max-width: 767px) {
	.grid-item-1of4,
	.grid-item-1of5 {
		width: 33%;
	}
	.safari .grid-item-1of2:nth-of-type(odd),
	.safari .grid-item-1of3:nth-of-type(3n+1),
	.safari .grid-item-1of4:nth-of-type(3n+1),
	.safari .grid-item-1of5:nth-of-type(3n+1) {
		clear: left;
	}
}
@media (min-width: 768px) and (max-width: 979px) {
	.grid-item-1of5 {
		width: 25%;
	}
	.safari .grid-item-1of2:nth-of-type(odd),
	.safari .grid-item-1of3:nth-of-type(3n+1),
	.safari .grid-item-1of4:nth-of-type(4n+1),
	.safari .grid-item-1of5:nth-of-type(4n+1) {
		clear: left;
	}
}
@media (min-width: 980px) {
	.safari .grid-item-1of2:nth-of-type(odd),
	.safari .grid-item-1of3:nth-of-type(3n+1),
	.safari .grid-item-1of4:nth-of-type(4n+1),
	.safari .grid-item-1of5:nth-of-type(5n+1) {
		clear: left;
	}
}

/*
	Product grid
*/

.product-grid .grid-item {
	display: -webkit-flex;
	display: flex;
	position: relative;
}
body:not(.ie) .product-grid .grid-item {
	-webkit-flex-direction: column;
	-ms-flex-direction: column;
	flex-direction: column;
}
.product-grid .grid-item > a {
	color: inherit;
	display: block;
	-webkit-flex: 1;
	-ms-flex: 1;
	flex: 1;
	position: relative;
}
.product-grid .img-wrap {
	width: 100%;
}
.product-grid .img-wrap img {
	height: auto;
	width: 100%;
}
@media (max-width: 479px) {
	.product-grid .img-wrap img {
		max-width: 100%;
		width: auto;
	}
}
.product-grid h3 {
	font-family: inherit;
	font-size: 1em;
	margin: 0;
	padding: 1em 0 0.25em;
}

/*
	Products with only inline buy form
	eg. playmats, sleeves
*/

body.ie .product.grid.buy-inline .grid-item {
	display: block;
}

.product-grid.buy-inline li > a {
	display: -webkit-flex;
	display: flex;
	-webkit-flex: 1 0 auto;
	-ms-flex: 1 0 auto;
	flex: 1 0 auto;
	-webkit-flex-direction: column;
	-ms-flex-direction: column;
	flex-direction: column;
}
.product-grid.buy-inline .img-wrap {
	-webkit-flex: 1 0 auto;
	-ms-flex: 1 0 auto;
	flex: 1 0 auto;
}
.product-grid.buy-inline h3 {
	box-sizing: content-box;
	height: 2em;
	line-height: 1.1;
	overflow-y: hidden;
	padding-top: 0.5em;
}
/* hack, can't float in a flexbox */
.product-grid.buy-inline .price {
	margin-left: 50%;
	text-align: right;
	width: 50%;
}
.product-grid.buy-inline .qty {
	margin-top: -1.4em;
	width: 50%;
}
/* end hack */
.product-grid.buy-inline form {
	clear: both;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: row;
	-ms-flex-direction: row;
	flex-direction: row;
	margin-top: 0.1em;
}
.product-grid.buy-inline input {
	width: 50%;
}
.product-grid.buy-inline button {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	position: static;
	width: 50%;
}

/*
	Products with popup panel for selecting condition / language / etc.
	eg. singles, booster packs
*/

.product-grid.buy-popup h3 {
	background: rgba(255, 255, 255, 0.95);
	position: absolute;
	left: 0; right: 0; bottom: 1.4em;
}
.product-grid.buy-popup div.price {
	background: rgba(255, 255, 255, 0.95);
	display: block;
	line-height: 1;
	padding: 0.5em 1em 0.25em; 
	position: absolute; left: 0; right: 0; bottom: 0.65em;
}
.product-grid .add_to_wishlist,
.product-grid .pop-stock {
	box-shadow: none;
	font-weight: normal;
	padding: 0.25em 0.75em;
	position: absolute; left: auto; right: 0.5em; bottom: 0.65em; top: auto;
	z-index: 100;
}
.product-grid .in-stock {
	background: #FFF;
	border: 1em solid #FFF;
	box-shadow: 5px 5px 0 #1F7899, 5px -5px 0 #1F7899;
	display: none;
	position: absolute; left: 100%; right: auto; top: -1em; bottom: -1em;
	width: 175%; /* 209%; */
}
.product-grid .pop-left .in-stock {
	box-shadow: -5px 5px 0 #1F7899, -5px -5px 0 #1F7899;
	left: auto; right: 100%;
}
#clicker {
	background: rgba(0, 0, 0, 0.25);
	position: fixed; left: 0; right: 0; top: 0; bottom: 0;
	z-index: 400;
}
.product-grid .active {
	border-color: #1F7899;
	z-index: 600;
}
.product-grid .active .in-stock {
	display: block;
	z-index: 600;
}
.product-grid .active .pop-stock {
	z-index: 900;
}

@media (max-width: 479px) {
	.product-grid .pop-stock {
		display: none;
	}
	.product-grid .in-stock,
	.product-grid .pop-left .in-stock {
		border: 0;
		box-shadow: none;
		display: block;
		position: static;
	}
	#clicker {
		background: red;
		left: auto; right: 100px; top: 0; bottom: 100px;
		height: 1px;
		width: 1px;
	}
}

.product-grid  .in-stock tbody,
.product-grid  .in-stock tr,
.product-grid  .in-stock td {
	border: 0;
	display: block;
	margin: 0;
	padding: 0;
	width: 100%;
}
.product-grid  .in-stock tr::before,
.product-grid  .in-stock tr::after {
	display: table;
	content: " ";
}
.product-grid  .in-stock tr::after {
	clear: both;
}
.product-grid  .in-stock tr + tr {
	border-top: 1px solid #EEE;
	margin-top: 0.5em;
	padding-top: 0.25em;
}
.product-grid  .in-stock .price {
	float: left;
	padding-top: 0.25em;
	width: 25%;
}
.product-grid  .in-stock .qty {
	float: left;
	padding-top: 0.25em;
	width: 30%;
}
.product-grid  .in-stock form {
	float: right;
	display: flex;
	font-size: 0.85em;
	width: 40%;
}
.product-grid  .in-stock input[type="number"] {
	border-right-width: 0;
	-webkit-flex: 1;
	-ms-flex: 1;
	flex: 1;
}
.product-grid  .in-stock input[type="submit"] {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	box-shadow: none;
	position: static;
}