/**
 * Amazon Price Tracker public styles
 */

/* Main container */
.apt-price-tracker {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
    background-color: #fff;
}

/* Breadcrumb navigation */
.apt-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.apt-breadcrumb a {
    color: #0066c0;
    text-decoration: none;
}

.apt-breadcrumb a:hover {
    text-decoration: underline;
    color: #c45500;
}

/* Search container */
.apt-search-container {
    background-color: #f7f7f7;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.apt-search-form {
    display: flex;
    max-width: 600px;
    margin: 20px auto;
}

.apt-search-form input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
}

.apt-search-button {
    background: #FF9900;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.apt-search-button:hover {
    background: #E88A00;
}

/* Product Page Container */
.apt-product-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Product Details */
.apt-product-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: 160px;
}

.apt-product-main-info {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.apt-product-image {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    position: relative;
}

.apt-product-image::after {
    content: 'Image loading...';
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f2f2f2;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.apt-product-image.error::after {
    content: 'Image not available';
    opacity: 1;
}

.apt-product-image img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.apt-product-header {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.apt-product-header h2 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #222;
    line-height: 1.3;
}

.apt-product-meta {
    display: flex;
    flex-wrap: wrap;
    margin-top: auto;
    gap: 15px;
    align-items: center;
}

.apt-product-asin, .apt-product-update {
    font-size: 14px;
    color: #666;
    margin-right: 20px;
}

.apt-amazon-button {
    display: inline-block;
    background: linear-gradient(135deg, #FF9900 0%, #FF8C00 100%);
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
    position: relative;
    overflow: hidden;
    animation: pulse 2s ease-in-out infinite;
}

.apt-amazon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.apt-amazon-button:hover::before {
    left: 100%;
}

.apt-amazon-button:hover {
    background: linear-gradient(135deg, #FF8C00 0%, #FF7700 100%);
    text-decoration: none;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.5);
}

.apt-amazon-button-arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.apt-amazon-button:hover .apt-amazon-button-arrow {
    transform: translateX(5px);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 153, 0, 0.6);
    }
}

/* Price Stats */
.apt-price-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 20px;
}

.apt-price-stat {
    flex: 1 1 18%;
    min-width: 120px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.apt-price-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.apt-stat-label {
    display: block;
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
}

.apt-stat-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #222;
}

/* Price History */
.apt-price-history {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.apt-price-history h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #222;
    font-size: 22px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.apt-product-summary {
    margin: 15px 0 25px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.apt-chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    background: #FFFFFF;
}

.apt-chart-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

#chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.apt-loading-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.apt-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066c0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.apt-loading-error {
    background: #fdf2f2;
    border: 1px solid #fad2d2;
    color: #c53030;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    max-width: 400px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Period selector styling */
.apt-price-period-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.apt-period-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
}

.apt-period-btn:hover {
    background: #e6e6e6;
}

.apt-period-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Price type selector styling */
.apt-price-type-selector {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    justify-content: center;
}

.apt-price-type-label {
    margin-right: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.apt-price-type-label:last-child {
    margin-right: 0;
}

.apt-price-type-checkbox {
    margin-right: 5px;
}

.apt-checkbox-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border-radius: 50%;
}

.apt-checkbox-icon.amazon-price {
    background-color: #4CAF50;
}

.apt-checkbox-icon.new-price {
    background-color: #2196F3;
}

.apt-checkbox-icon.used-price {
    background-color: #FF9800;
}

.apt-price-type-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.amazon-price {
    color: #4CAF50;
}

.new-price {
    color: #2196F3;
}

.used-price {
    color: #FF9800;
}

/* Price summary table styling */
.apt-price-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.apt-price-summary-table th,
.apt-price-summary-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.apt-price-summary-table th {
    font-weight: bold;
    background: #f5f5f5;
    color: #333;
}

.apt-price-date {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
}

/* Price Table */
.apt-price-table {
    margin-top: 40px;
}

.apt-price-table h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.apt-table-container {
    overflow-x: auto;
}

.apt-price-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.apt-price-data-table th {
    background: #f5f5f5;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #eee;
    color: #555;
}

.apt-price-data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.apt-price-data-table tr:hover {
    background: #f9f9f9;
}

