/* ----------- */
/* GRID STYLES */
/* ----------- */

body {
}


/* TIER 1 */

div.page-wrapper {
}

.copyright {
  height: 35px;
}

/* TIER 2 */

.site-header {
  display: grid;
  grid-template-rows: 175px 50px;
  grid-template-columns: 1fr;
  grid-template-areas:
    "logo"
    "navmenu";
  grid-area: head;
  align-items: center;
}

header.site-header {
  grid-area: page-head;
}

.site-fade {
  grid-area: page-body;
}


/* TIER 3 */

.site-header__logo {
  grid-area: logo;
  display: flex;
  justify-content: center;
}

.nav-image-link {
  grid-area: nav-blank-img;
}

.site-nav,
#mega-menu-wrap-top-banner {
  grid-area: navmenu;

  #mega-menu-top-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
  }
}

.site-main:not(.full-width) {
  grid-area: body;
}

.site-main.full-width {
  grid-area: fullwidth;
}



.article__attachment-nav,
.article__post-nav {
  grid-area: nav;
  display: grid;
  align-content: start;
  grid-template-columns: 100px 1fr 100px;
  grid-template-rows: auto;
  grid-auto-flow: row;
  justify-content: space-between;
  grid-template-areas:
    "go-next . go-prev";

  .article__attachment-nav-prev,
  .article__post-nav-prev {
    grid-area: go-prev;
    justify-self: end;
    align-self: start;
    display: grid;
    align-content: start;
    grid-template-columns: 100%;
    grid-template-rows: auto;
    grid-auto-flow: row;
    justify-content: space-between;
    grid-template-areas:
      "prev-text"
      "prev-img";
  }

  .nav-prev-image,
  .nav-prev-image {
    grid-area: prev-img;
    justify-self: end;
    align-self: start;
  }

  .nav-prev-text {
    grid-area: prev-text;
  }
}

.article__attachment-nav-next,
.article__post-nav-next {
  grid-area: go-next;
  justify-self: start;
  align-self: start;
  display: grid;
  align-content: start;
  grid-template-columns: 100%;
  grid-template-rows: auto;
  grid-auto-flow: row;
  justify-content: space-between;
  grid-template-areas:
    "next-text"
    "next-img";

  .nav-next-image {
    grid-area: next-img;
    justify-self: start;
    align-self: start;
  }

  .nav-next-text {
    grid-area: next-text;
  } 
  
  .UNKNOWN {
    grid-area: next-img;
    justify-self: start;
    align-self: start;
  }
}

.article__attachment-nav-next,
.article__post-nav-next {
  display: grid;
}

.article__body {
  .pp-header {
    grid-area: header;
  }

  .pp-meta {
    grid-area: meta;
  }

  .pp-image {
    grid-area: image;
  }

  .pp-full {
    grid-area: post;
  }

  .pp-noimg-body {
    grid-area: 3/1/4/4;
  }

  .pp-cats {
    grid-area: cats;
  }

  .pp-tags {
    grid-area: tags;
  }

  .pp-nav {
    grid-area: nav;
  }
}

.pp-search {  
  .pp-content {
    grid-area: spost !important;
  }
}

.article__meta.pp-meta {
  grid-area: meta;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-auto-flow: row;
  grid-template-areas:
    "date edit";
}



/* -------- */
/* COMMENTS */
/* -------- */

.comment-form {
  display: grid;
  grid-template-columns: 48% 48%;
  grid-template-rows: auto;
  grid-auto-flow: column;
  grid-template-areas:
    "notes notes"
    "name comment"
    "email comment"
    "website comment"
    "remember comment"
    "submit submit";
  justify-items: stretch;
  column-gap: 25px;
  row-gap: 10px;
  justify-content: space-between;

  .cform-notes {
    grid-area: notes;
  }

  .cform-author {
    grid-area: name;
  }

  .cform-email {
    grid-area: email;
  }

  .cform-url {
    grid-area: website;
  }

  .cform-consent {
    grid-area: remember;
  }

  .cform-comment {
    grid-area: comment;
    display: flex;
    flex-direction: column;
  }

  .cform-comment label {
    flex-grow: 0;
  }

  .cform-comment .cform-cont-div {
    align-self: stretch;
  }

  .cform-submit {
    grid-area: submit;
  }
}

