/******************************************************************************************/
/* Root
/******************************************************************************************/
:root {
	--bamb-litepicker-month-header-color: #333;
	--bamb-litepicker-button-prev-month-color: #333;
	--bamb-litepicker-button-next-month-color: #333;
	--bamb-litepicker-button-prev-month-color-hover: #333;
	--bamb-litepicker-button-next-month-color-hover: #333;
	--bamb-litepicker-month-weekday-color: #9e9e9e;
	--bamb-litepicker-month-week-number-color: #9e9e9e;
	--bamb-litepicker-day-width: 40px;
	--bamb-litepicker-day-color: #333;
	--bamb-litepicker-day-color-hover: #34495e;
	--bamb-litepicker-is-today-color: #333;
	--bamb-litepicker-is-in-range-color: rgba( 52, 73, 94, 0.2 );
	--bamb-litepicker-is-start-color: #fff;
	--bamb-litepicker-is-start-color-bg: #34495e;
	--bamb-litepicker-is-end-color: #fff;
	--bamb-litepicker-is-end-color-bg: #34495e;
}

/******************************************************************************************/
/* General
/******************************************************************************************/
[class^="brand-ambassador"] svg,
[class^="brand-ambassador"] .dashicons { display: inline-block; width: 18px; height: 18px; line-height: 18px; font-size: 18px; vertical-align: middle; }

[class^="brand-ambassador"] button svg { margin-right: 5px; }

.bamb-description * { font-size: 0.875rem; }
.bamb-description > :first-child { margin-top: 0; }
.bamb-description > :last-child { margin-bottom: 0; }

/******************************************************************************************/
/* Grid
/******************************************************************************************/
.bamb-grid { display: grid; grid-gap: 1rem; gap: 1rem; grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); }
.bamb-grid > div { display: flex; }

.bamb-grid.bamb-columns-2 { grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); }

@media screen and ( min-width : 1281px ) {
	
	.bamb-grid { grid-template-columns: repeat( 4, minmax( 0, 1fr ) ); }
	.bamb-grid.bamb-columns-2 { grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); }

}

@media screen and ( max-width : 720px ) {

	.bamb-grid { grid-template-columns: unset !important; }

}

