/*
 Theme Name:   Adams Gas Theme
 Theme URI:    https://www.adamsgas.co.uk/
 Description:  Custom Bricks child theme for Adams Gas.
 Author:       ExtraDigital
 Author URI:   https://www.extradigital.co.uk/
 Template:     bricks
 Version:      1.0
*/



/* Global input styles */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    font-family: 'Lato','Helvetica Neue', Helvetica, Arial, sans-serif;
    border: 1px solid var(--dark-20) !important;
    padding: 0 12px;
    border-radius: var(--radius-s) !important;
    font-size: var(--text-m) !important;
    line-height: 50px;
}

select.gmw-distance-field {
    padding: 10px 50px 10px 14px !important;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(0, 115, 230, 0.5);
}

textarea {
    padding: 12px;
}

.checkout .select2-container--default .select2-selection--single {
    border-radius: var(--radius-s) !important;
}

.woocommerce-notices-wrapper {
    background-color: var(--bg-body);
}

.woocommerce-MyAccount-content .woocommerce-notices-wrapper {
    background-color: transparent;
}

.single-product .woocommerce-notices-wrapper {
    background-color: transparent;
}

.single-product .woocommerce-notices-wrapper .woocommerce-message, 
.single-product .woocommerce-NoticeGroup .woocommerce-message {
    margin: 20px auto 0 ;
}

.woocommerce-notices-wrapper .woocommerce-message, 
.woocommerce-NoticeGroup .woocommerce-message {
    max-width: var(--max-screen-width);
    margin: 20px auto;
}

.woocommerce-notices-wrapper:not(:empty) {
     margin-bottom: 0; 
}

.woocommerce-account form .woocommerce-password-strength {
    border-radius: 5px;
}

.single-product__gallery.brxe-product-gallery {
  width: 100%;
  background-color: var(--bg-surface);
  border-radius: 10px;
}

.brxe-product-gallery .woocommerce-product-gallery, .brxe-product-gallery img {
    width: 100%;
    border-radius: 10px;
}

.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-message,
.single-product .woocommerce-notices-wrapper .woocommerce-message {
    display: none;
}

/* Messages */
.postcode-message {
    margin-top: 10px;
    padding: 12px 15px;
    border-radius: 4px;
    display: none;
}

.postcode-message.success {
    background: rgba(70, 180, 80, 0.1);
    color: #46b450;
    border: 1px solid #46b450;
}

.postcode-message.error {
    background: rgba(220, 50, 50, 0.1);
    color: #dc3232;
    border: 1px solid #dc3232;
}

/* Loading State */
.checking .check-postcode {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 480px) {
    .postcode-form-wrapper {
        flex-direction: column;
    }
    
    .button.check-postcode {
        width: 100%;
    }
}


/* Header postcode bar */
.ag-pc-bar { 
    background: transparent;
    color: #fff; 
    padding: 8px 0; 
    display: flex; 
    align-items: center; 
    justify-content: flex-end; 
}

.ag-pc-bar__value {
    font-size: 16px;
}

.ag-pc-bar__inner { 
    display: flex; 
    gap: 0; 
    align-items: center; 
}
.ag-pc-input { 
    padding: 8px 50px 8px 15px;
    border-radius: 10px; 
    border: 0; 
    min-width: 240px; 
    height: 46px;
    color: var(--dark);
    font-size: 16px;
}

.ag-pc-bar__inner input::placeholder {
    color: grey;
    font-size: 16px;
}

