/* =========================================
   Modern Pay & Dialog Wizard Styles
   ========================================= */

/* Content Titles in Dialogs */
.content-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    display: flex;
    align-items: center;
}

.content-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 24px;
    height: 3px;
    background-color: #006eff;
    border-radius: 3px;
}

/* Wizard Steps Container */
.wizard-steps-container {
    padding: 0 40px 30px;
    margin-bottom: 24px;
    border-bottom: 1px dashed #e5e7eb;
}

.wizard-step-content {
    animation: fadeIn 0.3s ease-in-out;
}

/* Modern Tables */
.el-dialog .el-table {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.el-dialog .el-table th {
    background-color: #f8fafc !important;
    color: #475569;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

.el-dialog .el-table td {
    border-bottom: 1px solid #f1f5f9;
}

.subtotal-text {
    font-weight: 700;
    color: #f97316;
}

.row-delete-btn {
    color: #f43f5e;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.row-delete-btn:hover {
    color: #e11d48;
    background-color: #fff1f2;
}

/* Template Selector Box */
.template-selector-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.template-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.template-hint {
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.template-hint i {
    color: #006eff;
}

.template-pagination-wrap {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #f1f5f9;
    display: flex;
    justify-content: flex-end;
}

/* Order Summary Card */
.order-summary-card {
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.summary-header {
    padding: 16px 20px;
    background: #f1f5f9;
    font-weight: 600;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
}

.summary-body {
    padding: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    min-height: 24px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row .s-label {
    color: #64748b;
}

.summary-row .s-value {
    color: #1e293b;
    font-weight: 500;
}

.summary-row .s-value strong {
    color: #006eff;
}

.summary-row .s-subtext {
    color: #94a3b8;
    font-size: 13px;
    margin-left: 4px;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-pointer:hover {
    color: #006eff !important;
}

.cursor-pointer:hover i {
    color: #006eff !important;
}

.summary-domain-list {
    margin-top: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 0;
    max-height: 150px;
    overflow-y: auto;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.summary-domain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    font-size: 13px;
}

.summary-domain-item:hover {
    background: #f8fafc;
}

.summary-domain-item .sd-name {
    color: #334155;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.summary-domain-item .sd-length {
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.summary-row.total-row {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #cbd5e1;
}

.summary-row.total-row .s-label {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.price-total {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #10b981 !important;
}

/* Payment List */
.payment-list-box {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.modern-payment-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.modern-payment-group .el-radio.is-bordered {
    margin: 0;
    height: 50px;
    padding: 0 20px 0 16px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    border-color: #e2e8f0;
    transition: all 0.3s;
}

.modern-payment-group .el-radio.is-bordered.is-checked {
    border-color: #006eff;
    background: #f0f6ff;
}

.modern-payment-group .el-radio__input.is-checked .el-radio__inner {
    border-color: #006eff;
    background: #006eff;
}

/* Dialog Footer Overrides */
.el-dialog__footer.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafcff;
    border-radius: 0 0 12px 12px;
}

.step-total-preview {
    font-size: 14px;
    color: #64748b;
}

.step-total-preview span {
    font-size: 20px;
    font-weight: 800;
    color: #10b981;
    margin-left: 6px;
}

.footer-right {
    display: flex;
    gap: 12px;
}

.el-dialog__body {
    padding: 20px 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.modern-wizard-dialog {
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden;
}

.modern-wizard-dialog .el-dialog__header {
    padding: 24px 24px 20px;
    background: #fff;
    border-bottom: none;
}

.modern-wizard-dialog .el-dialog__title {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
}

/* Custom Buttons */
.next-step-btn {
    background-color: #006eff !important;
    border-color: #006eff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 10px 28px !important;
}

.pay-submit-btn {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 10px 28px !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

.pay-submit-btn:hover {
    background-color: #059669 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3) !important;
}

/* Pay Result specific */
.pay-result-tag {
    font-size: 13px;
    padding: 0 12px;
    height: 28px;
    line-height: 26px;
    border-radius: 4px;
}

.pay-result-domain {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 500;
    color: #1e293b;
}

/* element-ui */
.table-expand {
    padding-left: 114px;
    font-size: 0;
}
.table-expand label {
    width: 90px;
    color: #99a9bf;
}
.table-expand .el-form-item {
    margin-right: 0;
    margin-bottom: 0;
    width: 50%;
}
.el-table th.el-table__cell>.cell{
    color: #757575;
    font-weight: 550;
}
.el-table th.el-table__cell.is-leaf{
    background: #f9fcff;
}
.el-table{
    border-radius: 8px;
}
.el-form-item__label{
    margin-right: 20px;
    font-weight: 500;
}
.el-form{
    padding: 0 60px;
}
.el-form-item__error{
    left: 37px;
}