/* KidSport WooCommerce Integration Styles */

/* Class Search */
.class-search-form {
    margin-bottom: 30px;
    display: flex;
}

.class-search-form input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.class-search-form button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.class-item {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.class-image {
    flex: 0 0 150px;
    margin-right: 20px;
}

.class-details {
    flex: 1;
}

.class-actions {
    margin-top: 15px;
}

.class-actions .button {
    margin-right: 10px;
}

/* Class Details Tabs */
.class-details-tabs {
    margin-top: 30px;
}

.class-details-tabs .tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.class-details-tabs .tabs li {
    margin: 0;
    padding: 0;
}

.class-details-tabs .tabs li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
}

.class-details-tabs .tabs li.active a {
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
    margin-bottom: -1px;
}

.class-details-tabs .tab {
    display: none;
    padding: 20px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-top: none;
}

.class-details-tabs .tab.active {
    display: block;
}

/* Instructor Profile */
.instructor-profile {
    display: flex;
    margin-bottom: 20px;
}

.instructor-image {
    flex: 0 0 100px;
    margin-right: 20px;
}

.instructor-details {
    flex: 1;
}

/* Class Gallery */
.class-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.gallery-date {
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

/* Parent Profile */
.parent-profile h2 {
    margin-top: 30px;
}

.profile-details,
.children-list,
.registrations-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.profile-details th,
.children-list th,
.registrations-list th {
    text-align: left;
    padding: 8px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
}

.profile-details td,
.children-list td,
.registrations-list td {
    padding: 8px;
    border: 1px solid #ddd;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .class-item {
        flex-direction: column;
    }

    .class-image {
        flex: 0 0 auto;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .instructor-profile {
        flex-direction: column;
    }

    .instructor-image {
        flex: 0 0 auto;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .class-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* WooCommerce Checkout Customizations */
.woocommerce-checkout .child-field {
    margin-top: 10px;
}

.woocommerce-checkout #add_child {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Child Selection Styles */
.child-selection {
    margin: 20px 0;
    padding: 15px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.child-selection h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.child-selection-options {
    margin-bottom: 15px;
}

.child-option {
    margin-bottom: 8px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.child-option:hover {
    background-color: #f0f0f0;
}

.child-option.selected {
    background-color: #e7f4ff;
    border-color: #0073aa;
}

.child-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.child-option input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.child-name {
    font-weight: bold;
    margin-right: 5px;
    color: #333;
}

.child-age {
    color: #666;
}

.child-selection-notice {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
    padding: 10px;
    background-color: #fffbea;
    border: 1px solid #f9e8a0;
    border-radius: 4px;
}

/* Cart Item Child Display */
.woocommerce-cart-form .cart_item .product-name .variation dt.variation-Child,
.woocommerce-checkout .product-name .variation dt.variation-Child {
    font-weight: bold;
    color: #0073aa;
}

.woocommerce-cart-form .cart_item .product-name .variation dd.variation-Child,
.woocommerce-checkout .product-name .variation dd.variation-Child {
    margin-bottom: 0;
    font-style: italic;
}

/* Dialog Styles */
#kidsport-dialog {
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#kidsport-dialog .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#kidsport-dialog .button:hover {
    background-color: #005177;
}

/* View Cart Button in Notices */
.woocommerce-notices-wrapper .wc-forward {
    margin-left: 10px !important;
    vertical-align: middle !important;
}

/* Multiple Child Discount Notice */
.multiple-child-discount {
    padding: 10px;
    background-color: #e7f4ff;
    border: 1px solid #0073aa;
    border-radius: 4px;
    margin-bottom: 15px;
    color: #333;
}

.multiple-child-discount strong {
    color: #0073aa;
}

/* Admin Styles */
.class-pictures-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-gap: 15px;
    margin-top: 15px;
}

.class-picture {
    text-align: center;
}

.class-picture img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.class-picture p {
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.kidsport-shortcodes {
    margin-top: 30px;
    padding: 20px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.kidsport-shortcodes h2 {
    margin-top: 0;
}

.kidsport-shortcodes table {
    margin-top: 15px;
}

.kidsport-shortcodes code {
    background-color: #e7e7e7;
    padding: 3px 5px;
    border-radius: 3px;
}

/* Add woocommerce my-account styles */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 20%;
    float: left;
    margin-right: 30px;
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 75%;
    float: left;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin-bottom: 10px;
}

/* Login Form Styling */
.woocommerce-account .woocommerce #customer_login .u-column1,
.woocommerce-account .woocommerce #customer_login .u-column2 {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 5px;
    margin-bottom: 20px;
}

.woocommerce-account .woocommerce #customer_login h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.woocommerce-account .woocommerce #customer_login input[type="text"],
.woocommerce-account .woocommerce #customer_login input[type="email"],
.woocommerce-account .woocommerce #customer_login input[type="password"] {
    padding: 10px;
    width: 100%;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
}

.woocommerce-account .woocommerce #customer_login input[type="text"]:focus,
.woocommerce-account .woocommerce #customer_login input[type="email"]:focus,
.woocommerce-account .woocommerce #customer_login input[type="password"]:focus {
    border-color: #0073aa;
    outline: none;
}

.woocommerce-account .woocommerce #customer_login .woocommerce-form-row {
    margin-bottom: 15px;
}

