/*
 * Matrikon Floating Promo Tab — Styles
 * Place at: /assets/css/mtk-promo-tab.css in your theme
 *
 * Colors are set as CSS custom properties on #mtk-promo-tab via an inline
 * style attribute rendered from ACF (see functions.php). The values below
 * are just fallback defaults in case a field is left empty.
 */

#mtk-promo-tab, #mtk-promo-tab * { box-sizing: border-box; }

#mtk-promo-tab {
  --mtk-ink: #131B3A;
  --mtk-blue: #2e3192;
  --mtk-purple: #4B3FE0;
  --mtk-purple-dark: #3C31C2;
  --mtk-teal: #0FC7CE;
  --mtk-teal-fill: #1bdee0;
  --mtk-teal-dark: #0BAAB0;
  --mtk-grey: #66708A;
  --mtk-line: #E7E9F2;
  --mtk-white: #FFFFFF;
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; */
  position: fixed;
  left: 50px;
  bottom: 50px;
  z-index: 999999;
  color: var(--mtk-ink);
}

/* ---------- POSITION 1: collapsed pill ---------- */
.mtk-pill {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--mtk-white);
  border-radius: 999px;
  padding: 12px 22px 12px 32px;
  box-shadow: 0 12px 32px rgba(19, 27, 58, 0.18);
}
#mtk-promo-tab[data-state="collapsed"] .mtk-pill { display: flex; }

.mtk-pill-text {
  font-weight: 500;
  font-size: 24px;
  color: var(--mtk-blue);
  white-space: nowrap;
  line-height: 36px;
  margin-right: 30px;
}

.mtk-icon-btn {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}
.mtk-icon-btn:hover { transform: scale(1.06); }
.mtk-icon-btn:focus-visible { outline: 2px solid var(--mtk-purple); outline-offset: 2px; }

.mtk-pill .mtk-icon-arrow {
  color: var(--mtk-teal-dark);
  /* border: 1.5px solid var(--mtk-teal); */
  background: transparent;
}
.mtk-pill .mtk-icon-plus--filled {
  color: #1bdee0;
  /* background: var(--mtk-teal-fill); */
}

/* ---------- POSITION 3: minimized edge tab ---------- */
.mtk-edge {
  all: unset;
  display: none;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 65px;
  background: white;
  color: var(--mtk-teal-fill);
  position: fixed;
  left: -10px;
  bottom: 50px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(15, 199, 206, 0.4);
  transition: left 0.15s ease, transform 0.15s ease;
  border-top-right-radius: 50%;
  border-bottom-right-radius: 50%;
}
.mtk-edge:hover {left: -5px;}
#mtk-promo-tab[data-state="minimized"] .mtk-edge { display: flex; }
.mtk-edge svg {margin-left: 10px;}

/* ---------- POSITION 2: expanded panel ---------- */
.mtk-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
  width: 320px;
  background: var(--mtk-white);
  border-radius: 30px;
  padding: 22px 28px 24px;
  box-shadow: 0 20px 48px rgba(19, 27, 58, 0.22);
	position: fixed;
   left: 50px;
    bottom: 50px;
}
#mtk-promo-tab[data-state="expanded"] .mtk-panel { display: flex; }

.mtk-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.mtk-panel-brand { display: flex; align-items: center; }
.mtk-panel-logo {height: auto;width: auto;display: block;}

.mtk-panel-close {
  /* background: #F1F2F8; */
  color: var(--mtk-teal-fill);
 
}

.mtk-panel-heading {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 800;
  color: #002254;
}
.mtk-panel-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: #002254;
}

.mtk-panel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--mtk-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
  /* padding: 13px 20px; */
  border-radius: 999px;
  transition: background 0.15s ease, opacity 0.15s ease;
  margin-top: 10px;
}
.mtk-panel-button:hover {/* opacity: 0.88; */background-color: #1BDEE0;color: white;}

.mtk-backdrop { display: none; }
a.mtk-panel-button:before {
    content: '';
    background: linear-gradient(45deg, #ffffff, #1bdee0, #4753dc, #4753dc, #1bdee0, #ffffff);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: 1;
    filter: blur(5px);
    width: calc(100% + 5px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 100px;
}

.mtk-panel-button:hover:before {
    opacity: 1;
}

a.mtk-panel-button {
    position: relative;
    z-index: 999;
}
a.mtk-panel-button span {
    z-index: 999;
    background-color: var(--mtk-purple) !important;
    width: 100%;
    height: 100%;
    /* display: inline-block !important; */
    padding: 15px 19px;
    border-radius: 999px;
    display: flex !important;
    justify-content: space-between;
}

a.mtk-panel-button span:hover {
    background-color: #1BDEE0 !important;
}
button.mtk-icon-btn.mtk-icon-plus.mtk-icon-plus--filled.mobile_view {
    transform: rotate(90deg);
	display:none;
}

.mtk-backdrop {
    position: fixed;
    inset: 0;
    background:rgb(0 34 84 / 82%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  #mtk-promo-tab[data-state="expanded"] .mtk-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
/* ---------- Mobile ---------- */
@media (max-width: 640px) {
	.mtk-panel-close {
  transform: rotate(-90deg);
}
	.mtk-pill-text{
		font-size:28px;
	}
	button.mtk-icon-btn.mtk-icon-plus.mtk-icon-plus--filled.hide_mobile {
    display: none;
}
	button.mtk-icon-btn.mtk-icon-plus.mtk-icon-plus--filled.mobile_view {
	display:flex;
}
  #mtk-promo-tab {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
  }
.mtk-panel-close svg {
    width: 28px;
    height: 28px;
}


  /* No edge/minimized state on mobile — always collapsed or expanded */
  .mtk-edge { display: none !important; }

  .mtk-pill {
    width: 100%;
    justify-content: space-between;
    border-radius: 0;
    padding: 16px 18px;
  }
  .mtk-pill .mtk-icon-arrow { display: none; } /* only one toggle icon on mobile */

  

  .mtk-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 0;
    max-height: 70vh;
    overflow-y: auto;
    padding: 25px 28px 24px;
  }
  .mtk-panel-button { width: 100%;     font-size: 22px; }
	a.mtk-panel-button span{
		padding: 15px 25px;
	}
	.mtk-panel-button svg {
    width: 28px;
    height: 28px;
}
	.mtk-panel-heading {
  
    font-size: 28px;
}
	.mtk-panel-text {
   
    font-size: 24px;
}
}