/* 
Theme Name: Norwich Med-Chi
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Norwich Med-Chi is a custom Hello Elementor Child derivative which is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team and PSLWeb
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
*/

/* General Classes */
.wpmem_msg, .nmc-error {
    color: #C00;
    font-weight: bold;
    margin: 0 0 1.4rem 0;
    font-size: 1.6rem;
}
.wpmem_msg span, .wpmem_msg.wpmem_msg_success, .nmc-asp-success { /* Success messages */
    color: #008000;
}

/* External Link icon, but only if link within a paragraph */
.elementor-widget-text-editor a[href^="http"]:not([href*="localhost"]):not([href*="norwichmedchi.org.uk"]) {
    padding-right: 12px;
    background: url(images/external-link-orange.png) no-repeat right 2px;
}
footer .elementor-widget-text-editor a {
    color: #F2E74B;
    font-size: 1.2rem;
}
footer .elementor-widget-text-editor a:hover {
    text-decoration: none;
}
footer .elementor-widget-text-editor a[href^="http"]:not([href*="localhost"]):not([href*="norwichmedchi.org.uk"]) {
    background: url(images/external-link-yellow.png) no-repeat right 2px;
}
footer .elementor-widget-text-editor a[href^="http"]:not([href*="localhost"]):not([href*="norwichmedchi.org.uk"]):hover {
    background: url(images/external-link-orange.png) no-repeat right 2px;
}

/* Gallery Caption 'border' */
/*figcaption.gallery-caption {
    border: 1px solid #CCC;
    border-top: 0;
}*/

/* Various fixes for Elementor */
/* Fix for adding a bottom margin to unordered lists - see: https://geekonheels.com/tutorial/so-you-need-some-space-under-your-bulleted-lists/ */
.elementor-widget-text-editor ul, .elementor-widget-theme-post-content ul, /* Also apply Ordered Lists */
	.elementor-widget-text-editor ol, .elementor-widget-theme-post-content ol,
	.nmc-asp-event-container ul, .nmc-asp-event-container ol { /* Note: typo in original - missing hyphen */
    margin-bottom: 2.2rem; /* Should match margin-bottom of paragraphs */
    padding-left: 1.3rem; /* Align bullet points with text */
}
.elementor-widget-text-editor ul li, .elementor-widget-theme-post-content ul li, /* Also apply Ordered Lists */
	.elementor-widget-text-editor ol li, .elementor-widget-theme-post-content ol li,
	.nmc-asp-event-container ul li, .nmc-asp-event-container ol li { /* Note: typo in original - missing hyphen */
    margin-bottom: 1.4rem; /* Should match margin-bottom of paragraphs */
    padding-left: 0.7rem; /* Align bullet points with text */
}

/* Elementor figcaption. Note: color and typography is styled directly with Elementor, but margins need this */
.widget-image-caption.wp-caption-text {
    margin-top: 8px;
}
.elementor-widget-heading h4 { /* H4 elements in the Heading Template */
    margin: 0 0 0.6rem 0;
}
.elementor-widget-text-editor hr { /* HR elements in the Body Copy Template */
    margin: 0 0 1.7rem 0;
}
.elementor-widget-text-editor a { /* Anchor */
    font-weight: 700;
}
/* Fix for Elementor Global Button settings not applying the following: */
.elementor-button-text {
    font-weight: 700;
}
.elementor-button-link:hover {
    text-decoration: none !important;
}
.elementor-widget-container p:last-of-type { /* Reduce bottom margin of last paragraphs */
    margin-bottom: 0.9rem;
}

/* WP Member Forms
   --------------- */
form[id^="wpmem_"] fieldset {
    border: none;
    margin: 0 0 1.4rem 0;
    padding: 0;
}
form[id^="wpmem_"] legend {
    display: none;
}
form[id^="wpmem_"] div {
    margin-bottom: 1.4rem;
    max-width: 40rem;
}
form[id^="wpmem_"] input[type="submit"] {
    border: none;
    font-weight: 700;
}
form[id^="wpmem_"] label a {
    font-size: 1.2rem;
}

/* ASP Event
   --------- */
.nmc-asp-event-container {
    display: flex;
    flex-direction: column;
}
.nmc-asp-button {
    align-self: center;
    margin-bottom: 2.1rem;
}
.nmc-asp-event-date {
    font-weight: 700;
    font-variant: small-caps;
}
/* Add the following to put button ranged left on large-width devices */
@media (min-width: 1024px) {
    .nmc-asp-button {
	align-self: start;
    }
}
.nmc-asp-button-wrapper {
    margin: 1.2rem 0;
}

/* Format the Stripe Result Page */
.asp-thank-you-page-msg-wrap {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background-color: inherit !important;
}

/* Settings -> NMC ASP Options: descriptive texts */
.nmc-asp-admin-description {
    font-size: 14px;
}

.nmc_asp_shortcode {
    background-color: #FFF;
}