/**
 * Comparison Block Styles
 */

.apb-comparison-block {
    margin: 30px 0;
}

.apb-comparison-title {
    margin: 0 0 20px;
    text-align: center;
    font-size: 2em;
}

.apb-comparison-table-wrapper {
    overflow-x: auto;
}

.apb-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.apb-comparison-table th,
.apb-comparison-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.apb-feature-header {
    background: var(--apb-secondary-color, #232F3E);
    color: #fff;
    font-weight: 600;
    text-align: left;
}

.apb-product-header {
    background: var(--apb-secondary-color, #232F3E);
    color: #fff;
    position: relative;
}

.apb-product-header.apb-best-product {
    background: var(--apb-primary-color, #FF9900);
}

.apb-best-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--apb-primary-color, #FF9900);
    color: #fff;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 3px;
    font-weight: bold;
}

.apb-product-image {
    margin: 10px 0;
}

.apb-product-image img {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
}

.apb-product-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 10px 0;
}

.apb-product-rating {
    margin: 10px 0;
}

.apb-product-price {
    margin: 10px 0;
    font-size: 1.1em;
}

.apb-original-price {
    text-decoration: line-through;
    color: #9ca3af;
    display: block;
    font-size: 0.9em;
}

.apb-current-price {
    color: var(--apb-accent-color, #B12704);
    font-weight: bold;
    display: block;
    font-size: 1.2em;
}

.apb-product-button {
    margin: 15px 0;
}

.apb-comparison-button {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.apb-comparison-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Button Sizes */
.apb-comparison-button.apb-btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
}

.apb-comparison-button.apb-btn-medium {
    padding: 12px 24px;
    font-size: 1em;
}

.apb-comparison-button.apb-btn-large {
    padding: 16px 32px;
    font-size: 1.1em;
}

/* Button Styles */
.apb-comparison-button.apb-btn-solid {
    /* Styles applied inline via PHP */
}

.apb-comparison-button.apb-btn-outline {
    /* Styles applied inline via PHP */
    background-color: transparent !important;
}

.apb-comparison-button.apb-btn-outline:hover {
    background-color: currentColor !important;
    color: #fff !important;
}

.apb-comparison-button.apb-btn-gradient {
    /* Styles applied inline via PHP */
    position: relative;
    overflow: hidden;
}

.apb-comparison-button.apb-btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.apb-comparison-button.apb-btn-gradient:hover::before {
    left: 100%;
}

.apb-feature-name {
    font-weight: 500;
    text-align: left;
    background: #f9fafb;
}

.apb-feature-value {
    font-size: 1.1em;
}

.apb-check {
    color: #10b981;
    font-size: 1.5em;
    font-weight: bold;
}

.apb-cross {
    color: #ef4444;
    font-size: 1.5em;
    font-weight: bold;
}

/* Table Styles */
.apb-table-style-modern .apb-comparison-table {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.apb-table-style-classic .apb-comparison-table {
    border: 2px solid #374151;
}

.apb-table-style-minimal .apb-comparison-table {
    border: none;
}

.apb-table-style-minimal .apb-comparison-table th,
.apb-table-style-minimal .apb-comparison-table td {
    border-bottom: 1px solid #e5e7eb;
    border-left: none;
    border-right: none;
}

/* Responsive */
@media (max-width: 768px) {
    .apb-comparison-table {
        font-size: 0.9em;
    }

    .apb-product-image img {
        max-width: 100px;
    }

    .apb-comparison-table th,
    .apb-comparison-table td {
        padding: 10px;
    }
}
