.pmb-wrapper {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.pmb-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  text-align: left;
  outline: none;
  background: #fff;
  transition:
    background 0.2s ease,
    border 0.2s ease;
  border: none;
  cursor: pointer;
}

.pmb-btn:hover {
  background: #fcf8f3;
}

.pmb-btn.active {
  background: #fff6e6;
  border-color: #78510b;
}

.pmb-radio {
  height: 16px;
  width: 16px;
  border-radius: 9999px;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pmb-radio.active {
  background: #78510b;
  border-color: #78510b;
}

.pmb-radio-dot {
  height: 8px;
  width: 8px;
  background: white;
  border-radius: 9999px;
}

.pmb-icon {
  color: #4b5563;
}

.pmb-btn.active .pmb-icon {
  color: #78510b;
}

.pmb-title {
  font-weight: 600;
  font-size: 14px;
  color: #374151;
}

.pmb-title.active {
  color: #78510b;
}

.pmb-children {
  padding: 16px;
  background: white;
  border-top: 1px solid #e5e7eb;
}

.wc-block-components-payment-method-label {
  font-size: 1rem;
  font-weight: 600;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.method-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
  margin-top: 10px;
}

.info-box {
  background: #ffffff !important;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.info-text {
  font-size: 14px;
  color: #131313;
  margin: 4px 0;
}

.info-text b {
  font-weight: bold;
}

.pix-discount {
  margin-top: 8px;
  font-size: 14px;
  color: #059669;
}

.box-input {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.label-hint {
  font-size: 14px;
  color: #000000;
  margin-top: 0;
  margin-bottom: 4px;
}

.input,
.select {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 15px;
  background: #ffffff;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.input:focus,
.select:focus {
  border-color: #78510b;
  box-shadow: 0 0 0 0 rgba(235, 182, 37, 0.25);
}

.input:-webkit-autofill,
.select:-webkit-autofill {
  background-color: #ffffff !important;
  box-shadow: 0 0 0px 1000px #ffffff inset !important;
  -webkit-text-fill-color: #374151 !important;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-row input[type="checkbox"] {
  outline: none;
  cursor: pointer;
}

.checkbox-label {
  font-size: 14px;
  color: #374151;
  margin-bottom: 0 !important;
  margin-left: 8px;
}

/************************************
 *   RESPONSIVIDADE
 ************************************/
@media (max-width: 500px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/************************************
 *   ADMIN
 ************************************/
.info-box {
  background: #ffffff !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.info-img {
  margin-bottom: 0.5rem;
  width: 7rem;
  height: auto;
}

.custom-link {
  font-size: 13px;
  color: #2271b1;
  margin-top: 0.25rem;
  font-family: "Montserrat", sans-serif;
  text-decoration: underline;
}

.custom-link:hover {
  color: black;
}

.tab-header {
  padding-bottom: 1rem;
  cursor: pointer;
  font-size: 13px;
  font-family: "Montserrat", sans-serif;
}

.container-card {
  background-color: #ffffff;
  width: 100%;
  border-radius: 0.25rem;
  margin-bottom: 2rem;
}

.paragraph-info {
  line-height: 1.375;
  font-size: 13px;
  color: #666666;
  margin-top: 0.25rem;
  font-family: "Montserrat", sans-serif;
}

.title-section {
  font-size: 1rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 0.5rem;
}

.layout-wrapper {
  background-color: #f2f2f2;
  min-height: 100vh;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 0.125rem;
}

/* CLASSES BASE */
.btn-base {
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: "Montserrat", sans-serif;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* SOLID */
.btn-solid {
  background-color: #78510b;
  color: white;
  padding: 0.5rem 1.5rem;
}

.btn-solid:hover {
  background-color: #4b3306;
}

/* OUTLINE */
.btn-outline {
  border: 1px solid #78510b;
  color: #78510b;
  background-color: transparent;
  padding: 0.25rem 1rem;
}

.btn-outline:hover {
  background-color: #78510b;
  color: white;
}

.btn-base:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkbox-wrapper {
  margin-bottom: 1rem;
}

.checkbox-row {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
  }
}

.checkbox-label-area {
  width: 100%;
}

@media (min-width: 1024px) {
  .checkbox-label-area {
    width: 14rem;
  }
}

.checkbox-content {
  flex: 1;
}

.checkbox-line {
  display: flex;
  align-items: center;
  position: relative;
  gap: 0.5rem;
}
.checkbox-tooltip {
  position: static;
}

@media (min-width: 1024px) {
  .checkbox-tooltip {
    position: absolute;
    left: -1.25rem;
    z-index: 10;
  }
}

.tooltip-inner {
  margin-inline-end: 0.5rem;
}

@media (min-width: 1024px) {
  .tooltip-inner {
    margin-inline-end: 0;
  }
}

.checkbox-input {
  width: 1rem;
  height: 1rem;
  margin-inline-end: 0.5rem;
  border: 1px solid #8d8f94;
}

@media (min-width: 1024px) {
  .checkbox-input {
    margin-inline-end: 0;
  }
}

.checkbox-input.checkbox-error {
  border-color: #ef4444;
}

.checkbox-text {
  font-size: 13px;
  line-height: 1.375;
  font-family: "Montserrat", sans-serif;
}

.checkbox-error-message {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.field-wrapper {
  margin-bottom: 1rem;
}

.color-picker-row {
  display: flex;
  align-items: center;
  position: relative;
  gap: 0.5rem;
}

.tooltip-inner {
  margin-right: 0.5rem;
}

.color-picker {
  position: relative;
}

.hidden-input {
  display: none;
}

.color-button {
  display: flex;
  align-items: center;
  width: 153px;
  height: 32px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  cursor: pointer;
}

.color-button.error {
  border-color: #ef4444;
}

.color-preview {
  width: 39px;
  height: 32px;
  border-right: 1px solid #d1d5db;
  border-radius: 6px 0 0 6px;
}

.color-text {
  margin-left: 8px;
  font-size: 13px;
  font-family: "Montserrat", sans-serif;
}

.color-popover {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  margin-top: 8px;
}

.color-description {
  margin-top: 4px;
  font-size: 13px;
  color: #666;
  font-family: "Montserrat", sans-serif;
  line-height: 1.3;
}

.error-message {
  margin-top: 4px;
  font-size: 12px;
  color: #ef4444;
}

.field-row {
  display: grid;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .field-row {
    display: flex;
  }
}

.field-label {
  width: 100%;
}

@media (min-width: 1024px) {
  .field-label {
    width: 14rem;
  }
}

.field-content {
  flex: 1;
}

.input-row {
  display: flex;
  align-items: center;
  position: relative;
  gap: 0.5rem;
}

.tooltip-wrapper {
  position: relative;
}

@media (min-width: 1024px) {
  .tooltip-wrapper {
    position: absolute;
    left: -20px;
    z-index: 10;
  }
}

.input-default {
  width: 100%;
  max-width: 30rem;
  height: 2.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  color: #000;
  border: 1px solid #8d8f94;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
}

.input-default:focus {
  border-color: #78510b;
}

.input-error {
  border-color: #ef4444;
}

.input-error-message {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #ef4444;
  text-align: left;
}

.textarea-base {
  width: 100%;
  max-width: 30rem;
  height: 10rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  color: #000;
  border: 1px solid #8d8f94;
  border-radius: 6px;
  resize: none;
  outline: none;
  background: #fff;
  transition: border-color 0.15s ease;
}

.textarea-base:focus {
  border-color: #78510b;
}

.textarea-error {
  border-color: #ef4444;
}

.react-select-container {
  width: 100%;
  max-width: 30rem;
  font-family: inherit;
}

.label-custom {
  flex: 0.2;
  display: block;
  line-height: 1rem;
  font-size: 14px;
  color: #000000;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  overflow: visible;
}

@media (max-width: 1024px) {
  .input-row,
  .checkbox-line,
  .color-picker-row {
    gap: initial !important;
  }

  .field-content {
    margin-top: 8px;
  }
}

.p-component {
  font-size: 14px;
}

.wrap.woocommerce {
  overflow: hidden !important;
}

.p-tabview-nav {
  overflow-x: auto;
}

@media screen and (max-width: 782px) {
  .widefat tfoot td input[type="checkbox"]:before,
  .widefat th input[type="checkbox"]:before,
  .widefat thead td input[type="checkbox"]:before,
  input[type="checkbox"]:checked:before {
    width: 1.5rem;
    height: 1.5rem;
    margin: -4px -6px;
  }
}

.infpay-box {
  background: rgb(191, 180, 161, 0.1);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e3e3e3;
  margin-top: 25px;
  font-weight: 700;
}

.infpay-title {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 20px;
  color: #040404;
  font-weight: 700;
}

.infpay-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  font-size: 16px;
}

.infpay-label {
  width: fit-content;
  font-weight: 600 !important;
  display: block;
  margin-bottom: 3px !important;
  color: #78510b !important;
  font-size: 1rem !important;
}

.infpay-label-2 {
  font-weight: 400 !important;
}

.infpay-input {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
  font-weight: 500;
}

.infpay-input:focus {
  outline: none !important;
  border: 1px solid #78510b;
}

.box-validade-cvv {
  display: flex;
  gap: 10px;
}

.infpay-qrcode {
  width: 200px;
  margin: 15px 0;
  border: 6px solid #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.infpay-button {
  display: inline-block;
  background: #78510b;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 10px;
  font-size: 1rem;
  font-weight: bold;
}

.infpay-button:hover {
  background: #4b3306;
}

.infpay-copy-btn {
  margin-top: 8px;
  padding: 10px 14px;
  background: #78510b;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

.infpay-copy-btn:hover {
  background: #4b3306;
}

.infpay-copy-btn:focus {
  outline: none;
}

.instrucoes {
  margin-top: 6px;
  font-weight: 400;
}

.woocommerce-page label {
  font-size: 1rem;
  font-weight: 600;
}

.wc-blocks-components-select .wc-blocks-components-select__container {
  margin-top: 12px;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding-right: 40px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,\<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\<polyline points='6 9 12 15 18 9'/>\</svg>");
  pointer-events: none;
}

.input-error {
  border-color: #e53935;
}

.error-text {
  color: #e53935;
  font-size: 13px;
  margin-top: 2px;
  display: block;
  font-weight: 400;
}

.method-inner {
  padding: 16px 0 0 0 !important;
}

#add_payment_method #payment div.payment_box,
.woocommerce-cart #payment div.payment_box,
.woocommerce-checkout #payment div.payment_box {
  background-color: #e2ddd7;
}

#add_payment_method #payment div.payment_box::before,
.woocommerce-cart #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::before {
  border: 1em solid #e2ddd7;
  border-right-color: transparent;
  border-left-color: transparent;
  border-top-color: transparent;
}
