/**
 * Datatrac Rates Page Embed Styles - PenAir Credit Union
 */

:root {
	--penair-purple: #9E007E;
	--penair-purple-dark: #6d2077;
	--penair-gold: #ECBC3A;
	--penair-gold-light: #FFF2C0;
	--penair-gray: #4a4a4a;
	--penair-gray-dark: #302723;
	--penair-gray-light: #F3F3F3;
	--penair-gray-border: #e0e0e0;
	--penair-teal: #76B2B1;
	--penair-white: #FFFFFF;
}

.dt_rates_embed {
	font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	position: relative;
	background: var(--penair-gray-light);
	border-radius: 15px;
	padding: 21px 21px 30px;
	margin: 0 0 12px;
}

@media screen and (max-width: 768px) {
	.dt_rates_embed {
		padding: 18px 15px 30px;
	}
}

.dt_rates_embed * {
	box-sizing: border-box;
}

/* Member Savings Callout */
.dt_rates_embed .member_savings_callout {
	background: var(--penair-purple);
	color: #fff;
	padding: 1.25rem 2rem;
	text-align: center;
	margin-bottom: 1.5rem;
	border-radius: 8px;
}

.dt_rates_embed .member_savings_text {
	color: #FFE55F;
	margin: 0;
	font-family: "azo-sans-uber", sans-serif;
	font-weight: 400;
	font-size: 34px;
	line-height: 100%;
	text-align: center;
	text-transform: uppercase;
}

@media screen and (max-width: 768px) {
	.dt_rates_embed .member_savings_text {
		font-size: 20px;
		text-align: center;
	}
}

.dt_rates_embed .member_savings_text sup {
	font-size: 0.65em;
	vertical-align: baseline;
}

/* Products Navigation */
.dt_rates_embed .products_nav {
	margin-bottom: 1.5rem;
	padding: 0.5rem 0;
}

.dt_rates_embed .prod_classes_wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.dt_rates_embed .market_ids {
	display: flex;
	align-items: center;
	gap: 20px;
}

.dt_rates_embed .market_ids label {
	color: var(--penair-gray-dark);
	font-family: "gopher", sans-serif;
	font-weight: 700;
	font-size: 19px;
	line-height: 100%;
	margin: 0;
	padding-left: 36px;
}

@media screen and (max-width: 768px) {
	.dt_rates_embed .market_ids label {
		font-size: 16px;
		padding-left: 19px;
	}
}

.dt_rates_embed .select_mkt {
	appearance: none;
	background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%234a4a4a" d="M6 9L1 4h10z"/></svg>') no-repeat right 20px center;
	border: 1px solid #DEDEDE;
	border-radius: 90px;
	cursor: pointer;
	font-family: "gopher", sans-serif;
	font-weight: 500;
	font-size: 19px;
	line-height: 100%;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding: 10px 40px 10px 22px;
	min-width: 297px;
}

