#mame_tw-express-wrap,
#mame_tw-overlay {
  position: fixed;
  inset: 0;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  -ms-flex-pack: center;
      justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100000;
}

#mame_tw-overlay iframe {
  width: 420px;
  max-width: 96vw;
  height: 640px;
  max-height: 92vh;
  border-radius: 10px;
  background: #fff;
}

body.mame_tw-express-open {
  overflow: hidden;
}

/* Container */
.mame_tw-express-checkout-checkout {
  margin: 1rem 0 1.5rem;
}

/* Base button (Google Pay like) */
.mame_tw-express-btn {
  width: 100%;
  height: 40px;
  background: #000; /* normal */
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  transition: background-color 0.2s ease, transform 0.05s ease;
}

/* Hover / focus: lighten ONLY background (icon stays identical) */
.mame_tw-express-btn:hover,
.mame_tw-express-btn:focus-visible {
  background: #3c4043; /* hover */
}

/* Active click feedback */
.mame_tw-express-btn:active {
  -ms-transform: scale(0.99);
      transform: scale(0.99);
}

/* Disabled */
.mame_tw-express-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Inner layout */
.mame_tw-express-btn__content {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
      align-items: center;
  -ms-flex-pack: center;
      justify-content: center;
  gap: 0.6rem;
  height: 100%;
  width: 100%;
}

/* Icon */
.mame_tw-express-btn__icon {
  height: 22px;
  width: auto;
  display: block;
}

/* Optional: if you used the icon as full height before */
.mame_tw-express-checkout-checkout .mame_tw-express-btn__icon {
  height: 100%; /* keep stable; set to 100% only if your svg is designed for it */
}

/* Text */
.mame_tw-express-btn__text {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
}

/* Remove Woo default button styles */
.woocommerce .mame_tw-express-btn {
  box-shadow: none !important;
  text-shadow: none !important;
}

.mame_tw-express-checkout-btn.is-disabled,
.mame_tw-express-checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}