/* ---------------------------------------------------------------------------
   Account pages: the depot ("my items"), transactions and redeem, plus the side
   navigation they share. Same language as the shop: dark blue rail with a gold
   active state, parchment panel for the listing.
   --------------------------------------------------------------------------- */

/* --- side navigation ------------------------------------------------------- */

#accountNav {
	margin: 0;
}

#accountNav li a.btn-sideitem {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 46px;
	margin: 0 0 8px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, .12) !important;
	border-radius: 8px;
	background: linear-gradient(#2a6293, #16365b) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 3px rgba(0, 0, 0, .4);
	color: #e9f2fd !important;
	font-size: 13px;
	line-height: 46px;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .5);
	transition: background .12s, border-color .12s;
}

#accountNav li a.btn-sideitem:hover {
	border-color: rgba(232, 163, 20, .45) !important;
	background: linear-gradient(#37769f, #1c4570) !important;
}

#accountNav li a.btn-sideitem.btn-sideitem-active {
	border-color: #9a6a0d !important;
	background: linear-gradient(#f4bc38, #d9930c) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 5px rgba(0, 0, 0, .4);
	color: #3b2a08 !important;
	font-weight: 700;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
}

/* The theme absolutely positions the icon and pushes the label 40px; both sit in
   the flex row now, so the long "redeem code" label stops spilling out. */
#accountNav li a.btn-sideitem i {
	position: static;
	flex: 0 0 20px;
	margin: 0;
	font-size: 19px;
	line-height: 1;
	color: #f3c34a;
}

#accountNav li a.btn-sideitem.btn-sideitem-active i {
	color: #5a3f06;
}

#accountNav li a.btn-sideitem span {
	overflow: hidden;
	margin: 0;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: normal;
}

#accountNav li a.btn-sideitem .badge {
	top: -7px;
	right: -7px;
	padding: 0 7px;
	border: 2px solid #16365b;
	border-radius: 999px;
	background-color: #d9930c;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
	font-size: 11px;
	line-height: 19px;
}

/* --- listing panel --------------------------------------------------------- */

#accountContent h2 {
	margin-bottom: 12px;
}

#accountContent .box.box-account,
#accountContent .box.box-account .contrast-box {
	background: transparent;
	box-shadow: none;
}

#accountContent .inner_box {
	padding: 0;
	border: 1px solid rgba(74, 56, 20, .4);
	border-radius: 10px;
	background: linear-gradient(#f3e8b0, #e2d38f);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .45);
	overflow: hidden;
}

#accountContent table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-family: Arial, Helvetica, sans-serif;
}

#accountContent table thead th {
	padding: 11px 14px;
	border-bottom: 1px solid rgba(74, 56, 20, .3);
	background: rgba(74, 56, 20, .12);
	color: #6b5836;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .8px;
	text-align: left;
	text-transform: uppercase;
}

#accountContent table tbody td {
	padding: 10px 14px;
	border-top: 1px solid rgba(74, 56, 20, .14);
	color: #3b2f13;
	font-size: 13px;
	vertical-align: middle;
}

#accountContent table tbody tr:nth-child(2n) td {
	background: rgba(255, 255, 255, .22);
}

#accountContent table tbody tr:hover td {
	background: rgba(255, 255, 255, .4);
}

#accountContent table tbody td:first-child {
	color: #6b5836;
	font-size: 12px;
	white-space: nowrap;
}

#accountContent table a.card-heading {
	color: #33260c;
	font-weight: 700;
}

#accountContent table a.card-heading:hover {
	color: #8c1919;
}

/* price cell */
#accountContent table .end-price {
	font-weight: 700;
	color: #33260c;
}

#accountContent table td img {
	width: 16px;
	height: 16px;
	margin-right: 5px;
	vertical-align: -3px;
}

/* status cell */
#accountContent .depot-state {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 1px solid rgba(61, 122, 31, .35);
	border-radius: 999px;
	background: rgba(122, 173, 71, .25);
	color: #3d7a1f;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .3px;
	text-transform: uppercase;
	white-space: nowrap;
}

