* {
	box-sizing: border-box;

	font-family: Arial, Helvetica, sans-serif;
	color: #000000;
}

html,
body {
	width: 100%;
	height: 100%;
	padding: 0px;
	margin: 0;
	overflow: hidden;

	font-size: 16px;
}

body {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

body,
#main {
	display: flex;
	flex-direction: column;
}

body > *,
main > * {
	width: 100%;
}

body > header
#main > footer {
	flex-grow: 0;
}

#main {
	flex-grow: 1;
	overflow-y: auto;
}

body > header,
#main > * {
	flex-shrink: 0;
}

#main #content {
	flex-grow: 1;

	display: flex;
	flex-direction: column;
}

body.message #main #content {
	text-align: center;
	margin: 3rem auto;
}

#main > footer {
	padding: .5rem 0;
}

#main > footer .scroll-to-top {
	margin-bottom: .5rem;
	font-size: .875rem;
}

.container {
	box-sizing: content-box;
	padding: 0 6.25rem;
	margin: auto;
}

.container > * {
	box-sizing: border-box;
}

@media screen and (max-width: 920px) {
	.container {
		padding: 0 5rem;
	}
}

@media screen and (max-width: 800px) {
	.container {
		padding: 0 4rem;
	}
}

@media screen and (max-width: 640px) {
	.container {
		padding: 0 3rem;
	}
}

@media screen and (max-width: 480px) {
	.container {
		padding: 0 2rem;
	}
}

@media screen and (max-width: 320px) {
	.container {
		padding: 0 1.25rem;
	}
}

.table {
	overflow-x: auto;
	width: 100%;
}

.table.sortable thead th[data-sortable="true"] {
	cursor: pointer;
}

.banner {
	width: 100%;
}

p {
	font-size: 1rem;
}

p:empty {
	display: none;
}

.error,
.error > .message,
.error p,
.error > .message p,
body.message #main #content {
    color: red;
}

#controls {
	font-size: .75rem;
	padding: .5rem 0;
}

#controls > .container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

#controls #user-info {
	margin-left: auto;
}

#controls .login-link {
	margin-left: .25em;
	cursor: pointer;
}

#controls .login-link:hover {
	text-decoration: underline;
}

body[data-logged-in="true"] #controls #user-info::before {
	content: '(' attr(data-name) ') ';
}

body[data-logged-in="true"] #controls .login-link > span.logged-out {
	display: none;
}

body[data-logged-in="false"] #controls .login-link > span.logged-in {
	display: none;
}

#banner {
	padding: 1rem 0;
}

#banner > .container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap-reverse;
}

#banner #title {
	color: #FFFFFF;
	font-size: 2rem;
}

#controls .menu-toggle {
	display: none;
	cursor: pointer;
}

#controls .menu-toggle:hover {
	text-decoration: underline;
}

header nav .menu-toggle {
	display: none;
}

body[data-menu-open="false"] .menu-toggle > .open {
	display: none;
}

body[data-menu-open="true"] .menu-toggle > .closed {
	display: none;
}

#user-nav > .container {
	padding-top: .75rem;
	padding-bottom: .75rem;
}

#user-nav > .container:empty {
	display: none;
}

#user-nav > .container > a {
	margin-right: 1em;
}

#user-nav > .container > a:last-child {
	margin-right: 0;
}

body:not([data-account-type="trade-account"]) #controls > .container > a[data-navigate-section="rewards"][data-navigate-subsection="basket"] {
	display: none !important;
}

#controls > .container > a[data-navigate-section="rewards"][data-navigate-subsection="basket"] {
	display: none;
}

#main-nav > .container {
	padding-top: .5rem;
	padding-bottom: .5rem;
}

#main-nav > .container > a {
	font-weight: bold;
	font-size: 1.25rem;
	margin-right: 1em;
	margin-top: .25rem;
	margin-bottom: .25rem;
}

#main-nav > .container > a:last-child {
	margin-right: 0;
}

body[data-logged-in="true"] #main #content section[data-requires-logout="true"] {
	display: none;
}

body[data-logged-in="false"] #main #content section[data-requires-login="true"] {
	display: none;
}

.hero {
	width: 100%;
	display: flex;
	position: relative;
	overflow: hidden;
    align-items: center;
}

.hero > .carousel {
	display: flex;
	flex-direction: row;
	width: 100%;
	overflow: hidden;
}

.hero > img,
.hero > .carousel > img {
	display: block;
	width: 100%;
	min-width: 100%;
}

.hero > img {
	height: auto;
}

.hero > .carousel > img {
	height: 100%;
}

.hero > .carousel > img[data-slide="last"] {
	margin-left: -100%;
}

.hero > .text {
	display: flex;
	justify-content: center;
	align-items: center;

	font-size: 4vw;
	text-align: center;
	padding: .5em;
}

.hero > img + .text,
.hero > .carousel + .text {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;

	padding: 0;
}

