@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap");

/* Beauty by Buford – branded overrides */
/* Accent: #E42217, Background: #F0EFED */

/* Background overlay */
.ponce-modal {
  margin-top: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  line-height: normal;
}

.ponce-button {
  margin: 0;
  background: none;
  border: none;
  color: #232323;
  font-size: 2em;
  cursor: pointer;
  line-height: 0.5;
  padding: 8px;
  z-index: 10;
}

/* Close (X) button – high specificity + reset so WordPress/theme styles don’t override */
#ponce-modal .ponce-popup.buford-branded .buford-popup-header button.ponce-button,
#ponce-modal .ponce-popup.buford-branded .buford-popup-header .ponce-button {
  margin: 0 !important;
  padding: 8px !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #232323 !important;
  font-size: 2em !important;
  line-height: 0.5 !important;
  cursor: pointer !important;
  min-width: 0 !important;
  min-height: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

/* Popup: white header + body (content + image) */
.ponce-popup.buford-branded {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  font-family: "Montserrat", sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: auto;
  margin-top: 10vh;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* White header bar – logo left aligned with content, close right */
.buford-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 16px 44px;
  background-color: #ffffff;
  flex-shrink: 0;
  border-bottom: 1px solid #eee;
}

.buford-popup-header .buford-logo {
  height: 48px;
  width: auto;
  margin: 0;
  display: block;
}

.buford-popup-header .ponce-button {
  color: #232323;
}

/* Body: two columns – content left, image right */
.buford-popup-body {
  display: flex;
  flex-direction: row-reverse;
  flex: 1;
  min-height: 0;
}

/* Left panel – #F0EFED background below header */
.ponce-popup.buford-branded .ponce-popup-content {
  flex: 1;
  background-color: #F0EFED;
  color: #232323;
  padding: 40px 40px 40px 44px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Logo in content (if ever used there) */
.buford-logo {
  height: 54px;
  width: auto;
  margin-bottom: 32px;
  display: block;
}

/* Heading */
.ponce-popup.buford-branded .ponce-popup-content ponce-header {
  font-size: 2em;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  padding: 0;
  margin: 0 0 12px 0;
  color: #232323;
  display: block;
}

/* Body */
.ponce-popup.buford-branded .ponce-popup-content ponce-body {
  font-size: 1.1em;
  font-weight: 300;
  margin: 0 0 28px 0;
  line-height: 1.5;
  color: #232323;
  display: block;
}

/* CTA block: button left-aligned, subtext centered under button */
.ponce-popup.buford-branded .ponce-popup-content .buford-cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  margin-bottom: 0;
}

/* Get Started button – accent #E42217 */
.ponce-popup.buford-branded .ponce-popup-content a.button-link-buford {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  background-color: #E42217;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.15em;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 10px;
}

.ponce-popup.buford-branded
  .ponce-popup-content
  a.button-link-buford
  .button-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* POWERED BY PONCE AI – centered under button (full width of button) */
.ponce-popup.buford-branded
  .ponce-popup-content
  .buford-cta-block
  ponce-subtext {
  font-size: 0.7em;
  color: #888888;
  font-weight: 400;
  margin: 0;
  padding: 0;
  letter-spacing: 0.05em;
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

/* Right panel – same background as left (#F0EFED), image right edge aligned with X button */
.ponce-popup.buford-branded .ponce-popup-image {
  flex: 1;
  background-color: #F0EFED;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 30px 16px 8px;
  position: relative;
}

.ponce-popup.buford-branded .ponce-popup-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 0;
  padding: 0;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
  .ponce-popup.buford-branded {
    width: 90%;
    margin-top: 5vh;
    margin-bottom: 5vh;
    max-height: 90vh;
    overflow-y: auto;
  }

  .buford-popup-header {
    padding: 12px 16px 12px 28px;
  }

  .buford-popup-header .buford-logo {
    height: 40px;
    width: auto;
  }

  .buford-popup-body {
    flex-direction: column;
  }

  .ponce-popup.buford-branded .ponce-popup-content {
    padding: 32px 28px 32px;
  }

  .buford-logo {
    height: 45px;
    width: auto;
    margin-bottom: 24px;
  }

  .ponce-popup.buford-branded .ponce-popup-content ponce-header {
    font-size: 1.65em;
  }

  .ponce-popup.buford-branded .ponce-popup-content ponce-body {
    font-size: 1em;
    margin-bottom: 22px;
  }

  .ponce-popup.buford-branded .ponce-popup-image {
    padding: 24px 20px;
  }

  .ponce-popup.buford-branded .ponce-popup-image img {
    width: 85%;
  }
}
