:root {
    --primary-color: #000000;
    --secondary-color: #2c2c2c;
    --tertiary-color: #505050;
    --background-color: #ffffff;
    --light-bg: #f8f8f8;
    --border-color: #e5e5e5;
    --text-primary: #1a1a1a;
    --text-secondary: #505050;
    --text-muted: #888888;
    --accent-color: #000000;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --radius-small: 4px;
    --radius-medium: 8px;
    --radius-large: 12px;
    --shadow-small: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-large: 0 10px 15px rgba(0, 0, 0, 0.10);
    --transition: all 0.2s ease;
}

.style-modern {
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --tertiary-color: #333333;
    --background-color: #ffffff;
    --light-bg: #f5f5f5;
    --border-color: #e0e0e0;
    --text-primary: #000000;
    --text-secondary: #4a4a4a;
    --text-muted: #9e9e9e;
    --accent-color: #000000;
}

.style-modern .timeline::before {
    background: #000000;
    width: 2px;
}

.style-modern .timeline-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 2px;
    margin-left: -10px;
    border-left: 3px solid #e0e0e0;
}

.style-modern .timeline-item.active {
    background: #ffffff;
    border-left-color: #000000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.style-modern .marker-icon {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid #000000;
}

.style-modern button,
.style-modern .button {
    background: #000000;
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
}

.style-modern button:hover,
.style-modern .button:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.style-classic {
    --primary-color: #991b1b;
    --secondary-color: #7f1d1d;
    --tertiary-color: #b91c1c;
    --background-color: #fefce8;
    --light-bg: #fef3c7;
    --border-color: #fde68a;
    --text-primary: #422006;
    --text-secondary: #78350f;
    --text-muted: #92400e;
    --accent-color: #991b1b;
}

.style-classic .timeline::before {
    width: 2px;
    background: #d97706;
}

.style-classic .timeline-item {
    background: #fffbeb;
    padding: 20px;
    border-radius: 4px;
    margin-left: -10px;
    border-left: 3px solid #fde68a;
}

.style-classic .timeline-item.active {
    background: #fef3c7;
    border-left-color: #991b1b;
}

.wc-manufacturing-tracking-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

.tracking-header {
    background: var(--primary-color);
    color: #fff;
    padding: 48px 40px;
    border-radius: var(--radius-medium);
    margin-bottom: 32px;
    box-shadow: var(--shadow-medium);
}

.tracking-header h2 {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.tracking-header .order-date {
    margin: 6px 0;
    opacity: 0.85;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
}

.tracking-header .order-status {
    margin: 16px 0 0 0;
    font-size: 15px;
    font-weight: 400;
    color: #ffffff;
}

.tracking-header .order-status strong {
    color: #ffffff;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-small);
    font-weight: 400;
    margin-left: 10px;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.manufacturing-timeline,
.carrier-tracking-section,
.customer-requests-section,
.payment-pending-section {
    background: var(--background-color);
    padding: 32px;
    border-radius: var(--radius-medium);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    box-shadow: var(--shadow-small);
    transition: var(--transition);
}

.manufacturing-timeline:hover,
.carrier-tracking-section:hover,
.customer-requests-section:hover,
.payment-pending-section:hover {
    box-shadow: var(--shadow-medium);
}

.manufacturing-timeline h3,
.carrier-tracking-section h3,
.customer-requests-section h3,
.payment-pending-section h3 {
    margin: 0 0 24px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: -0.3px;
}

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

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

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

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

.timeline-item:last-child .timeline-marker .marker-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.timeline-item:last-child .timeline-marker .marker-icon svg {
    filter: brightness(0) invert(1);
}

.timeline-marker {
    position: absolute;
    left: -38px;
    top: 5px;
}

.marker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--background-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: var(--shadow-small);
    transition: var(--transition);
}

.marker-icon:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.marker-icon svg,
.marker-icon img {
    width: 14px;
    height: 14px;
    filter: brightness(0);
}

.marker-icon.icon-filled svg {
    fill: var(--primary-color);
}

.marker-icon.icon-outlined svg {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2px;
}

.timeline-item.active .marker-icon {
    background: var(--primary-color);
    animation: pulse 2s infinite;
}

.timeline-item.active .marker-icon svg,
.timeline-item.active .marker-icon img {
    filter: brightness(0) invert(1);
}

.timeline-item.active .marker-icon.icon-filled svg {
    fill: #ffffff;
}

.timeline-item.active .marker-icon.icon-outlined svg {
    stroke: #ffffff;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(0,0,0,0.1);
    }
}

