/**
 * MagicSubscriptions WordPress Plugin
 * Copyright (C) 2019 Ronnie Barker
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 **/

/* /////////////////////// v Metal -> Platinum -> Plans v ////////////////// */

.magic-subs.ms-plans.ms-metal-Platinum
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(20em, 1fr));
	grid-gap: 12px;
}



.magic-subs.ms-plans.ms-metal-Platinum .ms-card
{
	background: rgba(var(--ms-theme-primary-rgb), 0.2);
}



.magic-subs.ms-plans.ms-metal-Platinum button
{
	border-radius: 20px;
}



.magic-subs.ms-plans.ms-metal-Platinum .ms-name
{
	color: var(--ms-theme-accent);
	font-size: 24px;
	font-weight: var(--ms-font-weight-bold);
	text-transform: uppercase;
}



.magic-subs.ms-plans.ms-metal-Platinum .ms-header
{
	margin: 0 0 24px 0;
	flex-grow: 1;
	/*color: #555;*/
}



.magic-subs.ms-plans.ms-metal-Platinum .ms-header .ms-price
{
	line-height: 70px;
	font-weight: var(--ms-font-weight-bold);
}



.magic-subs.ms-plans.ms-metal-Platinum .ms-header .ms-price .ms-currency
{
	position: relative;
	top: -35px;
}



.magic-subs.ms-plans.ms-metal-Platinum .ms-header .ms-price .ms-amount
{
	font-size: 70px;
}



.magic-subs.ms-plans.ms-metal-Platinum .ms-price-label
{
	line-height: 20px;
	font-weight: var(--ms-font-weight-bold);
}



.magic-subs.ms-plans.ms-metal-Platinum .ms-title
{
	font-size: 20px;
	flex-grow: 1;
	color: var(--ms-theme-accent);
}



.magic-subs.ms-plans.ms-metal-Platinum .ms-headline-list
{
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-weight: var(--ms-font-weight-bold);
	line-height: 1.6em;
	margin: 1.33em 0 0 0;
	list-style: none;
	padding-inline-start: 0;
	margin-block-start: 1em;
	margin-block-end: 1em;
	margin-inline-start: 0;
	margin-inline-end: 0;
	/*color: #555;*/
}



.magic-subs.ms-plans.ms-metal-Platinum .ms-sub-type
{
	margin: 12px;
	display: flex;
	flex-grow: 1;
}



.magic-subs.ms-plans.ms-metal-Platinum .ms-card
{
	flex-direction: column;
	box-sizing: border-box;
	display: flex;
	flex-grow: 1;
	margin: 0;
	padding: 16px;
	border-radius: 4px;
	box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
}



/* /////////////////////// ^ Metal -> Platinum -> Plans ^ ////////////////// */

/* /////////////////////// v Metal -> Platinum -> Products v ////////////////// */

.magic-subs.ms-products.ms-metal-Platinum
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16em, 1fr));
	grid-gap: 30px;
}



.magic-subs.ms-products.ms-metal-Platinum .ms-product
{
	background: white;
}



.magic-subs.ms-products.ms-metal-Platinum .ms-product
{
	display: flex;
	flex-grow: 1;
	border-radius: 8px;
	position: relative;
}



.magic-subs.ms-products.ms-metal-Platinum .ms-product-content
{
	display: flex;
	flex-grow: 1;
	position: relative;
	flex-direction: column;
	border-radius: 8px;
	border-bottom: solid 1px rgba(var(--ms-theme-accent-rgb), 0.25);
	background: rgba(var(--ms-theme-primary-rgb), 0.2);
	padding: 12px;
	width: 100%;
}



.magic-subs.ms-products.ms-metal-Platinum .ms-product .ms-image
{
	width: 100%;
	padding-top: 100%;
	overflow: hidden;
	position: relative;
	border-radius: 8px;
	box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
}



.magic-subs.ms-products.ms-metal-Platinum .ms-product .ms-image > img
{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
}



.magic-subs.ms-products.ms-metal-Platinum .ms-product .ms-image > .ms-description-wrapper
{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	margin: 20px;
	opacity: 0;
	transition: opacity 1s;
}



.magic-subs.ms-products.ms-metal-Platinum .ms-product:hover .ms-description-wrapper
{
	opacity: 1;
	transition: opacity 1s;
}



.magic-subs.ms-products.ms-metal-Platinum .ms-description-wrapper .ms-description
{
	font-size: 14px;
	font-weight: var(--ms-font-weight-normal);
	padding: 20px 30px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.7);
	box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
	color: #333;

	max-height: 100%;
	overflow: auto;
}



.magic-subs.ms-products.ms-metal-Platinum .ms-product .ms-title-over
{
	margin: 12px;
	font-size: 24px;
	flex-grow: 1;
	/*flex-basis: 50px;*/
	/*flex-basis: 80px;*/ /* This will support 2 lines */
	font-weight: var(--ms-font-weight-normal);
	color: var(--ms-theme-accent);
}



.magic-subs.ms-products.ms-metal-Platinum .ms-product .ms-title-under
{
	margin: 12px;
	font-size: 16px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-weight: var(--ms-font-weight-bold);
	color: var(--ms-theme-accent);
}



.magic-subs.ms-products.ms-metal-Platinum .ms-footer
{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 12px;
}



.magic-subs.ms-products.ms-metal-Platinum .ms-footer form
{
	margin: 0;
}



.magic-subs.ms-products.ms-metal-Platinum .ms-price
{
	line-height: 30px;
	font-weight: var(--ms-font-weight-bold);
	margin: 4px 20px;
}



.magic-subs.ms-products.ms-metal-Platinum .ms-price .ms-currency
{
	position: relative;
	top: -15px;
}



.magic-subs.ms-products.ms-metal-Platinum .ms-price .ms-amount
{
	font-size: 30px;
}



.magic-subs.ms-products.ms-metal-Platinum .ms-product .ms-tags
{
	position: absolute;
	right: -16px;
	top: -16px;
	opacity: 1;
	z-index: 1;
}



.magic-subs.ms-products.ms-metal-Platinum .ms-product .ms-tags .ms-tag
{
	background-color: var(--ms-theme-accent);
	padding: 4px 16px;
	color: var(--ms-theme-accent-contrast);
	border-radius: 18px;
	font-weight: var(--ms-font-weight-bold);

	float: right;
	margin: 2px;

	box-shadow: 0 2px 1px -1px rgba(0, 0, 0, .2), 0 1px 1px 0 rgba(0, 0, 0, .14), 0 1px 3px 0 rgba(0, 0, 0, .12);
}



/* /////////////////////// ^ Metal -> Platinum -> Products ^ ////////////////// */
