/* v1.8.71 surgical fix: plugin-style format dropdown + single border area */

/* FORMAT: disable native layer, keep plugin dropdown */
.afp-widget .afp-control--format-simple{
  position: relative !important;
  overflow: visible !important;
}
.afp-widget .afp-control--format-simple::after{
  display:none !important;
  content:none !important;
}
.afp-widget .afp-control--format-simple select#afp_format#afp_format{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
  appearance:none !important;
  -webkit-appearance:none !important;
  -moz-appearance:none !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.afp-widget .afp-control--format-simple .afp-format-dropdown{
  display:block !important;
  position:absolute !important;
  inset:0 !important;
  z-index:5 !important;
  visibility:visible !important;
}
.afp-widget .afp-control--format-simple .afp-format-trigger{
  all:unset !important;
  box-sizing:border-box !important;
  position:absolute !important;
  inset:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
  padding:0 18px 0 26px !important;
  cursor:pointer !important;
  border-radius:28px !important;
}
.afp-widget .afp-control--format-simple .afp-format-trigger__value{
  flex:1 1 auto !important;
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  color:var(--afp-premium-text, var(--afp-text)) !important;
  font-size:18px !important;
  line-height:1.15 !important;
  font-weight:800 !important;
  letter-spacing:-.02em !important;
  transform:none !important;
}
.afp-widget .afp-control--format-simple .afp-format-trigger__caret{
  position:relative !important;
  flex:0 0 auto !important;
  width:40px !important;
  height:40px !important;
  border-radius:999px !important;
  border:1px solid rgba(181,108,82,.18) !important;
  background:#fbf4ee !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86) !important;
}
.afp-widget .afp-control--format-simple .afp-format-trigger__caret::before{
  content:"" !important;
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  width:10px !important;
  height:10px !important;
  margin:-6px 0 0 -5px !important;
  border-right:2px solid #7a6258 !important;
  border-bottom:2px solid #7a6258 !important;
  transform:rotate(45deg) !important;
  transition:transform .18s ease, margin-top .18s ease !important;
}
.afp-widget .afp-control--format-simple .afp-format-dropdown.is-open .afp-format-trigger__caret::before{
  transform:rotate(-135deg) !important;
  margin-top:-1px !important;
}
.afp-widget .afp-control--format-simple .afp-format-menu{
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  top:calc(100% + 10px) !important;
  padding:10px !important;
  border:1.5px solid rgba(223,198,185,.92) !important;
  border-radius:26px !important;
  background:#fffaf7 !important;
  box-shadow:0 18px 38px rgba(44,28,20,.10), 0 6px 14px rgba(44,28,20,.04) !important;
  opacity:0 !important;
  transform:translateY(-4px) scale(.985) !important;
  transform-origin:top center !important;
  pointer-events:none !important;
  max-height:320px !important;
  overflow:auto !important;
}
.afp-widget .afp-control--format-simple .afp-format-dropdown.is-open .afp-format-menu{
  opacity:1 !important;
  transform:translateY(0) scale(1) !important;
  pointer-events:auto !important;
}
.afp-widget .afp-control--format-simple .afp-format-option{
  all:unset !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  width:100% !important;
  min-height:50px !important;
  padding:12px 18px !important;
  border-radius:18px !important;
  color:var(--afp-premium-text, var(--afp-text)) !important;
  font-size:17px !important;
  line-height:1.2 !important;
  font-weight:700 !important;
  cursor:pointer !important;
}
.afp-widget .afp-control--format-simple .afp-format-option + .afp-format-option{ margin-top:4px !important; }
.afp-widget .afp-control--format-simple .afp-format-option:hover,
.afp-widget .afp-control--format-simple .afp-format-option:focus-visible{
  background:rgba(181,108,82,.08) !important;
  color:var(--afp-accent) !important;
}
.afp-widget .afp-control--format-simple .afp-format-option.is-selected{
  background:linear-gradient(180deg,#c47b5d 0%,#b56c52 100%) !important;
  color:#fffdfb !important;
}

/* AREA: remove inner border with higher specificity than legacy rules */
.afp-widget .afp-control--area-simple{
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88) !important;
}
.afp-widget .afp-control--area-simple .afp-area-input,
.afp-widget .afp-control--area-simple .afp-area-input::before,
.afp-widget .afp-control--area-simple .afp-area-input::after{
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  border-radius:0 !important;
}
.afp-widget .afp-control--area-simple .afp-area-input input#afp_area#afp_area,
.afp-widget .afp-control--area-simple #afp_area#afp_area,
.afp-widget .afp-control--area-simple input#afp_area#afp_area{
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  -webkit-box-shadow:none !important;
  background:transparent !important;
  border-radius:0 !important;
}

/* keep left labels readable */
.afp-widget .afp-master-label{
  min-width: 190px !important;
}
@media (max-width: 767px){
  .afp-widget .afp-control--format-simple .afp-format-trigger{ padding:0 16px 0 20px !important; }
  .afp-widget .afp-control--format-simple .afp-format-trigger__value{ font-size:17px !important; }
  .afp-widget .afp-control--format-simple .afp-format-trigger__caret{ width:36px !important; height:36px !important; }
  .afp-widget .afp-master-label{ min-width:auto !important; }
}