.timeline-content {
    padding-left: 20px;
}

.timeline-title {
    margin: 0 0 10px 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
}

.timeline-date {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0 0 10px 0;
    font-weight: 300;
}

.timeline-eta {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 15px 0;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.timeline-eta svg {
    flex-shrink: 0;
}

.timeline-notes {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin: 15px 0;
}

.timeline-media {
    margin: 25px 0;
}

.timeline-media h5 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.media-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-medium);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-small);
}

.media-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-large);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.7);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.media-item:hover::after {
    opacity: 1;
}

.media-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.media-carousel-track {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.media-carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    transform: none;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.3s;
}

.lightbox.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.lightbox-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-media video {
    outline: none;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10;
    pointer-events: auto !important;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    background: #ff4444;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    pointer-events: auto !important;
}

.lightbox-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
}

.carrier-tracking-item {
    padding: 30px;
    background: var(--light-bg);
    border-radius: 0;
    margin-bottom: 25px;
    border-left: 3px solid var(--primary-color);
}

.tracking-number-header h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.tracking-number {
    margin: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.carrier-updates {
    margin-top: 25px;
}

.latest-update {
    background: var(--background-color);
    padding: 25px;
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.update-status {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.update-description {
    margin: 12px 0;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.update-location {
    margin: 12px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.estimated-delivery {
    margin: 20px 0;
    padding: 15px;
    background: var(--light-bg);
    border-left: 3px solid var(--primary-color);
    border-radius: 0;
    font-size: 15px;
}

.update-time {
    margin: 15px 0 0 0;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
}

.update-history {
    margin-top: 20px;
}

.update-history summary {
    cursor: pointer;
    padding: 12px 0;
    background: transparent;
    border-radius: 0;
    font-weight: 400;
    color: var(--text-primary);
    user-select: none;
    border-bottom: 1px solid var(--border-color);
}

.update-history summary:hover {
    color: var(--secondary-color);
}

.history-list {
    margin-top: 20px;
}

.history-item {
    padding: 20px;
    background: var(--background-color);
    border-left: 1px solid var(--border-color);
    margin-bottom: 15px;
    border-radius: 0;
}

.history-date {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.history-status,
.history-location {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.request-update-form {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 0;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.request-update-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 400;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.request-update-form select,
.request-update-form textarea,
.request-update-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--background-color);
    color: var(--text-primary);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: var(--shadow-small);
}

.request-update-form select:focus,
.request-update-form textarea:focus,
.request-update-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.request-update-form select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    background-color: #ffffff !important;
    padding-right: 45px;
    color: #000000 !important;
    font-weight: 400;
    cursor: pointer;
}

.request-update-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.request-update-form select option {
    color: #000000 !important;
    background: #ffffff !important;
    padding: 12px;
    font-size: 15px;
    font-weight: 400;
}

.request-update-form select option:disabled {
    color: #999999 !important;
    font-style: italic;
}

.request-update-form select option:checked {
    background: #f0f0f0 !important;
    font-weight: 500;
}

.request-update-form select:focus,
.request-update-form textarea:focus,
.request-update-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.request-update-form button,
.wc-manufacturing-btn,
.button {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-small);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-small);
    font-family: inherit;
}

.request-update-form button:hover,
.wc-manufacturing-btn:hover,
.button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.request-update-form button:active,
.wc-manufacturing-btn:active,
.button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-small);
}

.request-detailed-update-link {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid var(--border-color);
    background: var(--background-color);
    transition: var(--transition);
    font-weight: 500;
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-small);
}

.request-detailed-update-link:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    transform: translateY(-1px);
}

