/* Marketplace service registration wizard and admin screens. Extends registration.css; nothing in that file is changed. */

/* **** Stepper **** */
.msr-stepper .reg-stepper-item{padding: 8px 10px;}
.msr-stepper .reg-stepper-item .step-icon{font-weight: 600;font-size: 13px;line-height: 1;color: var(--grey500);}
.msr-stepper .reg-stepper-item.active .step-icon{background: var(--brand600);color: #FFFFFF;}
.msr-stepper .reg-stepper-item.completed .step-icon{background: var(--brand100);color: var(--brand700);}
.msr-stepper .reg-stepper-item.active{color: var(--brand700);}
.msr-stepper .reg-stepper-item.completed{color: var(--grey700);}
.msr-stepper .reg-stepper-connector{width: 24px;}
.msr-topbar-side{width: 120px;text-align: right;}
.msr-topbar-side a{font-weight: 600;font-size: 14px;line-height: 20px;color: var(--brand700);text-decoration: none;}
.msr-topbar-side a:hover{color: var(--brand900);}
.msr-progress{height: 3px;background: var(--grey200);}
.msr-progress-bar{height: 3px;width: 16.6%;background: var(--brand600);transition: width .3s ease;}
.msr-step-count{margin: 0 0 4px !important;font-weight: 600;font-size: 12px !important;line-height: 18px !important;color: var(--brand700) !important;text-transform: uppercase;letter-spacing: 0.04em;}

/* **** Layout **** */
.msr-layout{display: grid;grid-template-columns: minmax(0, 660px) 340px;gap: 28px;width: 100%;max-width: 1028px;align-items: start;}
.msr-main{display: flex;flex-direction: column;gap: 28px;min-width: 0;}
.msr-main .reg-alert{width: 100%;max-width: 660px;}
.msr-aside{position: sticky;top: 84px;}
.msr-aside-hidden{visibility: hidden;}
.reg-card-header h2 .ms-brand{margin-right: 8px;vertical-align: middle;}
select.reg-input{appearance: auto;padding-right: 8px;}
.reg-input-field.msr-third{flex: 1;min-width: 0;}
.msr-optional{font-weight: 400;color: var(--grey500);}
.msr-hint{margin: -12px 0 0;font-size: 14px;line-height: 20px;color: var(--grey600);}
.msr-hint-success{color: var(--success700);font-weight: 500;}
.msr-disclaimer{margin: 20px 0 0;}

/* **** Selectable options **** */
.msr-option-list{display: flex;flex-direction: column;gap: 12px;}
.msr-option-grid{display: grid;grid-template-columns: repeat(2, minmax(0, 1fr));}
.msr-option{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    margin: 0;
    background: #FFFFFF;
    border: 1px solid var(--grey300);
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s ease;
}
.msr-option:hover{border-color: var(--brand300);}
.msr-option:has(input:checked){border-color: var(--brand600);background: var(--brand50);box-shadow: 0 0 0 1px var(--brand600);}
.msr-option input[type="radio"],.msr-option input[type="checkbox"]{width: 18px;height: 18px;margin: 3px 0 0;flex-shrink: 0;accent-color: var(--brand600);cursor: pointer;}
.msr-option-body{display: flex;flex-direction: column;gap: 2px;flex: 1;min-width: 0;}
.msr-option-title{font-weight: 600;font-size: 16px;line-height: 24px;color: var(--grey900);}
.msr-option-desc{font-weight: 400;font-size: 14px;line-height: 20px;color: var(--grey600);}
.msr-option-price{display: flex;flex-direction: column;align-items: flex-end;text-align: right;white-space: nowrap;}
.msr-price-current{font-weight: 600;font-size: 16px;line-height: 24px;color: var(--grey900);}
.msr-price-original{font-size: 14px;line-height: 20px;color: var(--grey500);text-decoration: line-through;}
.msr-price-sub{font-size: 12px;line-height: 18px;color: var(--grey600);white-space: normal;max-width: 150px;}
.msr-option-disabled{opacity: .6;cursor: not-allowed;background: var(--grey50);}
.msr-option-disabled:hover{border-color: var(--grey300);}
.msr-badge{display: inline-block;margin: 0 0 0 6px;padding: 2px 8px;border-radius: 16px;font-weight: 500;font-size: 12px;line-height: 18px;vertical-align: middle;white-space: nowrap;}
.msr-badge-brand{background: var(--brand50);color: var(--brand700);border: 1px solid var(--brand200);}
.msr-badge-success{background: var(--success50);color: var(--success700);border: 1px solid var(--success200);}
.msr-badge-muted{background: var(--grey100);color: var(--grey700);border: 1px solid var(--grey200);}
.msr-badge-warning{background: var(--warning50);color: var(--warning700);border: 1px solid var(--warning200);}
.msr-badge-error{background: var(--error50);color: var(--error700);border: 1px solid var(--error200);}
.msr-suboption{display: flex;flex-direction: column;gap: 20px;margin: 4px 0 8px;padding: 20px;background: var(--grey50);border: 1px solid var(--grey200);border-radius: 12px;}
.msr-suboption .msr-hint{margin: -8px 0 0;}
.msr-apob-address{display: flex;flex-direction: column;gap: 12px;padding: 16px 0 0;margin: 16px 0 0;border-top: 1px dashed var(--grey300);}
.msr-apob-title{margin: 0;font-weight: 600;font-size: 14px;line-height: 20px;color: var(--grey700);}

/* **** Order summary **** */
.msr-summary-content{display: flex;flex-direction: column;gap: 8px;}
.msr-summary-empty{margin: 0;font-size: 14px;line-height: 20px;color: var(--grey600);}
.msr-summary-error{color: var(--error700);}
.msr-summary-group{margin: 8px 0 0;font-weight: 600;font-size: 12px;line-height: 18px;color: var(--grey500);text-transform: uppercase;letter-spacing: 0.04em;}
.msr-summary-group:first-child{margin-top: 0;}
.msr-summary-line{display: flex;justify-content: space-between;gap: 16px;font-size: 14px;line-height: 20px;color: var(--grey700);}
.msr-summary-line span:last-child{white-space: nowrap;font-weight: 500;color: var(--grey900);text-align: right;}
.msr-summary-line small{display: block;font-size: 12px;font-weight: 400;color: var(--grey500);}
.msr-line-note{display: inline-block;padding: 0 6px;border-radius: 8px;background: var(--grey100);font-size: 12px;line-height: 18px;color: var(--grey700);}
.msr-summary-listings{margin: 8px 0 0;padding: 8px 12px;border-radius: 8px;background: var(--brand50);font-size: 14px;line-height: 20px;color: var(--brand700);}
.msr-summary-totals{display: flex;flex-direction: column;gap: 8px;margin: 12px 0 0;padding: 12px 0 0;border-top: 1px solid var(--grey200);}
.msr-summary-discount span,.msr-summary-discount span:last-child{color: var(--success700);}
.msr-summary-total{padding: 12px 0 0;border-top: 1px solid var(--grey200);font-size: 16px;line-height: 24px;}
.msr-summary-total span,.msr-summary-total span:last-child{font-weight: 700;color: var(--grey900);}
.msr-summary-content .msr-hint{margin: 4px 0 0;font-size: 12px;line-height: 18px;}
.msr-review{display: grid;grid-template-columns: 120px minmax(0, 1fr);gap: 8px 16px;margin: 0 0 24px;}
.msr-review dt{font-weight: 500;font-size: 14px;line-height: 20px;color: var(--grey600);}
.msr-review dd{margin: 0;font-size: 14px;line-height: 20px;color: var(--grey900);word-break: break-word;}
.msr-footer-total{margin-right: auto;font-weight: 600;font-size: 14px;line-height: 20px;color: var(--grey900);display: none;}
.reg-footer .reg-footer-link{margin-right: auto;}

/* **** Success page **** */
.msr-success-card{max-width: 720px;text-align: left;align-items: stretch;gap: 24px;}
.msr-success-card .text-stack{text-align: center;align-items: center;}
.msr-reference{text-align: center;padding: 16px;border-radius: 12px;background: var(--brand50);border: 1px solid var(--brand200);}
.msr-reference span{display: block;font-size: 14px;line-height: 20px;color: var(--brand700);}
.msr-reference strong{display: block;font-weight: 700;font-size: 24px;line-height: 32px;color: var(--brand900);letter-spacing: 0.02em;}
.msr-next-steps{margin: 0;padding: 0 0 0 20px;font-size: 14px;line-height: 22px;color: var(--grey700);}
.msr-success-card h3{margin: 0 0 8px;font-weight: 600;font-size: 16px;line-height: 24px;color: var(--grey900);}
.msr-success-card .btn-explore{align-self: center;text-decoration: none;}

/* **** Admin **** */
.msa-body{align-items: stretch;max-width: 1280px;width: 100%;margin: 0 auto;}
.msa-body .reg-card,.msa-body .reg-header,.msa-body .reg-alert{max-width: none;}
.msa-toolbar{display: flex;flex-wrap: wrap;gap: 12px;align-items: flex-end;}
.msa-toolbar .reg-input-field{flex: 1 1 180px;}
.msa-toolbar .reg-input-field.msa-search{flex: 2 1 260px;}
.msa-btn{display: inline-flex;align-items: center;justify-content: center;height: 44px;padding: 10px 16px;border-radius: 8px;border: 1px solid var(--brand600);background: var(--brand600);color: #FFFFFF;font-weight: 600;font-size: 14px;line-height: 20px;text-decoration: none;cursor: pointer;white-space: nowrap;}
.msa-btn:hover{background: var(--brand700);border-color: var(--brand700);color: #FFFFFF;}
.msa-btn-light{background: #FFFFFF;color: var(--grey700);border-color: var(--grey300);}
.msa-btn-light:hover{background: var(--grey50);color: var(--grey900);border-color: var(--grey300);}
.msa-table-wrap{overflow-x: auto;}
.msa-table{width: 100%;border-collapse: collapse;font-size: 14px;line-height: 20px;}
.msa-table th{padding: 12px 16px;background: var(--grey50);border-bottom: 1px solid var(--grey200);font-weight: 500;font-size: 12px;line-height: 18px;color: var(--grey600);text-align: left;white-space: nowrap;}
.msa-table td{padding: 14px 16px;border-bottom: 1px solid var(--grey200);color: var(--grey700);vertical-align: top;}
.msa-table tr:last-child td{border-bottom: none;}
.msa-table td.msa-num,.msa-table th.msa-num{text-align: right;white-space: nowrap;}
.msa-table a{font-weight: 600;color: var(--brand700);text-decoration: none;}
.msa-table small{display: block;color: var(--grey500);}
.msa-empty{padding: 40px 16px;text-align: center;color: var(--grey600);}
.msa-pager{display: flex;justify-content: space-between;align-items: center;gap: 12px;padding: 12px 16px;border-top: 1px solid var(--grey200);font-size: 14px;color: var(--grey600);}
.msa-grid{display: grid;grid-template-columns: minmax(0, 1fr) 380px;gap: 28px;align-items: start;}
.msa-stack{display: flex;flex-direction: column;gap: 28px;min-width: 0;}
.msa-history{margin: 0;padding: 0;list-style: none;display: flex;flex-direction: column;gap: 16px;}
.msa-history li{padding: 0 0 16px;border-bottom: 1px solid var(--grey200);font-size: 14px;line-height: 20px;color: var(--grey700);}
.msa-history li:last-child{padding: 0;border-bottom: none;}
.msa-history .msa-history-meta{display: block;font-size: 12px;line-height: 18px;color: var(--grey500);}
.msa-history .msa-history-remark{display: block;margin: 6px 0 0;padding: 8px 12px;border-radius: 8px;background: var(--grey50);white-space: pre-wrap;word-break: break-word;}
textarea.reg-input{height: auto !important;min-height: 96px;resize: vertical;}
.msa-totals{display: flex;flex-direction: column;gap: 8px;padding: 16px;border-top: 1px solid var(--grey200);}

@media (max-width: 1100px) {
    .msr-layout{grid-template-columns: minmax(0, 660px);justify-content: center;}
    .msr-aside{display: none;}
    .msr-footer-total{display: block;margin-right: 0;}
    .msr-stepper .msr-step-label{display: none;}
    .msr-stepper .reg-stepper-item.active .msr-step-label{display: inline;}
    .msa-grid{grid-template-columns: minmax(0, 1fr);}
}

@media (max-width: 768px) {
    .msr-topbar-side{width: auto;}
    .msr-option-grid{grid-template-columns: minmax(0, 1fr);}
    .msr-option{padding: 12px;}
    .msr-option-price{max-width: 45%;}
    .msr-hint{margin: -8px 0 0;}
    .msr-review{grid-template-columns: minmax(0, 1fr);gap: 2px;}
    .msr-review dd{margin: 0 0 8px;}
    .msr-success-card{padding: 24px 16px;}
    .reg-footer .reg-footer-link span{display: none;}
}

/* **** Account pages, payment and documents **** */
.msr-auth-body{align-items: center;}
.msr-auth-card{width: 100%;max-width: 440px;}
.msr-auth-card .reg-alert{max-width: none;margin: 0 0 20px;}
.msr-auth-card .msa-btn{width: 100%;}
.msr-auth-note{margin: 16px 0 0;font-size: 14px;line-height: 20px;color: var(--grey600);}
.msr-auth-note a{font-weight: 600;color: var(--brand700);text-decoration: none;}
.msr-pay-box{display: flex;flex-direction: column;align-items: center;gap: 12px;padding: 20px;border-radius: 12px;background: var(--grey50);border: 1px solid var(--grey200);text-align: center;}
.msr-pay-box p{margin: 0;font-size: 14px;line-height: 20px;color: var(--grey600);}
.msr-pay-error,.msr-pay-box p.msr-pay-error{margin: 12px 0 0;font-size: 14px;line-height: 20px;color: var(--error700);}
.msa-btn:disabled{opacity: .6;cursor: not-allowed;}
.msa-actions{display: flex;flex-wrap: wrap;gap: 12px;margin: 16px 0 0;}
.msa-card-header{display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 12px;}
.msa-card-footer{border-top: 1px solid var(--grey200);}
.msa-inline-form{display: flex;flex-wrap: wrap;align-items: center;gap: 8px;}
.msa-inline-form .msa-btn{height: 36px;padding: 6px 12px;}
.msa-inline-form input[type="file"],.msa-toolbar input[type="file"]{max-width: 100%;font-size: 14px;}
