/* 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 .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;
}

.header-title {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-size: 17px;
    color: #454545;
    font-weight: bold;
}

.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-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 .btn-momo-logo {
    background-size: cover;
}
/*  上線前路徑要改為正式路徑 */
.main-header .horizontal-logo {
    width: 110px;
    height: 17px;
    display: inline-block;
    background-size: cover;
    background-image: url(//m.momoshop.com.tw/ecm/img/cmm/mobile/head/logo_pink.svg);
}

.btn-options {
    background-image: url(//m.momoshop.com.tw/ecm/img/cmm/mobile/head/icon_options_gray_24.svg);
}

.btn-momo-logo {
    background-image: url(//m.momoshop.com.tw/ecm/img/cmm/mobile/head/logo_square_32.svg);
}

.btn-back {
    background-image: url(//image.momoshop.com.tw/ecm/img/cmm/mobile/mainWhite/headerArrowLeft.svg?t=20220225003);
}

.btn-history {
    background-image: url(//m.momoshop.com.tw/ecm/img/cmm/mobile/head/icon_history_gray_24.svg);
}

.btn-search {
    background-image: url(//m.momoshop.com.tw/ecm/img/cmm/mobile/head/icon_search_gray_24.svg);
}

.form-label-search {
    position: relative;
    flex: auto;
    box-sizing: border-box;
    padding: 4px 0;
}

.form-input-search {
    width: 100%;
    height: 36px;
    color: #454545;
    box-sizing: border-box;
    border-radius: 30px;
    padding: 5px 30px 5px 10px;
    border: 0;
    outline: none;
    caret-color: #027BFF;
    font-size: 15px;
}


.form-input-search::placeholder {
    color: #888888;
    font-size: 15px;
}

.icon-delete {
    position: absolute;
    right: 8px;
    top: 12px;
    display: inline-block;
    box-sizing: border-box;
    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;
}

.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(//m.momoshop.com.tw/ecm/img/cmm/mobile/head/icon_options_white_24.svg);
}

.main-header.dark-mode .btn-momo-logo {
    background-image: url(//m.momoshop.com.tw/ecm/img/cmm/mobile/head/logo_square_white_32.svg);
}

.main-header.dark-mode .btn-back {
    background-image: url(//m.momoshop.com.tw/ecm/img/cmm/mobile/head/headerArrowLeftWhite.svg);
}

.main-header.dark-mode .btn-history {
    background-image: url(//m.momoshop.com.tw/ecm/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(//m.momoshop.com.tw/ecm/img/cmm/mobile/head/icon_search_grayb3_24.svg);
}

.main-header.dark-mode .icon-delete {
    background-image: url(//m.momoshop.com.tw/ecm/img/cmm/mobile/head/delIconDark.svg);
}

.main-header.dark-mode .form-input-search::placeholder {
    color: #b3b3b3;
}

/*  Main Header Style (Pink Mode) */
.main-header.pink-mode {
    background-color: #d62872;
}

.main-header.pink-mode .btn-back {
    background-image: url(//m.momoshop.com.tw/ecm/img/cmm/mobile/head/headerArrowLeftWhite.svg);
}

.main-header.pink-mode .btn-history {
    background-image: url(//m.momoshop.com.tw/ecm/img/cmm/mobile/head/icon_history_white_24.svg);
}

.main-header.pink-mode .btn-search {
    background-image: url(//m.momoshop.com.tw/ecm/img/cmm/mobile/head/icon_search_white_24.svg);
}

.main-header.pink-mode .btn-options {
    background-image: url(//m.momoshop.com.tw/ecm/img/cmm/mobile/head/icon_options_white_24.svg);
}

.main-header.pink-mode .horizontal-logo {
    background-image: url(//m.momoshop.com.tw/ecm/img/cmm/mobile/head/logo_white.svg);
}

.main-header.pink-mode .header-title {
    color: #ffffff;
}

.main-header.pink-mode .header-btn.btn-edit {
    color: #ffffff;
}