/**
 * 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/>.
 *
 **/

:root
{
	--ms-font-family: sans-serif;
	--ms-font-weight-light: 300;
	--ms-font-weight-normal: 400;
	--ms-font-weight-bold: 500;
	--ms-font-spacing: normal;
	--ms-theme-primary: darkorange;
	--ms-theme-primary-contrast: rgba(0, 0, 0, 0.2);
	--ms-theme-accent: purple;
	--ms-theme-accent-contrast: rgba(255, 255, 255, 0.8);
	--ms-theme-warn: tomato;
	--ms-theme-warn-contrast: rgba(255, 255, 255, 0.8);
	--ms-theme-cta: darkblue;
	--ms-theme-cta-contrast: rgba(255, 255, 255, 0.8);
}



.magic-subs.ms-registered .ms-card
{
	display: flex;
	flex-direction: column;
}



.magic-subs.ms-registered label
{
	font-size: 20px;
	color: dimgray;
}



.magic-subs.ms-registered form
{
	display: flex;
	flex-direction: column;
}



.magic-subs.ms-registered form *[type='submit']
{
	margin: 0;
}



.magic-subs.ms-registered ul
{
	list-style-type: none;
}



.magic-subs.ms-registered .ms-name
{
	font-weight: var(--ms-font-weight-bold);
	font-style: italic;
	text-transform: uppercase;
	color: var(--ms-theme-accent);
}



/* /////////////////////// v Sub-Type v ////////////////// */

.magic-subs .ms-sub-type
{
	flex-direction: column;
	box-sizing: border-box;
	display: flex;
	border: none;
	color: rgb(41, 41, 46);
}



.magic-subs .ms-sub-type h3
{
	margin: 4px;
	font-size: 24px;
	font-weight: var(--ms-font-weight-bold);
	text-transform: uppercase;
}



.magic-subs .ms-sub-type p
{
	font-size: 16px;
	margin: 4px;
}



.magic-subs .ms-sub-type h4
{
	margin: 4px;
	font-size: 20px;
	font-weight: var(--ms-font-weight-bold);
}



/* /////////////////////// ^ Sub-Type ^ ////////////////// */

/* /////////////////////// v Plans v ////////////////// */

.magic-subs.ms-plans,
.magic-subs.ms-plans *
{
	letter-spacing: var(--ms-font-spacing);
}



.magic-subs.ms-plans
{
	font-family: var(--ms-font-family), roboto, sans-serif;
	font-weight: var(--ms-font-weight-normal);
	text-align: center;
	box-sizing: border-box;
}



/* /////////////////////// v Metal -> Nickel -> Plans v ////////////////// */

.magic-subs.ms-plans.ms-metal-Nickel
{
	flex-flow: row wrap;
	display: flex;
	place-content: stretch space-around;
	align-items: stretch;
}



.magic-subs.ms-plans.ms-metal-Nickel .ms-card
{
	padding: 16px;
	border-radius: 4px;
	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 -> Nickel -> Plans ^ ////////////////// */

/* /////////////////////// 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 button
{
	border-radius: 20px;
}



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



.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
{
	flex-grow: 1;
}



.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;
}



.magic-subs.ms-plans.ms-metal-Platinum .ms-card
{
	flex-direction: column;
	box-sizing: border-box;
	display: flex;
	margin: 12px;
	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 ^ ////////////////// */

.magic-subs h1
{
	margin: 4px 4px 20px 4px;
	font-size: 32px;
	font-weight: var(--ms-font-weight-bold);
	color: var(--ms-theme-primary);
	opacity: 0.75;
	text-align: center;
}



.magic-subs .ms-button
{
	margin-bottom: 0;
	font-family: inherit;
	font-weight: var(--ms-font-weight-bold);
	font-size: 14px;
	text-transform: uppercase;
	line-height: 36px;
}



.magic-subs .ms-button:focus
{
	outline: 0;
}



.magic-subs a.ms-button
{
	text-decoration: inherit !important;
}



.magic-subs .ms-raised-button
{
	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);
	cursor: pointer;
	outline: 0;
	border: none;
	display: inline-block;
	white-space: nowrap;
	vertical-align: baseline;
	text-align: center;
	margin: 0 8px 0 0;
	padding: 0 16px;
	border-radius: 4px;
	transition: background .4s cubic-bezier(.25, .8, .25, 1), box-shadow 280ms cubic-bezier(.4, 0, .2, 1);
}



.magic-subs .ms-raised-button:active
{
	box-shadow: 0 5px 5px -3px rgba(0, 0, 0, .2), 0 8px 10px 1px rgba(0, 0, 0, .14), 0 3px 14px 2px rgba(0, 0, 0, .12);
}



.magic-subs .ms-button.ms-colour-primary,
.magic-subs .ms-button.ms-colour-primary:hover
{
	background-color: var(--ms-theme-primary);
	color: var(--ms-theme-primary-contrast)
}



.magic-subs .ms-button.ms-colour-accent,
.magic-subs .ms-button.ms-colour-accent:hover
{
	background-color: var(--ms-theme-accent);
	color: var(--ms-theme-accent-contrast)
}



.magic-subs .ms-button.ms-colour-warn,
.magic-subs .ms-button.ms-colour-warn:hover
{
	background-color: var(--ms-theme-cta);
	color: var(--ms-theme-cta-contrast)
}