.comment-wrap {
  display: grid;
  grid-template-columns: 70px auto 100px;
  grid-template-rows: auto;
  grid-auto-flow: row;
  grid-template-areas:
    "avatar date date"
    "avatar author author"
    "moderated moderated moderated"
    "content content reply";

  .comment-avatar {
    grid-area: avatar;
  }

  .comment-author {
    grid-area: author;
  }

  .comment-date {
    grid-area: date;
  }

  .comment-moderated {
    grid-area: moderated;
  }

  .comment-reply {
    grid-area: reply;
  }

  .comment-text {
    grid-area: content;
  }
}

.comments-logged-in {
  .comment-form {
    grid-template-rows: auto;
    grid-auto-flow: column;
    justify-items: stretch;
  }
    
  .comment-form .cform-logged-in-as {
    grid-area: 1 / 1 / 2 / 3;
    align-self: stretch;
  }

  .comment-form .cform-comment {
    grid-area: 2 / 1 / 3 / 3;
    justify-self: stretch;
    align-self: stretch;
  }
}

#primary {
	grid-area: body;
}

.pp-horizontal,
.pp-vcontainer,
.pp-attachment,
.ppp-container,
.pp-search {
  display: grid !important;
  grid-gap: 0px;
  justify-items: stretch;
  align-items: start;
}

.pp-attachment {
  grid-template-rows: auto;
  grid-auto-flow: row;
  grid-template-areas:
    "head head"
    "meta meta"
    "image post"
    "tags tags";

  .pp-meta {
    grid-area: meta;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row;
    grid-template-areas:
      "date edit";
  }

  .pp-meta .pp-time {
    grid-area: date;
  }

  .pp-meta .pp-editlink {
    grid-area: edit;
  }
}

.pp-wrapper {
  display: grid;
  grid-template-columns: 100px 20px 1fr;
  grid-template-rows: auto;
  grid-template-areas: 
    "meta meta meta"
    "image . post"
    "cats cats cats"
    "tags tags tags";
  justify-items: start;
  align-items: start;

  .pp-body {
    grid-area: post;
  }

  .pp-content {
    grid-area: post;
  }

  .pp-meta {
    grid-area: meta;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row;
    grid-template-areas:
      "date edit";
  }

  .pp-meta .pp-editlink {
    grid-area: edit;
  }
  
  .pp-time {
    grid-area: date;
  }

  .pp-cats {
    grid-area: cats;
  }

  .pp-tags {
    grid-area: tags;
  }
}

.pp-wrapper-noimg {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  grid-template-areas: 
    "meta"
    "edit"
    "post"
    "cats"
    "tags";
  justify-items: start;
  align-items: start;

  .pp-body,
  .pp-noimg-body {
    grid-area: post;
  }

  .pp-content {
    grid-area: post;
  }

  .pp-meta {
    grid-area: meta;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row;
    grid-template-areas:
      "date edit";
  }

  .pp-editlink {
    grid-area: edit;
    justify-self: end;
  }
  
  .pp-time {
    grid-area: date;
  }

  .pp-cats {
    grid-area: cats;
  }

  .pp-tags {
    grid-area: tags;
  }
}

.pp-horizontal {
  grid-template-rows: auto;
  grid-template-columns: 1fr;
  grid-template-areas:
    "head" "body";
}

.pp-search {
  grid-template-columns: 130px auto;
  grid-template-rows: auto;
  grid-template-areas:
    "stitle stitle"
    "smeta smeta"
    "simage spost"
    "stags stags";
}

.pp-search .pp-plainhead {
  grid-area: stitle;
}

.pp-search .pp-meta {
  grid-area: smeta;
}

