/* ================================================================
   Yettel Header
   Colors: #002340 (dark blue), #B4FF00 (lime), #F9F9F9 (gray), #1A1A1A (text-black)
   ================================================================ */

[x-cloak] {
  display: none !important;
}

/* ----------------------------------------------------------------
   Container
   ---------------------------------------------------------------- */
.yettel-header a:visited {
  color: inherit;
}

.yettel-header {
  position: relative;
  background: #b4ff00;
  color: #002340;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  z-index: 10;
  border-radius: 0 0 20px 20px;
  line-height: 1.5;
}

/* ----------------------------------------------------------------
   Responsive visibility
   ---------------------------------------------------------------- */
.ytl-desktop {
  display: block;
  position: relative;
  z-index: 1;
  background: #b4ff00;
  border-radius: 0 0 20px 20px;
}

.ytl-mobile {
  display: none;
}

@media (max-width: 1249px) {
  .ytl-desktop {
    display: none;
  }
  .ytl-mobile {
    display: block;
  }
}

/* ----------------------------------------------------------------
   Logo
   ---------------------------------------------------------------- */
.logo-link {
  text-decoration: none;
}

.logo-link:hover {
  text-decoration: none;
}

.logo-link span {
  color: #002340;
  text-align: left;
  font-size: 40px;
  letter-spacing: -1px;
  opacity: 1;
  display: block;
}

/* ----------------------------------------------------------------
   Desktop — top row (first-level tabs + language)
   ---------------------------------------------------------------- */
.ytl-top-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 44px;
}

.ytl-first-level-nav {
  display: flex;
  align-items: center;
}

.ytl-first-level-tab {
  display: inline-block;
  letter-spacing: -0.4px;
  color: #1a1a1a;
  opacity: 0.74;
  padding: 7px 10px 5px;
  text-decoration: none;
  font-family: "Yettel", Arial, sans-serif;
  font-size: 15px;
}

.ytl-first-level-tab.ytl-first-level-tab--support {
  font-family: "YettelLight", Arial, sans-serif;
  font-size: 14px;
  color: #002340;
  opacity: 1;
}

.ytl-first-level-tab.ytl-active {
  opacity: 1;
  color: #002340;
}

/* ----------------------------------------------------------------
   Language switcher
   ---------------------------------------------------------------- */
.ytl-lang-switcher {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
}

.ytl-lang-switcher a {
  color: #1a1a1a;
  opacity: 0.74;
  text-decoration: none;
  text-transform: uppercase;
  padding: 7px 10px 5px;
}

.ytl-lang-switcher a.ytl-lang-active {
  color: #002340;
  opacity: 1;
}

/* ----------------------------------------------------------------
   Desktop — main row (logo | second-level | actions)
   ---------------------------------------------------------------- */
.ytl-main-row {
  display: flex;
  align-items: center;
  padding-bottom: 4px;
}

.ytl-logo {
  flex: 0 0 auto;
  width: 16.666%;
  padding-left: 29px;
}

/* ----------------------------------------------------------------
   Desktop — second-level nav
   ---------------------------------------------------------------- */
.ytl-second-level {
  flex: 1;
  display: flex;
  align-items: center;
  line-height: 1.5;
}

.ytl-second-level-item {
  display: inline-flex;
  align-items: center;
  padding: 0 0 0 20px;
  margin-right: 30px;
  color: #002340;
  position: relative;
}

.ytl-second-level-item.no-child {
  padding: 0 20px;
}

.ytl-second-level-link {
  color: #002340;
  text-decoration: none;
}

.ytl-second-level-link:hover {
  color: #002340;
  text-decoration: none;
}

.ytl-second-level-arrow {
  background: url(/assets/img/icons/expand.png) center no-repeat;
  background-size: 15px;
  width: 35px;
  height: 20px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.ytl-second-level-item.ytl-active .ytl-second-level-arrow {
  background: url(/assets/img/icons/collapse.png) center no-repeat;
  background-size: 15px;
}

.ytl-second-level-item.ytl-active::after {
  content: "";
  position: absolute;
  width: 90%;
  height: 3px;
  background: #00023f;
  left: 20px;
  bottom: -20px;
}

@media (min-width: 1250px) and (max-width: 1649px) {
  .ytl-second-level-item {
    font-size: 19px;
    margin: 0;
  }

  .ytl-second-level-item.no-child {
    font-size: 18px;
  }

  .ytl-first-level-tab {
    font-size: 15px;
  }
}

@media (min-width: 1650px) {
  .ytl-second-level-item {
    font-size: 20px;
  }

  .ytl-second-level-item.no-child {
    font-size: 20px;
  }

  .ytl-first-level-tab {
    font-size: 16px;
  }
}

/* ----------------------------------------------------------------
   Desktop — action icons (right side)
   ---------------------------------------------------------------- */
.ytl-actions {
  flex: 0 0 auto;
  width: 33.333%; /* col-4 equivalent */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 44px;
  gap: 4px;
}

.ytl-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  color: #002340;
  text-decoration: none;
  vertical-align: middle;
}

