/* Main Header Style */
body {
    padding: 0;
    margin: 0;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 900;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0;
  margin: 0;
  background-color: #fafafa;
  font-family: var(--primary-font-family);
}

.sub-header-sticky {
    position: sticky;
    z-index: 900;
    top: 44px;
    left: 0;  
    display: block;
    box-sizing: border-box;
    width: 100%;    
}

.main-header-wrapper {
    padding: 0 6px;
    display: flex;
    justify-content: space-between ;
    align-items: center;
    box-sizing: border-box;
    max-width: 1220px;
    min-height: 44px;
    margin: auto;
}

.main-header .btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-header-wrapper.basic-layout .btn-group {
    flex: 0 0 74px;
}

.main-header .btn-group.right-btn {
    justify-content: flex-end;
    gap: 0;
}

.main-header-wrapper.search-layout .brand-logo {
    margin-right: 4px;
}

.main-header-wrapper.search-layout.banner-ver .brand-logo {
    margin-right: 0;
}

.main-header-wrapper.search-layout .left-btn {
    padding-right: 6px;
}

.main-header .title-group,
.main-header .input-group {
    display: flex;
    flex: auto;
    align-items: center;
    flex: 1;
}

.main-header .input-group {
    padding-right: 4px;
}

.main-header .title-group {
    justify-content: center;
    width: 70%;
}

.header-title {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-size: 17px;
    color: #454545;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-header .brand-logo {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.main-header .header-btn {
    display: inline-block;
    flex: none;
    box-sizing: border-box;
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;    
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center center;
}

.main-header .header-btn.btn-momo-logo {
  width: 27px;
  height: 27px;
}

.main-header .header-btn.btn-edit {
    color: #454545;
    height: 34px;
    box-sizing: border-box;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    line-height: 34px;
    width: auto;
    font-weight: bold;
}

.main-header .header-btn.btn-remark {
  width: auto;
  height: auto;
  color: var(--momo-neutral-750);
  font: var(--momo-ec_base) var(--main-font);
  margin-right: 7px;
}

.main-header.pink-mode .header-btn.btn-spec {
    font-weight: initial;
}

.main-header .btn-momo-logo {
    background-size: cover;
}
/*  上線前路徑要改為正式路徑 */
.main-header .horizontal-logo {
    width: 110px;
    height: 17px;
    display: inline-block;
    background-size: cover;
    background-image: url(../../../img/cmm/mobile/head/logo_pink.svg?t=20240925001);
}

.btn-options {
    background-image: url(../../../img/cmm/mobile/head/icon_options_gray_24.svg);
}

.btn-momo-logo {
    background-image: url(../../../img/cmm/mobile/head/logo_square_32.svg?t=20240925001);
}

.btn-back {
    background-image: url(../../../img/cmm/mobile/mainWhite/headerArrowLeft.svg);
}

.btn-history {
    background-image: url(../../../img/cmm/mobile/head/icon_history_gray_24.svg);
}

.btn-search {
    background-image: url(../../../img/cmm/mobile/head/icon_search_gray_24.svg);
}

.btn-ask {
  background-image: url(../../../img/cmm/mobile/head/icon_ask_gray_24.svg);
  position: relative;
}

.btn-ask .count-circle {
  position: absolute;
  right: -2px;
  top: 0;
  text-align: left;
  height: 16px;
}

.btn-ask .count-text {
  display: inline-block;
  min-width: 8px;
  height: 14px;
  background-color: #fafafa;
  border-radius: 10px;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  color: var(--momo-red);
  border: 1px solid var(--momo-red);
  padding: 0 3px;
  vertical-align: top;
}

.form-label-search {
    display: flex;
    position: relative;
    flex: auto;
    box-sizing: border-box;
    border-radius: 30px;
    border: 1px solid #B3B3B3;
    background-color: #ffffff;
    align-items: center;
    gap: 4px;
}

.form-input-search {
    flex: 1;
    height: 36px;
    color: #454545;
    box-sizing: border-box;
    padding-left: 5px;
    outline: none;
    caret-color: #027BFF;
    font-size: 15px;
    border: 0;
    border-radius: 30px;
    width: 100%;
}


.form-input-search::placeholder {
    color: #999999;
    font-size: 15px;
}

