/* WC Order Manager — Frontend Styles */
.wcom-order-panel { margin-top: 2em; }

.wcom-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.wcom-section h3 {
    margin: 0 0 14px;
    font-size: 1em;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wcom-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.wcom-form textarea,
.wcom-form input[type="text"],
.wcom-form input[type="url"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: .95em;
    box-sizing: border-box;
}
.wcom-form textarea:focus,
.wcom-form input:focus {
    border-color: #7f54b3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(127,84,179,.2);
}
.wcom-btn {
    display: inline-block;
    padding: 9px 18px !important;
    border-radius: 6px !important;
    font-size: .9em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: none !important;
    background: #7f54b3 !important;
    color: #fff !important;
    transition: background .2s;
    align-self: flex-start;
}
.wcom-btn:hover { background: #6b3fa0 !important; color: #fff !important; }
.wcom-btn--danger { background: #d63638 !important; }
.wcom-btn--danger:hover { background: #b32d2e !important; }
.wcom-notice { padding: 10px 14px; border-radius: 6px; font-size: .9em; margin: 8px 0 0; }
.wcom-notice--info    { background: #e8f4fd; border-left: 4px solid #3498db; color: #1a5276; }
.wcom-notice--success { background: #eafaf1; border-left: 4px solid #27ae60; color: #1d6a39; }
.wcom-notice--error   { background: #fdf2f2; border-left: 4px solid #e74c3c; color: #7b241c; }

/* Tracking Steps */
.wcom-tracking-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; font-size: .9em; color: #555; }
.wcom-track-link { background: #7f54b3 !important; color: #fff !important; border-radius: 5px !important; font-size: .85em !important; padding: 5px 14px !important; }
.wcom-tracking-steps { display: flex; align-items: flex-start; gap: 0; position: relative; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.wcom-step { flex: 1; text-align: center; position: relative; font-size: .8em; color: #aaa; min-width: 80px; }
.wcom-step::before { content: ''; position: absolute; top: 11px; left: 50%; width: 100%; height: 3px; background: #e0e0e0; z-index: 0; }
.wcom-step:last-child::before { display: none; }
.wcom-step-dot { width: 24px; height: 24px; border-radius: 50%; background: #e0e0e0; border: 3px solid #fff; margin: 0 auto 6px; position: relative; z-index: 1; box-shadow: 0 0 0 2px #e0e0e0; transition: all .3s; }
.wcom-step--done .wcom-step-dot { background: #7f54b3; box-shadow: 0 0 0 2px #7f54b3; }
.wcom-step--done::before { background: #7f54b3; }
.wcom-step--active .wcom-step-dot { background: #fff; box-shadow: 0 0 0 3px #7f54b3; animation: wcom-pulse 1.5s infinite; }
.wcom-step--done, .wcom-step--active { color: #333; font-weight: 600; }
@keyframes wcom-pulse { 0%,100% { box-shadow: 0 0 0 3px #7f54b3; } 50% { box-shadow: 0 0 0 6px rgba(127,84,179,.25); } }

/* Refund */
.wcom-refund-details p { margin: 4px 0; font-size: .95em; }

/* Chat */
.wcom-chat-box { margin-top: 12px; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; }
.wcom-chat-messages { padding: 14px; background: #f9f9f9; max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.wcom-msg-bubble { max-width: 75%; padding: 10px 14px; border-radius: 12px; font-size: .9em; line-height: 1.5; }
.wcom-msg-bubble--customer { background: #7f54b3; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.wcom-msg-bubble--admin { background: #fff; color: #333; border: 1px solid #e0e0e0; align-self: flex-start; border-bottom-left-radius: 4px; }
.wcom-msg-sender { display: block; font-size: .75em; font-weight: 700; margin-bottom: 3px; opacity: .75; }
.wcom-msg-time { display: block; font-size: .72em; margin-top: 4px; opacity: .6; text-align: right; }
.wcom-chat-input { display: flex; gap: 8px; padding: 10px 14px; background: #fff; border-top: 1px solid #e0e0e0; align-items: flex-end; }
.wcom-chat-input textarea { flex: 1; resize: none; border: 1px solid #ccc; border-radius: 6px; padding: 8px 10px; font-size: .9em; }
.wcom-chat-toggle { margin-left: auto; font-size: .82em !important; }
@media (max-width: 600px) { .wcom-section { padding: 14px; } .wcom-step { font-size: .7em; min-width: 60px; } }