.woocommerce-account .woocommerce #customer_login .woocommerce-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.woocommerce-account .woocommerce #customer_login .woocommerce-form-login__rememberme {
    display: inline-block;
    margin-bottom: 10px;
}

.woocommerce-account .woocommerce #customer_login .woocommerce-LostPassword {
    margin-top: 15px;
}

.woocommerce-account .woocommerce #customer_login .button {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.woocommerce-account .woocommerce #customer_login .button:hover {
    background-color: #005177;
}

/* Registration notice styling */
.registration-notice {
    background-color: #e7f4ff;
    border: 1px solid #0073aa;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    color: #333;
}

.registration-notice h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.registration-notice p {
    margin-bottom: 10px;
}

/* Fix for bullet points in password field */
.woocommerce-account .woocommerce #customer_login input[type="password"],
.woocommerce-account .woocommerce input[type="password"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-register input[type="password"],
input[type="password"] {
    list-style: none !important;
    list-style-type: none !important;
    margin-left: 0 !important;
    padding-left: 12px !important;
}

/* Additional fixes for form elements */
.woocommerce-form-login p,
.woocommerce-form-register p,
.woocommerce-form-login label,
.woocommerce-form-register label,
.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row {
    list-style: none !important;
    list-style-type: none !important;
}

/* Fix for children information section */
.woocommerce-children-fields {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.woocommerce-children-fields h3,
.woocommerce-children-fields h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.woocommerce-children-fields input[type="text"],
.woocommerce-children-fields input[type="number"] {
    padding: 10px;
    width: 100%;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
}

.woocommerce-children-fields .form-row {
    margin-bottom: 15px;
}

/* Global fixes for form elements */
.woocommerce form .form-row {
    padding: 3px;
    margin: 0 0 10px;
}

.woocommerce form .form-row label {
    line-height: 2;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.woocommerce form .form-row input.input-text {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    outline: 0;
    line-height: normal;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
}

/* Fix for bullet points in all form elements */
.woocommerce-page input[type="password"],
.woocommerce-page input[type="text"],
.woocommerce-page input[type="email"],
.woocommerce-page input[type="tel"],
.woocommerce-page input[type="number"],
.woocommerce-page textarea,
.woocommerce-page select {
    list-style: none !important;
    list-style-type: none !important;
    margin-left: 0 !important;
}

/* Fix for the bullet in the password field */
body input[type="password"] {
    list-style-image: none !important;
    list-style-position: outside !important;
    list-style-type: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 10px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    background-color: #e7f4ff;
    border-color: #0073aa;
    box-shadow: 0 2px 5px rgba(0, 115, 170, 0.2);
}

.class-details-tabs .tabs  { width: 100%; }