#accountContent table button.assign {
	padding: 0 14px !important;
	height: 30px;
	border: 1px solid #6b4a12 !important;
	border-radius: 6px !important;
	background: linear-gradient(#c99a3d, #8a6118) !important;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	line-height: 30px;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .4) !important;
}

#accountContent table button.assign:hover {
	background: linear-gradient(#dbab4c, #9b6f1f) !important;
}

#accountContent .pagination {
	margin: 14px 0 0;
	text-align: center;
}

#accountContent .depot-empty {
	padding: 26px 14px;
	color: #6b5836;
	font-size: 13px;
	text-align: center;
}

/* --- balance card (transactions page) -------------------------------------- */

#accountContent .box-account h3 {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .8px;
	text-transform: uppercase;
	color: #f2e69f;
}

#accountContent .inner_box .row-fluid {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 20px;
}

#accountContent .inner_box .row-fluid .left,
#accountContent .inner_box .row-fluid .right {
	float: none;
	margin: 0;
}

#accountContent .balance.block-price {
	display: flex;
	flex-direction: column;
	gap: 4px;
	line-height: 1.2;
}

#accountContent .balance .currency-txt {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: #6b5836;
}

#accountContent .balance img {
	display: none;
}

#accountContent .balance .end-price {
	position: relative;
	padding-left: 30px;
	font-size: 26px;
	font-weight: 700;
	color: #33260c;
}

#accountContent .balance .end-price:before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	background: url("../images/this/coins.png") no-repeat center / contain;
}

#accountContent .account_payment_button {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

#accountContent .account_payment_button p {
	margin: 0;
	font-size: 12px;
	color: #6b5836;
}

/* The magenta top-up button becomes the same gold call to action as the header. */
#accountContent .account_payment_button .btn-price {
	display: flex;
	align-items: center;
	gap: 9px;
	height: 42px;
	padding: 0 22px;
	border: 1px solid #9a6a0d !important;
	border-radius: 999px !important;
	background: linear-gradient(#f7cc55, #dc9c11) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 6px rgba(0, 0, 0, .35) !important;
	color: #3b2a08 !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .3px;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .3) !important;
	text-transform: uppercase;
}

#accountContent .account_payment_button .btn-price:hover {
	background: linear-gradient(#ffd96b, #eaa91a) !important;
}

#accountContent .account_payment_button .btn-price img {
	width: 20px;
	height: 20px;
	margin: 0;
}

/* --- redeem code ----------------------------------------------------------- */

/* Text and artwork side by side, the form on its own row underneath - the theme
   pinned the barcode absolutely and it landed on top of the input. */
#accountContent.redeem-code .grey-box {
	display: grid;
	grid-template-columns: 1fr 110px;
	gap: 8px 24px;
	align-items: start;
	padding: 22px 24px;
	border: 1px solid rgba(74, 56, 20, .4);
	border-radius: 10px;
	background: linear-gradient(#f3e8b0, #e2d38f);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}

#accountContent.redeem-code .code-info {
	grid-column: 1;
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: #3b2f13;
}

#accountContent.redeem-code .code-avatar {
	grid-column: 2;
	grid-row: 1 / span 2;
	position: static;
	width: 100%;
	margin: 0;
	opacity: .5;
}

#accountContent.redeem-code form {
	grid-column: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 6px 0 0;
}

#accountContent.redeem-code .code-label {
	flex-basis: 100%;
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .7px;
	text-transform: uppercase;
	color: #6b5836;
}

#accountContent.redeem-code #code {
	flex: 1;
	min-width: 200px;
	width: auto;
	height: 42px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid rgba(74, 56, 20, .35);
	border-radius: 8px;
	background: #f9f4e4;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .18);
	color: #33260c;
	font-size: 14px;
	letter-spacing: 1px;
}

#accountContent.redeem-code #code:focus {
	border-color: #d9930c;
	outline: 0;
}

