/**
 * Thank You Page CSS
 *
 * @package Floreria_Rosify
 */

/* Thank You Container */
.floreria-thankyou-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Success Header */
.thankyou-header {
    text-align: center;
    margin-bottom: 40px;
}

.thankyou-icon {
    width: 80px;
    height: 80px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.thankyou-icon svg {
    width: 40px;
    height: 40px;
    color: #22c55e;
}

.thankyou-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.thankyou-subtitle {
    font-size: 16px;
    color: #6b7280;
}

.thankyou-order-number {
    display: inline-block;
    background: #f3f4f6;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    margin-top: 16px;
}

.thankyou-order-number strong {
    color: #6366f1;
}

/* Order Status Timeline */
.order-timeline {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
}

.timeline-steps {
    position: relative;
}

.timeline-step {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    position: relative;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-step.completed::before {
    background: #10b981;
}

.timeline-step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-step.completed .timeline-step-indicator {
    background: #10b981;
    color: #fff;
}

.timeline-step.active .timeline-step-indicator {
    background: #6366f1;
    color: #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
    }
}

.timeline-step-indicator svg {
    width: 16px;
    height: 16px;
}

.timeline-step-content {
    flex: 1;
    padding-top: 4px;
}

.timeline-step-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.timeline-step.pending .timeline-step-title {
    color: #9ca3af;
}

.timeline-step-time {
    font-size: 13px;
    color: #6b7280;
}

/* Delivery Info Card */
.delivery-info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
}

.delivery-info-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
}

.delivery-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.delivery-info-item {
    display: flex;
    gap: 12px;
}

.delivery-info-icon {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.delivery-info-icon svg {
    width: 20px;
    height: 20px;
    color: #6366f1;
}

.delivery-info-content {
    flex: 1;
}

.delivery-info-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.delivery-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

/* Address Card */
.delivery-address-section {
    grid-column: span 2;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.delivery-address-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.delivery-address-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* Dedication Card */
.dedication-card {
    background: #fef3c7;
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
}

.dedication-label {
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 4px;
}

.dedication-text {
    font-size: 14px;
    color: #78350f;
    font-style: italic;
}

/* Order Summary */
.order-summary-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 24px;
}

.order-summary-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.order-summary-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.order-items {
    padding: 0;
}

.order-item {
    display: flex;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.order-item-qty {
    font-size: 13px;
    color: #6b7280;
}

.order-item-price {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

/* Order Totals */
.order-totals {
    padding: 20px 24px;
    background: #f9fafb;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #6b7280;
}

.order-total-row.total {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
    padding-top: 12px;
}

/* Customer Info */
.customer-info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
}

.customer-info-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
}

.customer-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.customer-info-item label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.customer-info-item span {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

/* Actions */
.thankyou-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.thankyou-btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.thankyou-btn-primary {
    background: #6366f1;
    color: #fff;
}

.thankyou-btn-primary:hover {
    background: #4f46e5;
    color: #fff;
}

.thankyou-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.thankyou-btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Error State */
.thankyou-error {
    text-align: center;
    padding: 60px 20px;
}

.thankyou-error-icon {
    width: 64px;
    height: 64px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.thankyou-error-icon svg {
    width: 32px;
    height: 32px;
    color: #ef4444;
}

.thankyou-error-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.thankyou-error-text {
    font-size: 15px;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 640px) {
    .floreria-thankyou-page {
        padding: 20px 16px;
    }

    .delivery-info-grid {
        grid-template-columns: 1fr;
    }

    .delivery-address-section {
        grid-column: span 1;
    }

    .customer-info-grid {
        grid-template-columns: 1fr;
    }

    .thankyou-actions {
        flex-direction: column;
    }

    .thankyou-btn {
        justify-content: center;
    }
}