.timeline-actions {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.current-request-status {
    margin-top: 20px;
    padding: 20px;
    background: var(--light-bg);
    border-left: 3px solid var(--secondary-color);
}

.current-request-status h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-request-status p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.current-request-status .status-pending {
    color: var(--secondary-color);
    font-weight: 500;
}

.current-request-status .status-responded {
    color: var(--primary-color);
    font-weight: 500;
}

.previous-requests h4 {
    margin: 30px 0 20px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.request-item {
    padding: 25px;
    background: var(--background-color);
    border-radius: 0;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--border-color);
    margin-bottom: 20px;
}

.request-item.request-pending {
    border-left-color: var(--secondary-color);
    background: var(--light-bg);
}

.request-item.request-responded {
    border-left-color: var(--primary-color);
    background: var(--background-color);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.request-header strong {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.request-status {
    padding: 6px 14px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.request-item.request-pending .request-status {
    background: var(--secondary-color);
    color: #fff;
}

.request-item.request-responded .request-status {
    background: var(--primary-color);
    color: #fff;
}

.request-message {
    margin: 12px 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.request-date {
    margin: 12px 0 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.request-response {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.request-response h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wc-manufacturing-lookup-form {
    max-width: 500px;
    margin: 50px auto;
    padding: 50px;
    background: var(--background-color);
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.wc-manufacturing-lookup-form h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.wc-manufacturing-lookup-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 400;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.wc-manufacturing-lookup-form input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 15px;
    transition: border-color 0.2s;
    background: var(--background-color);
}

.wc-manufacturing-lookup-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.wc-manufacturing-lookup-form button {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wc-manufacturing-lookup-form button:hover {
    background: var(--secondary-color);
}

.wc-manufacturing-error {
    padding: 15px;
    background: var(--light-bg);
    color: var(--text-primary);
    border-left: 3px solid var(--primary-color);
    border-radius: 0;
    margin-bottom: 20px;
}

.wc-manufacturing-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.wc-manufacturing-lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 0;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    font-weight: 300;
}

.detailed-update-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.detailed-update-modal.active {
    display: flex;
}

.detailed-update-modal-content {
    background: var(--background-color);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 0;
    position: relative;
}

.detailed-update-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1;
}

.detailed-update-modal-close:hover {
    color: var(--text-primary);
}

.detailed-update-modal h3 {
    margin: 0 0 25px 0;
    font-size: 22px;
    font-weight: 300;
    color: var(--text-primary);
}

.detailed-update-options {
    margin-bottom: 25px;
}

.detailed-update-option {
    margin-bottom: 15px;
}

.detailed-update-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s, background 0.2s;
}

.detailed-update-option label:hover {
    background: var(--light-bg);
}

.detailed-update-option input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
}

.detailed-update-option span {
    font-size: 15px;
    color: var(--text-primary);
}

.detailed-update-textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 15px;
    font-family: inherit;
    min-height: 120px;
    margin-bottom: 20px;
    background: var(--background-color);
}

.detailed-update-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.detailed-update-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.detailed-update-footer p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.detailed-update-footer a {
    color: var(--text-primary);
    text-decoration: underline;
}

.payment-pending-form {
    background: var(--light-bg);
    padding: 30px;
    border: 1px solid var(--border-color);
    margin-top: 20px;
}

.payment-pending-form h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-primary);
}

.payment-pending-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 400;
    color: var(--text-primary);
    font-size: 14px;
}

.payment-proof-upload {
    margin: 20px 0;
}

.payment-proof-preview {
    margin-top: 15px;
    padding: 15px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
}

.payment-proof-preview img {
    max-width: 200px;
    height: auto;
    border: 1px solid var(--border-color);
}

.wc-track-order-button {
    display: inline-block;
    margin: 15px 0;
    padding: 14px 32px;
    background: var(--primary-color);
    color: #fff !important;
    text-decoration: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s, transform 0.2s;
}