#accountContent.redeem-code #submitCode {
	width: auto !important;
	height: 42px;
	margin: 0;
	padding: 0 26px !important;
	border: 1px solid #3b7a1c !important;
	border-radius: 8px !important;
	background: linear-gradient(#6cb03f, #4a8f28) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3) !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .4px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .35) !important;
	text-transform: uppercase;
}

#accountContent.redeem-code #submitCode:hover {
	background: linear-gradient(#7cc44b, #55a02e) !important;
}

/* ---------------------------------------------------------------------------
   Login page (a standalone document: it loads this file directly).
   --------------------------------------------------------------------------- */

body.ingame #contentContainer .content {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 20px;
}

#error.contrast-box {
	width: 400px;
	max-width: 100%;
	padding: 0;
	border-radius: 14px;
	background: transparent;
	box-shadow: none;
}

#error .dark-grey-box {
	padding: 26px 28px;
	border: 1px solid rgba(74, 56, 20, .45);
	border-radius: 14px;
	background: linear-gradient(#f5ecd8, #e6d9b6);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
	color: #3a2c14;
	font-family: Arial, Helvetica, sans-serif;
}

#error h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: #33260c;
}

#error h2 i {
	float: none !important;
	margin: 0 !important;
	font-size: 22px;
	color: #9a7434;
}

#error > .dark-grey-box > p {
	margin: 0 0 20px;
	font-size: 13px;
	line-height: 1.5;
	color: #6b5836;
}

#error form label {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 6px;
	padding: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .7px;
	text-transform: uppercase;
	color: #6b5836;
	text-align: left;
}

#error form input.input_left {
	display: block;
	width: 100%;
	height: 44px;
	margin: 0 0 16px;
	padding: 0 14px;
	border: 1px solid rgba(74, 56, 20, .35);
	border-radius: 8px;
	background: #f9f4e4;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .18);
	color: #33260c;
	font-size: 14px;
}

#error form input.input_left:focus {
	border-color: #d9930c;
	outline: 0;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .18), 0 0 0 3px rgba(232, 163, 20, .25);
}

#error form br {
	display: none;
}

#error form input.btn-price {
	display: block;
	width: 100%;
	height: 46px;
	margin: 4px 0 0;
	border: 1px solid #9a6a0d !important;
	border-radius: 9px !important;
	background: linear-gradient(#f7cc55, #dc9c11) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 6px rgba(0, 0, 0, .35) !important;
	color: #3b2a08 !important;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .6px;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .3) !important;
	text-transform: uppercase;
	cursor: pointer;
}

#error form input.btn-price:hover {
	background: linear-gradient(#ffd96b, #eaa91a) !important;
}

#error .alert {
	margin: 0 0 18px;
	padding: 11px 14px;
	border: 1px solid rgba(192, 57, 43, .45);
	border-radius: 8px;
	background: rgba(192, 57, 43, .12);
	color: #a5301f;
	font-size: 13px;
	font-weight: 700;
	text-shadow: none;
}

#error .alert .close {
	color: #a5301f;
	opacity: .6;
	text-shadow: none;
}

/* The login document does not carry index.php's inline background rule. */
body.ingame {
	background: url("../images/objects/page_bg.jpg") no-repeat center center fixed;
	background-size: cover;
}

body.ingame #page {
	margin-top: 0;
}

body.ingame .header {
	display: flex;
	align-items: center;
	height: 38px;
	padding: 6px 18px;
	background: linear-gradient(#101d2f, #0a1424);
	box-shadow: 0 1px 0 rgba(232, 163, 20, .35), 0 2px 8px rgba(0, 0, 0, .5);
}

body.ingame .header h1 {
	width: 180px;
	margin: 0;
}

body.ingame .header h1 a {
	display: block;
	width: 100%;
	height: 80px;
	transform: translateY(17px);
	background: url("../images/logo.png") 0 50% no-repeat;
	background-size: contain;
	text-indent: -9999px;
}

#error form input.input_left,
#error form input.btn-price {
	box-sizing: border-box;
}
