:root {
    --wcot-primary: #4F46E5;
    --wcot-primary-hover: #4338CA;
    --wcot-success: #10B981;
    --wcot-warning: #F59E0B;
    --wcot-error: #EF4444;
    --wcot-text-primary: #111827;
    --wcot-text-secondary: #6B7280;
    --wcot-text-muted: #9CA3AF;
    --wcot-border: #E5E7EB;
    --wcot-bg-gray: #F9FAFB;
    --wcot-bg-white: #FFFFFF;
    --wcot-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --wcot-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --wcot-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --wcot-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.wcot-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.wcot-form-wrapper {
    background: var(--wcot-bg-white);
    border-radius: 16px;
    padding: 48px;
    box-shadow: var(--wcot-shadow-xl);
    border: 1px solid var(--wcot-border);
}

.wcot-header {
    text-align: center;
    margin-bottom: 40px;
}

.wcot-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--wcot-text-primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.wcot-header p {
    font-size: 16px;
    color: var(--wcot-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.wcot-form {
    margin-top: 32px;
}

.wcot-form-group {
    margin-bottom: 24px;
}

.wcot-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--wcot-text-primary);
    margin-bottom: 8px;
}

.wcot-form-group .required {
    color: var(--wcot-error);
    margin-left: 2px;
}

.wcot-form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1.5px solid var(--wcot-border);
    border-radius: 8px;
    transition: all 0.2s ease;
    background: var(--wcot-bg-white);
    color: var(--wcot-text-primary);
    box-sizing: border-box;
}

.wcot-form-group input:focus {
    outline: none;
    border-color: var(--wcot-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.wcot-form-group input::placeholder {
    color: var(--wcot-text-muted);
}

.wcot-form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--wcot-text-muted);
}

.wcot-form-actions {
    margin-top: 32px;
}

.wcot-button {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wcot-button-primary {
    background: var(--wcot-primary);
    color: white;
}

.wcot-button-primary:hover:not(:disabled) {
    background: var(--wcot-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--wcot-shadow-lg);
}

.wcot-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wcot-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: wcot-spin 0.8s linear infinite;
}

@keyframes wcot-spin {
    to { transform: rotate(360deg); }
}

.wcot-message {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    animation: wcot-slide-down 0.3s ease;
}

@keyframes wcot-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wcot-message.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
    border-left: 4px solid var(--wcot-error);
}

.wcot-message.success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    border-left: 4px solid var(--wcot-success);
}

.wcot-results-wrapper {
    animation: wcot-fade-in 0.4s ease;
}

@keyframes wcot-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wcot-back-button-wrapper {
    margin-bottom: 24px;
}

.wcot-back-button {
    background: var(--wcot-bg-gray);
    color: var(--wcot-text-secondary);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wcot-back-button:hover {
    background: #E5E7EB;
    color: var(--wcot-text-primary);
}

.wcot-order-card {
    background: var(--wcot-bg-white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--wcot-shadow-xl);
    border: 1px solid var(--wcot-border);
    margin-bottom: 24px;
}

.wcot-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--wcot-bg-gray);
    gap: 24px;
}

.wcot-order-info-wrapper {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.wcot-order-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--wcot-text-primary);
    margin: 0 0 8px 0;
}

.wcot-cancellation-notice {
    margin-top: 12px;
    padding: 10px 14px;
    background: #FEE2E2;
    border: 1px solid #FECACA;
    border-left: 3px solid #DC2626;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #991B1B;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcot-cancellation-notice svg {
    flex-shrink: 0;
}

.wcot-shipping-info {
    padding: 16px;
    background: var(--wcot-bg-gray);
    border-radius: 8px;
}

.wcot-shipping-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--wcot-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.wcot-shipping-text {
    font-size: 14px;
    color: var(--wcot-text-primary);
    line-height: 1.6;
}

.wcot-order-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.wcot-meta-item {
    font-size: 14px;
    color: var(--wcot-text-secondary);
}

.wcot-meta-item strong {
    color: var(--wcot-text-primary);
    font-weight: 600;
}

.wcot-status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.wcot-status-badge.processing {
    background: #DBEAFE;
    color: #1E40AF;
}

.wcot-status-badge.completed {
    background: #D1FAE5;
    color: #065F46;
}

