/* Dashing Webtech Sequential Domain-First Configurator Styles */

/* Wizard Progress Bar */
.dw-wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    gap: 12px;
}

.dw-wizard-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dw-wizard-step-pill.is-active {
    background: #1756B0;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(23, 86, 176, 0.2);
}

.dw-wizard-step-pill.is-completed {
    background: #dcfce7;
    color: #15803d;
}

.dw-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    font-size: 11px;
    font-weight: 700;
}

.dw-wizard-step-pill.is-active .dw-step-number {
    background: rgba(255, 255, 255, 0.25);
}

.dw-wizard-step-line {
    width: 30px;
    height: 2px;
    background: #e2e8f0;
}

/* Headings */
.dw-step-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.dw-step-subheading {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
}

/* Domain Choice Cards */
.dw-domain-choice-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .dw-domain-choice-group {
        grid-template-columns: 1fr;
    }
}

.dw-radio-card {
    position: relative;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: all 0.2s ease;
}

.dw-radio-card input[type="radio"] {
    margin-top: 3px;
    accent-color: #1756B0;
}

.dw-radio-card.is-active {
    border-color: #1756B0;
    background: #eff6ff;
}

.dw-radio-content strong {
    display: block;
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 2px;
}

.dw-radio-content span {
    display: block;
    font-size: 12px;
    color: #64748b;
}

/* Domain Input Box */
.dw-domain-input-box {
    margin-top: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.dw-input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.dw-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s;
}

.dw-input:focus {
    border-color: #1756B0;
    box-shadow: 0 0 0 3px rgba(23, 86, 176, 0.15);
}

.dw-search-group {
    display: flex;
    gap: 8px;
}

.dw-btn-secondary {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: #FF6600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.dw-btn-secondary:hover {
    background: #e65c00;
}

.dw-domain-result-msg {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.dw-domain-result-msg.is-available {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.dw-domain-result-msg.is-unavailable {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Term Cards */
.dw-term-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 640px) {
    .dw-term-cards {
        grid-template-columns: 1fr;
    }
}

.dw-term-card {
    position: relative;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: #f8fafc;
    display: flex;
    flex-direction: column;
}

.dw-term-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dw-term-card:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.dw-term-card.is-selected {
    border-color: #1756B0;
    background: #eff6ff;
    box-shadow: 0 0 0 1px #1756B0;
}

.dw-term-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dw-term-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
}

.dw-term-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e2e8f0;
    color: #475569;
}

.dw-badge-popular {
    background: #ffedd5;
    color: #c2410c;
}

.dw-badge-best {
    background: #dcfce7;
    color: #15803d;
}

.dw-term-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1756B0;
    margin-bottom: 4px;
}

.dw-term-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.dw-term-setup-tag {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 11px;
    font-weight: 600;
}

/* Subscription Price Formatter Wrap */
.dw-sub-price-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.dw-sub-price-wrap .woocommerce-Price-amount {
    font-weight: 800;
    color: #0f172a;
}

.dw-sub-term-suffix {
    font-size: 0.85em;
    font-weight: 700;
    color: #1756B0;
    margin-left: 4px;
    background: rgba(23, 86, 176, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.dw-sub-price-breakdown {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.3;
}

.dw-sub-price-wrap.is-on-sale del {
    opacity: 0.6;
    font-size: 0.85em;
    margin-right: 6px;
}

/* ==========================================================================
   CUSTOMER ACCOUNT SUBSCRIPTIONS & DOMAIN PORTAL STYLES
   ========================================================================== */

.dw-account-subscriptions-portal {
    font-family: inherit;
    margin-top: 10px;
}

.dw-portal-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.dw-portal-page-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.dw-portal-page-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.dw-btn-portal-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    transition: all 0.2s ease;
}

.dw-btn-portal-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
    filter: brightness(1.05);
}

.dw-sub-summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.dw-sub-metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.dw-sub-metric-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dw-sub-icon-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.dw-sub-icon-blue {
    background: #eff6ff;
    color: #2563eb;
}

.dw-sub-icon-amber {
    background: #fffbeb;
    color: #d97706;
}

.dw-sub-metric-val {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.dw-sub-metric-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dw-sub-cards-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dw-sub-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.dw-sub-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.dw-sub-card.is-active-sub {
    border-left: 4px solid #10b981;
}

.dw-sub-card.is-processing-sub {
    border-left: 4px solid #0284c7;
}

.dw-sub-card.is-inactive-sub {
    border-left: 4px solid #94a3b8;
}

.dw-sub-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.dw-sub-badge-id {
    font-size: 11px;
    font-weight: 700;
    color: #6366f1;
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 6px;
}

.dw-sub-card-name {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.dw-sub-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.dw-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.dw-sub-status-pill.dw-status-active {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.dw-sub-status-pill.dw-status-active .dw-status-dot {
    background: #10b981;
}

.dw-sub-status-pill.dw-status-processing,
.dw-sub-status-pill.dw-status-pending {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}
.dw-sub-status-pill.dw-status-processing .dw-status-dot,
.dw-sub-status-pill.dw-status-pending .dw-status-dot {
    background: #0284c7;
}

.dw-sub-status-pill.dw-status-on_hold {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.dw-sub-status-pill.dw-status-on_hold .dw-status-dot {
    background: #f59e0b;
}

.dw-sub-status-pill.dw-status-cancelled {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.dw-sub-status-pill.dw-status-cancelled .dw-status-dot {
    background: #ef4444;
}

.dw-sub-detail-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.dw-sub-col-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dw-sub-domain-display {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dw-domain-text {
    font-weight: 700;
    color: #0f172a;
    font-size: 13px;
}

.dw-domain-tag-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.dw-domain-tag-pill.tag-new {
    background: #dcfce7;
    color: #15803d;
}

.dw-domain-tag-pill.tag-existing {
    background: #f1f5f9;
    color: #475569;
}

.dw-domain-none {
    color: #94a3b8;
    font-style: italic;
    font-size: 13px;
}

.dw-sub-col-val {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.dw-sub-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f8fafc;
}

.dw-sub-order-link {
    font-size: 12px;
    color: #64748b;
}

.dw-order-ref-link {
    font-weight: 700;
    color: #4f46e5 !important;
    text-decoration: none !important;
}

.dw-order-ref-link:hover {
    text-decoration: underline !important;
}

.dw-sub-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dw-btn-sub-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.dw-btn-support {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d !important;
}

.dw-btn-support:hover {
    background: #dcfce7;
}

.dw-btn-view-order {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155 !important;
}

.dw-btn-view-order:hover {
    background: #f1f5f9;
    color: #0f172a !important;
}