/* Products Wrap */
.dt_rates_embed .products_wrap {
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.dt_rates_embed .productcontainer {
	background: var(--penair-white);
	border-radius: 8px;
	padding: 17px 30px 18px 60px;
	display: none;
	overflow: hidden;
	position: relative;
}

@media screen and (max-width: 768px) {
	.dt_rates_embed .productcontainer {
		padding: 0 9px 14px;
	}
}

.dt_rates_embed .productcontainer.show {
	display: block;
}

.dt_rates_embed .productcontainer.template {
	display: none !important;
}

/* Product Header */
.dt_rates_embed .product_header {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: -17px;
}

@media screen and (max-width: 768px) {
	.dt_rates_embed .product_header {
		margin-top: 0;
	}
}

.dt_rates_embed .icon_wrap {
	background: var(--penair-teal);
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	flex-shrink: 0;
	height: 64px;
	width: 69px;
}

.dt_rates_embed .icon_img {
	filter: brightness(0) invert(1);
}

.dt_rates_embed .prodname {
	color: var(--penair-teal);
	font-family: "azo-sans-uber", sans-serif;
	font-weight: 400;
	font-size: 30px;
	line-height: 100%;
	margin: 0;
	text-transform: uppercase;
}

/* Product Content */
.dt_rates_embed .product_content {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 32px;
}

@media (max-width: 768px) {
	.dt_rates_embed .product_content {
		grid-template-columns: 1fr;
	}
}

/* Rate Bars Section */
.dt_rates_embed .rate_bars_section {
	display: flex;
	flex-direction: column;
	gap: 19px;
}

@media screen and (max-width: 768px) {
	.dt_rates_embed .rate_bars_section {
		padding-top: 0;
	}
}

.dt_rates_embed .rate_bar_item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.dt_rates_embed .bar_label {
	color: var(--penair-gray-dark);
	font-family: "gopher", sans-serif;
	font-size: 19px;
	font-weight: 700;
	line-height: 100%;
	margin-bottom: 6px;
}

.dt_rates_embed .bar_label .fi_shortname {
	display: inline-block;
	font-weight: 700;
}

.dt_rates_embed .bar_wrap {
	position: relative;
	height: 49px;
	border: 1px solid #FFFFFF;
	border-radius: 5px;
	overflow: hidden;
}

.dt_rates_embed .fi .bar_wrap {
	background: #9E007E1A;
}

.dt_rates_embed .fi .bar {
	background: #A31D88;
	color: #fff;
	padding: 0.5rem 1rem;
	display: inline-flex;
	align-items: center;
	height: 100%;
	border-radius: 0 25px 25px 0;
	white-space: nowrap;
}

.dt_rates_embed .fi .bar .bar_inner,
.dt_rates_embed .market .bar .bar_inner {
	position: absolute;
	right: 15px;
	line-height: 1;
}

.dt_rates_embed .market .bar_wrap {
	background: rgba(0,0,0,0.35);
}

.dt_rates_embed .market .bar {
	background: #302723;
	color: #fff;
	padding: 0.5rem 1rem;
	display: inline-flex;
	align-items: center;
	height: 100%;
	border-radius: 0 25px 25px 0;
	white-space: nowrap;
}

.dt_rates_embed .apr_apy,
.dt_rates_embed .rate_mkt,
.dt_rates_embed .bar .rate_fi,
.dt_rates_embed .bar .rate_mkt {
	font-family: "gopher", sans-serif;
}

.dt_rates_embed .fi .bar .bar_inner,
.dt_rates_embed .fi .bar .rate_fi,
.dt_rates_embed .fi .bar .apr_apy {
	color: #A31D88;
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
}

.dt_rates_embed .market .bar .bar_inner,
.dt_rates_embed .market .bar .rate_mkt,
.dt_rates_embed .market .bar .apr_apy {
	color: var(--penair-white);
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
}

@media screen and (max-width: 768px) {
	.dt_rates_embed .fi .bar .bar_inner,
	.dt_rates_embed .fi .bar .rate_fi,
	.dt_rates_embed .fi .bar .apr_apy,
	.dt_rates_embed .market .bar .bar_inner,
	.dt_rates_embed .market .bar .rate_mkt,
	.dt_rates_embed .market .bar .apr_apy {
		font-size: 13px;
	}
}

/* Savings Badge */
.dt_rates_embed .savings_badge {
	min-width: 180px;
	height: 100%;
}

.dt_rates_embed .badge_inner {
	background: var(--penair-purple);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 25px 60px 25px;
	text-align: center;
	color: #fff;
	position: relative;
	height: 100%;
	min-height: 229px;
}

@media screen and (max-width: 768px) {
	.dt_rates_embed .badge_inner {
		min-height: 180px;
	}
}

.dt_rates_embed .toggle_details.open {
	background: var(--penair-white);
	border-radius: 50%;
	color: var(--penair-purple);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	text-decoration: none;
	position: absolute;
	top: 11px;
	right: 9px;
	height: 16px;
	width: 16px;
}

.dt_rates_embed .savings_amt {
	color: #FFE55F;
	font-family: "azo-sans-uber", sans-serif;
	font-weight: 400;
	font-size: 50px;
	line-height: 50px;
	text-align: center;
}

@media screen and (max-width: 768px) {
	.dt_rates_embed .savings_amt {
		font-size: 40px;
		line-height: 100%;
	}
}

.dt_rates_embed .savings_amt.times_more {
	font-size: 1.875rem;
}

.dt_rates_embed .savings_amt.times_more::after {
	content: "";
	display: block;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--penair-gold);
	margin-top: -0.125rem;
}

