/*
 * Advanced Coupons styles for the Rymera Mega Menu plugin (primary location).
 * Brand: teal #025D6B, deep teal bar #014B57, heading #10333C, muted #5C6A6A, lime CTA #C8CF02, Lato.
 * Panels: synced patterns rmm-panel-plugins (.wmm-plugins) and rmm-panel-resources (.wmm-resources).
 * The .rmm-panel box is transparent; each panel wrapper draws its own card, so the panels can have different widths.
 */

/* ---------- Menu bar ---------- */
.rmm { --rmm-max: 1266px; }
.rmm-link { font-family: Lato, sans-serif; color: #393b3f; }
.rmm-caret:focus-visible, .rmm-link:focus-visible, .rmm-toggle:focus-visible { outline-color: #025d6b; }
.rmm-panel { background: none; box-shadow: none; border-radius: 0; overflow: visible; }

/* The theme styles buttons on hover, focus and active. The caret and the toggle are buttons. */
.rmm-caret, .rmm-caret:hover, .rmm-caret:focus, .rmm-caret:active,
.rmm-toggle, .rmm-toggle:hover, .rmm-toggle:focus, .rmm-toggle:active { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.rmm .rmm-caret:hover, .rmm .rmm-caret:focus, .rmm .rmm-caret:active { color: #025d6b; }

/* The theme sets "ul/a" rules on .main-navigation. */
#rmm-menu.rmm-menu { display: flex; margin: 0; padding: 0; list-style: none; }
#rmm-menu a:hover { text-decoration: none; }

@media (min-width: 1101px) {
	#site-navigation .rmm-menu { justify-content: flex-end; align-items: center; gap: 0; margin-top: 7px; }
	#site-navigation .rmm-link { padding: 0 8px; font-size: 16px; font-weight: 400; line-height: 44px; color: #393b3f; border: 0; }
	#site-navigation .rmm-has-panel .rmm-link { padding-right: 0; }
	#site-navigation .rmm-link:hover,
	#site-navigation .rmm-open > .rmm-link,
	#site-navigation .rmm-current > .rmm-link { color: #393b3f; text-decoration: underline; text-underline-offset: 4px; }
	#site-navigation .rmm-caret { width: 22px; margin: 0; color: #393b3f; }

	#site-navigation .get-started-menu { margin-left: 8px; }
	#site-navigation .get-started-menu > .rmm-link {
		padding: 0 12px;
		border: 1px solid #979c02;
		border-radius: 6px;
		background: #c8cf02;
		color: #353535;
		line-height: 36px;
		text-decoration: none;
	}
	#site-navigation .get-started-menu > .rmm-link:hover { background: #d6dc2b; color: #353535; text-decoration: none; }

	#site-navigation .acfw-lang-switcher-item { display: inline-flex; align-items: center; margin-left: 8px; }

	/* Transparent gap so the panel opens on the header line and hover does not break on the way down. */
	.rmm-panel { padding-top: 26px; }
}

/* ---------- Shared panel card ---------- */
#rmm-menu .wmm-plugins, #rmm-menu .wmm-resources { margin: 0 auto; background: #fff; overflow: hidden; border: 1px solid #ded7ca; border-radius: 12px; box-shadow: 0 0 15px rgba(0, 0, 0, .05); font-family: Lato, sans-serif; line-height: 1.4; color: #2a2e36; text-align: left; }
#rmm-menu .wmm-plugins a, #rmm-menu .wmm-resources a { text-decoration: none; border: 0; }
#rmm-menu .wmm-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; line-height: 1.3; text-transform: uppercase; color: #5c6a6a; }

/* ---------- Plugins panel (copy of Elementor template 112680) ---------- */
#rmm-menu .wmm-plugins { max-width: 1266px; }
#rmm-menu .wmm-plugins .wmm-section { padding: 34px 34px 0; }
#rmm-menu .wmm-plugins .wmm-section + .wmm-section { margin: 28px 34px 0; padding: 24px 0 32px; border-top: 1px solid #eae4d9; }
#rmm-menu .wmm-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
#rmm-menu .wmm-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid #e3dcd0 !important; border-radius: 6px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
#rmm-menu .wmm-card:hover { border-color: #a9d4da !important; box-shadow: 0 4px 14px rgba(2, 93, 107, .1); }
#rmm-menu .wmm-card img { width: 48px; height: 48px; margin-bottom: 4px; }
#rmm-menu .wmm-card-title { font-size: 17px; font-weight: 600; line-height: 1.3; color: #10333c; }
#rmm-menu .wmm-card:hover .wmm-card-title { color: #025d6b; }
#rmm-menu .wmm-card-desc { font-size: 13px; line-height: 1.55; color: #5c6a6a; }
#rmm-menu .wmm-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 24px; margin-top: 16px; }
#rmm-menu .wmm-tool { display: flex; align-items: center; gap: 15px; padding: 10px 0; font-size: 15px; font-weight: 700; line-height: 1.7; color: #3a4f57; }
#rmm-menu .wmm-tool svg { flex: none; width: 20px; height: 20px; }
#rmm-menu .wmm-tool:hover { color: #025d6b; }
#rmm-menu .wmm-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 34px; background: #014b57; color: #fff; }
#rmm-menu .wmm-bar-title { font-size: 18px; font-weight: 600; line-height: 1.3; color: #fff; }
#rmm-menu .wmm-bar-desc { font-size: 14px; line-height: 1.7; color: #a9d4da; }
#rmm-menu .wmm-bar-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 6px; background: #fff; color: #014b57 !important; font-size: 15px; font-weight: 700; line-height: 1; }
#rmm-menu .wmm-bar-btn:hover { background: #e8f4f7; }

/* ---------- Resources panel (design canvas JubkMrXtBKjEKFtzsE5wkf) ---------- */
#rmm-menu .wmm-resources { max-width: 1100px; }
#rmm-menu .wmm-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
#rmm-menu .wmm-col { display: flex; flex-direction: column; gap: 2px; padding: 28px 24px 22px; }
#rmm-menu .wmm-col + .wmm-col { border-left: 1px solid #eae4d9; }
#rmm-menu .wmm-col .wmm-label { margin-bottom: 8px; }
#rmm-menu .wmm-link { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
#rmm-menu .wmm-link-title { font-size: 15px; font-weight: 700; color: #10333c; }
#rmm-menu .wmm-link-desc { font-size: 13px; color: #5c6a6a; }
#rmm-menu .wmm-plain { padding: 7px 0; font-size: 15px; line-height: 1.35; color: #10333c; }
#rmm-menu .wmm-link:hover .wmm-link-title, #rmm-menu .wmm-plain:hover, #rmm-menu .wmm-latest a:hover, #rmm-menu .wmm-foot a:hover .wmm-link-title { color: #025d6b; }
#rmm-menu .wmm-spacer { flex-grow: 1; }
#rmm-menu .wmm-more { padding-top: 10px; font-size: 14px; font-weight: 700; color: #025d6b; }
#rmm-menu .wmm-more:hover { color: #10333c; }
#rmm-menu .wmm-col--blog { background: #e8f4f7; border-left-color: #d3e7ec !important; }
#rmm-menu .wmm-col--blog .wmm-label { color: #025d6b; }
#rmm-menu .wmm-latest { margin: 0; padding: 0; list-style: none; }
#rmm-menu .wmm-latest li { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 7px 0; }
#rmm-menu .wmm-latest a { font-size: 15px; line-height: 1.35; color: #10333c; }
#rmm-menu .wmm-latest .wp-block-latest-posts__post-date { font-size: 12px; color: #5c6a6a; }
#rmm-menu .wmm-foot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #f7f9fa; border-top: 1px solid #eae4d9; }
#rmm-menu .wmm-foot .wmm-link { padding: 16px 24px; }

/* ---------- Mobile drawer (1100px and less) ---------- */
@media (max-width: 1100px) {
	nav.main-navigation { transform-style: flat; }
	.rmm-toggle { width: 44px; gap: 6px; }
	.rmm-toggle span, .rmm-drawer-open .rmm-toggle span { height: 3px; border-radius: 2px; background: #10333c; }
	#rmm-menu.rmm-menu { background: #fff; padding: 64px 0 24px; }
	/* The theme sets nav list items to display:block, which drops the caret onto its own line. */
	#rmm-menu .rmm-item { display: flex; border-bottom: 1px solid #eae4d9; }
	#rmm-menu .rmm-link { padding: 0 16px; line-height: 56px; font-size: 18px; font-weight: 700; color: #10333c; border: 0; }
	#rmm-menu .rmm-open > .rmm-link { color: #025d6b; }
	.rmm-caret { color: #10333c; }
	.rmm-open > .rmm-caret { color: #025d6b; }
	.rmm-panel { margin: 0; border-radius: 0; }
	/* The header row already shows a mobile switcher next to the toggle. */
	#rmm-menu .acfw-lang-switcher-item { display: none; }
	#rmm-menu .get-started-menu { border-bottom: 0; padding: 20px 16px; }
	#rmm-menu .get-started-menu > .rmm-link { display: block; padding: 14px; border: 1px solid #979c02; border-radius: 6px; background: #c8cf02; color: #353535; font-size: 16px; line-height: 1.2; text-align: center !important; }

	#rmm-menu .wmm-plugins, #rmm-menu .wmm-resources { max-width: none; border: 0; border-radius: 0; box-shadow: none; background: #f4f9f8; }
	#rmm-menu .wmm-plugins .wmm-section { padding: 16px 16px 0; }
	#rmm-menu .wmm-plugins .wmm-section + .wmm-section { margin: 16px 16px 0; padding: 16px 0; }
	#rmm-menu .wmm-cards, #rmm-menu .wmm-tools { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
	#rmm-menu .wmm-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 12px; }
	#rmm-menu .wmm-card img { width: 36px; height: 36px; margin: 0; }
	#rmm-menu .wmm-card-desc { flex-basis: 100%; }
	#rmm-menu .wmm-bar { flex-direction: column; align-items: stretch; padding: 16px; }
	#rmm-menu .wmm-bar-btn { justify-content: center; }
	#rmm-menu .wmm-cols, #rmm-menu .wmm-foot { grid-template-columns: 1fr; }
	#rmm-menu .wmm-col { padding: 8px 16px 12px; }
	#rmm-menu .wmm-col + .wmm-col { border-left: 0; }
	#rmm-menu .wmm-col--blog { margin: 0 16px 8px; padding: 4px 14px 8px; border-radius: 6px; }
	#rmm-menu .wmm-link-desc { display: none; }
	#rmm-menu .wmm-plain, #rmm-menu .wmm-link { padding: 10px 0; font-size: 16px; }
	#rmm-menu .wmm-foot { margin: 0 16px; background: none; }
	#rmm-menu .wmm-foot .wmm-link { padding: 10px 0; }
	#rmm-menu .wmm-spacer { display: none; }
}