.wc-track-order-button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .wc-manufacturing-tracking-page {
        padding: 10px;
        margin: 0;
    }

    .tracking-header {
        padding: 15px;
        margin: 0 0 15px 0;
    }

    .tracking-header h2 {
        font-size: 20px;
    }

    .manufacturing-timeline,
    .carrier-tracking-section,
    .customer-requests-section,
    .payment-pending-section,
    .request-update-form {
        padding: 15px;
        margin: 0 0 15px 0;
    }

    body.wc-manufacturing-tracking-body {
        margin: 0 !important;
        padding: 0 !important;
    }

    .wc-manufacturing-tracking-page .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }

    .timeline {
        padding-left: 40px;
    }

    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .carrier-tracking-item {
        padding: 20px;
    }

    .wc-manufacturing-lookup-form {
        padding: 30px;
    }

    .detailed-update-modal-content {
        padding: 25px;
        width: 95%;
    }

    .request-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .thank-you-content {
        padding: 40px 20px 30px;
        width: 95%;
        max-width: 400px;
    }

    .thank-you-content h2 {
        font-size: 22px;
    }

    .thank-you-content p {
        font-size: 14px;
    }

    .thank-you-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }

    .popup-close-btn {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
}

body.popup-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

.wc-manufacturing-thank-you-popup {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

.wc-manufacturing-thank-you-popup.show {
    opacity: 1 !important;
}

.thank-you-content {
    background: white;
    padding: 60px 40px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.5s ease;
    margin: auto;
    z-index: 10;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.7) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
    animation: iconPop 0.6s ease 0.3s both;
}

@keyframes iconPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.thank-you-content h2 {
    margin: 0 0 15px;
    color: #333;
    font-size: 28px;
    font-weight: 700;
}

.thank-you-content p {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close-btn:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg);
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    opacity: 0;
    animation: confettiFall linear infinite;
}

@keyframes confettiFall {
    0% {
        top: -10px;
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
    100% {
        top: 100%;
        opacity: 0;
        transform: translateX(50px) rotate(720deg);
    }
}

.payment-pending-section {
    background: #fff9e6;
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
}

.payment-pending-section h3 {
    margin-top: 0;
    color: #b8860b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-pending-section h3:before {
    content: "⚠️";
    font-size: 24px;
}

.payment-pending-form {
    margin-top: 20px;
}

.payment-proof-upload {
    margin-bottom: 20px;
}

.payment-proof-upload label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.payment-proof-upload input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #ddd;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-proof-upload input[type="file"]:hover {
    border-color: var(--primary-color);
    background: #f5f5f5;
}

.payment-pending-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
}

.payment-pending-form .button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.payment-pending-form .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.payment-pending-form .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Toast Notifications */
.wc-manufacturing-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    background: #ffffff;
    border-radius: var(--radius-medium);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.wc-manufacturing-toast.wc-toast-show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.wc-toast-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
}

.wc-toast-success .wc-toast-icon {
    background: #10b981;
    color: #ffffff;
}

.wc-toast-error .wc-toast-icon {
    background: #ef4444;
    color: #ffffff;
}

.wc-toast-warning .wc-toast-icon {
    background: #f59e0b;
    color: #ffffff;
}

.wc-toast-info .wc-toast-icon {
    background: #3b82f6;
    color: #ffffff;
}

.wc-toast-message {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.wc-toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.wc-toast-close:hover {
    background: var(--light-bg);
    color: var(--text-primary);
}

.wc-toast-success {
    border-left: 4px solid #10b981;
}

.wc-toast-error {
    border-left: 4px solid #ef4444;
}

.wc-toast-warning {
    border-left: 4px solid #f59e0b;
}

.wc-toast-info {
    border-left: 4px solid #3b82f6;
}

@media (max-width: 768px) {
    .wc-manufacturing-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* Loading Spinner */
.wc-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: wc-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

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

/* Form Validation Styles */
.wc-field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.wc-field-success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.wc-error-message {
    display: block;
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

.wc-success-message {
    display: block;
    color: #10b981;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

.wc-help-text {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
    font-style: italic;
}

/* Loading Overlay */
.wc-form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.wc-form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Button Loading State */
button.loading,
.button.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

button.loading::before,
.button.loading::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: wc-spin 0.6s linear infinite;
}
