/* Detail Page Styles */

.details-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Summary Header Card */
.details-summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
}

.details-summary-header {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.details-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.details-summary-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.details-summary-value {
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
}

.details-summary-value.large {
    font-size: 1.25rem;
}

/* Detail Cards Grid */
.details-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.detail-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.detail-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-card-title i {
    width: 20px;
    height: 20px;
    color: #64748b;
}

.detail-card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.detail-field-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-field-value {
    font-size: 0.9rem;
    color: #1e293b;
    word-break: break-word;
}

.detail-field-value a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.detail-field-value a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Full-width detail card */
.detail-card-full {
    grid-column: 1 / -1;
}

/* Content title with back button - only apply flex when back button exists */
.content-title:has(.back-btn) {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-title .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.content-title .back-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
}

.content-title .back-btn i {
    width: 16px;
    height: 16px;
}

/* Purchase details button */
.purchase-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    /* font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s; */
}

.purchase-details-btn i {
    width: 16px;
    height: 16px;
}

.purchase-details-btn:focus {
    border-color: #020b1a;
}

/* Error container */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    gap: 1rem;
}

.error-container i {
    width: 48px;
    height: 48px;
    color: #ef4444;
}

/* Temporarily hide timeline cards (order/domain) */
.timeline-card {
    display: none;
}

.error-container p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .details-summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .details-cards-grid {
        grid-template-columns: 1fr;
    }

    .detail-card-full {
        grid-column: 1;
    }
}