#ms.master-setting {
    margin-bottom: 32px;
    clear: both;
    max-width: 100%;
}

/* --- Header --- */
#ms .master-setting-header {
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-bottom: 12px;
    max-width: 100%;
    overflow: visible;
}

#ms .master-setting-header__main {
    flex: 0 0 auto;
    min-width: 200px;
}

#ms .master-setting-header__title {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.3;
    color: #333;
}

#ms .master-setting-header__progress {
    margin-top: 0;
    font-size: 13px;
    color: #808080;
}

#ms .master-setting-header__hide {
    flex: 0 0 auto;
}

#ms .master-setting-header__hide-btn,
#ms a.master-setting-header__hide-btn {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #f5f5f5;
    color: #555;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
}

#ms .master-setting-header__hide-btn:hover,
#ms a.master-setting-header__hide-btn:hover {
    background: #ebebeb;
    color: #333;
    text-decoration: none;
}

/* --- Carousel --- */
#ms .master-setting-carousel {
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow: hidden;
    padding-right: 0;
    padding-left: 0;
}

#ms .master-setting-cards {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#ms .master-setting-cards::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

#ms .master-setting-carousel__prev,
#ms .master-setting-carousel__next {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #666;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

#ms .master-setting-carousel__prev {
    left: 0;
}

#ms .master-setting-carousel__next {
    right: 0;
}

#ms .master-setting-carousel__prev:hover,
#ms .master-setting-carousel__next:hover {
    border-color: #bbb;
    background: #f8f8f8;
    color: #333;
}

#ms .master-setting-carousel__prev:disabled,
#ms .master-setting-carousel__next:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
    display: none;
}

@media (max-width: 979px) {
    #ms .master-setting-header {
        flex-direction: column;
        align-items: flex-start;
    }
}



.master-setting-step-list-wrap {
    flex: 1 1 auto;
    margin-left: auto;
    max-width: 100%;
    overflow: visible;
}

.master-setting-step-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
}

.master-setting-step-list__item {
    display: block;
    position: relative;
    box-sizing: border-box;
    width: 20px;
    min-width: 20px;
    max-width: 20px;
    height: 20px;
    flex: 0 0 20px;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    border-radius: 2px;
    border: 1px solid #EED3D7;
    color: #B94A48;
    background-color: #fff;
    cursor: pointer;
    overflow: visible;
    transition: border-color ease .3s, color ease .3s, background-color ease .3s;
}

.master-setting-step-list__hint {
    display: none !important;
}

.master-setting-step-hint {
    position: fixed;
    z-index: 10000;
    display: none;
    box-sizing: border-box;
    max-width: min(300px, calc(100vw - 24px));
    padding: 8px 12px;
    border-radius: 3px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.master-setting-step-list__item:hover,
.master-setting-step-list__item.active {
    border-color: #B94A48;
    color: #fff;
    background-color: #B94A48;
}
.master-setting-step-list__item.done {
    border-color: #D6E9C6;
    color: #468847;
}
.master-setting-step-list__item.done.active,
.master-setting-step-list__item.done:hover {
    border-color: #468847;
    color: #fff;
    background-color: #468847;
}

.master-setting-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: 100%;
    max-width: 480px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 2px;
    background-color: #fff;
    box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.27);
    -webkit-box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.27);
}

.master-setting-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    height: 100%;
    width: 5px;
    background-color: #B94A48;
}

.master-setting-card.done .master-setting-card__button._success {
    display: none;
}

.master-setting-card.done .master-setting-card__checked {
    display: flex;
}

.master-setting-card.done:before {
    background-color: #468847;
}
.master-setting-card__title {
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    color: #333333;
}
.master-setting-card__description {
    margin-top: 25px;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #808080;
}
.master-setting-card__buttons {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}
.master-setting-card__buttons-box {
    display: flex;
    align-items: center;
    gap: 5px;
}
.master-setting-card__button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    height: 30px;
    border-width: 1px;
    border-style: solid;
    text-decoration: none !important;
    cursor: pointer;
    transition: border-color ease .3s, color ease .3s, background-color ease .3s;
}

.master-setting-card__button._success {
    border-color: #468847;
    color: #468847;
    background-color: #fff;
}

.master-setting-card__button._success:hover {
    border-color: #00843E;
    color: #fff;
    background-color: #00843E;
}

.master-setting-card__button._default {
    border-color: #F4F4F4;
    color: #333333;
    background-color: #F4F4F4;
}

.master-setting-card__button._default:hover {
    border-color: #EAEAEA;
    color: #333333;
    background-color: #EAEAEA;
}

.master-setting-card__button._primary {
    border-color: #006699;
    color: #fff;
    background-color: #006699;
}

.master-setting-card__button._primary:hover {
    border-color: #005599;
    color: #fff;
    background-color: #005599;
}
.master-setting-card__checked {
    display: none;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    border-radius: 30px;
    padding: 0px 10px;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    height: 30px;
    background-color: #DFF0D8;
    color: #468847;
    text-transform: capitalize;
}