/**
 * Ticket System Frontend Styles
 *
 * @package Polanger_Ticket_System
 */

/* ==========================================================================
   Menu Badge for Unread Tickets
   Note: Badge content is added dynamically via wp_add_inline_style
   ========================================================================== */

.woocommerce-MyAccount-navigation-link--support-tickets a {
    display: flex;
    align-items: center;
}

/* ==========================================================================
   Tickets List
   ========================================================================== */

.pgts-tickets-section {
    max-width: 100%;
}

.pgts-tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.pgts-tickets-header h2 {
    margin: 0;
}

.pgts-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.pgts-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
}

.pgts-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    transform: translateY(-1px);
}

.pgts-btn-outline {
    background: #fff;
    color: #6366f1;
    border: 1px solid #6366f1;
}

.pgts-btn-outline:hover {
    background: #6366f1;
    color: #fff;
}

.pgts-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Empty State */
.pgts-empty-tickets {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.pgts-empty-icon {
    margin-bottom: 16px;
}

.pgts-empty-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #9ca3af;
}

.pgts-empty-tickets h3 {
    margin: 0 0 8px;
    color: #374151;
}

.pgts-empty-tickets p {
    color: #6b7280;
    margin-bottom: 20px;
}

/* Tickets List */
.pgts-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pgts-ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.pgts-ticket-item:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.pgts-ticket-item.pgts-ticket-priority-urgent {
    border-left: 4px solid #dc2626;
}

.pgts-ticket-item.pgts-ticket-priority-high {
    border-left: 4px solid #f59e0b;
}

/* Status-based ticket item colors */
.pgts-ticket-item.pgts-ticket-status-open {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.12) 0%, rgba(255, 255, 255, 1) 100%);
    border-left: 5px solid #3b82f6;
}

.pgts-ticket-item.pgts-ticket-status-in_progress {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.12) 0%, rgba(255, 255, 255, 1) 100%);
    border-left: 5px solid #8b5cf6;
}

.pgts-ticket-item.pgts-ticket-status-waiting {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(255, 255, 255, 1) 100%);
    border-left: 5px solid #f59e0b;
}

.pgts-ticket-item.pgts-ticket-status-resolved {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.12) 0%, rgba(255, 255, 255, 1) 100%);
    border-left: 5px solid #10b981;
}

.pgts-ticket-item.pgts-ticket-status-closed {
    background: linear-gradient(90deg, rgba(156, 163, 175, 0.2) 0%, rgba(249, 250, 251, 1) 100%);
    border-left: 5px solid #9ca3af;
    opacity: 0.8;
}

.pgts-ticket-item.pgts-ticket-status-closed:hover {
    opacity: 1;
}

.pgts-ticket-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.pgts-ticket-info {
    flex: 1;
}

