/* Print On Demand Enhancements Styles */

.pod-custom-fields-wrapper {
    margin: 25px 0 0 0;
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 05px;
}

.pod-guidelines-section,
.pod-file-upload-section,
.pod-custom-text-section,
.pod-help-section,
.pod-quantity-section,
.pod-terms-section,
.pod-buy-now-section {
    margin: 0;
    padding: 0;
}

.pod-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Quantity Counter Styles */
.pod-quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 8px;
    max-width: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.pod-qty-btn {
    background: #f5f5f5;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.pod-qty-btn:hover {
    background: #e0e0e0;
}

.pod-qty-btn:active {
    background: #d0d0d0;
}

.pod-qty-input {
    border: none;
    text-align: center;
    width: 60px;
    padding: 10px 5px;
    font-size: 15px;
    font-weight: 600;
    -moz-appearance: textfield;
    background: white;
}

.pod-qty-input::-webkit-outer-spin-button,
.pod-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pod-qty-input:focus {
    outline: none;
}

.pod-file-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.pod-file-wrapper input[type="file"] {
    display: none;
}

.pod-file-wrapper .button {
    margin: 0;
    padding: 8px 16px;
    font-size: 14px;
}

.pod-file-name {
    color: #666;
    font-size: 14px;
    flex: 1;
}

.description {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}

.pod-processing-time-note {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fff9e6;
    border-left: 3px solid #f39c12;
    border-radius: 3px;
    font-size: 13px;
    color: #856404;
}

.pod-processing-time-note strong {
    display: block;
    font-weight: 600;
}

#podCustomText {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 8px;
}

.pod-view-guidelines {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pod-view-guidelines:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

.pod-view-guidelines,
.pod-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.pod-whatsapp-btn {
    background-color: #25D366;
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 15px;
    font-weight: 500;
    width: 100%;
    justify-content: center;
}

.pod-whatsapp-btn:hover {
    background-color: #1ea952 !important;
    color: white !important;
}

.pod-whatsapp-btn svg {
    fill: white;
}

.pod-help-section p {
    margin: 0 0 12px 0;
    font-weight: 500;
    font-size: 15px;
}

.pod-terms-label {
    display: flex;
    align-items: start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.pod-terms-label:hover {
    background-color: #f9f9f9;
}

.pod-terms-label input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.pod-terms-label a {
    color: inherit;
    text-decoration: underline;
}

.pod-terms-section.pod-error {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.pod-buy-now-section {
    margin: 0;
    padding: 0;
}

.pod-buy-now-btn {
    width: 100%;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal Styles */
.pod-modal {
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.pod-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    position: relative;
}

.pod-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.pod-modal-close:hover,
.pod-modal-close:focus {
    color: #000;
}

.pod-modal-body img {
    max-width: 100%;
    height: auto;
}

/* Hide default WooCommerce and theme add to cart buttons for POD products */
.pod-custom-fields-wrapper ~ .single_add_to_cart_button,
.pod-custom-fields-wrapper + .single_add_to_cart_button,
body .pod-custom-fields-wrapper ~ .ajax_add_to_cart,
body .variations_button .ajax_add_to_cart,
body .variations_button .elbzotech-bt-style2,
body .variations_button a.elbzotech-bt-style2,
body .variations_button a.ajax_add_to_cart,
body .woocommerce-variation-add-to-cart a.ajax_add_to_cart,
body .woocommerce-variation-add-to-cart a.elbzotech-bt-style2,
body .pod-custom-fields-wrapper ~ .elbzotech-bt-style2,
body a.ajax_add_to_cart.elbzotech-bt-style2 {
    display: none !important;
}

/* Ensure Buy Now button is visible */
.pod-buy-now-btn {
    display: block !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pod-custom-fields-wrapper {
        gap: 15px;
    }
    
    .pod-buy-now-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .pod-whatsapp-btn {
        padding: 11px 20px;
        font-size: 14px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pod-custom-fields-wrapper {
        padding: 15px;
    }
    
    .pod-modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Dual Upload Styles (Business Cards, Invitation Cards, Flyers) */
.pod-business-card-uploads {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.pod-upload-title {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pod-upload-title::before {
    content: '📋';
    font-size: 20px;
}

.pod-upload-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s;
}

.pod-upload-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pod-upload-item label {
    margin: 0;
}

.pod-upload-item .pod-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #495057;
}

.pod-upload-item .required {
    color: #dc3545;
    font-weight: bold;
}

.pod-upload-item .optional-label {
    color: #6c757d;
    font-weight: normal;
    font-size: 12px;
}

.pod-upload-item .pod-file-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pod-upload-item .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.pod-upload-item .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.pod-upload-item .button svg {
    width: 16px;
    height: 16px;
}

.pod-upload-item .pod-file-name {
    flex: 1;
    min-width: 150px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
}

.pod-upload-note {
    display: block;
    margin: 15px 0 0 0 !important;
    padding: 10px;
    background: #e7f3ff;
    border-left: 3px solid #2196F3;
    border-radius: 3px;
    font-size: 12px;
    color: #0d47a1;
}

.pod-business-card-uploads .pod-processing-time-note {
    margin-top: 15px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

/* Responsive for dual uploads */
@media (max-width: 768px) {
    .pod-business-card-uploads {
        padding: 15px;
    }
    
    .pod-upload-item {
        padding: 12px;
    }
    
    .pod-upload-item .pod-file-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pod-upload-item .button {
        width: 100%;
        justify-content: center;
    }
    
    .pod-upload-item .pod-file-name {
        width: 100%;
        text-align: center;
    }
}