.pp-search .pp-image {
  grid-area: simage;
}

.pp-search .pp-body-nopad {
  grid-area: spost;
}

.pp-search .pp-tags {
  grid-area: stags;
}

.pp-vertical {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
  grid-auto-flow: column;
  grid-gap: 30px;
  justify-items: stretch;
  align-items: start;
  justify-content: space-between;
  align-content: start;
  
  .pp-vcontainer,
  .ppp-container {
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    flex-basis: 30% !important;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto;
    grid-auto-flow: column;
    grid-template-areas:
      "image"
      "header"
      "meta"
      "post"
      "tags"
      "edit";
  }
}

.pp-body-nopad {
  grid-area: 3/1/4/4;
}

.pp-editlink,
.wp-block-post-date__modified-date {
  grid-area: edit;
}

.pp-header {
  grid-area: head;
}

.pp-image {
  grid-area: image;
}

.pp-tags {
  grid-area: tags;
}

.pp-time {
  grid-area: date;
}

div.site-main.full-width {
  grid-area: fullwidth;
}

.sidebar {
  grid-area: sidebar;
}

.pp-404-search .wp-block-search__inside-wrapper  {
  display: grid;
  grid-template-areas: "text . button";
  grid-template-columns: 1fr 25px 1fr;

  wp-block-search__input {
    grid-area: text;
  }
  .wp-block-search__button.wp-element-button {
    grid-area: button;
  }
}

div.pp-toggles {
  grid-area: toggles;
  display: grid;
  grid-template-columns: 1fr 50px;
  grid-template-rows: auto;
  grid-auto-flow: row;
  grid-template-areas:
    "search cart wishlist";
  column-gap: 5px;
  row-gap: 5px;
  justify-content: end;
  justify-content: end;
  align-content: end;
}

#pp-search-toggle {
  grid-area: cart;
  justify-self: end;
  align-self: end;
}

.actions .coupon {
  display: grid;
  grid-template-areas: "text . button";
  grid-template-columns: 1fr 15px 1fr;
}

.actions .coupon #coupon_code {
  grid-area: text;
}

.actions .coupon button {
  grid-area: button;
}

.woocommerce-MyAccount-content .pp-payment-methods {
  grid-area: deets;
}

section.related.products {
  grid-area: bottom;
}

/*.pp-body .woocommerce:has(nav),
.pp-body .woocommerce:has(.woocommerce-cart-form) {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  grid-template-rows: auto;
  grid-template-areas:
    "notices notices notices"
    "main . menu";

  .woocommerce-MyAccount-navigation,
  .cart-collaterals {
    grid-area: menu;
  }

  .woocommerce-MyAccount-content,
  .woocommerce-cart-form {
    grid-area: main;
  }

  .woocommerce-notices-wrapper {
    grid-area: notices;
  }
}*/

.pp-header {
  grid-area: head;
}

.woocommerce-order,
.woocommerce-MyAccount-content {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  grid-template-areas:
    "message message message"
    "deets deets deets"
    "downloads downloads downloads"
    "order . customer";

  .woocommerce-notice,
  .woocommerce-notices-wrapper {
    grid-area: message;
  }

  p {
    grid-area: downloads;
  }

  p:first-of-type:not(.woocommerce-notice),
  .woocommerce-info {
    grid-area: deets;
  }

  .woocommerce-order-overview {
    grid-area: deets;
  }

  .woocommerce-order-downloads {
    grid-area: downloads;
  }

  .woocommerce-order-details {
    grid-area: order;
  }

  .woocommerce-customer-details {
    grid-area: customer;
  }

  .col2-set {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "billing"
      "shipping";
    justify-content: stretch;
    align-content: start;
  }

  .col-1 {
    grid-area: billing;
    align-self: stretch;
  }

  .col-2 {
    grid-area: shipping;
    align-self: stretch;
  }

  .woocommerce-orders-table {
    grid-area: deets;
  }
}

