/* .firtsline: Rakuten-style container, now matching .css-b9afjt from Rakuten.com */


/* Centering utility similar to .css-b9afjt */
.css-b9afjt {
  margin-left: auto;
  margin-right: auto;
  max-width: 1170px;
  height: 64px;
}

/* Box-sizing reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Reset margin and padding for all elements */
* {
  margin: 0;
  padding: 0;
} 

.css-d8mz0a {
  box-sizing: border-box !important;
  color: rgb(115, 115, 115) !important;
  display: block !important;
  font-family: "Rakuten Sans UI", system-ui, Arial, Roboto, sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  height: 24px !important;
  line-height: 24px !important;
  margin-bottom: 0px !important;
  margin-left: 16px !important;
  margin-right: 0px !important;
  margin-top: 0px !important;
  padding: 0 !important;
  position: relative !important;
  top: 0px !important;
  transform: none !important;
  width: auto !important;
  min-width: 350px;

} 

.firtsline {
  width: 100vw !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  height: 64px !important;
  background: #fff !important;
  box-shadow: 0px 4px 8px 0px rgba(10, 22, 70, 0.15) !important;
  z-index: 999 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

.firtsline-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 310px;
    padding-right: 20px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.firtsline-innerh_right {
    display: flex;
    align-items: center;
    /* Removed margin-left: auto; and width */
}


@media (max-width: 1200px) {
  .firtsline {
    max-width: 100vw !important;
    padding: 0 8px !important;
  }
  .firtsline-inner {
    margin-left: 0;
    padding: 0 16px;
  }
  .firtsline-innerh_right {
    margin-right: 16px;
  }
}

@media (max-width: 768px) {
  .firtsline {
    min-height: 48px !important;
    height: auto !important;
    padding: 0 8px !important;
    max-width: 100vw !important;
    align-items: center !important;
  }
  .firtsline-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-left: 0;
    padding: 8px 0;
  }
  .logo img,
  .actpict {
    width: 120px !important;
    height: auto !important;
    max-width: 100%;
  }
  .css-d8mz0a {
    font-size: 1rem !important;
    min-width: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .firtsline-innerh_right {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    justify-content: flex-end;
  }
  .custom-navbar-btn {
    font-size: 0.95rem !important;
    padding: 0.3rem 0.7rem !important;
    margin: 0 2px !important;
  }
  .custom-navbar-lang img {
    width: 28px;
    height: 28px;
  }
  .css-d8mz0a {
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: none !important;
  }
}

@media (max-width: 600px) {
  .firtsline {
    min-height: 40px !important;
    height: auto !important;
    padding: 0 4px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .firtsline-inner {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0.5rem !important;
  }
  .logo {
    margin: 0 !important;
    padding: 0 !important;
  }
  .actpict {
    width: 90px !important;
    height: auto !important;
  }
  .firtsline-innerh_right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .custom-navbar-btn {
    font-size: 0.95rem !important;
    padding: 0.2rem 0.7rem !important;
    margin: 0 2px !important;
    height: 32px !important;
    min-width: 60px !important;
  }
  .custom-navbar-lang {
    margin-left: 4px !important;
    min-height: 44px !important;
    min-width: 44px !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}
}

/* .logo and .logo .pro classes removed */

.custom-navbar-lang img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 0 8px;
  vertical-align: middle;
  border: 1.5px solid #e5e5e5;
  box-shadow: 0 1px 2px rgba(10,22,70,0.10);
} 

/* RTL Support for Top Row - Conservative approach */
[dir="rtl"] .firtsline-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .firtsline-innerh_right {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .custom-navbar-btn {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .custom-navbar-btn:last-child {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .custom-navbar-lang {
    margin-left: 0;
    margin-right: 8px;
}

/* Mobile RTL - Match English layout exactly */
@media (max-width: 768px) {
    [dir="rtl"] .firtsline-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        margin-left: 0 !important;
        padding: 8px 0 !important;
    }
    
    [dir="rtl"] .logo {
        margin: 0 auto !important;
    }
    
    [dir="rtl"] .firtsline-innerh_right {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
    
    [dir="rtl"] .custom-navbar-btn,
    [dir="rtl"] .custom-navbar-lang {
        margin: 0 2px !important;
    }
}

@media (max-width: 600px) {
    [dir="rtl"] .firtsline-inner {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0.5rem !important;
    }
    
    [dir="rtl"] .logo {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    [dir="rtl"] .firtsline-innerh_right {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 4px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    [dir="rtl"] .custom-navbar-btn {
        font-size: 0.95rem !important;
        padding: 0.2rem 0.7rem !important;
        margin: 0 2px !important;
        height: 32px !important;
        min-width: 60px !important;
    }
    
    [dir="rtl"] .custom-navbar-lang {
        margin-left: 4px !important;
        min-height: 44px !important;
        min-width: 44px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    /* Add padding-top for Arabic mobile */
    [dir="rtl"] .css-1lyn6qc {
        padding-top: 40px !important;
    }
}

 