/* Modal Styles */
.ph-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s;
}

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

.ph-modal-content {
    background-color: #fff;
    margin: 5px;
    padding: 0;
    border-radius: 8px;
    width: calc(100% - 10px);
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .ph-modal-content {
        margin: 2% auto;
        width: 95%;
        max-width: 900px;
        max-height: 90vh;
        border-radius: 12px;
    }
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ph-modal-header {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.ph-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white !important;
    line-height: 1.3;
}

.ph-modal-header p {
    margin: 6px 0 0 0;
    opacity: 0.95;
    font-size: 13px;
    color: white !important;
}

.ph-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.ph-close:hover {
    background-color: rgba(255,255,255,0.2);
}

.ph-modal-body {
    padding: 15px;
}

.ph-selection-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #8e44ad;
}

.ph-selection-counter {
    font-weight: 600;
    color: #8e44ad;
    font-size: 16px;
}

.ph-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Tablet and desktop */
@media (min-width: 769px) {
    .ph-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

.thumbnail-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #e9ecef;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thumbnail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #8e44ad;
}

.thumbnail-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin: 0 !important;
    transition: all 0.3s ease;
}

/* Desktop - images can be taller */
@media (min-width: 769px) {
    .thumbnail-item img {
        height: 140px;
    }
}

.thumbnail-item.selected {
    border-color: #28a745;
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.25);
}

.thumbnail-item.selected img {
    filter: brightness(0.8);
}

.thumbnail-item .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(40, 167, 69, 0.95);
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 20px;
    min-width: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.ph-modal-footer {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.ph-confirm-button {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.ph-confirm-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.ph-confirm-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ph-cancel-button {
    background: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.ph-cancel-button:hover {
    background: #6c757d;
    color: white;
}

/* Selection confirmation box - MOBILE FIRST */
#ph_custom_field_result {
    display: none;
}

.ph-selection-confirmation {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 16px;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.ph-confirmation-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.ph-confirmation-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ph-confirmation-text {
    color: #155724;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    flex: 1;
}

.ph-change-button {
    width: 100%;
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.ph-change-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

/* Search button improvements */
#ph_custom_field_search {
    margin: 5px;
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    border-radius: 8px;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: inherit;
    padding: 12px 20px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#ph_custom_field_search:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

/* Error messages */
#error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin: 10px 0;
    font-weight: 500;
    display: none;
}

/* Toast Notification Container */
.ph-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    pointer-events: none;
}

@media (max-width: 768px) {
    .ph-toast-container {
        top: 80px;
        right: 12px;
        left: 12px;
    }
}

/* Toast Notification */
.ph-toast {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #4a148c;
    border-left: 5px solid #8e44ad;
    border-radius: 12px;
    padding: 18px 50px 18px 24px;
    margin-bottom: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    box-shadow: 0 12px 35px rgba(142, 68, 173, 0.25);
    position: relative;
    overflow: hidden;
    pointer-events: all;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 420px;
}

@media (max-width: 768px) {
    .ph-toast {
        max-width: 100%;
        padding: 18px 50px 18px 20px;
        font-size: 15px;
        line-height: 1.7;
        border-radius: 10px;
    }
}

.ph-toast-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ph-toast-message {
    display: block;
}

.ph-toast-cart-button {
    display: inline-block;
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
    align-self: flex-start;
}

.ph-toast-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(142, 68, 173, 0.4);
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white !important;
}

@media (max-width: 768px) {
    .ph-toast-cart-button {
        width: 100%;
        align-self: stretch;
    }
}

.ph-toast.ph-toast-hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.ph-toast::before {
    content: '⚠️';
    font-size: 20px;
    margin-right: 12px;
    vertical-align: middle;
}

.ph-toast.ph-toast-success::before {
    content: '✓';
    color: #8e44ad;
    font-weight: 700;
}

.ph-toast.ph-toast-info::before {
    content: 'ℹ️';
}

.ph-toast::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 100px;
    height: 200%;
    background: radial-gradient(circle, rgba(142, 68, 173, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.ph-toast-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(142, 68, 173, 0.2);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #4a148c;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.ph-toast-close:hover {
    background: rgba(142, 68, 173, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.ph-toast-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left-color: #8e44ad;
    color: #1b5e20;
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    .ph-toast-success {
        padding-bottom: 20px;
    }
}

.ph-toast-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left-color: #8e44ad;
    color: #0d47a1;
}

/* Progress bar for auto-dismiss */
.ph-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #8e44ad, #9b59b6);
    border-radius: 0 0 0 12px;
}

.ph-toast-progress[data-duration="10000"] {
    animation: shrinkProgress 10s linear forwards;
}

.ph-toast-progress[data-duration="8000"] {
    animation: shrinkProgress 8s linear forwards;
}

.ph-toast-progress[data-duration="6000"] {
    animation: shrinkProgress 6s linear forwards;
}

@keyframes shrinkProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Hide default WooCommerce messages when toast is active */
.ph-toast-active .woocommerce-error,
.ph-toast-active .woocommerce-message,
.ph-toast-active .woocommerce-info {
    display: none !important;
}

/* WooCommerce Validation Error Messages - Elegant Purple Accent (Fallback) */
.woocommerce-error,
.woocommerce-message,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-message,
ul.woocommerce-error {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%) !important;
    color: #4a148c !important;
    border: none !important;
    border-left: 5px solid #8e44ad !important;
    border-radius: 12px !important;
    padding: 18px 24px !important;
    margin: 20px 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    box-shadow: 0 8px 20px rgba(142, 68, 173, 0.15) !important;
    list-style: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.woocommerce-error::before,
.woocommerce .woocommerce-error::before,
ul.woocommerce-error::before {
    content: '⚠️' !important;
    font-size: 20px !important;
    margin-right: 12px !important;
    vertical-align: middle !important;
}

.woocommerce-error::after,
.woocommerce .woocommerce-error::after,
ul.woocommerce-error::after {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    right: -10% !important;
    width: 100px !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(142, 68, 173, 0.08) 0%, transparent 70%) !important;
    pointer-events: none !important;
}