.pp-toggles {
  display: grid;
  grid-template-areas: "search cart";
  justify-content: space-between;

  .pp-search-toggle {
    grid-area: search;
    justify-self: start;
    align-self: center;
  }

  .pp-cart-toggle {
    grid-area: cart;
    justify-self: end;
    align-self: center;
  }
}

.search-container {
/*  display: grid;
  grid-template-columns: 50px 1fr;
  grid-template-areas: "icon input";

  .search-icon {
    grid-area: icon;
    justify-self: center;
    align-self: center;
  }
  .search-input {
    grid-area: input;
    justify-self: stretch;
    align-self: center;
  }*/
}

.site-main {
  grid-area: body;
  display: grid;
  column-gap: 25px;
  justify-content: stretch;
  align-content: start;
  justify-items: stretch;
  align-items: stretch;
}

.woo-site-main {
  grid-area: body;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  grid-auto-flow: row;
  grid-template-areas:
    "header"
    "notice"
    "results"
    "prod"
    "pages"
    "nav";
  gap: 0px;
  justify-content: stretch;
  align-content: start;
  justify-items: stretch;
  align-items: stretch;

  .woocommerce-products-header {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    grid-area: header;
  }

  .page-title {
    order: 2;
  }

  .woocommerce-breadcrumb {
    order: 1;
  }

  .term-description {
    order: 3;
  }

  .woocommerce-notices-wrapper,
  .woocommerce-no-products-found {
    grid-area: notice;
  }

  .woocommerce-result-count {
    grid-area: results;
  }

  .woocommerce-ordering {
    grid-area: sort;
    justify-self: end;
  }

  .products {
    grid-area: prod;
    justify-content: space-between;
  }

  .woocommerce-pagination {
    grid-area: nav;
    justify-self: center;
  }
}

.pp-results {
  grid-area: results;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-template-areas:
    "results2 sort2";
  justify-content: stretch;
  align-content: stretch;
  justify-items: stretch;
  align-items: stretch;

  .woocommerce-result-count {
    grid-area: results2;
    justify-self: start;
    align-self: center;
  }

  .woocommerce-ordering {
    grid-area: sort2;
    justify-self: end;
    align-self: center;
  }
}

.woo-single-product {
  grid-area: header;

  .product {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 20px 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row;
    grid-template-areas:
      "bread bread bread"
      "header header header"
      "notice notice notice"
      "summary . gallery"
      "bottom bottom bottom"
      "nav nav nav";
    justify-content: stretch;
    align-content: stretch;
    justify-items: stretch;
    align-items: stretch;
  }

  .entry-title {
    grid-area: header;
  }

  .woocommerce-breadcrumb {
    grid-area: bread;
  }

  .woocommerce-notices-wrapper {
    grid-area: notice;
  }

  .entry-summary {
    grid-area: summary;
    justify-self: stretch !important;
    align-self: stretch !important;
  }

  .woocommerce-product-gallery {
    grid-area: gallery;
    justify-self: stretch;
    align-self: stretch;
  }

  .woocommerce-tabs {
    grid-area: bottom;
  }
}

.product_list_widget li {
  display: grid !important;
  grid-template-columns: 1fr 64px !important;
  grid-template-rows: auto !important;
  grid-template-areas: "deets price" !important;

  a {
    grid-area: deets !important;
  }

  .attachment-woocommerce_thumbnail {
    grid-area: image !important;
  }

  .product-title {
    grid-area: name !important;
  }

  .woocommerce-Price-amount.amount {
    grid-area: price !important;
  }

  ins {
    grid-area: price;
  }
}

.wc-block-cart-items__row {
  grid-template-columns: 100px 1fr !important;
}

.custom-product-grid {
  gap: 5px;
}

#add_payment_method {
  grid-area: deets;
}

.edit-account {
  grid-area: deets;
}