/* Price Alert */
.apt-price-alert {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.apt-price-alert h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #222;
    font-size: 22px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.apt-track-form {
    max-width: 100%;
}

.apt-form-row {
    margin-bottom: 20px;
}

.apt-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.apt-form-row input[type="email"],
.apt-form-row input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.apt-form-row input[type="email"]:focus,
.apt-form-row input[type="number"]:focus {
    border-color: #FF9900;
    outline: none;
}

.apt-form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #777;
}

.apt-form-actions {
    margin-top: 30px;
}

.apt-submit-button {
    background: #FF9900;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.2s;
}

.apt-submit-button:hover {
    background: #FF8C00;
}


/* Product cards */
.apt-products-grid, .apt-search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Large screen adjustments to show more products per row */
@media (min-width: 1200px) {
    .apt-products-grid, .apt-search-results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Responsive adjustments for search results grid */
@media (max-width: 768px) {
    .apt-products-grid, .apt-search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .apt-product-card .apt-product-image {
        height: 160px;
    }
    
    .apt-product-card .apt-product-image img {
        max-height: 140px;
    }
    
    .apt-product-title {
        font-size: 14px;
        height: 60px;
        -webkit-line-clamp: 3;
    }
    
    .apt-product-actions {
        flex-direction: column;
    }
    
    .apt-view-product, .apt-view-amazon, .apt-view-button {
        padding: 6px 8px;
        font-size: 12px;
    }
}

.apt-product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.apt-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.apt-product-card .apt-product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}

.apt-product-card .apt-product-image img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.apt-product-card:hover .apt-product-image img {
    transform: scale(1.05);
}

.apt-product-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 3px;
}