.ag-pc-apply { 
    background: var(--primary); 
    border: 0; 
    padding: 0; 
    border-radius: 50%; 
    cursor: pointer; 
    width: 35px;
    height: 35px;
    margin-left: -45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ag-pc-apply__txt {
    font-size: 0; /* hide text */
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path stroke='none' d='M0 0h24v24H0z' fill='none'/><path d='M17 7l-10 10' /><path d='M8 7l9 0l0 9' /></svg>") no-repeat center;
    background-size: contain;
    display: block;
}

.ag-pc-change { 
    background: transparent; 
    border: 1px solid #fff; 
    color: #fff; 
    text-decoration: none; 
    cursor: pointer; 
    margin-left: 30px;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 16px;
}

.ag-pc-bar__label {
    color: #fff;
    margin-right: 10px;
    font-weight: 600;
    font-size: 16px;
}

@media (max-width: 505px) {
    .ag-pc-bar {
        justify-content: center;
    }
  .ag-pc-change {
    font-size: 0;       /* hide text */
    padding: 5px;
    border-radius: 50px;
    background: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ag-pc-change::before {
        content: '';
        display: inline-block;
        width: 24px;
        height: 24px;
        background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path stroke='none' d='M0 0h24v24H0z' fill='none'/><path d='M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4' /><path d='M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4' /></svg>") no-repeat center;
        background-size: contain;
      }
}

/* Change width of the product category edit form */

.product_cat form#edittag {
    max-width: 1200px !important;
}

a.button,
a.bricks-button,
.btn--primary.brxe-button,
.filter-item:nth-child(4) .reset-button {
    font-family: "Poppins", 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all .2s ease;
}

button.ag-change-location {
    font-family: "Poppins", 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600 !important;
    transition: all .2s ease;
}

a.bricks-button.quick-links-btn {
    font-family: "Lato";
    font-size: var(--text-s) !important;
}


button.ag-change-location:hover,
a.button:hover,
.filter-item:nth-child(4) .reset-button:hover,
.single_add_to_cart_button:hover,
button#ag-check-postcode:hover {
    background-color: var(--primary-d-1) !important;
}

.woocommerce-message a.button,
.woocommerce-error a.button,
.woocommerce-message a.restore-item {
     background-color: transparent !important;
}


/* Geo My WP custom styles */

ul.gmw-meta-fields li.gmw-meta-field {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px !important;
    color: #616161;
}

.gmw-element-template .gmw-item-footer .gmw-item-address {
    gap: 5px;
    padding: 5px 0 0 !important;
}

.gmw-single-item ul.gmw-meta-fields li.gmw-meta-field.field-name-phone:before {
  content: "";
  display: block;
  height: 18px;
  width: 18px;
  background-size: 18px 18px;
  background-image: url(https://stockist.adamsgas.co.uk/wp-content/uploads/sites/3/2025/09/phone-icon-yellow.svg);
  background-repeat: no-repeat;
}

.gmw-distance {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-body);
}

.gmw-icon-location-thin:before, .gmw-distance:before {
  content: "" !important;
  display: block;
  height: 18px;
  width: 18px;
  background-size: 18px 18px;
  background-image: url(https://stockist.adamsgas.co.uk/wp-content/uploads/sites/3/2025/09/Location-pin-icon-yellow.svg);
  background-repeat: no-repeat;
}


.gmw-standard-info-window .gmw-info-window-inner .distance {
    background: var(--gmw-form-color-primary) !important;
    color: var(--gmw-form-font-color-primary) !important;
    left: 0;
    right: initial;
    font-weight: 600;
}

.gmw-standard-info-window .gmw-info-window-inner {
    display: grid
;
    font-size: 13px;
    grid-auto-flow: row;
    justify-items: stretch;
    text-align: center;
    line-height: 1.6;
    padding: 15px 0 !important;
    width: 200px !important;
    max-height: 220px;
    overflow-x: scroll;
    align-content: flex-start;
}

body .gmw-map button.gm-ui-hover-effect {
    font-size: 12px !important;
    color: var(--gmw-form-font-color-primary) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    text-shadow: none !important;
    border: 0 !important;
    padding: 6px 10px !important;
    border-bottom-left-radius: 5px !important;
    border-top-right-radius: 5px !important;
    background-image: none !important;
    display: inline-block !important;
    background: var(--gmw-form-color-primary) !important;
    opacity: 1;
    top: 0 !important;
    right: 0 !important;
    width: initial !important;
    height: initial !important;
    line-height: 1.4;
}

.gmw-standard-info-window .gmw-info-window-inner .gmw-info-window-element.title, .gmw-standard-info-window .gmw-info-window-inner .gmw-info-window-element.title a {
    font-size: 16px;
    font-weight: 400;
    color: var(--gmw-form-title-font-color);
    line-height: 1.3;
}

.gm-style .gm-style-iw-d {
    overflow: auto !important;
}

body.bricks-is-frontend :focus-visible {
    outline: 0 solid var(--primary) !important;
}

.gmw-standard-info-window .gmw-info-window-inner .gmw-info-window-element.title, .gmw-standard-info-window .gmw-info-window-inner .gmw-info-window-element.title a {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--gmw-form-title-font-color);
}
    
