/* Amend 5, w4: Gold Bank account screen additions (TOP UP, plan method,
   history filters, Buy Bullion panel) and the bullion hero on the account
   page. Loaded after assets/sections/goldbank.css on Gold Bank screens only. */

/* the milestone example on /gold-bank/ sits outside .gft-gb, so it never had
   the section colours: its cream box, gold rule and gold figure were blank */
.gft-gb-example {
	--gb-gold: #A8802D;
	--gb-gold-soft: #C6A44E;
	--gb-ink: #23201A;
	--gb-text: #5A554B;
	--gb-muted: #8A8172;
	--gb-line: #E8E0CF;
	--gb-cream: #FBF7EF;
	font-family: 'Jost', sans-serif;
	color: var(--gb-text);
}

/* ------------------------------------------------------------ TOP UP */

.gft-gb-topup-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 0 0 18px;
}

.gft-gb-topup-bar .gft-gb-btn {
	min-width: 180px;
}

.gft-gb-topup-bar .gft-gb-small {
	margin: 0;
}

.gft-gb-topup h2 {
	text-transform: none;
}

.gft-gb-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 12px;
}

.gft-gb .gft-gb-chip {
	min-height: 38px;
	padding: 6px 16px;
	border: 1px solid var(--gb-gold-soft, #C6A44E);
	border-radius: 20px;
	background: #fff;
	color: var(--gb-ink, #23201A);
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.gft-gb .gft-gb-chip:hover,
.gft-gb .gft-gb-chip:focus-visible,
.gft-gb .gft-gb-chip.is-on {
	background: var(--gb-gold, #A8802D);
	border-color: var(--gb-gold, #A8802D);
	color: #fff;
}

.gft-gb-estimate {
	min-height: 1.4em;
	margin: -4px 0 12px !important;
	color: var(--gb-ink, #23201A) !important;
}

.gft-gb-estimate strong {
	color: var(--gb-gold, #A8802D);
	font-weight: 600;
}

/* ------------------------------------------------ plan with its method */

.gft-gb-plan.gft-gb-plan--method {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gft-gb-plan-method dd {
	font-weight: 600;
	color: var(--gb-gold, #A8802D);
}

/* ------------------------------------------------------------ history */

.gft-gb-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px 12px;
	margin: 4px 0 8px;
}

.gft-gb-filters label {
	display: flex;
	flex-direction: column;
	flex: 1 1 150px;
	min-width: 0;
	margin: 0;
}

.gft-gb-filters label span {
	font-size: 12px;
	color: var(--gb-muted, #8A8172);
	margin-bottom: 4px;
}

.gft-gb-filters select,
.gft-gb-filters input {
	height: 42px;
	min-height: 42px;
	padding: 0 10px;
	border: 1px solid var(--gb-line, #E8E0CF);
	border-radius: 0;
	background: #fff;
	color: var(--gb-ink, #23201A);
	font-size: 14px;
	width: 100%;
}

.gft-gb-filters .gft-gb-textbtn {
	flex: 0 0 auto;
	height: 42px;
}

.gft-gb-count {
	margin: 0 0 8px !important;
}

.gft-gb-table-scroll {
	max-height: 620px;
	overflow: auto;
	border-top: 1px solid #F1EBDD;
}

.gft-gb-table-scroll .gft-gb-table thead th {
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1;
}

.gft-gb-details strong {
	display: block;
	font-weight: 500;
	color: var(--gb-ink, #23201A);
}

.gft-gb-note {
	display: block;
	font-size: 12.5px;
	color: var(--gb-muted, #8A8172);
	line-height: 1.45;
	margin-top: 2px;
}

.gft-gb-table tr.gft-gb-opened td {
	background: var(--gb-cream, #FBF7EF);
}

.gft-gb-table tr[hidden] {
	display: none !important;
}

.gft-gb-nomatch td {
	color: var(--gb-muted, #8A8172);
	font-style: italic;
	text-align: center !important;
}

.gft-gb-summary {
	margin-top: 10px !important;
	color: var(--gb-ink, #23201A) !important;
	font-weight: 500;
}

.gft-gb-working {
	margin: 2px 0 8px !important;
}

/* --------------------------------------------- Buy Bullion (bar request) */

.gft-gb-buy-body {
	display: none;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--gb-line, #E8E0CF);
	scroll-margin-top: 120px;
}

.gft-gb-buy-body.is-open,
.gft-gb-buy-body:target {
	display: block;
}

.gft-gb-other .gft-gb-inline {
	margin: 4px 0 0;
}

/* ------------------------------------- the bullion hero on the account page */

.gft-gb-hero-bullion .elementor-heading-title {
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.gft-gb-hero-bullion .elementor-widget-text-editor p {
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

/* ------------------------------------------------------------- phones */

@media (max-width: 1100px) {
	.gft-gb-plan.gft-gb-plan--method {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.gft-gb-plan.gft-gb-plan--method {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.gft-gb-topup-bar .gft-gb-btn {
		width: 100%;
	}
	.gft-gb-filters label {
		flex: 1 1 calc(50% - 6px);
	}
	.gft-gb-table-scroll {
		max-height: 70vh;
	}
	.gft-gb-table td.gft-gb-details {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}
	.gft-gb-table td.gft-gb-details::before {
		margin-bottom: 2px;
	}
	.gft-gb-nomatch td::before {
		content: none !important;
	}
}

/* Amend 6 (A6-05): the answer under "Email me the bank details" */
.gft-gb .gft-gb-sent {
	margin: 12px 0 0;
	padding: 10px 14px;
	border-left: 3px solid #2E7D32;
	background: #F1F8F1;
	color: #1B5E20;
	font-size: 15px;
	line-height: 1.5;
}
.gft-gb .gft-gb-sent.is-error {
	border-left-color: #B3261E;
	background: #FDF0EF;
	color: #8C1D18;
}
.gft-gb .gft-gb-sent[hidden] {
	display: none;
}
.gft-gb form[data-gft-gb-details] button[aria-busy="true"] {
	opacity: .6;
	cursor: progress;
}