.ytl-icon-btn img {
  display: block;
  height: 32px;
  width: 32px;
}

/* Login button — dark blue pill */
.ytl-login-btn {
  display: inline-flex;
  align-items: center;
  background: #002340;
  border-radius: 25px;
  font-size: 16px;
  letter-spacing: -0.4px;
  opacity: 1;
  color: #ffffff;
  padding: 7px 17px 7px 23px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.ytl-login-btn img {
  width: 31px;
  height: auto;
  margin-left: 12px;
}

.ytl-login-btn:hover {
  text-decoration: none;
}

/* Avatar */
.ytl-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.ytl-avatar-lg {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: solid 0.5px #ddd;
}

/* ----------------------------------------------------------------
   Desktop — Yettel apps dropdown
   ---------------------------------------------------------------- */
.ytl-apps-wrap {
  position: relative;
  display: inline-flex;
}

.ytl-apps-dropdown {
  box-sizing: border-box;
  position: absolute;
  top: calc(0.5rem + 100%);
  right: 50%;
  transform: translateX(50%);
  width: 198px;
  background: #fff;
  box-shadow: 0 3px 6px #00000029;
  border-radius: 10px;
  padding: 8px 10px;
  z-index: 200;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1250px) {
  .ytl-apps-dropdown {
    right: -15px;
    transform: none;
  }
}

.ytl-app-link {
  display: flex;
  align-items: center;
  padding: 8px 0;
  color: #002340;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
}

.ytl-app-link img {
  width: 28px;
  height: auto;
  margin-right: 6px;
}

.ytl-app-link:hover {
  text-decoration: none;
  background-color: #eefaff;
  color: #002340;
}

.ytl-app-link:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

/* ----------------------------------------------------------------
   Desktop — profile popup
   ---------------------------------------------------------------- */
.ytl-profile-wrap {
  position: relative;
  display: inline-flex;
}

.ytl-profile-popup {
  position: absolute;
  top: calc(0.5rem + 100%);
  right: -50%;
  width: 209px;
  background: #fff;
  box-shadow: 0 3px 6px #00000029;
  border-radius: 10px;
  z-index: 200;
  overflow: hidden;
}

.ytl-profile-head {
  background: #d7f0f9;
  height: 37px;
  display: flex;
  justify-content: center;
  position: relative;
}

.ytl-profile-head .ytl-avatar-lg {
  position: absolute;
  top: 5px;
  width: 58px;
  height: auto;
  border: solid 0.5px #ddd;
  border-radius: 50%;
}

.ytl-profile-body {
  padding: 30px 0 1rem 0;
  text-align: center;
  border-bottom: solid 0.5px #d7f0f9;
  margin: 0 5px;
}

.ytl-profile-welcome {
  font-size: 20px;
}

.ytl-profile-name {
  font-size: 20px;
  color: #002340;
  margin: 0;
}

.ytl-profile-email {
  font-size: 14px;
  color: #002340;
}

.ytl-profile-items {
  text-align: center;
  padding: 17.5px 0 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ytl-profile-item-settings {
  font-size: 18px;
  border: 2px solid #002340;
  border-radius: 25px;
  padding: 5px 26px;
  width: fit-content;
  color: #002340;
  text-decoration: none;
  display: block;
}

.ytl-profile-item-logout {
  font-size: 18px;
  margin-top: 16px;
  color: #002340;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ----------------------------------------------------------------
   Desktop — flyout row (third-level)
   Slides behind the header — position: absolute, z-index: -1
   ---------------------------------------------------------------- */
.ytl-flyout-row {
  background: #f9f9f9;
  border-radius: 0 0 20px 20px;
  position: absolute;
  width: 100%;
  padding-top: 48px;
  top: 68px;
  left: 0;
  padding-bottom: 12px;
  z-index: 0;
  box-shadow: 0 3px 6px #00000029;
}

.ytl-third-level-nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 16.666%;
  margin-left: 28px;
}

.ytl-third-level-item {
  display: inline-block;
  padding: 7px 20px;
  margin-right: 30px;
  color: #002340;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ytl-third-level-item:hover {
  color: #002340;
  text-decoration: underline;
}

@media (min-width: 1250px) and (max-width: 1649px) {
  .ytl-third-level-item {
    font-size: 18px;
  }
}

@media (min-width: 1650px) {
  .ytl-third-level-item {
    font-size: 20px;
  }
}

/* ----------------------------------------------------------------
   Desktop — search expanded
   ---------------------------------------------------------------- */
.ytl-search-expanded {
  flex: 0 0 auto;
  width: 50%;
  max-width: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ytl-main-row--search-open {
  min-height: 64px;
  justify-content: center;
  padding-bottom: 0;
}

.ytl-search-input {
  flex: 1;
  border: none;
  border-bottom: 2px solid #002340;
  background: #ffffff;
  font-size: 16px;
  padding: 3px 8px;
  height: auto;
  outline: none;
  color: #002340;
  font-family: inherit;
  border-radius: 0;
  margin-left: 10px;
}

.ytl-search-input:focus {
  outline: 0 !important;
  box-shadow: none;
}

.ytl-search-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #002340;
  padding: 4px 8px;
}

/* Business portal link */
.ytl-biz-portal {
  font-size: 14px;
}

/* ----------------------------------------------------------------
   Mobile — fixed header, no border-radius
   ---------------------------------------------------------------- */
@media (max-width: 1249px) {
  .yettel-header {
    position: fixed;
    width: 100%;
    top: 0;
    border-radius: 0;
  }
}

.ytl-mobile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 15px;
}

.ytl-mobile-actions {
  display: flex;
  align-items: center;
}

/* ----------------------------------------------------------------
   Mobile — drawer (full-screen modal)
   ---------------------------------------------------------------- */
.ytl-mobile-drawer {
  position: fixed;
  top: 63px;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow-y: auto;
  z-index: 10;
}

.ytl-mobile-meta {
  display: flex;
  align-items: center;
  padding: 10px 15px;
}

.ytl-mobile-meta .ytl-lang-switcher {
  margin-right: 30px;
}

.ytl-mobile-meta .ytl-lang-switcher a.ytl-lang-active {
  font-family: YettelBold, Arial, sans-serif;
}

.ytl-mobile-meta .ytl-lang-switcher a {
  padding: 0 0 0 0;
}

.ytl-mobile-meta .ytl-lang-switcher a:first-of-type {
  border-right: 1px solid #ddd;
  padding-right: 10px;
  margin-right: 10px;
}

.ytl-mobile-meta a {
  text-decoration: none;
}

.ytl-mobile-meta .ytl-contact-link {
  font-size: 14px;
}

.ytl-contact-link {
  font-size: 16px;
  color: #002340;
  text-decoration: underline;
  text-decoration-color: #002340;
  cursor: pointer;
}

.ytl-contact-link:hover {
  color: #002340;
}

/* Mobile — nav list */
.ytl-mobile-nav-list {
  padding: 0 0 20px;
}

/* Mobile — section header (first-level item) */
.ytl-mobile-section-header {
  display: flex;
  align-items: center;
  padding: 15px;
  font-size: 16px;
  color: #8293a1;
  border-bottom: none;
  text-decoration: none;
}

.ytl-mobile-section-header.ytl-active {
  color: #002340;
  border-bottom: 1px solid #f5f5f5;
}

.ytl-mobile-section-header:hover {
  color: #002340;
}

/* Mobile — second-level items */
.ytl-mobile-l2-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  font-size: 20px;
  color: #002340;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
}

