/* Shared components: buttons, forms, cards, notices and benefits. */
body.rw-site button,
body.rw-site input[type="button"],
body.rw-site input[type="reset"],
body.rw-site input[type="submit"],
body.rw-site .button,
body.rw-site .rw-button,
body.rw-site .wp-element-button,
body.rw-site .woocommerce a.button,
body.rw-site .woocommerce button.button,
body.rw-site .woocommerce input.button {
  align-items: center;
  appearance: none;
  background: var(--rw-color-accent);
  border: 1px solid var(--rw-color-accent);
  border-radius: var(--rw-radius-xs);
  color: var(--rw-color-white);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--rw-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  gap: var(--rw-space-2);
  justify-content: center;
  letter-spacing: 0.055em;
  line-height: 1;
  min-height: var(--rw-control-height-lg);
  padding: 15px 28px;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color var(--rw-transition),
    border-color var(--rw-transition),
    color var(--rw-transition),
    box-shadow var(--rw-transition),
    transform var(--rw-transition);
}

body.rw-site button:hover,
body.rw-site button:focus-visible,
body.rw-site input[type="submit"]:hover,
body.rw-site input[type="submit"]:focus-visible,
body.rw-site .button:hover,
body.rw-site .button:focus-visible,
body.rw-site .rw-button:hover,
body.rw-site .rw-button:focus-visible,
body.rw-site .wp-element-button:hover,
body.rw-site .wp-element-button:focus-visible,
body.rw-site .woocommerce a.button:hover,
body.rw-site .woocommerce a.button:focus-visible,
body.rw-site .woocommerce button.button:hover,
body.rw-site .woocommerce button.button:focus-visible {
  background: var(--rw-color-accent) !important;
  border-color: var(--rw-color-accent) !important;
  box-shadow: none !important;
  color: var(--rw-color-white) !important;
  filter: none !important;
  opacity: 1 !important;
  transform: translateY(-1px);
}

body.rw-site button:active,
body.rw-site .button:active,
body.rw-site .rw-button:active,
body.rw-site .wp-element-button:active {
  transform: translateY(0);
}

body.rw-site .rw-button--outline,
body.rw-site .is-style-outline > .wp-element-button {
  background: transparent !important;
  border-color: var(--rw-color-text) !important;
  color: var(--rw-color-text) !important;
}

body.rw-site .rw-button--outline:hover,
body.rw-site .rw-button--outline:focus-visible,
body.rw-site .is-style-outline > .wp-element-button:hover,
body.rw-site .is-style-outline > .wp-element-button:focus-visible {
  background: var(--rw-color-text) !important;
  color: var(--rw-color-white) !important;
}

body.rw-site .rw-button--light {
  background: var(--rw-color-white) !important;
  border-color: var(--rw-color-border) !important;
  box-shadow: none !important;
  color: var(--rw-color-text) !important;
  opacity: 1 !important;
}

body.rw-site .rw-button--light:hover,
body.rw-site .rw-button--light:focus-visible {
  background: var(--rw-color-surface-soft) !important;
  border-color: var(--rw-color-border-strong) !important;
  box-shadow: none !important;
  color: var(--rw-color-text) !important;
  filter: none !important;
  opacity: 1 !important;
  transform: translateY(-1px);
}

body.rw-site .rw-button--text,
body.rw-site .rw-link--underline {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--rw-color-text) !important;
  filter: none !important;
  min-height: auto !important;
  opacity: 1 !important;
  padding: 4px 0 !important;
  position: relative;
  text-decoration: none !important;
  transform: none !important;
}

body.rw-site .rw-button--text::after,
body.rw-site .rw-link--underline::after {
  background: currentColor;
  bottom: 0;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--rw-transition);
  width: 100%;
}

body.rw-site .rw-button--text:hover,
body.rw-site .rw-button--text:focus-visible,
body.rw-site .rw-link--underline:hover,
body.rw-site .rw-link--underline:focus-visible {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--rw-color-text) !important;
  filter: none !important;
  opacity: 1 !important;
  text-decoration: none !important;
  transform: none !important;
}

body.rw-site .rw-button--text:hover::after,
body.rw-site .rw-button--text:focus-visible::after,
body.rw-site .rw-link--underline:hover::after,
body.rw-site .rw-link--underline:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

body.rw-site input[type="text"],
body.rw-site input[type="email"],
body.rw-site input[type="tel"],
body.rw-site input[type="password"],
body.rw-site input[type="search"],
body.rw-site input[type="number"],
body.rw-site input[type="url"],
body.rw-site select,
body.rw-site textarea {
  appearance: none;
  background: var(--rw-color-surface);
  border: 1px solid var(--rw-color-border);
  border-radius: var(--rw-radius-xs);
  color: var(--rw-color-text);
  font: inherit;
  min-height: var(--rw-control-height);
  padding: 11px 14px;
  transition: border-color var(--rw-transition), box-shadow var(--rw-transition), background-color var(--rw-transition);
  width: 100%;
}

body.rw-site select {
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 38px;
}

body.rw-site textarea {
  min-height: 140px;
  resize: vertical;
}

body.rw-site input::placeholder,
body.rw-site textarea::placeholder {
  color: var(--rw-color-subtle);
  opacity: 1;
}

body.rw-site input:focus,
body.rw-site select:focus,
body.rw-site textarea:focus {
  border-color: var(--rw-color-text);
  box-shadow: 0 0 0 1px var(--rw-color-text);
  outline: 0;
}

body.rw-site label {
  color: var(--rw-color-text);
  font-size: var(--rw-font-size-sm);
  font-weight: 500;
}

.rw-card {
  background: var(--rw-color-surface);
  border: 1px solid var(--rw-color-border);
  border-radius: var(--rw-radius-xs);
  overflow: hidden;
}

.rw-card--interactive {
  transition: border-color var(--rw-transition), box-shadow var(--rw-transition), transform var(--rw-transition);
}

.rw-card--interactive:hover {
  border-color: var(--rw-color-border-strong);
  box-shadow: var(--rw-shadow-soft);
  transform: translateY(-3px);
}

.rw-badge {
  align-items: center;
  background: var(--rw-color-surface-soft);
  display: inline-flex;
  font-size: var(--rw-font-size-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  min-height: 28px;
  padding: 6px 10px;
  text-transform: uppercase;
}

.rw-badge--sale {
  background: var(--rw-color-sale);
  color: var(--rw-color-white);
}

.rw-notice,
body.rw-site .woocommerce-message,
body.rw-site .woocommerce-info,
body.rw-site .woocommerce-error {
  background: var(--rw-color-surface-soft);
  border: 0;
  border-left: 3px solid var(--rw-color-text);
  color: var(--rw-color-text);
  margin-bottom: var(--rw-space-7);
  padding: 16px 18px;
}

body.rw-site .woocommerce-message { border-left-color: var(--rw-color-success); }
body.rw-site .woocommerce-error { border-left-color: var(--rw-color-error); }

.rw-benefits {
  background: var(--rw-color-surface-soft);
  border-block: 1px solid var(--rw-color-border);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rw-benefit {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 142px;
  padding: 24px;
  text-align: center;
}

.rw-benefit + .rw-benefit {
  border-left: 1px solid var(--rw-color-border);
}

.rw-benefit__icon {
  height: 28px;
  width: 28px;
}

.rw-benefit__title {
  font-size: var(--rw-font-size-sm);
  font-weight: 600;
  line-height: 1.35;
}

.rw-benefit__text {
  color: var(--rw-color-muted);
  font-size: var(--rw-font-size-xs);
  line-height: 1.45;
}