gmp-advanced-marker svg {
    fill: #e86a2b;
}

.ag-stockist-result .gmw-single-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    transition: all .2s ease;
    border-bottom: 0;
}

.ag-stockist-result.is-active .gmw-single-item {
    background-color: var(--bg-body);
    border-radius: 10px;
    padding: 20px;
    transition: all .2s ease;
    border-bottom: 0;
    border-color: transparent;
}

.gmw-results-list.posts-list-wrapper {
  height: calc(100vh - 495px);
  overflow-y: auto;
}

.gmw-element-template.gmw-template-responsive-2 {
    position: relative;
}

.gmw-results-list.posts-list-wrapper::-webkit-scrollbar {
    width: 0px;
    background: transparent; /* make scrollbar transparent */
}

.gmw-results-list.posts-list-wrapper .profile-access-btn {
    text-align: center;
    cursor: pointer;
    border: 0;
    padding: 12px 20px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: var(--text-m);
    margin-top: 15px;
    font-weight: 600;
    display: inline-block;
    transition: all .2s ease;
    font-family: 'Poppins','Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.gmw-results-list.posts-list-wrapper .profile-access-btn:hover {
    background: var(--primary-d-1);
}

.gmw-results-list.posts-list-wrapper .ag-stockist-result.is-active .profile-access-btn {
    display: inline-block;
}

@media (min-width: 769px) {
    .gmw-element-template.gmw-list-view .gmw-results-list .gmw-item-content {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}




@media (max-width:450px) {
    #gmw-map-wrapper-3 {
        height: 300px !important;
    }
}


#signup-content  {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-3xl);
    padding-right: var(--space-m);
    padding-left: var(--space-m);
}
    

#signup-content .wp-activate-container {
	margin: 0 auto;
    width: var(--max-screen-width);
    max-width: 100%;
}

    
#signup-content .wp-activate-container  h2 {
    font-size: var(--text-2xl);
}


#signup-content .wp-activate-container  .signup-welcome {
	margin-bottom: 20px;
}
	
#signup-content .wp-activate-container .signup-welcome p {
	margin-bottom: 10px;
}

#signup-content .wp-activate-container .signup-welcome p span.h3 {
	font-size: var(--text-m);
}


/* Error wrapper for any field row */
.wwp_wholesaler_registration_form .ag-has-error input,
.wwp_wholesaler_registration_form .ag-has-error select,
.wwp_wholesaler_registration_form .ag-has-error textarea {
    border-color: #d63638 !important;
    box-shadow: 0 0 0 1px rgba(214, 54, 56, 0.25);
}

/* Error message text */
.wwp_wholesaler_registration_form .ag-field-error {
    display: block;
    color: var(--primary);
    font-size: var(--text-s);
    margin-top: 4px;
}

/* Normal spacing between rows */
.wwp_wholesaler_registration_form p.woocommerce-form-row,
.wwp_wholesaler_registration_form .wwp-password-wrapper,
.wwp_wholesaler_registration_form .form-row.chzn-drop {
    margin-bottom: 14px;
}