.ytl-mobile-l2-item-container {
  margin-bottom: 30px;
}

.ytl-mobile-l2-item--has-children {
  cursor: pointer;
}

.ytl-mobile-l2-item:hover {
  color: #002340;
}

/* Mobile — third-level full-screen panel */
.ytl-mobile-l3-panel {
  position: fixed;
  top: 63px;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow-y: auto;
  z-index: 20;
}

/* Mobile — third-level back button */
.ytl-mobile-l3-back {
  margin: 16px 20px;
}

.ytl-back-link {
  display: inline-flex;
  align-items: center;
  color: #002340;
  text-decoration: underline;
  cursor: pointer;
}

.ytl-back-text {
  font-size: 16px;
  padding-left: 8px;
  font-family: "YettelLight", Arial, sans-serif;
}

/* Mobile — third-level items */
.ytl-mobile-l3-item {
  display: block;
  margin: 0 20px;
  padding: 15px;
  font-size: 20px;
  border-bottom: 1px solid #f5f5f5;
  color: #002340;
  text-decoration: none;
}

.ytl-mobile-l3-item:hover {
  color: #002340;
  text-decoration: underline;
}

/* ----------------------------------------------------------------
   Shadow border (flyout row shadow)
   ---------------------------------------------------------------- */
.row.shadow-border {
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
}
