/* 
Theme Name: Canadian Chamber
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ==========================================
   1. GLOBAL & GENERAL ELEMENTS
   ========================================== */
* {
	--tec-color-accent-primary: var( --e-global-color-primary );
	--tec-color-button-primary: var( --e-global-color-primary );
}

p {
	margin-top: 0;
}

p:last-of-type {
	margin-bottom: 0;
}

p:empty {
	display: none;
}

#message {
	background-color: rgb(217 237 247);
	border: 1px solid rgb(188 232 241);
	border-radius: 8px;
	color: rgb(49 112 143);
	font-weight: 400;
	margin: 0 0 18px;
	padding: 12px 18px;
	text-align: left;
	background-color: rgb(255 248 224);
	border-color: rgb(255 238 186);
	color: rgb(108 81 1);
}

/* ==========================================
   2. SHARED FORM COMPONENTS (Global UI)
   ========================================== */

/* Labels */
.woocommerce-account label,
.acf-form label,
.pmpro_form label,
#loginform label,
#commentform label {
	color: var(--e-global-color-text) !important;
	font-size: var( --e-global-typography-61532bf-font-size );
	font-weight: 600;
	margin-bottom: 5px !important;
	line-height: 1.4 !important;
}

/* Inputs, Textareas, Selects */
.woocommerce-account input,
.woocommerce-account textarea,
.woocommerce-account select,
.acf-form input,
.acf-form textarea,
.acf-form select,
.pmpro_form input,
.pmpro_form textarea,
.pmpro_form select,
#loginform input,
#loginform textarea,
#loginform select,
#commentform input,
#commentform textarea,
#commentform select {
	border: 1px solid var(--e-global-color-8043eeb) !important;
	background: #fff !important;
	border-radius: 8px !important;
	padding: 12px 15px !important;
	line-height: 1.4 !important;
	font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
}

/* Select2 Specifics */
.woocommerce-account .select2-selection,
.pmpro_form .select2-selection {
	border-color: var(--e-global-color-8043eeb);
	border-radius: 8px !important;
	padding: 10.75px 15px !important;
}

/* Buttons & Submits */
.woocommerce-account button,
.acf-form button,
.acf-form input[type=submit],
.pmpro_form_submit button,
.pmpro_form_submit input[type=submit],
#loginform input[type=submit],
#commentform input[type=submit],
.acf-repeater-add-row,
.event-tickets button[type=submit] {
	background-color: var(--e-global-color-primary) !important;
	font-family: var(--e-global-typography-3cf1b10-font-family), Sans-serif !important;
	font-size: var(--e-global-typography-3cf1b10-font-size) !important;
	font-weight: var(--e-global-typography-3cf1b10-font-weight) !important;
	line-height: var(--e-global-typography-3cf1b10-line-height) !important;
	fill: var(--e-global-color-ab8cd41 !important);
	color: var(--e-global-color-ab8cd41) !important;
	border-style: solid !important;
	border-width: 1px 1px 1px 1px !important;
	border-color: var(--e-global-color-primary) !important;
	border-radius: 30px 30px 30px 30px !important;
	padding: 14px 35px 14px 35px !important;
	text-decoration: none !important;
}

.woocommerce-account button:hover,
.acf-form button:hover,
.acf-form input[type=submit]:hover,
.pmpro_form_submit button:hover,
.pmpro_form_submit input[type=submit]:hover,
#loginform input[type=submit]:hover,
#commentform input[type=submit]:hover,
.acf-repeater-add-row:hover,
.event-tickets button[type=submit]:hover {
	background-color: var(--e-global-color-secondary) !important;
	color: var(--e-global-color-ab8cd41) !important;
	border-color: var(--e-global-color-secondary) !important;
}

/* ==========================================
   3. ELEMENTOR POST CONTENT
   ========================================== */
.elementor-widget-theme-post-content p a,
.elementor-widget-theme-post-content li:not(.elementor-icon-list-item) a {
	text-decoration: underline;
}