.wcot-status-badge.on-hold {
    background: #FEF3C7;
    color: #92400E;
}

.wcot-status-badge.processed {
    background: #E0E7FF;
    color: #4338CA;
}

.wcot-timeline-section {
    margin: 24px 0;
}

.wcot-timeline-section h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--wcot-text-primary);
    margin: 0 0 24px 0;
}

.wcot-timeline {
    position: relative;
    padding-left: 40px;
}

.wcot-timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--wcot-primary) 0%, var(--wcot-border) 100%);
}

.wcot-timeline-item {
    position: relative;
    padding-bottom: 32px;
}

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

.wcot-timeline-icon {
    position: absolute;
    left: -28px;
    top: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1;
}

.wcot-timeline-item.completed .wcot-timeline-icon {
    background: #10B981;
    color: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.wcot-timeline-item.current .wcot-timeline-icon {
    background: var(--wcot-primary);
    color: white;
    animation: wcot-pulse 2s ease-in-out infinite;
}

@keyframes wcot-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(79, 70, 229, 0);
    }
}

.wcot-timeline-item.pending .wcot-timeline-icon {
    background: var(--wcot-bg-gray);
    color: var(--wcot-text-muted);
    border: 2px solid var(--wcot-border);
}

.wcot-timeline-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.wcot-timeline-content {
    padding-left: 12px;
}

.wcot-timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--wcot-text-primary);
    margin: 0 0 4px 0;
}

.wcot-timeline-item.pending .wcot-timeline-title {
    color: var(--wcot-text-muted);
}

.wcot-timeline-description {
    font-size: 14px;
    color: var(--wcot-text-secondary);
    margin: 0 0 6px 0;
    line-height: 1.5;
}

.wcot-timeline-item.pending .wcot-timeline-description {
    color: var(--wcot-text-muted);
}

.wcot-timeline-date {
    font-size: 13px;
    color: var(--wcot-text-muted);
    font-weight: 500;
}

.wcot-delivery-estimate {
    margin: 24px 0;
    padding: 24px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-radius: 12px;
    border: 1px solid #C7D2FE;
    text-align: center;
}

.wcot-delivery-estimate-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--wcot-primary);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.wcot-delivery-estimate-date {
    font-size: 24px;
    font-weight: 700;
    color: var(--wcot-primary);
    margin: 0;
    line-height: 1.3;
}

.wcot-items-section {
    margin-top: 0;
    margin-bottom: 24px;
}

.wcot-items-section h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--wcot-text-primary);
    margin: 0 0 16px 0;
}

.wcot-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--wcot-bg-gray);
    border-radius: 12px;
    margin-bottom: 12px;
}

.wcot-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: white;
    border: 1px solid var(--wcot-border);
}

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

.wcot-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--wcot-text-primary);
    margin: 0 0 6px 0;
}

.wcot-item-variation {
    font-size: 13px;
    color: var(--wcot-text-secondary);
    margin: 0 0 8px 0;
}

.wcot-item-quantity {
    font-size: 13px;
    color: var(--wcot-text-muted);
}


.wcot-progress-bar {
    height: 8px;
    background: var(--wcot-bg-gray);
    border-radius: 4px;
    overflow: hidden;
    margin: 24px 0;
}

.wcot-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wcot-primary) 0%, #818CF8 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.wcot-progress-text {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--wcot-text-secondary);
    margin-top: 8px;
}

@media (max-width: 768px) {
    .wcot-container {
        margin: 30px auto;
        padding: 0 16px;
    }

    .wcot-form-wrapper {
        padding: 32px 24px;
    }

    .wcot-header h2 {
        font-size: 26px;
    }

    .wcot-order-card {
        padding: 24px;
    }

    .wcot-order-header {
        flex-direction: column;
        gap: 16px;
    }

    .wcot-order-info-wrapper {
        grid-template-columns: 1fr;
    }

    .wcot-timeline {
        padding-left: 32px;
    }

    .wcot-timeline-icon {
        left: -24px;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .wcot-timeline-icon svg {
        width: 16px;
        height: 16px;
    }

    .wcot-item {
        flex-direction: column;
    }

    .wcot-item-image {
        width: 100%;
        height: 200px;
    }
}