.site-main.full-width .woocommerce:not(.checkout) {
  grid-area: 2 / 5 / 3 / 1;
/*  display: grid;*/
  grid-template-areas:
    "notice1 notice1 notice1"
    "notice2 notice2 notice2"
    "notice3 notice3 notice3"
    "notice4 notice4 notice4"
    "notice5 notice5 notice5"
    "notice6 notice6 notice6"
    "notice7 notice7 notice7"
    "notice8 notice8 notice8"
    "notice9 notice9 notice9"
    "header header header"
    "body . sidebar";
  grid-template-columns: 1fr 50px 300px;
  row-gap: 0px;

  .woocommerce-cart-form {
    grid-area: body;
    order: 11;
  }

  .cart-collaterals {
    grid-area: sidebar;
    order: 12;
  }

  h4 {
    grid-area: header;
    order: 10;
  }

  .woocommerce-notices-wrapper:first-child:not(:empty) {
    grid-area: notice1;
    order: 1;
  }

  .woocommerce-notices-wrapper:nth-child(2):not(:empty) {
    grid-area: notice2;
    order: 2;
  }

  .woocommerce-notices-wrapper:nth-child(3):not(:empty) {
    grid-area: notice3;
    order: 3;
  }

  .woocommerce-notices-wrapper:nth-child(4):not(:empty) {
    grid-area: notice4;
    order: 4;
  }

  .woocommerce-notices-wrapper:nth-child(5):not(:empty) {
    grid-area: notice5;
    order: 5;
  }

  .woocommerce-notices-wrapper:nth-child(6):not(:empty) {
    grid-area: notice6;
    order: 6;
  }

  .woocommerce-notices-wrapper:nth-child(7):not(:empty) {
    grid-area: notice7;
    order: 7;
  }

  .woocommerce-notices-wrapper:nth-child(8):not(:empty) {
    grid-area: notice8;
    order: 8;
  }

  .woocommerce-notices-wrapper:nth-child(9):not(:empty) {
    grid-area: notice9;
    order: 9;
  }

  .wc-empty-cart-message {
    grid-area: notice2;
  }

  .return-to-shop {
    grid-area: notice3;
  }
}

.pp-add-payment-button-wrap {
  grid-area: downloads;
}

.woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox {
  display: grid !important;
  grid-template-areas: "check . abbr label";
  grid-template-columns: 14px 10px 15px 1fr;
  justify-content: start;
  align-content: start;
  justify-items: start;
  align-items: start;

  input {
    grid-area: check;
  }

  span {
    grid-area: label;
  }

  abbr {
    grid-area: abbr;
    justify-self: start;
    align-self: start;
  }
}

.woocommerce-store-notice,
p.demo_store {
  position: static;
  display: block;
}

.pp-checkout.pp-checkout-coupon {
  display: grid !important;
  grid-template-columns: 1fr 15px 1fr;
  grid-template-areas: "label . button"
    "update update update";
  justify-content: space-between;

  .input-text {
    grid-area: label;
  }

  button {
    grid-area: button;
  }
}

.pp-checkout .pp-coupon {
  display: grid;
  grid-template-columns: 1fr 15px 1fr;
  grid-template-rows: auto;
  grid-template-areas: "label . button"
    "update update update";
  justify-content: space-between;

  .coupleft {
    grid-area: label;
  }

  .coupright {
    grid-area: button;
  }

  button {
    grid-area: button;
  }
}

.woocommerce-SavedPaymentMethods-saveNew {
  display: grid;
  grid-template-columns: 29px 1fr;
  grid-template-areas: "box label";

  input {
    grid-area: box;
    justify-self: start;
    align-self: start;
  }

  label {
    grid-area: label;
    justify-self: start;
    align-self: start;
  }
}

.pp-checkout {
  .woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout {
    grid-area: error;
    order: 1;
  }

  .woocommerce-checkout-review-order {
    grid-area: body;
    order: 1
  }

  .woocommerce-checkout-payment {
    order: 2;
    margin-top: -25px;
  }

  #square-gift-card-wrapper {
    grid-area: giftcard;
    order: 3;
  }
}

.back-to-cart {
  grid-area: notice9;
}

