.merchant-register-page .register-topbar,
.merchant-register-page .register-form-shell {
    max-width: 1180px;
}

.merchant-register-page .register-form-shell {
    margin-top: 8px;
}

.merchant-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0 0 28px;
    padding: 0 40px;
}

.merchant-step {
    position: relative;
    text-align: center;
}

.merchant-step:not(:last-child)::after {
    border-top: 1px dashed #cbcce0;
    content: "";
    left: calc(50% + 24px);
    position: absolute;
    right: calc(-50% + 24px);
    top: 16px;
}

.merchant-step__button {
    background: transparent;
    border: 0;
    color: #6a6b87;
    cursor: default;
    padding: 0;
    position: relative;
    z-index: 2;
}

.merchant-step.is-available .merchant-step__button {
    cursor: pointer;
}

.merchant-step__number {
    align-items: center;
    background: #fff;
    border: 1px solid #d4d5e4;
    border-radius: 50%;
    color: #252362;
    display: flex;
    font-family: Gilroy-Semibold, sans-serif;
    height: 34px;
    justify-content: center;
    margin: 0 auto 8px;
    width: 34px;
}

.merchant-step__label {
    display: block;
    font-family: Gilroy-Medium, sans-serif;
    font-size: 12px;
}

.merchant-step.is-current .merchant-step__number {
    background: #635bfe;
    border-color: #635bfe;
    box-shadow: 0 6px 15px rgba(99, 91, 254, .25);
    color: #fff;
}

.merchant-step.is-current .merchant-step__label {
    color: #252362;
    font-family: Gilroy-Semibold, sans-serif;
}

.merchant-step.is-complete .merchant-step__number {
    background: #15935a;
    border-color: #15935a;
    color: transparent;
    position: relative;
}

.merchant-step.is-complete .merchant-step__number::after {
    color: #fff;
    content: "✓";
    left: 0;
    position: absolute;
    right: 0;
}

.merchant-panel[hidden] {
    display: none !important;
}

.merchant-panel__heading {
    margin-bottom: 22px;
}

.merchant-panel__heading h1 {
    color: #252362;
    font-family: Gilroy-Semibold, sans-serif;
    font-size: 25px;
    line-height: 1.2;
    margin: 0 0 5px;
}

.merchant-panel__heading p {
    color: #6a6b87;
    font-size: 14px;
    margin: 0;
}

.merchant-section-heading {
    align-items: center;
    border: 0;
    display: flex;
    gap: 9px;
    margin: 0 0 18px;
    padding: 0;
}

.merchant-section-heading--owner {
    border-top: 1px solid #ececf4;
    margin-top: 3px;
    padding-top: 20px;
}

.merchant-section-heading h2 {
    color: #252362;
    font-family: Gilroy-Semibold, sans-serif;
    font-size: 17px;
    line-height: 22px;
    margin: 0;
}

.merchant-section-icon,
.merchant-field-icon {
    color: #635bfe;
    display: inline-flex;
}

.merchant-section-icon svg,
.merchant-field-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.merchant-section-icon svg {
    height: 21px;
    width: 21px;
}

.merchant-field-icon {
    align-items: center;
    height: 53px;
    justify-content: center;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 48px;
    z-index: 4;
}

.merchant-field-icon svg {
    height: 18px;
    width: 18px;
}

.merchant-register-page .register-control .input-form-control {
    padding-left: 16px !important;
}

.merchant-register-page .merchant-control--with-icon .input-form-control {
    padding-left: 48px !important;
}

.merchant-register-page .register-control--select .select2-selection__rendered {
    padding-left: 16px;
}

.merchant-register-page .register-control--select.merchant-control--with-icon .select2-selection__rendered {
    padding-left: 48px;
}

.merchant-register-page .register-page .form-group,
.merchant-register-page .form-group.register-field {
    margin-bottom: 17px !important;
}

.merchant-register-page .register-phone-icon {
    font-size: 17px;
}

.merchant-optional {
    color: #9998a9;
    font-family: Gilroy-Regular, sans-serif;
    font-size: 12px;
}