.elementor-widget-theme-post-content ul,
.elementor-widget-theme-post-content ol {
	padding-left: 15px;
	margin-bottom: 15px;
}

.elementor-widget-theme-post-content ul:last-child,
.elementor-widget-theme-post-content ol:last-child {
	margin-bottom: 0;
}

summary.e-n-accordion-item-title:has(a:hover) {
    pointer-events: none;
}

summary.e-n-accordion-item-title:has(a:hover) a {
    pointer-events: auto
}

/* ==========================================
   4. PAID MEMBERSHIPS PRO (PMPRO)
   ========================================== */
#member-profile-edit .pmpro_card_content {
	display: grid;
	grid-template-columns: 1fr;
}

#member-profile-edit .pmpro_card_content .pmpro_spacer {
	display: none;
}

#pmpro_form_fieldset-profile-picture {
	order: 0;
}

#pmpro_member_profile_edit-account-information {
	order: 1;
	display: none;
}

#pmpro_form_fieldset-bio,
#pmpro_form_fieldset-additional-details,
#pmpro_form_fieldset-address,
#pmpro_form_fieldset-company-details,
.pmpro_form_submit {
	order: 2;
}

.pmpro-checkout section#pmpro_level-6 #pmpro_pricing_fields {
	display: none;
}

.pmpro_card_actions {
	margin-top: 30px;
}

#pmpro_user_fields .pmpro_form_fields {
	grid-template-columns: 1fr;
}

#pmpro_user_fields .pmpro_form_fields .pmpro_cols-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.pmpro_form_fields-description {
	font-style: italic;
}

#profile_picture_div .pmpro_form_label,
#profile_picture_div .pmpro_form_field-file-name {
	display: none !important;
}

.pmpro_card.pmpro_content_message {
    text-align: center;
    padding: 10%;
    border: 1px solid var( --e-global-color-8043eeb );
    border-radius: 24px;
    background: #ddd;
}

.pmpro_card.pmpro_content_message h2 {
    color: var( --e-global-color-primary );
}

.pmpro_card.pmpro_content_message h2 svg {
    display: none
}

.pmpro_card.pmpro_content_message p a {
    color: var( --e-global-color-text ) !important;
}

/* ==========================================
   5. ADVANCED CUSTOM FIELDS (ACF)
   ========================================== */
.acf-fields {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.acf-fields:after {
	display: none !important;
}

.acf-fields>.acf-field {
	padding: 0 !important;
	border: none !important;
	width: 100% !important;
}

.acf-field:not(:has(>*)) {
	display: none !important;
}

.acf-repeater .acf-fields {
	padding: 5px !important;
}

.acf-fields:not(td)>.acf-field:not(.acf-field-acfe-column) {
	grid-column: 1 / span 2;
}

.acf-label {
	margin: 0 !important;
}

.acf-url i {
	top: 50% !important;
	transform: translateY(-50%);
}

.acf-form-submit {
	border-top: 1px solid var(--e-global-color-8043eeb);
	margin-top: 40px;
	padding-top: 40px;
}

.acf-form div[data-name="profile_picture"] .acf-image-uploader.has-value .image-wrap img,
.acf-form div[data-name="company_logo"] .acf-image-uploader.has-value .image-wrap img {
	background: #fff;
	border: 1px solid var(--e-global-color-8043eeb) !important;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 100%;
	height: auto;
	max-width: 200px;
}

.acf-form div[data-name="company_logo"] .acf-image-uploader.has-value .image-wrap img {
	object-fit: contain;
}

.acf-form .custom-divider h3 {
	font-family: var(--e-global-typography-bd6c573-font-family), Sans-serif;
	font-size: var( --e-global-typography-accent-font-size );
	font-weight: var(--e-global-typography-bd6c573-font-weight);
	line-height: var(--e-global-typography-bd6c573-line-height);
	color: var(--e-global-color-primary);
}

.acf-form .custom-divider p{
	font-size: var(--e-global-typography-3cf1b10-font-size) !important;
}

/* ==========================================
   6. WOOCOMMERCE & SHARED FIELDSETS
   ========================================== */

.woocommerce-error li, .woocommerce-info li, .woocommerce-message li {
	padding-left: 30px !important;
}

/* Fieldset and Legend styles shared between Woo and PMPro */
.woocommerce-account fieldset,
.pmpro_form fieldset {
	border: none;
	padding: 0 0 40px !important;
	margin-bottom: 40px;
	border-bottom: 1px solid var(--e-global-color-8043eeb) !important;
}

.woocommerce-account fieldset.pmpro_form_fieldset .pmpro_form_heading,
.woocommerce-account legend,
.woocommerce-account legend > :is(h2, h3, h4),
.pmpro_form legend,
.pmpro_form legend > :is(h2, h3, h4) {
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-85d7dc1-font-family), Sans-serif !important;
	font-size: var(--e-global-typography-85d7dc1-font-size) !important;
	font-weight: var(--e-global-typography-85d7dc1-font-weight) !important;
}