.apt-product-title {
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 10px;
    height: 68px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.apt-product-title a {
    color: #333;
    text-decoration: none;
}

.apt-product-title a:hover {
    color: #FF9900;
}

.apt-product-price {
    margin-top: auto;
    margin-bottom: 10px;
}

.apt-product-current-price {
    font-size: 18px;
    font-weight: bold;
    color: #111;
}

.apt-product-original-price {
    margin-left: 8px;
    font-size: 14px;
    color: #999;
}

.apt-product-actions {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.apt-view-product, .apt-view-amazon, .apt-view-button {
    flex: 1;
    display: block;
    padding: 8px 10px;
    font-size: 14px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.apt-view-product, .apt-view-button {
    background: #f0f0f0;
    color: #333;
}

.apt-view-amazon {
    background: #FF9900;
    color: #fff;
}

.apt-view-product:hover, .apt-view-button:hover {
    background: #e0e0e0;
    color: #111;
}

.apt-view-amazon:hover {
    background: #FF8C00;
    color: #fff;
}

/* Results Header */
.apt-results-header {
    margin: 20px 0 30px;
    text-align: center;
}

.apt-results-header h2 {
    margin-bottom: 5px;
    color: #333;
}

.apt-results-header p {
    color: #666;
}

/* Loading and Messages */
.apt-loading,
.apt-error-message,
.apt-success-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
    font-size: 14px;
}

.apt-loading {
    background: #f8f9fa;
    border: 1px solid #eee;
    color: #666;
    text-align: center;
}

.apt-error-message {
    background: #fdf2f2;
    border: 1px solid #fad2d2;
    color: #c53030;
}

.apt-success-message {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #2f855a;
}

/* Enhanced Product Page Styles */
.apt-product-additional-content {
    margin-top: 40px;
}

.apt-related-products, 
.apt-price-analysis, 
.apt-reviews-summary {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.apt-related-products h3,
.apt-price-analysis h3,
.apt-reviews-summary h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #222;
    font-size: 22px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Analysis Cards */
.apt-analysis-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.apt-analysis-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.apt-analysis-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.apt-analysis-icon {
    flex: 0 0 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.apt-analysis-icon i {
    font-size: 24px;
    color: #444;
}

.apt-analysis-content {
    flex: 1;
}

.apt-analysis-content h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 18px;
}

.apt-analysis-content p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Trend indicators */
.apt-trend-down {
    color: #2f855a;
    font-weight: bold;
}

.apt-trend-up {
    color: #c53030;
    font-weight: bold;
}

.apt-prediction-positive {
    color: #2f855a;
    font-weight: bold;
}

.apt-prediction-neutral {
    color: #3182ce;
    font-weight: bold;
}

.apt-prediction-negative {
    color: #c53030;
    font-weight: bold;
}

.apt-time-positive {
    color: #2f855a;
    font-weight: bold;
}

.apt-time-neutral {
    color: #3182ce;
    font-weight: bold;
}

.apt-time-negative {
    color: #c53030;
    font-weight: bold;
}

/* Reviews Summary */
.apt-reviews-summary {
    padding-bottom: 30px;
}

.apt-reviews-stars {
    font-size: 24px;
    color: #FF9900;
    margin-bottom: 10px;
}

.apt-review-highlights {
    margin-top: 20px;
}

.apt-review-highlight {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.apt-review-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.apt-review-content {
    color: #555;
    font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .apt-product-main-info {
        flex-direction: column;
    }
    
    .apt-product-image {
        margin-right: 0;
        margin-bottom: 20px;
        flex: 0 0 auto;
    }
    
    .apt-product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .apt-product-asin, .apt-product-update {
        margin-right: 0;
    }
    
    .apt-price-stats {
        flex-direction: column;
    }
    
    .apt-analysis-cards {
        grid-template-columns: 1fr;
    }
    
    .apt-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .apt-product-details {
        height: 170px;
    }
    
    .apt-product-title {
        height: 75px;
    }
    
    .apt-amazon-button {
        padding: 14px 28px;
        font-size: 16px;
        width: 100%;
        text-align: center;
        display: block;
    }
} 

/* Enhanced Price Alert Module */
.apt-quick-alert {
    border: none;
    border-radius: 16px;
    padding: 32px;
    background: #ffffff;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
    position: relative;
    border: 1px solid #e8e8e8;
}

.apt-quick-alert:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.apt-quick-alert h3 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 28px;
    color: #000000;
    font-weight: 700;
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.apt-track-form {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.apt-track-form label {
    display: block;
    margin-bottom: 12px;
    margin-left: 0;
    padding-left: 0;
    font-weight: 600;
    font-size: 16px;
    color: #000000;
    text-align: left;
    letter-spacing: -0.01em;
    text-transform: none;
}

/* Ensure labels sit above fields */
.apt-form-row > label { 
    display: block; 
    width: 100%; 
}
.apt-form-row > .apt-field { 
    display: block; 
    width: 100%; 
    margin-top: 8px; 
}

.apt-form-row {
    display: block;
    margin-bottom: 24px;
    margin-left: 0;
    margin-right: 0;
    padding: 16px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
}

/* Unified field wrapper for consistent layout */
.apt-field {
    display: block;
    background: #ffffff;
    margin-top: 10px;
    margin-left: 0 !important;
    margin-right: 0;
    padding: 0 !important;
}

.apt-field > input[type="email"],
.apt-field .apt-price-input,
.apt-field .apt-source-options,
.apt-field .apt-quick-percentages {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0;
    padding-left: 0 !important;
}

.apt-field .apt-text-input {
    margin-left: 0 !important;
    margin-right: 0;
    padding-left: 0 !important;
}

/* Subtle section note under labels */
.apt-section-note {
    margin-top: -6px;
    margin-bottom: 10px;
    color: #888;
    font-size: 12px;
}

/* Soft divider between sections */
.apt-section-divider {
    display: none; /* Cards provide separation */
}

.apt-track-form input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    background: #f8f8f8;
    box-shadow: none;
}

.apt-track-form input[type="email"]:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
    outline: none;
    background: #ffffff;
}
.apt-text-input {
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin: 0 !important;
    padding: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.apt-text-input input[type="email"] {
    border: none;
    background: transparent;
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
}

.apt-text-input:focus-within {
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
    background: #ffffff;
}


.apt-price-input {
    display: flex;
    align-items: stretch;
    background: #f8f8f8;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.2s;
    margin: 0 !important;
    padding: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.apt-price-input:focus-within {
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
    background: #ffffff;
}

.apt-currency-prefix {
    background: transparent;
    color: #666;
    padding: 0 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    border-right: none;
    font-size: 18px;
    min-width: auto;
    justify-content: center;
}

input#apt-target-price {
    flex: 1;
    border: none;
    padding: 14px 18px 14px 0;
    font-size: 16px;
    font-weight: 400;
    background: transparent;
}

input#apt-target-price:focus {
    outline: none;
}

input#apt-target-price::placeholder {
    color: #999;
}


.apt-source-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 !important;
    padding: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.apt-source-options label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #ffffff;
    border: 1.5px solid #e5e5e5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 15px;
    color: #333;
    position: relative;
    white-space: nowrap;
}

.apt-source-options label:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.apt-source-options label input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #0066cc;
    cursor: pointer;
}

