/* Frontend Styles for Event Product Manager */

/* Product Page Styles */
.epm-product-fields {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 20px;
}

.epm-product-fields h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3em;
}

.epm-participants-wrapper {
    margin-bottom: 20px;
}

.epm-participant-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    position: relative;
}

.epm-participant-item h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.epm-participant-item .form-row {
    margin-bottom: 15px;
}

.epm-participant-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.epm-participant-item input[type="text"],
.epm-participant-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.epm-participant-item input[type="checkbox"] {
    margin-right: 8px;
}

.epm-remove-participant {
    background: #dc3232;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.epm-remove-participant:hover {
    background: #c02020;
}

.epm-add-participant {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.epm-add-participant:hover {
    background: #005177;
}

.epm-price-preview {
    background: #e7f7ff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.epm-price-preview strong {
    color: #333;
}

.epm-additional-cost {
    color: #0073aa;
    font-size: 1.2em;
    font-weight: 700;
}

/* Appointments List Styles */
.epm-appointments-list {
    margin: 20px 0;
}

.epm-appointment-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.epm-appointment-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
    font-size: 1.3em;
}

.epm-appointment-meta {
    margin-bottom: 15px;
    color: #666;
}

.epm-appointment-meta span {
    display: inline-block;
    margin-right: 20px;
}

.epm-appointment-date,
.epm-appointment-product {
    font-size: 0.95em;
}

.epm-appointment-description {
    color: #555;
    line-height: 1.6;
}

/* Product Appointments Shortcode */
.epm-product-appointments {
    margin: 20px 0;
}

.epm-product-appointments h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.epm-product-appointments ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.epm-product-appointments .epm-appointment-item {
    padding: 15px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
}

.epm-product-appointments .epm-appointment-item strong {
    color: #0073aa;
}

.epm-product-appointments .epm-appointment-item small {
    color: #777;
}

/* Cart & Order Styles */
.epm-order-participants {
    background: #f9f9f9;
    padding: 15px;
    margin-top: 10px;
    border-radius: 6px;
}

.epm-order-participants > strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .epm-product-fields {
        padding: 15px;
    }

    .epm-participant-item {
        padding: 15px;
    }

    .epm-participant-item h4 {
        font-size: 1em;
    }

    .epm-appointment-meta span {
        display: block;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .epm-remove-participant {
        float: none;
        display: block;
        margin-top: 10px;
        width: 100%;
    }
}

/* WooCommerce Integration */
.woocommerce-cart .epm-participant-item,
.woocommerce-checkout .epm-participant-item {
    background: #fafafa;
    padding: 15px;
    margin-bottom: 10px;
}

/* Accessibility */
.epm-participant-item input:focus,
.epm-participant-item select:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    border-color: #0073aa;
}

.epm-add-participant:focus,
.epm-remove-participant:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
