/**
 * Art Photography for WooCommerce - Unified Premium Option Styles
 * 
 * This CSS file applies the premium styling from Limited Edition and Exclusive Rights options
 * to all purchase options for a consistent, premium look across the entire product page.
 */

/* === UNIFIED PREMIUM OPTION STYLING === */
/* Add padding to the purchase form */
.art-photography-purchase-form {
    padding: 15px !important;
}

/* Convert compact options to premium styling - match Insurance Coverage styling */
.compact-option, .checkbox-option {
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 8px !important;
    padding: 15px !important;
    border: 1px solid #4a6741 !important;
    border-radius: 6px !important;
    transition: all 0.25s ease !important;
    position: relative !important;
    cursor: pointer !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.compact-option:hover, .checkbox-option:hover {
    border: 1px solid #4a6741 !important;
    background-color: #f8f9f8 !important;
}

.compact-option.selected, .checkbox-option.selected, .radio-option.selected {
    border: 1px solid #4a6741 !important;
    background-color: #f8f9f8 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
}

/* Improved radio and checkbox button alignment */
.compact-radio, .purchase-option-radio {
    flex: 0 0 auto !important;
    margin-right: 12px !important;
    padding-top: 2px !important; /* Better align with content */
}

/* Content container for compact options - make it match premium layout */
.compact-content, .purchase-option-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

/* Header styling for title and price */
.compact-header, .purchase-option-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 2px !important;
}

/* Title styling - match insurance option exactly */
.compact-title, .radio-option-label, .checkbox-option-label {
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #333333 !important;
    margin: 0 !important;
}

/* Price styling to match premium options */
.compact-price, .option-price {
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #4a6741 !important;
    white-space: nowrap !important;
    margin-left: 10px !important;
}

/* Description styling to match premium options exactly */
.compact-description, .option-description {
    display: block !important;
    font-size: 13px !important;
    color: #666666 !important;
    line-height: 1.4 !important;
    margin-top: 4px !important;
    padding-left: 0 !important; /* Remove any old padding */
    margin-left: 0 !important; /* Remove old margin */
}

/* Legacy compact-label compatibility (for backward compatibility) */
.compact-option .compact-label {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 4px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #333333 !important;
}

/* Radio button styling */
.compact-option input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
}

.compact-option .custom-radio {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    border: 2px solid #a0a0a0 !important;
    border-radius: 50% !important;
    position: relative !important;
    margin-top: 3px !important;
}

.compact-option.selected .custom-radio {
    border-color: #4a6741 !important;
}

.compact-option.selected .custom-radio:after {
    content: '' !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #4a6741 !important;
}

/* Ensure premium-style border and shadow for all options */
.art-photography-premium-frame {
    border: 6px solid #ffffff !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.12) !important;
}

/* Consistent section styling */
.option-section {
    margin-bottom: 5px !important;
    border: medium !important; /* Remove default border */
}

/* Container for purchase options */
.purchase-options-container {
    margin-bottom: 5px !important;
}

.option-section h3.option-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #eaeaea !important;
    color: #333333 !important;
}

/* Enhanced collapsible section styling */
.collapsible-header {
    position: relative !important;
    padding: 12px 15px !important;
    background-color: #f5f7f5 !important; /* Subtle green tint */
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.collapsible-header:hover {
    background-color: #edf1ed !important;
}

/* Consistent collapsed content spacing */
.collapsible-content {
    padding: 0 10px !important;
    margin-top: 10px !important;
    overflow: hidden !important;
}

/* Container spacing for all purchase options */
.art-photography-purchase-options {
    display: flex !important;
    flex-direction: column !important;
    margin-top: 5px !important;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .compact-option {
        padding: 12px !important;
    }
    
    .compact-label {
        font-size: 14px !important;
    }
    
    .compact-description {
        font-size: 12px !important;
    }
}