.merchant-actions {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: 12px;
}

.merchant-button {
    align-items: center;
    border-radius: 7px;
    display: inline-flex;
    font-family: Gilroy-Semibold, sans-serif;
    font-size: 14px;
    gap: 10px;
    height: 48px;
    justify-content: center;
    min-width: 112px;
    padding: 0 22px;
    text-decoration: none;
}

.merchant-button--secondary,
.merchant-button--secondary:hover {
    background: #fff;
    border: 1px solid #635bfe;
    color: #635bfe;
}

.merchant-button--primary,
.merchant-button--success {
    border: 0;
    color: #fff;
    margin-left: auto;
    min-width: 235px;
}

.merchant-button--primary {
    background: linear-gradient(90deg, #5549fb, #635bfe);
}

.merchant-button--success {
    background: linear-gradient(90deg, #0d8b4e, #18a660);
}

.merchant-button:disabled {
    cursor: not-allowed;
    opacity: .7;
}

.merchant-review-section__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.merchant-review-heading {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
}

.merchant-review-section__header .merchant-section-heading {
    margin-bottom: 13px;
}

.merchant-review-edit {
    align-items: center;
    background: transparent;
    border: 0;
    color: #635bfe;
    display: inline-flex;
    font-family: Gilroy-Medium, sans-serif;
    font-size: 13px;
    gap: 5px;
    margin-bottom: 13px;
}

.merchant-review-heading .merchant-review-edit {
    flex: 0 0 auto;
    margin: 5px 0 0 20px;
}

.merchant-review-edit svg {
    fill: none;
    height: 15px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 15px;
}

.merchant-review-list {
    margin: 0;
}

.merchant-review-list > div {
    display: grid;
    gap: 18px;
    grid-template-columns: 145px minmax(0, 1fr);
    margin-bottom: 7px;
}

.merchant-review-section--owner {
    border-top: 1px solid #ececf4;
    margin-top: 18px;
    padding-top: 20px;
}

.merchant-review-list dt,
.merchant-review-list dd {
    font-size: 13px;
    line-height: 19px;
    margin: 0;
    overflow-wrap: anywhere;
}

.merchant-review-list dt {
    color: #635bfe;
    font-family: Gilroy-Semibold, sans-serif;
}

.merchant-review-list dd {
    color: #252362;
    font-family: Gilroy-Medium, sans-serif;
    white-space: pre-line;
}

.merchant-register-page .register-consent {
    margin: 18px 0 4px;
}

.merchant-consent-error {
    margin-bottom: 10px;
}

.merchant-field-invalid .input-form-control,
.merchant-field-invalid .select2-selection,
.merchant-field-invalid .iti .form-control {
    border-color: #d9204c !important;
}

body.dark .merchant-panel__heading h1,
body.dark .merchant-section-heading h2,
body.dark .merchant-review-list dd,
body.dark .merchant-step.is-current .merchant-step__label {
    color: #e8e7ea;
}

body.dark .merchant-section-heading {
    border-color: #3f405b;
}

body.dark .merchant-review-section--owner {
    border-color: #3f405b;
}

body.dark .merchant-step__number {
    background: #2e2f44;
    border-color: #54556c;
    color: #e8e7ea;
}

@media (max-width: 1199px) {
    .merchant-steps { padding: 0; }
}

@media (max-width: 767px) {
    .merchant-steps { margin-top: 18px; }
    .merchant-step__label { font-size: 10px; }
    .merchant-step:not(:last-child)::after { left: calc(50% + 20px); right: calc(-50% + 20px); }
    .merchant-actions { align-items: stretch; flex-direction: column-reverse; }
    .merchant-button { width: 100%; }
    .merchant-button--primary, .merchant-button--success { margin-left: 0; }
}

@media (max-width: 480px) {
    .merchant-step__number { height: 30px; width: 30px; }
    .merchant-step:not(:last-child)::after { top: 15px; }
    .merchant-review-list > div { grid-template-columns: 1fr; gap: 2px; margin-bottom: 10px; }
}