.woocommerce-error li,
ul.woocommerce-error li {
    color: #4a148c !important;
    font-weight: 500 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.woocommerce-error li::before,
ul.woocommerce-error li::before {
    display: none !important;
}

/* Success messages with purple accent */
.woocommerce-message {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%) !important;
    border-left: 5px solid #8e44ad !important;
    color: #1b5e20 !important;
}

.woocommerce-message::before {
    content: '✓' !important;
    font-size: 20px !important;
    margin-right: 12px !important;
    vertical-align: middle !important;
    color: #8e44ad !important;
    font-weight: 700 !important;
}

/* Info messages with purple accent */
.woocommerce-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    border-left: 5px solid #8e44ad !important;
    color: #0d47a1 !important;
    border-radius: 12px !important;
    padding: 18px 24px !important;
    box-shadow: 0 8px 20px rgba(142, 68, 173, 0.15) !important;
}

.woocommerce-info::before {
    content: 'ℹ️' !important;
    font-size: 20px !important;
    margin-right: 12px !important;
    vertical-align: middle !important;
}

/* Animation for error messages */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info,
ul.woocommerce-error {
    animation: slideInDown 0.4s ease-out !important;
}

/* Mobile responsive for error messages */
@media (max-width: 768px) {
    .woocommerce-error,
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce .woocommerce-error,
    ul.woocommerce-error {
        padding: 15px 18px !important;
        font-size: 14px !important;
        margin: 15px 0 !important;
        border-radius: 10px !important;
    }

    .woocommerce-error::before,
    .woocommerce-message::before,
    .woocommerce-info::before,
    ul.woocommerce-error::before {
        font-size: 18px !important;
        margin-right: 10px !important;
    }
}