.hero > .carousel > a.previous-slide,
.hero > .carousel > a.next-slide {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 1;

	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

.hero > .carousel > a.previous-slide {
	left: 0;
}

.hero > .carousel > a.next-slide {
	right: 0;
}

a[href^="tel:"] {
	display: inline-block;
}

a.button[disabled] {
	pointer-events: none;
}

.controls a.button,
.controls > form,
.controls > form > .input.number {
    display: inline-block;
}

.controls > form .error {
	display: none;
}

.button.confirmation > div[data-state]:not([data-visible="true"]),
.order-reward[data-physical="true"] .button.confirmation > div[data-state] > span[data-physical="false"],
.order-reward[data-physical="false"] .button.confirmation > div[data-state] > span[data-physical="true"] {
	display: none;
}

.input {
	display: flex;
	align-items: center;
}

form input {
	font-size: 1rem;
}

.input.checkbox {
	display: inline-block;
    margin-right: .5em;
}

.input.checkbox > input[type="checkbox"] {
	width: auto;
}

.input.file input {
	position: absolute;
	opacity: 0;
}

.input.file input::-webkit-file-upload-button {
	visibility: hidden;
}

.input.file label.file-input {
	position: relative;
	z-index: 5;
    padding: .25em .5em;
    line-height: 1.5;
    background-color: #fff;
    border: 1px solid #000000;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
	overflow: hidden;
    white-space: nowrap;
}

.input.file label.file-input::before {
	position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: block;
    content: "Browse";
    padding: .25em .5em;
    background-color: #fff;
    border-left: 1px solid #000;
}

.input.file label.file-input::after {
	content: "Choose file...";
}

.input.file label.file-input[placeholder]::after {
	content: attr(placeholder);
}

.input.file label.file-input[data-filename]::after {
	content: attr(data-filename) !important;
}

form p.small-note {
    font-size: .66em;
    margin: 0;
    text-align: left;
}

.deck {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
}

.card {
    display: block;
	margin: 10px;
    padding-bottom: .5rem;
	text-align: center;
	cursor: pointer;
}

.card h1 {
	font-size: 1.5rem;
}

.card h2 {
	font-size: 1.25rem;
}

.card img {
	width: 100%;
	height: auto;
}

.balance-total.container .balance {
	font-weight: bold;
}

.expansive [data-expansive] {
	cursor: pointer;
}

.panel {
    margin: 1rem 0;
}

.panel > :not(.hero) {
	padding-left: 1rem;
	padding-right: 1rem;
}

.panel > h1.title {
	font-size: 1.5rem;
}

.panel > div.description {
	font-size: 1rem;
    margin: 1em 0;
}

.panel .highlight {
	font-weight: bold;
	font-size: 2rem;
	margin-bottom: .5em;
}

.panel > .expand-toggle > .button {
	cursor: pointer;
}

.panel > .expand-content,
.panel > .expand-toggle > .button > .open,
.panel[data-expanded="true"] > .expand-toggle > .button > .closed {
	display: none;
}

.panel[data-expanded="true"] > .expand-toggle > .button > .open {
	display: inline-block;
}

.panel[data-expanded="true"] > .expand-content {
	display: flex;
	flex-wrap: wrap;
}

.tab-labels {
	display: flex;
	justify-content: space-between;
}

.tab-label {
    width: 100%;
    text-align: center;
    margin: 0 10px;
    padding: 5px;
    cursor: pointer;
}

.tab-label:first-child {
    margin-left: 0;
}

.tab-label:last-child {
    margin-right: 0;
}

.tabbed-block {
	position: relative;
}

.reward .description {
	padding: .5em 0;
}

.reward .value {
	padding-bottom: .5em;
}

.reward .basket-count {
	padding: .5em 0;
}

.reward .basket-count[data-basket-count="0"] {
	display: none;
}

.reward .error:empty {
    display: none;
}

.reward .add-to-basket {
	cursor: pointer;
}

.offer {
	width: 100%;
}

.offer a,
.offer a img {
	display: block;
	width: 100%;
	height: auto;
}

.offer a {
	margin-bottom: 1rem;
}

.basket-item {
	text-align: left;
}

.acting {
	pointer-events: none;
}

.acting .has-loader {
	position: relative;
}

.loader {
	display: none;
	z-index: 1;
}

.acting .loader {
	display: block;
}

.acting .basket-item .loader {
	display: none;
}

.basket-item.acting .loader {
	display: block;
}

body[data-checkout="true"] section#basket {
	display: none;
	pointer-events: none;
}

#checkout-delivery-details > label:first-child {
	display: block;
	margin-bottom: .5em;
}

#my-dealer #dealer-details p:first-of-type {
    font-weight: bold;
}

#statement-summary h1.title,
#credits-statement-summary h1.title {
	font-size: 1.25rem;
}
#statement-summary h2.subtitle,
#credits-statement-summary h2.subtitle {
	font-size: 1rem;
}
#statement-summary div.value,
#credits-statement-summary div.value {
	text-align: center;
}

#credits-statement-summary:not([data-withdraw-enabled="true"]) > .withdrawn,
#credits-statement-summary:not([data-convert-enabled="true"]) > .converted {
	display: none;
}

.expansive .details {
	display: none;
}

#current-orders .table.expansive > table tbody tr.order-details .order-reward div.details {
    display: block;
}

.expansive .details[data-visible="true"] {
	display: table-row;
}

.order-reward .image img {
	width: 100%;
	height: auto;
}

section#change-password input[name="username"] {
	display: none;
}

section#reporting .subsection > div > .container {
	padding: 0;
}

section#reporting .bar-chart,
section#reporting .pie-chart {
	max-height: 100vh;
}

.overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity .5s;
    z-index: 1;
}

.overlay[data-visible="true"] {
	opacity: 1;
	pointer-events: all;
}

.overlay[data-visible="true"] > * {
	pointer-events: all;
}

#dc-notice.overlay {
	position: fixed;
}

.overlay > .overlay-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 1rem;
	max-width: 100vw;
	max-height: 100vh;
	text-align: center;
}

.overlay.reset-authentication-overlay > .overlay-content {
	background-color: #FFFFFF;
	padding: 2rem;
}