.pgts-ticket-id {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.pgts-ticket-subject {
    margin: 4px 0;
    font-size: 16px;
}

.pgts-ticket-subject a {
    color: #1f2937;
    text-decoration: none;
}

.pgts-ticket-subject a:hover {
    color: #6366f1;
}

.pgts-ticket-meta {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    gap: 12px;
}

.pgts-ticket-badges {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pgts-status-badge,
.pgts-priority-badge,
.pgts-category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.pgts-status-open { background: #dbeafe; color: #1e40af; }
.pgts-status-in_progress { background: #fef3c7; color: #92400e; }
.pgts-status-waiting { background: #e0e7ff; color: #3730a3; }
.pgts-status-waiting_agent { background: #fef3c7; color: #92400e; }
.pgts-status-waiting_customer { background: #fce7f3; color: #9d174d; }
.pgts-status-resolved { background: #d1fae5; color: #065f46; }
.pgts-status-closed { background: #f3f4f6; color: #4b5563; }

.pgts-priority-low { background: #f3f4f6; color: #4b5563; }
.pgts-priority-normal { background: #dbeafe; color: #1e40af; }
.pgts-priority-high { background: #fef3c7; color: #92400e; }
.pgts-priority-urgent { background: #fee2e2; color: #991b1b; }

.pgts-category-badge {
    background: #f3f4f6;
    color: #4b5563;
}

/* ==========================================================================
   New Ticket Form - Premium Design
   ========================================================================== */

.pgts-new-ticket-section {
    max-width: 720px;
}

.pgts-new-ticket-section .pgts-tickets-header {
    margin-bottom: 24px;
}

.pgts-new-ticket-section .pgts-tickets-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pgts-new-ticket-section .pgts-tickets-header h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.pgts-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pgts-back-link:hover {
    color: #667eea;
    background: #f0f0ff;
    transform: translateX(-4px);
}

.pgts-ticket-form {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.pgts-form-row {
    margin-bottom: 24px;
    position: relative;
}

.pgts-form-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #374151;
    font-size: 14px;
    letter-spacing: 0.01em;
}

.pgts-form-row label .required {
    color: #ef4444;
    font-size: 16px;
}

.pgts-form-row input[type="text"],
.pgts-form-row textarea,
.pgts-form-row select {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    background: #fff;
    color: #1f2937;
    transition: all 0.25s ease;
}

.pgts-form-row input[type="text"]::placeholder,
.pgts-form-row textarea::placeholder {
    color: #9ca3af;
}

.pgts-form-row input:hover,
.pgts-form-row textarea:hover,
.pgts-form-row select:hover {
    border-color: #c7d2fe;
}

.pgts-form-row input:focus,
.pgts-form-row textarea:focus,
.pgts-form-row select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
    background: #fff;
}

.pgts-form-row textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.pgts-form-row select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 48px;
    cursor: pointer;
}

.pgts-form-hint {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pgts-form-hint::before {
    content: '💡';
    font-size: 12px;
}

.pgts-form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pgts-form-col label {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form Actions - Submit Button */
.pgts-form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
}

.pgts-form-actions .pgts-submit-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pgts-form-actions .pgts-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

.pgts-form-actions .pgts-submit-btn:active {
    transform: translateY(0);
}

.pgts-form-actions .pgts-submit-btn::before {
    content: '🎫';
    font-size: 18px;
}

/* Form Messages */
.pgts-form-messages {
    margin-bottom: 20px;
}

.pgts-form-messages:empty {
    display: none;
}

.pgts-form-messages .pgts-message-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid #10b981;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.pgts-form-messages .pgts-message-success::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.pgts-form-messages .pgts-message-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid #ef4444;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.pgts-form-messages .pgts-message-error::before {
    content: '!';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

/* Product Selection Cards */
.pgts-product-selection {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.pgts-product-selection > label {
    margin-bottom: 16px;
}

.pgts-product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.pgts-product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.pgts-product-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.pgts-product-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.pgts-product-card img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.pgts-product-info {
    flex: 1;
    min-width: 0;
}

.pgts-product-name {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pgts-product-date {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.pgts-product-check {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #667eea;
    font-size: 18px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.pgts-product-card.selected .pgts-product-check {
    opacity: 1;
    transform: scale(1);
}

/* Loading State */
.pgts-submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.pgts-submit-btn.loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pgts-spin 0.8s linear infinite;
}

@keyframes pgts-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Ticket Detail / Chat
   ========================================================================== */

.pgts-ticket-detail-section {
    max-width: 900px;
}

.pgts-ticket-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.pgts-ticket-title h2 {
    margin: 0;
}

.pgts-ticket-status-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.pgts-ticket-order-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0369a1;
}

.pgts-ticket-order-info .dashicons {
    font-size: 18px;
}

/* Chat Container */
.pgts-ticket-chat {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.pgts-chat-messages {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
}

.pgts-ticket-message {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    max-width: 85%;
}

.pgts-customer-message {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    margin-right: auto;
}

.pgts-admin-message {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    margin-left: auto;
}

.pgts-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

.pgts-message-author {
    font-weight: 600;
    color: #1f2937;
}

.pgts-admin-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.pgts-message-time {
    color: #9ca3af;
    font-size: 12px;
    margin-left: auto;
}

.pgts-message-content {
    line-height: 1.6;
    color: #374151;
}

/* Chat Reply */
.pgts-chat-reply {
    border-top: 1px solid #e5e7eb;
    padding: 16px 20px;
    background: #f9fafb;
}

.pgts-reply-input-wrap {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.pgts-reply-input-wrap textarea {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    resize: none;
    font-size: 14px;
}

.pgts-reply-input-wrap textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.pgts-send-btn {
    height: fit-content;
    padding: 12px 24px;
}

.pgts-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: paaq-spin 0.8s linear infinite;
}

@keyframes pgts-spin {
    to { transform: rotate(360deg); }
}

/* Ticket Closed Notice */
.pgts-ticket-closed-notice {
    text-align: center;
    padding: 20px;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Ticket Info Sidebar */
.pgts-ticket-info-sidebar {
    margin-top: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.pgts-info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.pgts-info-item:last-child {
    border-bottom: none;
}

.pgts-info-label {
    color: #6b7280;
    font-size: 13px;
}

.pgts-info-value {
    font-weight: 500;
    color: #374151;
    font-size: 13px;
}

/* Ticket Actions - Close Button */
.pgts-ticket-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.pgts-close-ticket-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pgts-close-ticket-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.pgts-close-ticket-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.pgts-close-ticket-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.pgts-close-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .pgts-tickets-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pgts-ticket-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pgts-ticket-main {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .pgts-ticket-action {
        width: 100%;
    }

    .pgts-ticket-action .pgts-btn {
        width: 100%;
        justify-content: center;
    }

    .pgts-form-row-half {
        grid-template-columns: 1fr;
    }

    .pgts-reply-input-wrap {
        flex-direction: column;
    }

    .pgts-send-btn {
        width: 100%;
    }

    .pgts-ticket-message {
        max-width: 95%;
    }
}

/* Update Notice */
.pgts-update-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: paaq-pulse 2s infinite;
}

.pgts-update-notice .dashicons {
    animation: paaq-spin 1s linear infinite;
}

.pgts-update-notice a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

.pgts-update-notice a:hover {
    opacity: 0.9;
}

@keyframes pgts-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@keyframes pgts-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Form Hint Top */
.pgts-hint-top {
    margin-bottom: 12px !important;
    margin-top: 0 !important;
}

/* Validation Error */
.pgts-validation-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pgts-validation-error::before {
    content: "⚠";
}

/* ==========================================================================
   No Purchase Notice Styles
   ========================================================================== */

.pgts-no-purchase-notice {
    max-width: 600px;
    margin: 40px auto;
}

.pgts-default-message {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.pgts-notice-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.pgts-notice-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #fff;
}

.pgts-default-message h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}

.pgts-default-message p {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 24px;
    line-height: 1.6;
}

.pgts-default-message .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.pgts-default-message .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: #fff;
}

/* Custom WYSIWYG Message Styling */
.pgts-custom-message {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
}

.pgts-custom-message h1,
.pgts-custom-message h2,
.pgts-custom-message h3,
.pgts-custom-message h4 {
    color: #1e293b;
    margin-top: 0;
}

.pgts-custom-message p {
    color: #475569;
    line-height: 1.7;
}

.pgts-custom-message a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.pgts-custom-message a:hover {
    text-decoration: underline;
}

.pgts-custom-message .wp-block-button__link,
.pgts-custom-message a.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.pgts-custom-message .wp-block-button__link:hover,
.pgts-custom-message a.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Reply Form Layout */
.pgts-reply-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pgts-reply-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

/* ==========================================================================
   Product Selection Cards
   ========================================================================== */

.pgts-product-selection {
    margin-bottom: 20px;
}

.pgts-product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.pgts-product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.pgts-product-card:hover {
    border-color: #6366f1;
    background: #f1f5f9;
}

.pgts-product-card.selected {
    border-color: #6366f1;
    background: #eef2ff;
}

.pgts-product-card img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.pgts-product-info {
    flex: 1;
    min-width: 0;
}

.pgts-product-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pgts-product-date {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.pgts-product-check {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #6366f1;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pgts-product-card.selected .pgts-product-check {
    opacity: 1;
}
