/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/*
 * Styling for WooCommerce Variations
.variation-buttons label span {
    display: inline-block;
    padding: 8px 14px;
    margin: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 4px;
    background: #f9f9f9;
}
.variation-buttons input[type="radio"] {
    display: none;
}
.variation-buttons input[type="radio"]:checked + span,
.variation-buttons label:hover span {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
*/

.woocommerce-notice {
    .button {
        background-color: var(--bricks-color-asaprimary);
        padding: 6px 24px;
        color: white;
        i {
            margin: 0 8px 0 0;
        }
    }
}

.woocommerce-notices-wrapper {
    padding-top: 48px;
    margin-bottom: 0;
}
.woocommerce-notices-wrapper .woocommerce-message {
    background-color: var(--bricks-color-asasecondary);
    color: white;
}
.woocommerce-notices-wrapper .woocommerce-message a {
    background-color: white;
    color: var(--bricks-color-asasecondary);
}
.woocommerce-order-details {
    table td, table th {
        width: auto;
    }
    .woocommerce-table__product-name {
        a {
            color: var(--bricks-color-asasecondary);
            font-weight: bold;
            font-size: 1.2em;
        }
        .product-quantity {
            display: none;
        }
    }
    .woocommerce-table__product-table,
    .woocommerce-table__product-total,
    tfoot td {
        width: 25%;
        vertical-align: top;
    }
    .wc-item-meta {
        margin: 10px 0 0 0;
        padding: 8px 12px;
        list-style: none;
        border-left: 4px solid #efefef;
        li {
            font-size: 0.9em;
            display: flex;
            justify-content: start;
            gap: 12px;
            margin-top: 4px;
        }
    }
    .wc-ticket-image {
        padding: 8px 12px;
        border-left: 4px solid #efefef;
        img {
            max-width: 540px;
        }
    }
}

.custom-field-wrapper {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    row-gap: 24px;
    column-gap: 24px;
    > p {
        flex: 0 1 auto;
        display: block;
        width: 45%;
        margin: 0;
        padding: 0;
        a {
            color: var(--bricks-color-asasecondary);
            text-decoration: underline;
        }
    }
    > p#league_field,
    > p#attendee_waiver_read_field,
    > p#attendee_waiver_signature_field {
        width: 100%;
    }
    > p#attendee_waiver_read_field {
        input[type="checkbox"] {
            vertical-align: top;
            margin-right: 12px;
            appearance: none;
            -webkit-appearance: none;
            width: 54px;
            height: 34px;
            background: #ccc;
            border-radius: 20px;
            position: relative;
            outline: none;
            cursor: pointer;
            transition: background 0.3s ease-in-out;
        }
        input[type="checkbox"]::before {
            content: '';
            position: absolute;
            top: 4px;
            left: 4px;
            width: 24px;
            height: 24px;
            background: white;
            border-radius: 50%;
            transition: transform 0.3s ease-in-out;
        }
        input[type="checkbox"]:checked {
            background: #2c7be5;
        }
        input[type="checkbox"]:checked::before {
            transform: translateX(20px);
        }
    }
    > p#attendee_waiver_signature_field input {
        max-width: 120px;
    }
}

body article {
    .wc-block-components-order-summary-item {
        margin-bottom: 12px;
    }
	.wc-block-components-order-summary-item__description {
		padding: 0!important;
	}
	.wc-block-components-order-summary-item__image {
		display: none!important;
	}
	.wc-block-components-product-metadata__description {
		display: none;
	}
	.wc-block-components-order-summary-item__individual-prices  {
		display: none;
	}
	.wc-block-components-product-details.wc-block-components-product-details {
		padding-left: 10px;
		li {
			span:first-child {
				font-weight: bold;
      }
		}
	}
    .wp-block-woocommerce-checkout.alignwide {
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
}

/**
* Styling for League choice radio buttons
*/
.league-choice-wrapper .woocommerce-input-wrapper {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.league-choice-wrapper input[type="radio"] {
    display: none;
}
.league-choice-wrapper .woocommerce-input-wrapper label {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    background: #f7f7f7;
    transition: all 0.15s ease-in-out;
}
.league-choice-wrapper input[type="radio"]:checked + label {
    background: #2c7be5;
    color: #fff;
    border-color: #2c7be5;
}