.icon-delete {
    display: inline-block;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    background-image: url(../../../img/cmm/mobile/head/delIcon.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    margin-right: 8px;
}

.icon-delete.hide-delete {
    display: none;
}

/*  Main Header Style (Dark Mode) */
.main-header.dark-mode {
    background-color: #7b7b7b;
}

.main-header.dark-mode .btn-options {
    background-image: url(../../../img/cmm/mobile/head/icon_options_white_24.svg);
}

.main-header.dark-mode .btn-momo-logo {
    background-image: url(../../../img/cmm/mobile/head/logo_square_white_32.svg?t=20240925001);
}

.main-header.dark-mode .btn-back {
    background-image: url(../../../img/cmm/mobile/head/headerArrowLeftWhite.svg);
}

.main-header.dark-mode .btn-history {
    background-image: url(../../../img/cmm/mobile/head/icon_history_white_24.svg);
}

.main-header.dark-mode .form-input-search {
    color: #ffffff;
    background-color: #666;
}

.main-header.dark-mode .icon-search {
    background-image: url(../../../img/cmm/mobile/head/icon_search_grayb3_24.svg);
}

.main-header.dark-mode .icon-delete {
    background-image: url(../../../img/cmm/mobile/head/delIconDark.svg);
}

.main-header.dark-mode .form-input-search::placeholder {
    color: #b3b3b3;
}

/*  Main Header Style (deep blue Mode) */
.main-header.deep-dark-mode {
    background-color: #5E6999;
}

/*  Main Header Style (Pink Mode) */
.main-header.pink-mode {
    background-color: #d62872;
}

.main-header.pink-mode .btn-back {
    background-image: url(../../../img/cmm/mobile/head/headerArrowLeftWhite.svg);
}

.main-header.pink-mode .btn-history {
    background-image: url(../../../img/cmm/mobile/head/icon_history_white_24.svg);
}

.main-header.pink-mode .btn-search {
    background-image: url(../../../img/cmm/mobile/head/icon_search_white_24.svg);
}

.main-header.pink-mode .btn-options {
    background-image: url(../../../img/cmm/mobile/head/icon_options_white_24.svg);
}

.main-header.pink-mode .horizontal-logo {
    background-image: url(../../../img/cmm/mobile/head/logo_white.svg?t=20240925001);
}

.main-header.pink-mode .header-title {
    color: #ffffff;
}

.main-header.pink-mode .header-btn.btn-edit {
    color: #ffffff;
}

/* 左右按鈕只有一個, 中間區域需擴大範圍時使用*/
.main-header-wrapper.one-button-layout .btn-group { 
    flex: 0 0 34px;
}

.main-header-wrapper.one-button-layout .title-group { 
    width: calc(100% - 80px);
}

.main-header-wrapper.one-button-layout .header-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Header增加Banner 新增樣式 */
.main-header-wrapper.banner-ver .btn-group {
    gap: 4px;
}

.main-header-wrapper.banner-ver .left-btn {
    padding-right: 10px;
}

.header-banner {
    width: 54px;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.pr-0 {
    padding-right: 0!important;
}

/* 20240819搜尋輸入頁加新增搜尋按鈕  */
.search-input-btn .icon-delete{
    width: 20px;
    height: 20px;
    background-image: url(//m.momoshop.com.tw/ecm/img/cmm/mobile/head/delIcon.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.search-input-btn .icon-search {
    width: 40px;
    height: 28px;
    background: 
        url(//image.momoshop.com.tw/ecm/img/cmm/mobile/head/icon_search_white_24.svg) center center no-repeat,
        linear-gradient(180deg, rgba(223,83,144,1) 0%, rgba(214,40,114,1) 100%);
    border-radius: 14px;
    background-size: 20px 20px , cover;
    margin-right: 4px;
}

/* 有標題的 Header 增加 Banner + Logo 新增樣式 */
.main-header .logo-banner-layout .btn-group.left-btn {
    gap: 4px;
}

.main-header-wrapper.logo-banner-layout .btn-group {
    width: 144px;
}

/* 20250124 訂單查詢頁，新增貨態頁籤、日期區間查詢和切換區間按鈕 */
.btn-search-orders {
    background-image: url(icon-magnify.svg);
}
.btn-remarks {
    background-image: url(icon-information-outline.svg);
}

/* 新增Logo+逛逛樣式 */
.horizontal-text {font-size: 19px;color: #EA27C2;font-weight: bold;line-height: 27px;}