/*
.checkout.woocommerce-checkout {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  grid-template-rows: auto;
  grid-template-areas:
    "noticea noticea noticea"
    "notice1 notice1 notice1"
    "notice2 notice2 notice2"
    "notice3 notice3 notice3"
    "notice4 notice4 notice4"
    "notice5 notice5 notice5"
    "notice6 notice6 notice6"
    "notice7 notice7 notice7"
    "notice8 notice8 notice8"
    "notice9 notice9 notice9"
    "express express express"
    "order . billing";

  .wcpay-express-checkout-wrapper {
    grid-area: express;
    order: 1;
  }

  .woocommerce-NoticeGroup {
    grid-area: noticea;
    order: 2;
  }

  .woocommerce-notices-wrapper {}

  .order-wrap {
    grid-area: order;
    order: 3;
  }

  #customer_details {
    grid-area: billing;
    order: 4;
    justify-self: stretch;
    align-self: start;
  }

  .woocommerce-notices-wrapper:first-child {
    grid-area: notice1;
    order: 1;
  }

  .woocommerce-notices-wrapper:nth-child(2) {
    grid-area: notice2;
    order: 2;
  }

  .woocommerce-notices-wrapper:nth-child(3) {
    grid-area: notice3;
    order: 3;
  }

  .woocommerce-notices-wrapper:nth-child(4) {
    grid-area: notice4;
    order: 4;
  }

  .woocommerce-notices-wrapper:nth-child(5) {
    grid-area: notice5;
    order: 5;
  }

  .woocommerce-notices-wrapper:nth-child(6) {
    grid-area: notice6;
    order: 6;
  }

  .woocommerce-notices-wrapper:nth-child(7) {
    grid-area: notice7;
    order: 7;
  }

  .woocommerce-notices-wrapper:nth-child(8) {
    grid-area: notice8;
    order: 8;
  }

  .woocommerce-notices-wrapper:nth-child(9) {
    grid-area: notice9;
    order: 9;
  }
}
  */

.pp-info-block {
  h3 {
    grid-area: title;
  }

  h4 {
    grid-area: epithet;
  }

  p {
    grid-area: description;
  }

  .pp-info-gender {
    grid-area: gender;
  }

  .pp-info-element {
    grid-area: element;
  }

  .pp-info-planet {
    grid-area: planet;
  }

  .pp-info-zodiac {
    grid-area: zodiac;
  }
}

.article__post-nav {
  grid-area: nav;
  align-self: stretch;
  justify-self: stretch;
}

.pp-checkout .woocommerce-shipping-fields__field-wrapper,
.pp-checkout .woocommerce-billing-fields__field-wrapper,
.pp-edit-address .woocommerce-address-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "fname lname"
    "addr1 addr1"
    "addr2 addr2"
    /*"citystate zipcountry"*/
    "city state"
    "zip country"
    "email phone"
    "sub sub"
    "notes notes";
  grid-template-rows: auto;
  align-content: start;
  justify-items: stretch;
  align-items: start;
  column-gap: 20px;
  row-gap: 10px;

  #shipping_first_name_field,
  #billing_first_name_field {
    grid-area: fname;
  }

  #shipping_last_name_field,
  #billing_last_name_field {
    grid-area: lname;
  }

  #shipping_address_1_field,
  #billing_address_1_field {
    grid-area: addr1;
  }

  #shipping_address_2_field,
  #billing_address_2_field {
    grid-area: addr2;
  }

  #shipping_phone_field,
  #billing_phone_field {
    grid-area: phone;
  }

  #billing_email_field {
    grid-area: email;
  }

  #kl_newsletter_checkbox_field {
    grid-area: sub;
  }

  #order_comments_field {
    grid-area: comments;
  }

  .city-state-wrap,
  .zip-country-wrap {
    display: contents; /* This is the magic */
  }
  
  .city-state-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "city state";
    column-gap: 20px;
    grid-area: citystate !important;
  }

  #shipping_city_field,
  #billing_city_field {
    grid-area: city !important;
  }

  #shipping_state_field,
  #billing_state_field {
    grid-area: state !important;
  }

  .zip-country-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "zip country";
    column-gap: 20px;
    grid-area: zipcountry !important;
  }

  #shipping_postcode_field,
  #shipping_postcode_field .select2-container,
  #billing_postcode_field,
  #billing_postcode_field .select2-container {
    grid-area: zip !important;
  }

  #shipping_country_field,
  #shipping_country_field .select2-container,
  #billing_country_field,
  #billing_country_field .select2-container {
    grid-area: country !important;
  }
}