/* Show "MORE" text for deposit products */
.dt_rates_embed .productcontainer[data-prod="money_market"] .savings_amt.times_more::after,
.dt_rates_embed .productcontainer[data-prod="checking"] .savings_amt.times_more::after,
.dt_rates_embed .productcontainer[data-prod="savings"] .savings_amt.times_more::after,
.dt_rates_embed .productcontainer[data-prod="cd"] .savings_amt.times_more::after,
.dt_rates_embed .productcontainer[data-prod="ira"] .savings_amt.times_more::after {
	content: "MORE";
}

.dt_rates_embed .save_up_to {
	display: block;
	font-family: "gopher", sans-serif;
	font-weight: 500;
	font-size: 22px;
	line-height: 100%;
	text-align: center;
}

@media screen and (max-width: 768px) {
	.dt_rates_embed .save_up_to {
		font-size: 20px;
	}
}

.dt_rates_embed .apply_now.button {
	background: var(--penair-white);
	display: inline-block;
	color: var(--penair-purple);
	border: 2px solid #FFE55F;
	padding: 12px 30px;
	border-radius: 90px;
	font-family: "gopher", sans-serif;
	font-weight: 500;
	font-size: 19px;
	line-height: 100%;
	text-decoration: none;
	transition: all 0.2s ease;
}

.dt_rates_embed .apply_now.button:hover {
	background: #FFE55F;
}

/* Product Details */
.dt_rates_embed .product_details {
	background: #FFE55F;
	border-radius: 8px;
	padding: 24px 10px 22px 21px;
	position: absolute;
	top: 19px;
	right: calc(300px + 63px);
	height: calc(100% - 38px);
	max-width: 480px;
}

@media screen and (max-width: 991px) {
	.dt_rates_embed .product_details {
    top: 17px;
    right: 0;
    left: 0;
    margin: 0 auto;
    height: calc(100% - 35px);
    max-width: calc(100% - 30px);
	}
}

@media screen and (max-width: 768px) {
	.dt_rates_embed .product_details {
		top: unset;
		bottom: 14px;
		height: auto;
		max-width: calc(100% - 17px);
	}
}

.dt_rates_embed .product_details.hide {
	display: none;
}

.dt_rates_embed .details_content {
	color: var(--penair-gray-dark);
	font-family: "gopher", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
}

.dt_rates_embed .details_text {
	margin: 0 0 14px 0;
}

.dt_rates_embed .toggle_details.close {
	background: var(--penair-white);
	display: inline-block;
	color: var(--penair-purple);
	border: 2px solid #FFE55F;
	padding: 12px 30px;
	border-radius: 90px;
	font-family: "gopher", sans-serif;
	font-weight: 500;
	font-size: 19px;
	line-height: 100%;
	text-decoration: none;
	transition: all 0.2s ease;
}

.dt_rates_embed .toggle_details.close:hover {
	border-color: var(--penair-purple);
}

/* Footer Section */
.dt_rates_embed .footer_row {
	padding-top: 25px;
}

.dt_rates_embed .disclosures_section {
	color: var(--penair-gray-dark);
	font-family: "gopher", sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 100%;
	text-align: center;
	margin: 0 auto;
	max-width: 1054px;
}

@media screen and (max-width: 768px) {
	.dt_rates_embed .disclosures_section {
		font-size: 12px;
	}
}

.dt_rates_embed .custom_disclosures p {
	margin: 0 0 10px 0;
}

.dt_rates_embed .custom_disclosures p:last-child {
	margin-bottom: 0;
}

.dt_rates_embed .custom_disclosures a {
	color: var(--penair-gray-dark);
	text-decoration: underline;
}

.dt_rates_embed .source_credit {
	margin: 0.5rem 0 0;
}

.dt_rates_embed .source_credit a {
	color: var(--penair-purple);
	text-decoration: underline;
}

/* Loading Overlay */
.dt_rates_embed .loading-overlay {
	position: absolute;
	z-index: 999;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
	.dt_rates_embed .product_header {
		flex-direction: row;
		text-align: left;
	}

	.dt_rates_embed .savings_badge {
		width: 100%;
	}

	.dt_rates_embed .market_ids {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.dt_rates_embed .select_mkt {
		width: 100%;
	}
}

/* Single Market Mode */
.dt_rates_embed.single_market .select_mkt {
	display: none;
}