/* Loading spinner */
.lds-ellipsis,
.lds-ellipsis div {
  box-sizing: border-box;
}
.lds-ellipsis {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 20px auto;
}
.lds-ellipsis div {
  position: absolute;
  top: 33.33333px;
  width: 13.33333px;
  height: 13.33333px;
  border-radius: 50%;
  background: #8e44ad;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

/* Comment Field Styles */
.ph-comment-field-container {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ph-comment-field-container.ph-incomplete {
    border-color: #ffc107;
    background: linear-gradient(to right, #fff8e1, #fff);
}

.ph-comment-field-container.ph-complete {
    border-color: #28a745;
    background: linear-gradient(to right, #f8fff9, #fff);
}

.ph-comment-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.ph-comment-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.ph-comment-counter {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(142, 68, 173, 0.3);
}

.ph-comment-input-container {
    position: relative;
}

#ph_comment_field {
    width: 100%;
    min-height: 120px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
    background: #fafbfc;
    box-sizing: border-box;
    max-width: 100%;
}

#ph_comment_field:focus {
    outline: none;
    border-color: #8e44ad;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
}

.ph-comment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.ph-comment-hint {
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

.ph-comment-status {
    font-weight: 600;
    font-size: 14px;
}

.ph-status-warning {
    color: #856404;
}

.ph-status-success {
    color: #155724;
}

.ph-status-error {
    color: #721c24;
}

/* Comment field animations */
.ph-comment-field-container.ph-complete .ph-comment-counter {
    background: linear-gradient(135deg, #28a745, #20c997);
    animation: pulseGreen 1s ease-in-out;
}

.ph-comment-field-container.ph-incomplete .ph-comment-counter {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

@keyframes pulseGreen {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Original custom input field styling */
.custom-input-field {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.custom-input-field label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.custom-input-field input[type="text"] {
    width: 100%;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
    background: #fafbfc;
    box-sizing: border-box;
    margin: 8px 0;
}

.custom-input-field input[type="text"]:focus {
    outline: none;
    border-color: #8e44ad;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
}

/* MOBILE FIRST - Responsive adjustments for larger screens */

/* Default is mobile - no need for mobile media query */

/* Tablet adjustments */
@media (min-width: 481px) {
    .ph-modal-header {
        padding: 20px 25px;
    }

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

    .ph-modal-header p {
        font-size: 14px;
    }

    .ph-modal-body {
        padding: 20px;
    }

    .ph-selection-info {
        padding: 15px;
    }

    .thumbnail-item .overlay {
        font-size: 18px;
        padding: 8px 12px;
    }
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .ph-modal-header {
        padding: 20px 25px;
    }

    .ph-modal-header h2 {
        font-size: 22px;
    }

    .ph-modal-body {
        padding: 25px;
    }

    .ph-selection-info {
        padding: 15px;
        margin-bottom: 20px;
    }

    .ph-modal-footer {
        flex-direction: row;
        padding: 20px 25px;
    }

    .ph-confirm-button, .ph-cancel-button {
        width: auto;
        min-width: 120px;
        padding: 12px 24px;
    }

    .ph-comment-field-header {
        flex-direction: row;
        align-items: center;
    }

    .ph-comment-counter {
        align-self: auto;
        font-size: 14px;
        padding: 6px 12px;
    }

    .ph-comment-info {
        flex-direction: row;
        align-items: center;
    }

    .custom-input-field {
        padding: 20px;
        margin: 20px 0;
    }

    #ph_custom_field_search {
        width: auto;
        padding: 12px 20px;
        font-size: 14px;
        margin: 5px;
    }

    .ph-change-button {
        width: auto;
        min-width: 140px;
    }

    .ph-confirmation-content {
        margin-bottom: 12px;
    }

    .ph-selection-confirmation {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

/* Estilos para Order Tracker */
.ph-order-tracker {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    box-sizing: border-box;
}

.ph-order-card {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(142, 68, 173, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
}

.ph-order-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Header del pedido */
.ph-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.ph-order-number {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ph-order-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    opacity: 0.8;
}

.ph-order-id {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.ph-order-status {
    display: flex;
    align-items: center;
}

.ph-status-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.ph-status-processing,
.ph-status-in.progress {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.ph-status-completed {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.ph-status-pending {
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.ph-status-canceled {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

/* Información de entrega */
.ph-delivery-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.ph-delivery-date {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ph-calendar-icon {
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.ph-delivery-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ph-delivery-value {
    font-size: 16px;
    font-weight: 700;
    margin-top: 2px;
}

/* Estadísticas Premium */
.ph-stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.ph-stat-item {
    text-align: center;
    flex: 1;
}

.ph-stat-item.ph-stat-single {
    flex: none;
    width: 100%;
}

.ph-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.ph-stat-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.ph-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 15px;
}

/* Progress bar */
.ph-progress-container {
    margin-bottom: 25px;
}

.ph-progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.ph-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.ph-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.ph-step-active .ph-step-circle {
    background: rgba(255, 255, 255, 0.9);
    border-color: white;
    color: #8e44ad;
}

.ph-step-current .ph-step-circle {
    background: white;
    border-color: white;
    color: #8e44ad;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.ph-step-canceled .ph-step-circle {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
}

.ph-step-number {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.ph-step-active .ph-step-number {
    color: #8e44ad;
}

.ph-step-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8e44ad;
    animation: pulse 2s infinite;
}

.ph-step-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
    opacity: 0.7;
    line-height: 1.2;
}

.ph-step-active .ph-step-label {
    opacity: 1;
}

.ph-step-connector {
    position: absolute;
    top: 20px;
    left: calc(25% + 20px);
    right: calc(75% - 20px);
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
    transition: background 0.3s ease;
}

.ph-step:nth-child(3) .ph-step-connector {
    left: calc(50% + 20px);
    right: calc(50% - 20px);
}

.ph-step:nth-child(5) .ph-step-connector {
    left: calc(75% + 20px);
    right: calc(25% - 20px);
}

.ph-connector-active {
    background: white !important;
}

/* Mensajes */
.ph-order-message {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.ph-message-success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.ph-message-error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.ph-message-icon {
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
    margin-top: 2px;
}

.ph-message-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.ph-message-text {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

/* Responsive para Order Tracker */
@media (max-width: 768px) {
    .ph-order-tracker {
        padding: 15px;
        margin: 15px auto;
    }

    .ph-order-card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .ph-order-header {
        text-align: center;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .ph-order-number {
        align-items: center;
    }

    .ph-order-id {
        font-size: 20px;
    }

    .ph-stats-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .ph-stat-divider {
        display: none;
    }

    .ph-stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        text-align: left;
    }

    .ph-stat-item.ph-stat-single {
        justify-content: center;
        text-align: center;
    }

    .ph-stat-label {
        margin: 0;
    }

    .ph-step-label {
        font-size: 10px;
    }

    .ph-step-circle {
        width: 35px;
        height: 35px;
    }

    .ph-progress-steps {
        padding: 0 10px;
    }
}