/**
 * Remasterd WC: My Account - Orders (Services)
 */

/* ── Dashboard Header ── */
.rwc-main-content {
    padding: 10px 0;
}

.rwc-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 24px;
    width: 100%;
}

.rwc-filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.rwc-filters::-webkit-scrollbar {
    display: none;
}

.rwc-filter-pill {
    padding: 10px 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--rwc-border);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s var(--rwc-ease);
    color: var(--rwc-muted);
}

.rwc-filter-pill.active {
    background: var(--rwc-primary);
    color: #fff;
    border-color: var(--rwc-primary);
    box-shadow: 0 4px 12px var(--rwc-primary-glow);
}

.rwc-filter-pill:hover:not(.active) {
    border-color: var(--rwc-primary);
    color: var(--rwc-primary);
    background: var(--rwc-primary-glow);
}



/* ── Service Cards ── */
.rwc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.rwc-service-card {
    background: var(--rwc-white);
    border-radius: 14px;
    padding: 10px;
    border: 1px solid var(--rwc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--rwc-transition);
    box-shadow: var(--rwc-shadow-sm);
    position: relative;
    overflow: hidden;
}

.rwc-service-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--rwc-primary);
    transition: height 0.3s var(--rwc-ease);
    border-radius: 0 4px 4px 0;
}

.rwc-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rwc-shadow);
    border-color: var(--rwc-primary-light);
}

.rwc-service-card:hover::after {
    height: 50%;
}

.rwc-service-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.rwc-service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rwc-primary);
    font-size: 22px;
}

.rwc-service-details h3 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 5px 0;
    color: var(--rwc-text-dark);
}

.rwc-service-details span {
    font-size: 13px;
    color: var(--rwc-muted);
    display: block;
}

.rwc-service-meta {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 32px;
}

.rwc-meta-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--rwc-muted);
    margin-bottom: 3px;
    font-weight: 600;
}

.rwc-meta-group span {
    font-weight: 700;
    font-size: 15px;
    color: var(--rwc-text-dark);
}

.rwc-status-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Panel Overlay ── */
.rwc-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.rwc-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.rwc-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 540px;
    height: 100vh;
    background: var(--rwc-white);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    transform: translateX(105%);
    transition: transform 0.5s var(--rwc-ease);
    display: flex;
    flex-direction: column;
}

.rwc-overlay.active {
    transform: translateX(0);
}

.rwc-overlay-header {
    padding: 35px 30px;
    border-bottom: 1px solid var(--rwc-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.rwc-overlay-content {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    scroll-behavior: smooth;
}

/* ── Progress Timeline ── */
.rwc-progress-tracker {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    position: relative;
    padding: 0 10px;
}

.rwc-progress-tracker::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.rwc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    flex: 1;
}

.rwc-step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--rwc-white);
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 10px;
    transition: var(--rwc-transition);
}

.rwc-step.completed .rwc-step-circle {
    background: var(--rwc-primary);
    border-color: var(--rwc-primary);
    color: var(--rwc-white);
}

.rwc-step.active .rwc-step-circle {
    border-color: var(--rwc-primary);
    color: var(--rwc-primary);
    box-shadow: 0 0 0 5px rgba(0, 152, 152, 0.1);
}

.rwc-step-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--rwc-muted);
    text-align: center;
    text-transform: uppercase;
}

/* ── Cancelled Banner ── */
.rwc-cancelled-banner {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
    animation: rwcFadeUp 0.5s ease forwards;
}

.rwc-cancelled-banner i {
    font-size: 32px;
    color: #ef4444;
}

.rwc-cancelled-banner span {
    font-size: 14px;
    font-weight: 700;
    color: #991b1b;
    text-align: center;
}

/* ── Info Cards ── */
.rwc-detail-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #f1f5f9;
}

.rwc-detail-card h4 {
    font-size: 13px;
    margin: 0 0 18px 0;
    color: var(--rwc-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.rwc-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rwc-detail-item label {
    display: block;
    font-size: 11px;
    color: var(--rwc-muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.rwc-detail-item p {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: var(--rwc-text-dark);
}

.rwc-pricing-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rwc-pricing-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: var(--rwc-text);
    font-weight: 600;
}

.rwc-pricing-list li.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--rwc-border);
    font-weight: 800;
    font-size: 22px;
    color: var(--rwc-primary);
}

.rwc-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rwc-items-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.rwc-items-list li:last-child {
    border-bottom: none;
}

.rwc-items-list li .item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--rwc-text-dark);
}

.rwc-items-list li .item-name small {
    display: inline-block;
    margin-left: 5px;
    color: var(--rwc-muted);
    font-weight: 500;
}

.rwc-items-list li .item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--rwc-primary);
}

/* ── Footer ── */
.rwc-overlay-footer {
    padding: 25px 30px;
    border-top: 1px solid var(--rwc-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: #fafbfc;
}

.rwc-btn {
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--rwc-transition);
}

.rwc-btn-primary {
    background: var(--rwc-primary);
    color: var(--rwc-white);
    box-shadow: 0 4px 6px -1px rgba(0, 152, 152, 0.2);
}

.rwc-btn-primary:hover {
    background: var(--rwc-primary-dark);
    transform: translateY(-2px);
}

.rwc-btn-secondary {
    background: var(--rwc-white);
    border-color: var(--rwc-border);
    color: var(--rwc-text-dark);
}

.rwc-btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--rwc-primary-light);
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .rwc-overlay {
        width: 100%;
        height: 90vh;
        bottom: 0;
        top: auto;
        border-radius: 24px 24px 0 0;
        transform: translateY(105%);
    }

    .rwc-overlay.active {
        transform: translateY(0);
    }

    .rwc-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .rwc-search-box {
        order: -1;
        max-width: 100%;
    }

    .rwc-service-card {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 10px;
    }

    .rwc-service-meta {
        text-align: left;
        justify-content: space-between;
        border-top: 1px solid var(--rwc-border);
        padding-top: 15px;
    }
}

/* ── Premium Confirmation Modal ── */
.rwc-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rwc-modal-container.active {
    display: flex;
}

.rwc-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    transition: opacity 0.3s var(--rwc-ease);
}

.rwc-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    z-index: 2;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s var(--rwc-ease);
}

.rwc-modal-container.active .rwc-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.rwc-modal-icon {
    width: 64px;
    height: 64px;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 24px;
}

.rwc-modal-content h3 {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 12px 0;
}

.rwc-modal-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 32px 0;
}

.rwc-modal-actions {
    display: flex;
    gap: 12px;
}

.rwc-modal-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--rwc-ease);
}

.rwc-modal-btn-neutral {
    background: #f1f5f9;
    color: #1e293b;
}

.rwc-modal-btn-neutral:hover {
    background: #e2e8f0;
}

.rwc-modal-btn-danger {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2);
}

.rwc-modal-btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

.rwc-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}