/******************************************************************************************/
/* Notices
/******************************************************************************************/
.bamb-user-notice { width: 100%; border-style: solid; border-width: 2px; border-radius: 6px; margin: 5px 0px 1em 0px; padding: 15px; box-sizing: border-box; }
.bamb-user-notice.bamb-error { background: #ffebeb; border-color: #dc3232; }
.bamb-user-notice.bamb-warning { background: #fff7ea; border-color: #f39c12; }
.bamb-user-notice.bamb-updated { background: #e0ffe3; border-color: #46b450; }
.bamb-user-notice.bamb-info { background: #eef6ff; border-color: #8cc1ff; }
.bamb-user-notice > :first-child { margin-top: 0; }
.bamb-user-notice > :last-child { margin-bottom: 0; }

/******************************************************************************************/
/* Global Overlay
/******************************************************************************************/
.bamb-global-overlay { display: none; position: fixed; z-index: 1001; top: 0; bottom: 0; left: 0; right: 0; opacity: 0; visibility: hidden; transition: all 0.15s ease-in-out; background: rgba( 0, 0, 0, 0.3 ); overflow-y: scroll; }
.bamb-global-overlay.bamb-prepare-open,
.bamb-global-overlay.bamb-prepare-close { display: block; }
.bamb-global-overlay.bamb-opened { display: block; opacity: 1; visibility: visible; }

.bamb-global-overlay .bamb-global-overlay-title { margin-top: 0; margin-bottom: 1rem; }

.bamb-global-overlay .bamb-global-overlay-inner { position: relative; top: 25px; background: #fff; border-radius: 0.375rem; max-width: 700px; margin: 2rem auto; padding: 2rem; box-sizing: border-box; transition: all 0.15s ease-in-out; }
.bamb-global-overlay .bamb-global-overlay-close { position: absolute; top: 10px; right: 10px; display: flex; width: 24px; height: 24px; align-items: center; justify-content: center; cursor: pointer; }
.bamb-global-overlay .bamb-global-overlay-close svg { margin-right: 0; }

.bamb-global-overlay.bamb-opened .bamb-global-overlay-inner,
.bamb-global-overlay.bamb-opened .bamb-creative-wrapper { top: 0; }


.bamb-global-overlay-qr-code .bamb-global-overlay-inner { max-width: 500px; padding: 4rem; text-align: center; }
.bamb-global-overlay-qr-code .bamb-global-overlay-inner img { display: inline-block; height: 200px; }
.bamb-global-overlay-qr-code .bamb-global-overlay-inner div { margin-top: 1rem; }
.bamb-global-overlay-qr-code .bamb-global-overlay-inner strong,
.bamb-global-overlay-qr-code .bamb-global-overlay-inner span { display: block; }
.bamb-global-overlay-qr-code .bamb-global-overlay-inner button { margin-top: 1rem; }

/******************************************************************************************/
/* Loading Overlay and Spinner
/******************************************************************************************/
.bamb-loader,
.bamb-loader:before,
.bamb-loader:after { border-radius: 50%; width: 9px; height: 9px; animation-fill-mode: both; animation: bamb_loader_animation 1.2s infinite ease-in-out; }

.bamb-loader { position: relative; display: inline-block; color: #2e4453; font-size: 7px; text-indent: -9999em; transform: translateZ(0); animation-delay: -0.16s; }

.bamb-loader:before,
.bamb-loader:after { content: ''; position: absolute; top: 0; }

.bamb-loader:before { left: -16px; animation-delay: -0.32s; }
.bamb-loader:after { left: 16px; }
  
@keyframes bamb_loader_animation { 0%, 80%, 100% { box-shadow: 0 9px 0 -7px } 40% { box-shadow: 0 9px 0 0 } }

.bamb-loading-overlay { position: absolute; z-index: 1; top: 0; left: 0; width: 100%; height: 100%; background: rgba( 255, 255, 255, 0.6 ); border-radius: inherit; opacity: 0; transition: opacity 0.135s ease-in-out; }
.bamb-loading-overlay.bamb-active { opacity: 1; }
.bamb-loading-overlay .bamb-loader { position: absolute; top: 50%; left: 50%; margin-top: -15px; margin-left: -5px; }

/******************************************************************************************/
/* Progressbar
/******************************************************************************************/
.bamb-progressbar { background: #eee; border-radius: 20px; height: 8px; overflow: hidden; }
.bamb-progressbar-fill { background: #2d98da; height: 100%; border-radius: 20px; }

/******************************************************************************************/
/* Form Fields
/******************************************************************************************/
.bamb-field-wrapper { margin-bottom: 25px; }
.bamb-field-wrapper.bamb-last { margin-bottom: 0; }

.bamb-field-wrapper input[type=text],
.bamb-field-wrapper input[type=email],
.bamb-field-wrapper input[type=url],
.bamb-field-wrapper input[type=password],
.bamb-field-wrapper textarea,
.bamb-field-wrapper select { width: 100%; max-width: 100%; box-sizing: border-box; }

.bamb-field-wrapper input[type=password] { padding-right: 2.5rem; }
.bamb-field-wrapper select { padding: 0.25rem; }

.bamb-field-wrapper ul.bamb-field-radio-wrapper,
.bamb-field-wrapper ul.bamb-field-checkbox-wrapper { list-style: none; padding: 0; margin: 0; }
.bamb-field-wrapper ul.bamb-field-radio-wrapper label,
.bamb-field-wrapper ul.bamb-field-checkbox-wrapper label,
.bamb-field-wrapper.bamb-field-wrapper-terms-and-conditions label { display: inline-block; width: auto; cursor: pointer; }

.bamb-field-wrapper .bamb-field-drag-drop-area { position: relative; padding: 2rem 1rem; text-align: center; border: 2px dashed #c1c1c1; border-radius: 5px; background: #f9f9f9; cursor: pointer; }
.bamb-field-wrapper .bamb-field-drag-drop-area.bamb-highlight { border-color: #3498db; background: rgba( 52, 152, 219, 0.1 ); }

.bamb-field-wrapper .bamb-field-drag-drop-area svg { width: 30px; height: 30px; color: inherit; margin-bottom: 10px; }
.bamb-field-wrapper .bamb-field-drag-drop-area p { margin-top: 0; margin-bottom: 0; }
.bamb-field-wrapper .bamb-field-drag-drop-area input { position: absolute; top: 0; left: 0; opacity: 0; height: 1px; width: 1px; }

.bamb-field-file-item { display: flex; align-items: center; line-height: 1; padding: 8px; background: #f1f1f1; border-radius: 4px; margin-top: 10px; font-size: 0.875rem; }
.bamb-field-file-item-remove { margin-left: auto; }
.bamb-field-file-item-remove svg { width: 16px; height: 16px; color: #000; vertical-align: middle; }
.bamb-field-file-item-name { display: inline-block; vertical-align: middle; }
.bamb-field-file-item-size { display: inline-block; vertical-align: middle; font-style: italic; margin-left: 5px; }

.bamb-field-description * { font-size: 0.875rem; }
.bamb-field-description > :first-child { margin-top: 0; }
.bamb-field-description > :last-child { margin-bottom: 0; }
.bamb-field-description-placement-before .bamb-field-description { margin-bottom: 0.5rem; }
.bamb-field-description-placement-after .bamb-field-description { margin-top: 0.25rem; }

.bamb-field-has-description > h2,
.bamb-field-has-description > h3,
.bamb-field-has-description > h4,
.bamb-field-has-description > h5,
.bamb-field-has-description > h6 { margin-bottom: 0.25rem; }

.bamb-field-error-message * { font-size: 0.875rem; font-style: italic; color: #c0392b; }
.bamb-field-error-message > :first-child { margin-top: 0; }
.bamb-field-error-message > :last-child { margin-bottom: 0; }

.bamb-field-rule { margin: 5px 0; }

.bamb-field-wrapper .bamb-field-input-password { position: relative; margin: 0; padding: 0; }
.bamb-field-wrapper .bamb-field-input-password .bamb-show-hide-password { position: absolute; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; right: 11px; top: 50%; margin-top: -11px; }
.bamb-field-wrapper .bamb-field-input-password .bamb-show-hide-password svg { display: block; }
.bamb-field-wrapper .bamb-field-input-password .bamb-show-hide-password svg:last-of-type { display: none; }

/******************************************************************************************/
/* Buttons
/******************************************************************************************/
.bamb-button-primary { display: inline-flex; align-items: center; cursor: pointer; }

.bamb-button-view-qr-code { margin-top: 10px; margin-left: 7px; }

/******************************************************************************************/
/* Status Pills
/******************************************************************************************/
.bamb-status-pill { display: inline-flex; font-size: 0.875rem; line-height: 1; font-weight: 500; background: #cdd1d8; color: #34495e; padding: 8px 9px; border-radius: 3px; }
.bamb-status-pill.bamb-status-active,
.bamb-status-pill.bamb-status-complete,
.bamb-status-pill.bamb-status-paid { background: #c1e3db; color: #148f77; }
.bamb-status-pill.bamb-status-pending,
.bamb-status-pill.bamb-status-requested { background: #fde0c0; color: #b36508; }
.bamb-status-pill.bamb-status-unpaid { background: #c5dff4; color: #217dbb; }
.bamb-status-pill.bamb-status-rejected,
.bamb-status-pill.bamb-status-failed { background: #fed8d9; color: #b91c1c; }

/******************************************************************************************/
/* General Cards
/******************************************************************************************/
.bamb-card { position: relative; width: 100%; margin-bottom: 1.5em; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px rgba(200, 215, 225, 0.5), 0 1px 2px #e9eff3; box-sizing: border-box; }

.bamb-card-header { padding: 20px; border-bottom: 1px solid rgba(200, 215, 225, 0.5); font-weight: bold; }
.bamb-card-inner { padding: 20px; }

.bamb-card-footer { padding: 20px; border-top: 1px solid rgba(200, 215, 225, 0.5); background: rgba(200, 215, 225, 0.15); box-sizing: border-box; }

.bamb-card-footer-actions { text-align: right; }
.bamb-card-footer-actions:after { content: ''; display: block; clear: both; }
.bamb-card-footer-actions a { float: left; color: #777; line-height: 34px; outline: 0; box-shadow: none; }
.bamb-card-footer-actions a:hover { color: #444; }

/******************************************************************************************/
/* Charts
/******************************************************************************************/
.bamb-chart { height: 325px !important; }

.bamb-chart-before { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

.bamb-chart-legend ul { list-style: none !important; display: inline-flex; align-items: center; gap: 18px; margin: 0 !important; padding: 0 !important; }
.bamb-chart-legend ul li { list-style: none !important; display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; padding: 0 !important; cursor: pointer; }

.bamb-chart-legend ul li span.bamb-color-box { display: inline-flex; align-items: center; justify-content: center; height: 10px; width: 10px; border-radius: 50%; background: #e1e9ef; }

.bamb-chart-tooltip { position: absolute; min-width: 120px; width: max-content !important; text-align: left; padding: 12px 15px !important; background: rgba( 255, 255, 255, 0.95 ); border-radius: 4px; border: 1px solid rgba( 200, 215, 225, 1 ); box-shadow: 0 2px 5px rgba( 0, 0, 0, 0.1 ), 0 0 56px rgba( 0, 0, 0, 0.08 ); pointer-events: none; transform: translate( -50%, 0 ); opacity: 1; }
.bamb-chart-tooltip .bamb-chart-tooltip-title { font-weight: 600; margin-bottom: 8px; }
.bamb-chart-tooltip .bamb-chart-tooltip-body { display: table; width: 100%; }
.bamb-chart-tooltip .bamb-chart-tooltip-body > div { display: table-row; }
.bamb-chart-tooltip .bamb-chart-tooltip-body > div > div { display: table-cell; }
.bamb-chart-tooltip .bamb-chart-tooltip-body > div > div:first-of-type { padding-right: 12px; }
.bamb-chart-tooltip .bamb-chart-tooltip-body > div > div:last-of-type { text-align: right; }
.bamb-chart-tooltip .bamb-chart-tooltip-body > div > div:first-of-type > span:first-of-type { display: inline-block; border-radius: 50%; height: 10px; width: 10px; margin-right: 10px; }

.bamb-chart-time-unit-selector { width: auto; border:  1px solid #c8d7e1; border-radius: 5px; box-shadow: rgb(0 0 0 / 0%) 0px 0px 0px 0px, rgb(0 0 0 / 0%) 0px 0px 0px 0px, rgb(0 0 0 / 5%) 0px 1px 2px 0px; padding: 4px 8px; font-size: 1rem; }

@media screen and ( max-width : 720px ) {

	.bamb-chart-legend ul { flex-flow: column; gap: 0; align-items: baseline; }

}

/******************************************************************************************/
/* Affiliate Dashboard
/******************************************************************************************/
.bamb-section-heading { margin-top: 0; margin-bottom: 0.625rem; font-size: 1.25rem; font-weight: 500; }

.bamb-grid-affiliate-dashboard { margin-bottom: 1rem; }

.bamb-card-affiliate-dashboard { margin-bottom: 0; flex-flow: column; }


.bamb-card-affiliate-dashboard .bamb-card-header { padding: 10px 20px 10px 20px; }

.bamb-card-affiliate-dashboard .bamb-card-inner { display: flex; flex: 1; flex-flow: column; padding: 10px 20px 10px 20px }

.bamb-card-affiliate-dashboard .bamb-card-inner .bamb-card-title { font-size: 1rem; }

.bamb-card-affiliate-dashboard .bamb-card-inner .bamb-kpi-value { display: flex; align-items: center; justify-content: space-between; font-size: 1.5rem; }
.bamb-card-affiliate-dashboard .bamb-card-inner .bamb-kpi-direction { display: flex; align-items: center; padding: 5px; border-radius: 3px; background: #f0f0f0; font-size: 0.825rem; line-height: 16px; width: auto; }
.bamb-card-affiliate-dashboard .bamb-card-inner .bamb-kpi-direction.bamb-positive { background: rgba( 39, 174, 96, 0.1 ); color: #17956a; }
.bamb-card-affiliate-dashboard .bamb-card-inner .bamb-kpi-direction.bamb-negative { background: rgba( 192, 57, 43, 0.1 ); color: #c0392b; }

.bamb-card-affiliate-dashboard .bamb-card-inner .bamb-kpi-direction svg { height: 12px; width: 12px; }
.bamb-card-affiliate-dashboard .bamb-card-inner .bamb-kpi-direction .bamb-arrow-up,
.bamb-card-affiliate-dashboard .bamb-card-inner .bamb-kpi-direction .bamb-arrow-down { display: none; margin-right: 5px; }
.bamb-card-affiliate-dashboard .bamb-card-inner .bamb-kpi-direction.bamb-positive .bamb-arrow-up { display: flex; }
.bamb-card-affiliate-dashboard .bamb-card-inner .bamb-kpi-direction.bamb-negative .bamb-arrow-down { display: flex; }

.bamb-card-affiliate-dashboard .bamb-card-footer { padding: 10px 20px 10px 20px; font-size: 0.825em; }
.bamb-card-affiliate-dashboard .bamb-card-footer > :first-child { margin-top: 0; }
.bamb-card-affiliate-dashboard .bamb-card-footer > :last-child { margin-bottom: 0; }

.bamb-grid.bamb-grid-affiliate-dashboard-last-30-days { grid-template-columns: repeat( auto-fit, minmax( 30%, 1fr ) ); }

/******************************************************************************************/
/* General Tabs and Nav Tabs
/******************************************************************************************/
.bamb-nav-tab-wrapper { display: flex; gap: 15px; margin: 1.5rem 0 0 0 !important; padding: 0 !important; list-style-type: none !important; }
.bamb-nav-tab-wrapper:after { content: ''; display: block; clear: both; }

.bamb-nav-tab-wrapper .bamb-nav-tab { list-style: none; border: 0; margin: 0 !important; padding: 0 !important; }
.bamb-nav-tab-wrapper .bamb-nav-tab:before { display: none; }

.bamb-nav-tab-wrapper .bamb-nav-tab a { display: block; width: auto; border-bottom: 2px solid transparent; padding: 10px 0 8px 0; box-sizing: border-box; box-shadow: none !important; text-decoration: none !important; outline: none !important; }
.bamb-nav-tab-wrapper .bamb-nav-tab a:hover,
.bamb-nav-tab-wrapper .bamb-nav-tab a:focus,
.bamb-nav-tab-wrapper .bamb-nav-tab.bamb-active a { border-bottom: 2px solid #2e4453; color: #2e4453; }

.bamb-nav-tab-wrapper .bamb-nav-tab span { vertical-align: middle; }

.bamb-nav-tab-wrapper .bamb-nav-tab svg,
.bamb-nav-tab-wrapper .bamb-nav-tab .dashicons { margin-right: 5px; }

.bamb-tab { display: none; margin-top: 25px; }
.bamb-tab.bamb-active { display: block; }

@media screen and ( max-width : 720px ) {

	.bamb-nav-tab-wrapper { gap: 12px; flex-wrap: wrap; }
	
	.bamb-nav-tab-wrapper .bamb-nav-tab a { padding-left: 5px; padding-right: 5px; }
	.bamb-nav-tab-wrapper .bamb-nav-tab svg { margin: 0; }
	.bamb-nav-tab-wrapper .bamb-nav-tab span:last-of-type { display: none; }

}

/******************************************************************************************/
/* Creative Shortcode
/******************************************************************************************/
.bamb-tab img { max-width: 100%; height: auto; }

.bamb-creative-shortcode-wrapper { margin: auto; padding: 10px; width: 100%; }
.bamb-creative-shortcode-wrapper img { margin: 15px auto; display: block; }
.bamb-creative-shortcode-textarea { font-size: 14px; width: 100%; height: 130px; }

/******************************************************************************************/
/* Affiliate Login Shortcode
/******************************************************************************************/
.bamb-lost-password { margin-top: 0.75rem; }

/******************************************************************************************/
/* Affiliate Account Shortcode
/******************************************************************************************/
.bamb-section-general-affiliate-link .bamb-field-wrapper { margin-bottom: 0; }
.bamb-affiliate-custom-link-output { margin-top: 25px; }

.bamb-creative-affiliate-wrapper { margin: auto; width: 100%; }
.bamb-creative-affiliate-wrapper img { margin: 15px auto; display: block; }

.bamb-creative-affiliate-textarea { font-size: 14px; width: 100%; height: 130px; }
.bamb-creative-wrapper-type-long-text .bamb-creative-affiliate-textarea { height: 300px; }

.bamb-creative-description { margin-bottom: 1rem; }
.bamb-creative-description > :first-child { margin-top: 0; }
.bamb-creative-description > :last-child { margin-bottom: 0; }

.bamb-page-numbers-wrapper { display: inline-flex; gap: 5px; margin-top: 1.5rem; }
.bamb-page-numbers-wrapper .page-numbers { display: inline-flex; align-items: center; justify-content: center; line-height: 30px; height: 30px; width: 30px; text-align: center; background: #f1f1f1; border-radius: 3px; text-decoration: none; }
.bamb-page-numbers-wrapper .page-numbers.current { font-weight: bold; }

.bamb-card-creative { flex-direction: column; margin-bottom: 0; }
.bamb-card-creative .bamb-card-inner { display: flex; flex: 1; justify-content: center; align-items: center; max-height: 12rem; }
.bamb-card-creative.bamb-creative-type-long-text .bamb-card-inner { align-items: baseline; min-height: 12rem; }
.bamb-card-creative.bamb-creative-type-long-text .bamb-card-inner > div { overflow: hidden; max-height: 100%; }

.bamb-card-creative .bamb-card-inner img { max-height: 100%; width: auto; }
.bamb-card-creative .bamb-card-inner span { text-decoration: underline; }
.bamb-card-creative .bamb-card-inner p:first-of-type { margin-top: 0; }
.bamb-card-creative .bamb-card-inner p:last-of-type { margin-bottom: 0; }

.bamb-card-creative .bamb-card-footer > div { display: flex; }
.bamb-card-creative .bamb-card-footer > div a { flex: 1; text-align: center; text-decoration: none; }
.bamb-card-creative .bamb-card-footer > div a,
.bamb-card-creative .bamb-card-footer > div span { vertical-align: middle; }
.bamb-card-creative .bamb-card-footer > div a svg { margin-right: 5px; }

.bamb-creative-preview { padding: 1.5rem; margin-bottom: 10px; box-shadow: 0 0 0 1px rgba(200, 215, 225, 0.5), 0 1px 2px #e9eff3; text-align: center; }
.bamb-creative-preview img { margin: 0 auto !important; max-width: 100% !important; height: auto !important; background: linear-gradient( 45deg,#d7d8da 25%,transparent 25%,transparent 75%,#d7d8da 75%,#d7d8da),linear-gradient(45deg,#d7d8da 25%,transparent 25%,transparent 75%,#d7d8da 75%,#d7d8da); background-position: 0 0,10px 10px; background-size: 20px 20px; }

.bamb-creative-image-details { display: flex; margin-bottom: 1.5rem; align-items: flex-start; justify-content: space-between; }
.bamb-creative-image-metadata { font-size: 0.9rem; text-align: right; }

.bamb-creative-image-metadata span { display: flex; align-items: center; }
.bamb-creative-image-metadata span svg { display: inline-block; margin: 0 1px; line-height: 1; width: 12px; height: 12px; }
.bamb-creative-image-metadata span i { display: inline-block; font-style: normal; font-size: 150%; line-height: 0; margin: 0 5px; }

.bamb-input-copy,
.bamb-generate-affiliate-link { margin-top: 10px; }
.bamb-input-copy-label-copied { display: none; }

@media screen and ( min-width: 721px ) {

	.bamb-menu-left,
	.bamb-menu-right { display: flex !important; flex-flow: row; gap: 1.5rem; }

	.bamb-menu-right { flex-direction: row-reverse; }

	.bamb-menu-left > div:nth-of-type(2),
	.bamb-menu-right > div:nth-of-type(2) { flex: 1; min-width: 0; }

	.bamb-menu-left .bamb-nav-tab-wrapper,
	.bamb-menu-right .bamb-nav-tab-wrapper { width: max-content; flex-flow: column; gap: 15px; }

	.bamb-menu-left .bamb-nav-tab-wrapper .bamb-nav-tab a { padding: 2px 1rem 2px 0; border-bottom: 0; border-right: 2px solid transparent; }
	.bamb-menu-right .bamb-nav-tab-wrapper .bamb-nav-tab a { padding: 2px 0 2px 1rem; border-bottom: 0; border-left: 2px solid transparent; }

	.bamb-menu-left .bamb-nav-tab-wrapper .bamb-nav-tab a:hover,
	.bamb-menu-left .bamb-nav-tab-wrapper .bamb-nav-tab a:focus,
	.bamb-menu-left .bamb-nav-tab-wrapper .bamb-nav-tab.bamb-active a { border-color: #2e4453; }
	.bamb-menu-right .bamb-nav-tab-wrapper .bamb-nav-tab a:hover,
	.bamb-menu-right .bamb-nav-tab-wrapper .bamb-nav-tab a:focus,
	.bamb-menu-right .bamb-nav-tab-wrapper .bamb-nav-tab.bamb-active a { border-color: #2e4453; }

}

/******************************************************************************************/
/* Affiliate Account Forms
/******************************************************************************************/
#bamb-affiliate-account { max-width: 100%; }

#bamb-affiliate-account textarea,
#bamb-affiliate-account input[type="text"] { width: 100%; }

#bamb-affiliate-account [class^="bamb-commission-rate-tag"] { display: block; }

/******************************************************************************************/
/* Tables
/******************************************************************************************/
body .bamb-list-table-wrapper { margin-top: 0; margin-bottom: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 2px; box-shadow: 0 0 0 1px rgba(200, 215, 225, 0.5), 0 1px 2px #e9eff3; }
body .bamb-list-table-wrapper > table.bamb-list-table { box-shadow: none; }

body table.bamb-list-table { width: 100%; margin-top: 0; margin-bottom: 0; border: 0 !important; border-radius: 2px; border-collapse: collapse; box-shadow: 0 0 0 1px rgba(200, 215, 225, 0.5), 0 1px 2px #e9eff3; }
body table.bamb-list-table tbody { border: 0 !important; }
body table.bamb-list-table th,
body table.bamb-list-table td { padding: 0.5rem 0.675rem; text-align: left; border: 0 !important; background: transparent !important; }
body table.bamb-list-table th { background: rgba( 200, 215, 225, 0.15 ) !important; border-bottom: 1px solid #e9eff3 !important; border-right: 1px solid #e9eff3 !important; white-space: nowrap; }
body table.bamb-list-table td { word-break: break-all; border-top: 1px solid #e9eff3 !important; border-right: 1px solid #e9eff3 !important; }
body table.bamb-list-table th:last-of-type,
body table.bamb-list-table td:last-of-type { border-right: 0 !important; }
body table.bamb-list-table tbody:first-of-type tr:first-of-type td { border-top: 0 !important; }

body table.bamb-list-table .bamb-column-id,
body table.bamb-list-table .bamb-column-date,
body table.bamb-list-table .bamb-column-status { width: 1px; white-space: nowrap; }
body table.bamb-list-table .bamb-column-reference,
body table.bamb-list-table .bamb-column-amount { white-space: nowrap; }
body table.bamb-list-table .bamb-column-type { word-break: normal; }
body table.bamb-list-table .bamb-column-landing_url,
body table.bamb-list-table .bamb-column-referrer_url { width: 50%; }
body table.bamb-list-table .bamb-column-actions { text-align: right; width: 1px; white-space: nowrap; }

table.bamb-list-table .bamb-list-table-item-details-row { display: none; }
table.bamb-list-table .bamb-list-table-item-details-row > td { overflow-y: hidden; padding: 0 !important; }
table.bamb-list-table .bamb-list-table-item-details-row > td > div { height: 0; opacity: 0; transition: all 0.275s ease-in-out; }
table.bamb-list-table .bamb-list-table-item-details-row > td > div > div { padding: 1.25rem; }

table.bamb-list-table tbody.bamb-active > .bamb-list-table-item-details-row td > div { opacity: 1; }

table.bamb-list-table .bamb-list-table-item-details-row > td > div > div > h4 { font-size: 1.25rem; margin: 0 0 1rem 0; padding: 0; }
table.bamb-list-table .bamb-list-table-item-details-row > td > div > div > p { margin: 1rem 0; }
table.bamb-list-table .bamb-list-table-item-details-row > td > div > div > h4 + p { margin-top: -0.5rem; }

table.bamb-list-table .bamb-toggle-item-details { display: inline-flex; align-items: center; }
table.bamb-list-table .bamb-toggle-item-details:focus { outline: 0 !important; background-color: transparent !important; }
table.bamb-list-table .bamb-toggle-item-details svg { transition: transform 0.2s ease-in-out; }
table.bamb-list-table tbody.bamb-active .bamb-toggle-item-details svg { transform: rotate( 180deg ); }

.bamb-list-table-after,
.bamb-list-table-before { display: flex; }

.bamb-list-table-before { margin-bottom: 15px; }
.bamb-list-table-after { margin-top: 15px; }

.bamb-list-table-filters form { display: flex; align-items: center; gap: 10px; margin: 0 !important; padding: 0 !important; }
.bamb-list-table-filters button[type="submit"] { display: inline-block; padding: 6px 12px; font-size: 1rem; line-height: 1.2rem; border: 1px solid transparent; }

.bamb-list-table-per-page-selector { display: inline-flex; align-items: center; }
.bamb-list-table-per-page-selector form { display: inline-flex; gap: 5px; align-items: center; margin: 0 !important; padding: 0 !important; }
.bamb-list-table-per-page-selector select { width: auto !important; }

.bamb-list-table-pagination { display: inline-flex; align-items: center; margin-left: auto; }

@media screen and ( max-width : 720px ) {

	.bamb-list-table-filters { width: 100%; }
	.bamb-list-table-filters form { width: 100%; flex-flow: column; }

	.bamb-list-table-filters button[type="submit"] { width: 100%; }

}

@media screen and ( max-width : 480px ) {

	.bamb-list-table-after { flex-direction: column-reverse; gap: 20px; }

}

/* Table: Commission Items */
.bamb-list-table-commission-items .bamb-column-item-commission-amount { width: 30%; }

/******************************************************************************************/
/* Pagination Links
/******************************************************************************************/
.bamb-pagination-links { display: inline-flex; gap: 5px; margin-left: 10px; }
.bamb-pagination-links .bamb-pagination-link { display: inline-flex; align-items: center; justify-content: center; line-height: 30px; height: 30px; width: 30px; text-align: center; background: #f1f1f1; border-radius: 3px; }

.bamb-pagination-links span.bamb-pagination-link { opacity: 0.5; cursor: not-allowed; }

/******************************************************************************************/
/* Date Picker
/******************************************************************************************/
.bamb-date-picker-wrapper { position: relative; display: inline-flex; }

.bamb-date-picker-wrapper .bamb-date-picker-input { display: inline-flex; align-items: center; padding: 0 12px; font-size: 1rem; line-height: 1.2rem; color: #2e4453; border: 1px solid #c8d7e1; background: #fff; transition: all .15s ease-in-out; box-shadow: none; box-sizing: border-box; border-radius: 5px; box-shadow: rgb(0 0 0 / 0%) 0px 0px 0px 0px, rgb(0 0 0 / 0%) 0px 0px 0px 0px, rgb(0 0 0 / 5%) 0px 1px 2px 0px; cursor: pointer; user-select: none; }
.bamb-date-picker-wrapper .bamb-date-picker-input:hover { border-color: #bbceda; }

.bamb-date-picker-wrapper .bamb-date-picker-input svg { margin-right: 5px; opacity: 0.8; }
.bamb-date-picker-wrapper .bamb-date-picker-input .bamb-date-picker-input-date-range { padding: 6px 0; }
.bamb-date-picker-wrapper .bamb-date-picker-input .bamb-date-picker-input-dates { display: none; border-left: 1px solid #c8d7e1; padding: 6px 0 6px 8px; margin-left: 8px; }

.bamb-date-picker-modal { display: none; position: absolute; z-index: 10; top: 100%; left: 0; margin-top: 8px; background: #fff; box-shadow: 0px 0px 0px 1px rgb(18 18 23 / 10%), 0px 24px 48px rgb(18 18 23 / 3%), 0px 10px 18px rgb(18 18 23 / 3%), 0px 5px 8px rgb(18 18 23 / 4%), 0px 2px 4px rgb(18 18 23 / 4%); border-radius: 8px; }
.bamb-date-picker-wrapper.bamb-is-open .bamb-date-picker-modal { display: inline-flex; }

.bamb-date-picker-predefined-date-ranges { border-right: 1px solid rgb(18 18 23 / 15%); padding: 25px; width: max-content; }

a.bamb-date-picker-predefined-date-range { display: block; width: 100%; border-radius: 4px; padding: 4px 12px; color: inherit; text-decoration: none !important; box-sizing: border-box; }
a.bamb-date-picker-predefined-date-range:hover { background: rgba( 200, 215, 225, 0.25 ); }

a.bamb-date-picker-predefined-date-range[data-range="custom"] { display: none; }

.bamb-date-picker-wrapper .bamb-litepicker { padding: 20px; }
.bamb-date-picker-wrapper .bamb-litepicker svg { margin: 0 !important; }

.bamb-date-picker-wrapper .bamb-litepicker .month-item-header { padding-top: 0; padding-right: 0; padding-left: 0; }
.bamb-date-picker-wrapper .bamb-litepicker .month-item-header .month-item-name { text-transform: capitalize; }

.bamb-date-picker-wrapper .bamb-litepicker .button-previous-month,
.bamb-date-picker-wrapper .bamb-litepicker .button-next-month { width: 40px; height: 40px; padding: 0 !important; border-radius: 4px !important; text-align: center !important; margin: 0 !important; cursor: pointer !important; }
.bamb-date-picker-wrapper .bamb-litepicker .button-previous-month:hover,
.bamb-date-picker-wrapper .bamb-litepicker .button-next-month:hover { background: rgba( 200, 215, 225, 0.25 ) !important; }

.bamb-date-picker-wrapper .bamb-litepicker .container__months { box-shadow: none; border: 0; }
.bamb-date-picker-wrapper .bamb-litepicker .container__days > div,
.bamb-date-picker-wrapper .bamb-litepicker .container__days > a { padding: 0; line-height: 40px; }

.bamb-date-picker-wrapper .bamb-litepicker .container__days .day-item { cursor: pointer; }

.bamb-date-picker-wrapper .bamb-litepicker .container__days .day-item.is-today { font-weight: bold; }
.bamb-date-picker-wrapper .bamb-litepicker .container__days .day-item.is-today:not(.is-start-date):not(.is-end-date):not(.is-in-range) { background: rgba( 200, 215, 225, 0.15 ); }

.bamb-date-picker-wrapper .bamb-litepicker .container__days .day-item:hover { box-shadow: none !important; border: 0; }
.bamb-date-picker-wrapper .bamb-litepicker .container__days .day-item:hover:not(.is-start-date):not(.is-end-date) { background: rgba( 200, 215, 225, 0.25 ); }

@media screen and ( max-width : 720px ) {

	.bamb-date-picker-wrapper,
	.bamb-date-picker-input { width: 100%; }

	.bamb-date-picker-modal { flex-flow: column; max-width: 100%; width: 100%; }

	.bamb-date-picker-predefined-date-ranges { display: grid; grid-template-columns: repeat( 2, 1fr ); gap: 5px; width: 100%; border-right: 0; border-bottom: 1px solid rgb(18 18 23 / 15%); }

	.bamb-date-picker-wrapper .bamb-litepicker .container__months { width: 100%; }

	.bamb-date-picker-wrapper .bamb-litepicker { display: block !important; }

	.bamb-date-picker-wrapper .bamb-litepicker .container__months .month-item { width: 100%; }

	.bamb-date-picker-wrapper .bamb-litepicker .container__days > div,
	.bamb-date-picker-wrapper .bamb-litepicker .container__days > a { width: 14.2857%; }

}

/* Flyer creatives */
.bamb-flyer-preview img { display: block; max-width: 100%; height: auto; }
.bamb-flyer-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.bamb-card-creative-type-flyer .bamb-card-inner img { display: block; max-width: 100%; height: auto; }

/******************************************************************************************/
/* Brand Ambassador theme
/******************************************************************************************/
#bamb-affiliate-account {
	--bamb-accent: #0f766e;
	--bamb-accent-dark: #115e59;
	--bamb-accent-soft: #ccfbf1;
	--bamb-warm: #f59e0b;
	--bamb-ink: #1f2937;
	--bamb-muted: #6b7280;
	--bamb-line: #e5e7eb;
	--bamb-radius: 10px;
	color: var( --bamb-ink );
}

/* Every icon in the account has the same size, whatever the theme does with SVGs. */
#bamb-affiliate-account svg { display: inline-block; flex: none; width: 18px; height: 18px; vertical-align: middle; }

#bamb-affiliate-account .bamb-nav-tab-wrapper { gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var( --bamb-line ); }
#bamb-affiliate-account .bamb-nav-tab-wrapper .bamb-nav-tab a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 2px solid transparent; border-radius: var( --bamb-radius ) var( --bamb-radius ) 0 0; color: var( --bamb-muted ); font-weight: 500; }
#bamb-affiliate-account .bamb-nav-tab-wrapper .bamb-nav-tab svg { width: 20px; height: 20px; margin: 0; }
#bamb-affiliate-account .bamb-nav-tab-wrapper .bamb-nav-tab a:hover,
#bamb-affiliate-account .bamb-nav-tab-wrapper .bamb-nav-tab a:focus { color: var( --bamb-accent ); background: #f0fdfa; border-color: transparent; }
#bamb-affiliate-account .bamb-nav-tab-wrapper .bamb-nav-tab.bamb-active a { color: var( --bamb-accent ); border-color: var( --bamb-accent ); }

#bamb-affiliate-account-tab { padding-top: 1.5rem; }

#bamb-affiliate-account .bamb-card { border-radius: var( --bamb-radius ); box-shadow: 0 0 0 1px var( --bamb-line ), 0 1px 3px rgba( 17, 24, 39, 0.06 ); overflow: hidden; }
#bamb-affiliate-account .bamb-card-footer { background: #f9fafb; border-top-color: var( --bamb-line ); }
#bamb-affiliate-account .bamb-card-affiliate-dashboard .bamb-card-title { color: var( --bamb-muted ); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.04em; }
#bamb-affiliate-account .bamb-card-affiliate-dashboard .bamb-kpi-value { font-weight: 600; }
#bamb-affiliate-account .bamb-section-heading,
#bamb-affiliate-account .bamb-section-title { margin: 1.5rem 0 0.75rem; font-size: 1.1rem; font-weight: 600; }
#bamb-affiliate-account .bamb-section-heading:first-child { margin-top: 0; }

#bamb-affiliate-account .bamb-button-primary,
#bamb-affiliate-account .bamb-button-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border: 1px solid var( --bamb-accent ); border-radius: 8px; font-size: 0.95rem; line-height: 1.3; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s; }
#bamb-affiliate-account .bamb-button-primary { background: var( --bamb-accent ); color: #fff; }
#bamb-affiliate-account .bamb-button-primary:hover { background: var( --bamb-accent-dark ); }
#bamb-affiliate-account .bamb-button-secondary { background: #fff; color: var( --bamb-accent ); }
#bamb-affiliate-account .bamb-button-secondary:hover { background: #f0fdfa; }
#bamb-affiliate-account .bamb-button-small { padding: 4px 10px; font-size: 0.8rem; }
#bamb-affiliate-account .bamb-button-primary svg,
#bamb-affiliate-account .bamb-button-secondary svg { width: 16px; height: 16px; margin: 0; }
#bamb-affiliate-account .bamb-copied { background: var( --bamb-accent ); color: #fff; }
#bamb-affiliate-account button:disabled { opacity: 0.6; cursor: wait; }

#bamb-affiliate-account table.bamb-list-table { border-radius: var( --bamb-radius ); overflow: hidden; box-shadow: 0 0 0 1px var( --bamb-line ); }
#bamb-affiliate-account table.bamb-list-table thead th { background: #f9fafb !important; color: var( --bamb-muted ); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
#bamb-affiliate-account table.bamb-list-table td { border-top: 1px solid var( --bamb-line ) !important; vertical-align: middle; }

/* Commission totals and payments */
.bamb-commission-totals { margin-bottom: 1.5rem; }
.bamb-commission-totals-table td strong { font-size: 1.15rem; }
.bamb-muted { color: var( --bamb-muted, #6b7280 ); }

@media screen and ( max-width : 720px ) {

	.bamb-commission-totals-table thead { display: none; }
	.bamb-commission-totals-table td { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
	.bamb-commission-totals-table td:before { content: attr( data-label ); color: var( --bamb-muted, #6b7280 ); font-size: 0.85rem; }

}

/* Creatives: compact actions with small icons */
.bamb-card-creative .bamb-card-footer.bamb-card-creative-actions { padding: 8px 10px; }
.bamb-card-creative .bamb-card-creative-actions > div { flex-wrap: wrap; gap: 4px; }
.bamb-card-creative .bamb-card-creative-actions > div a { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: 1 1 auto; padding: 5px 6px; border-radius: 6px; font-size: 0.8rem; line-height: 1.2; color: var( --bamb-accent, #0f766e ); white-space: nowrap; }
.bamb-card-creative .bamb-card-creative-actions > div a:hover { background: #f0fdfa; }
#bamb-affiliate-account .bamb-card-creative .bamb-card-creative-actions svg { width: 14px; height: 14px; margin: 0; }

/* Settings: referral link with copy button */
.bamb-referral-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bamb-field-wrapper-referral-link .bamb-field-label-wrapper label,
.bamb-referral-link-row .bamb-referral-link { font-size: 1rem; }
.bamb-referral-link-row .bamb-referral-link { word-break: break-all; color: var( --bamb-accent, #0f766e ); font-weight: 600; }

/* Promotion links: one label for the three inputs */
.bamb-field-wrapper-promotion-link-extra .bamb-field-label-wrapper { display: none; }
.bamb-field-wrapper-promotion-link-extra { margin-top: -0.5rem; }

/* Minimum payout note and inactive Generate payment button */
.bamb-minimum-payout-note { margin: 8px 0 0 !important; font-size: 0.85rem; color: var( --bamb-muted, #6b7280 ); }
#bamb-affiliate-account .bamb-button-primary.bamb-button-disabled,
#bamb-affiliate-account .bamb-button-primary:disabled { background: #d1d5db; border-color: #d1d5db; color: #6b7280; cursor: not-allowed; opacity: 1; }


/******************************************************************************************/
/* Forms: login, registration, password and account settings
/* Low specificity (:where), so the theme's own form styles still win when it has them.
/******************************************************************************************/
.bamb-form {
	--bamb-accent: #0f766e;
	--bamb-accent-dark: #115e59;
	--bamb-line: #d1d5db;
	max-width: 560px;
}

:where(.bamb-form, #bamb-affiliate-account) :where(.bamb-field-wrapper) :where(input[type=text], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=password], textarea, select) {
	padding: 0.65em 0.8em;
	border: 1px solid var( --bamb-line, #d1d5db );
	border-radius: 8px;
	background: #fff;
	font-size: 1rem;
	line-height: 1.4;
	color: inherit;
}

:where(.bamb-form, #bamb-affiliate-account) :where(.bamb-field-wrapper) :where(input, textarea, select):focus {
	outline: 2px solid var( --bamb-accent, #0f766e );
	outline-offset: 1px;
	border-color: var( --bamb-accent, #0f766e );
}

:where(.bamb-form, #bamb-affiliate-account) :where(.bamb-field-wrapper) label { display: block; margin-bottom: 0.35rem; font-weight: 500; }
:where(.bamb-form) .bamb-field-wrapper { margin-bottom: 18px; }

:where(.bamb-form) .bamb-button-primary {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 10px 22px; border: 1px solid var( --bamb-accent ); border-radius: 8px;
	background: var( --bamb-accent ); color: #fff;
	font-size: 1rem; line-height: 1.3; font-weight: 600; cursor: pointer;
}
:where(.bamb-form) .bamb-button-primary:hover { background: var( --bamb-accent-dark ); }