.apt-source-options label:has(input[type="radio"]:checked) {
    background: #ebf2ff;
    color: #0a3d91;
    border-color: #7aaaf3;
    font-weight: 600;
}

.apt-quick-select-row {
    margin-bottom: 0;
    padding-top: 0;
}

.apt-quick-percentages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Removed .apt-percentage-label as it's now using the standard label styling */

.apt-percent-btn {
    background: #ffffff;
    border: 1.5px solid #e5e5e5;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: #334155;
    font-weight: 500;
    text-align: center;
}

.apt-percent-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.apt-percent-btn.active {
    background: #ebf2ff;
    color: #0a3d91;
    border-color: #7aaaf3;
}

.apt-any-price {
    grid-column: 1 / -1;
    background: #f8f8f8;
    border-color: #e0e0e0;
    color: #333;
}

.apt-any-price:hover {
    border-color: #0066cc;
    background: #f0f4ff;
}

.apt-any-price.active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.apt-submit-button {
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0;
}

.apt-submit-button:hover {
    background: #0ea371;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.apt-form-actions {
    margin-top: 28px;
    padding-top: 0;
    border-top: none;
}

.apt-form-info {
    margin-top: 14px;
    font-size: 13px;
    color: #888;
    text-align: center;
    line-height: 1.6;
}


/* Responsive adjustments for the price alert module */
@media (max-width: 768px) {
    .apt-quick-alert {
        padding: 28px 24px;
        border-radius: 14px;
    }
    
    .apt-quick-alert h3 {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .apt-track-form label {
        font-size: 15px;
    }
    
    .apt-submit-button {
        width: 100%;
        padding: 15px 28px;
        font-size: 16px;
    }
    
    .apt-quick-percentages {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .apt-quick-percentages .apt-any-price {
        grid-column: 1 / -1;
    }

    .apt-source-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .apt-quick-alert {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .apt-quick-alert h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .apt-track-form label {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .apt-quick-percentages {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .apt-percent-btn {
        padding: 11px 14px;
        font-size: 14px;
    }
    
    .apt-quick-percentages .apt-any-price {
        grid-column: 1 / -1;
    }

    .apt-track-form input[type="email"],
    input#apt-target-price {
        font-size: 16px; /* Prevent iOS zoom */
        padding: 13px 16px;
    }

    .apt-currency-prefix {
        padding: 0 14px;
        font-size: 16px;
    }
    
    .apt-form-row {
        margin-bottom: 20px;
    }
    
    .apt-submit-button {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* Additional enhancements for the price alert module */
.apt-input-active {
    border-color: #4d90fe !important;
}

.apt-track-form input[type="email"]:hover {
    border-color: #bbb;
}

.apt-price-input:hover {
    border-color: #bbb;
}

/* Response message styling */
#apt-response-message {
    padding: 16px 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 600;
    animation: slideUp 0.4s ease-out;
    display: none;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

#apt-response-message.success,
#apt-response-message.error {
    display: flex;
}

#apt-response-message i {
    margin-right: 10px;
    font-size: 20px;
}

#apt-response-message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 2px solid #c3e6cb;
}

#apt-response-message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 2px solid #f5c6cb;
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

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

/* Button hover effects */
.apt-submit-button:active {
    transform: translateY(0px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.apt-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.apt-submit-button i {
    margin-right: 8px;
}

/* Loading state for submit button */
.apt-submit-button.loading {
    background: linear-gradient(135deg, #ddd, #ccc);
    color: #666;
}

.apt-submit-button.loading i {
    animation: spin 1s linear infinite;
}

/* Green checkmark animation */
@keyframes checkmark {
    0% { transform: scale(0) rotate(45deg); }
    50% { transform: scale(1.2) rotate(45deg); }
    100% { transform: scale(1) rotate(45deg); }
}

/* Pulse effect for percentage buttons */
.apt-percent-btn.pulse {
    animation: buttonPulse 0.5s ease-out;
}

@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Focus visible for accessibility */
.apt-track-form input:focus-visible,
.apt-percent-btn:focus-visible,
.apt-source-options label:focus-visible {
    outline: 2px solid #4d90fe;
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
.apt-track-form *,
.apt-percent-btn,
.apt-source-options label,
.apt-submit-button {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
} 