li.menu-search .search-container {
  align-self: end !important;
}

.pp-my-address {
  grid-area: downloads;
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  grid-template-areas: "billing . shipping";

  .u-column1.col-1.woocommerce-Address {
    grid-area: billing;
  }

  .u-column2.col-2.woocommerce-Address {
    grid-area: shipping;
  }
}

.woocommerce-MyAccount-content {
  form.pp-edit-address {
    grid-area: downloads !important;
  }
}

.pp-checkout > .woocommerce {
  grid-template-columns: 1fr !important;
}

#pp-cart-toggle {
  grid-area: cart;
  justify-self: end;
  align-self: end;
}

li.woocommerce-mini-cart-item.mini_cart_item {
  display: grid !important;
  grid-template-columns: 25px 1fr !important;
  grid-template-rows: auto !important;
  grid-template-areas:
    "remove name"
    "remove price" !important;

  .attachment-woocommerce_thumbnail {
    grid-area: image !important;
  }

  a.remove_from_cart_button {
    grid-area: remove !important;
  }

  a:not(.remove_from_cart_button) {
    grid-area: name !important;
  }

  div.pp-mc-item {
    grid-area: price !important;
  }
}

#mega-menu-top-banner.mega-menu-horizontal {
  justify-content: flex-end;
}


@media screen and (max-width: 1023px) {

  .page-wrapper {
    grid-template-rows: auto;
  }

  .pp-content {
    grid-area: post;
  }
  
  .pp-plainhead {
    grid-area: header;
  }
  
  .pp-vertical {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row;
    grid-gap: 30px;
    justify-items: stretch;
    align-items: start;
    justify-content: space-between;
    align-content: start;
    
    .pp-vcontainer,
    .ppp-container {
      display: grid;
      grid-template-columns: 0.3fr 15px 1fr;
      grid-template-rows: auto;
      grid-auto-flow: row;
      grid-template-areas:
        "header header header"
        "meta meta meta"
        "image . post"
        "tags tags tags"
        "edit edit edit";
    }
  }

  #mega-menu-wrap-top-banner {
    grid-area: navmenu;
    justify-self: stretch;
    align-items: start;

    li {
      justify-content: start;
      align-self: flex-start;
    }
  }

  .site-nav,
  #mega-menu-wrap-top-banner {
    ul#mega-menu-top-banner {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-start;
    }
  }

  li.menu-search {
    align-self: flex-end;
  }

  .pp-body .woocommerce .woocommerce-cart-form,
  .pp-body .woocommerce .cart-collaterals {
    display: block !important;
  }
}

@media screen and (max-width: 900px) {
  .site-nav,
  #mega-menu-wrap-top-banner {
    ul#mega-menu-top-banner {
    }
  }

  li.menu-search .search-container {
    align-self: flex-start !important;
  }
}

@media screen and (max-width: 801px) {
  .page-wrapper {
  }

  footer {
    display: block !important;
  }

  .pp-body .woocommerce {
    display: block;

    .woocommerce-MyAccount-navigation,
    .cart-collaterals {
      display: block;
    }

    .woocommerce-MyAccount-content,
    .woocommerce-cart-form__contents {
      display: block;
    }
  }
}

@media screen and (max-width: 350px) {
  .pp-vertical {
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
    justify-content: space-between;
    grid-template-rows: auto;
    grid-auto-flow: column;
    grid-gap: 30px;
  }
}