.woocommerce-account fieldset .pmpro_form_fields,
.pmpro_form fieldset .pmpro_form_fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.woocommerce-account .pmpro_form_fields-description,
#description_div,
#company_address_div {
	grid-column: 1 / span 2;
}

/* WooCommerce Specific Layouts */
.woocommerce-account button.show-password-input {
	border: none !important;
	background-color: transparent !important;
	padding: 0 !important;
}

.woocommerce form .form-row-first, 
.woocommerce form .form-row-last, 
.woocommerce-page form .form-row-first, 
.woocommerce-page form .form-row-last {
	width: calc(50% - 10px);
}

form.woocommerce-EditAccountForm.edit-account .clear {
	display: none;
}

form.woocommerce-EditAccountForm.edit-account p:has(#account_first_name),
form.woocommerce-EditAccountForm.edit-account p:has(#account_last_name),
form.woocommerce-EditAccountForm.edit-account p:has(#account_display_name) {
	display: none;
}

.pmpro-member-info {
    display: flex;
    gap: 10px;
}

.pmpro-member-info p {
    margin-bottom: 0 !important;
}

.pmpro-member-info > *:not(:first-child) {
    border-left: 1px solid grey;
    padding-left: 10px;
}

/* ==========================================
   6. EVENTS TICKETS
   ========================================== */

.tec-tickets__attendees-list-wrapper {
    margin: 0 !important;
}

.tec-tickets__attendees-list-wrapper .tec-tickets__attendees-list {
	max-height: 100px;
	overflow: auto;
}

.tec-tickets__attendees-list-wrapper .tec-tickets__attendees-list-item {
    display: grid !important;
    grid-template-columns: 1fr 1fr auto
}

@media (max-width: 767px) {
	.tec-tickets__attendees-list-wrapper .tec-tickets__attendees-list-item {
    	grid-template-columns: 1fr 1fr;
	}

    .tec-tickets__attendees-list-wrapper .tec-tickets__attendees-list-item > .tec-tickets__attendees-list-item-attendee-details {
        grid-column: 1 / span 2
    }

    .tribe-tickets__rsvp-actions {
        margin-top: 0 !important;
        padding: 20px 0 !important;
    }
}

.tribe-dialog__wrapper.tribe-modal__wrapper--ar {
    max-width: 550px !important;
    border-radius: 30px !important;
}

.tribe-dialog__wrapper.tribe-modal__wrapper--ar .tribe-tickets__attendee-tickets-form {
    margin-bottom: 0 !important;
    border-top: 1px solid var(--tec-color-border-secondary) !important;
    padding-top: var(--tec-spacer-5);
}

.tribe-dialog__wrapper.tribe-modal__wrapper--ar .tribe-modal__content .tribe-tickets__tickets-item {
    border-top: 1px solid var(--tec-color-border-secondary) !important;
    border-bottom: 1px solid var(--tec-color-border-secondary) !important;
}

.tribe-dialog__wrapper.tribe-modal__wrapper--ar .tribe-modal__content .tribe-tickets__tickets-item-content-title-container {
    grid-column: 1 /span 2 !important;
}