
/**
 * Kadence Integration Styles
 * Custom Simple Peptide Plugin
 */

/* Custom Simple Peptide - Kadence Integration Styles */

/* Packaging Options Styles */
.csp-packaging-options-block {
    margin: 15px 0;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.csp-packaging-options-block h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 6px;
}

.packaging-option {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding: 4px 8px;
    border: 2px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fafafa;
}

.packaging-option:hover {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
    transform: translateY(-1px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.packaging-option:has(input:checked) {
    background-color: #e8f4fd;
    border-color: #0073aa;
    box-shadow: 0 1px 4px rgba(0, 115, 170, 0.2);
}

.packaging-option input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #0073aa;
}

.packaging-option img {
    width: 45px !important;
    height: 45px !important;
    object-fit: contain;
    margin-right: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #f8f8f8;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.packaging-option span {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin-right: 8px;
}

.packaging-option span:last-child {
    color: #0073aa;
    font-weight: 600;
    font-size: 13px;
    text-align: right;
    min-width: 70px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .csp-packaging-options-block > div {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .csp-packaging-options-block img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .csp-packaging-options-block > div > span:last-child {
        text-align: left;
        margin-top: 5px;
    }
}

/* Existing styles for other functionality */
.retail-price {
    font-weight: bold;
    color: #0073aa;
    margin-right: 5px;
}

.b2bking_tiered_price_table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.b2bking_tiered_price_table tbody tr:hover {
    background-color: #f0f8ff;
}

.b2bking_tiered_price_table tbody tr.selected-tier {
    background-color: #e6f3ff;
    border-left: 3px solid #0073aa;
}

/* Error message styling */
.csp-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
    position: relative;
}

.csp-error-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #721c24;
    padding: 0;
    line-height: 1;
}

.csp-error-close:hover {
    color: #491217;
    opacity: 0.8;
}
