/* Final page-level alignment: forms, private workspaces and action controls use one visual language. */
:root { --refarm-coral: #ff625f; --refarm-coral-dark: #e84e4b; --refarm-ink: #17233e; --refarm-line: #e1e5ec; --refarm-soft: #f8f9fc; }

.rh-eyebrow { color: #ff8a2a !important; font-weight: 780 !important; opacity: 1 !important; }

/* Property and group landing headers do not need decorative title icons. */
:is(.refarm-property-catalog,.refarm-group-catalog) > header > .dashicons,
:is(.refarm-property-catalog,.refarm-group-catalog) > header .dashicons:first-child { display: none !important; }

/* Shared primary actions, including product, listing, farm and broker forms. */
:is(.refarm-form,.refarm-farm-profile,.refarm-activity,.refarm-community,.refarm-property-catalog,.refarm-group-catalog,.refarm-seller-products,.rfsc,.rfgh) button:not(.components-button),
:is(.refarm-form,.refarm-farm-profile,.refarm-activity,.refarm-community,.refarm-property-catalog,.refarm-group-catalog,.refarm-seller-products,.rfsc,.rfgh) input[type="submit"],
:is(.refarm-form,.refarm-farm-profile,.refarm-activity,.refarm-community,.refarm-property-catalog,.refarm-group-catalog,.refarm-seller-products,.rfsc,.rfgh) input[type="button"] {
    border-color: var(--refarm-coral) !important;
    background: var(--refarm-coral) !important;
    color: #fff !important;
    box-shadow: none !important;
}

:is(.refarm-form,.refarm-farm-profile,.refarm-activity,.refarm-community,.refarm-property-catalog,.refarm-group-catalog,.refarm-seller-products,.rfsc,.rfgh) button:hover,
:is(.refarm-form,.refarm-farm-profile,.refarm-activity,.refarm-community,.refarm-property-catalog,.refarm-group-catalog,.refarm-seller-products,.rfsc,.rfgh) input[type="submit"]:hover { background: var(--refarm-coral-dark) !important; }

/* Farm introduction management: full width, clean white form surface. */
.refarm-farm-profile { max-width: 1160px !important; margin: 34px auto 72px !important; padding: 30px 34px !important; border-color: var(--refarm-line) !important; background: #fff !important; color: var(--refarm-ink) !important; box-shadow: none !important; }
.refarm-farm-profile :is(input:not([type=checkbox]),textarea,select) { border-color: #dfe4ec !important; border-radius: 10px !important; background: #fff !important; color: var(--refarm-ink) !important; }
.refarm-farm-profile .rfp-form { margin: 24px 0 0 !important; padding: 24px !important; border: 1px solid var(--refarm-line) !important; border-radius: 14px !important; background: var(--refarm-soft) !important; }

/* Region preference uses the same content width and real action links. */
.refarm-community .rc-form { max-width: none !important; }
.refarm-community > p > a:not(.rc-tabs a),
.refarm-community > nav a:not(.rc-tabs a) { display: inline-flex !important; align-items: center !important; min-height: 42px !important; margin: 4px 8px 4px 0 !important; padding: 10px 14px !important; border: 1px solid #ffb5b2 !important; border-radius: 11px !important; background: #fff !important; color: var(--refarm-coral-dark) !important; font-weight: 750 !important; text-decoration: none !important; }
.refarm-community > p > a:not(.rc-tabs a):hover,
.refarm-community > nav a:not(.rc-tabs a):hover { border-color: var(--refarm-coral) !important; background: #fff4f3 !important; }

/* Favorite heading sits above its information area, not inside a nested card. */
.refarm-community.rc-favorites { padding: 0 !important; border: 0 !important; background: transparent !important; }
.refarm-community.rc-favorites > h2 { margin: 0 0 20px !important; }
.refarm-community.rc-favorites > :not(h2) { margin-left: 0 !important; margin-right: 0 !important; }

/* My activity: coral current tab and properly padded product cards/actions. */
.refarm-activity { max-width: 1160px !important; color: var(--refarm-ink) !important; }
.refarm-activity header { border: 1px solid var(--refarm-line) !important; background: var(--refarm-soft) !important; color: var(--refarm-ink) !important; }
.refarm-activity :is(.ra-account,.ra-items a) { color: var(--refarm-coral-dark) !important; font-weight: 760 !important; text-decoration: none !important; }
.refarm-activity a[aria-current],.refarm-activity .current { border-color: var(--refarm-coral) !important; background: var(--refarm-coral) !important; color: #fff !important; }
.refarm-activity .ra-items li { margin: 12px 0 !important; padding: 20px 22px !important; border: 1px solid var(--refarm-line) !important; border-radius: 14px !important; background: #fff !important; }
.refarm-activity .ra-items li > div a { display: inline-flex !important; min-height: 38px !important; align-items: center !important; padding: 8px 12px !important; border: 1px solid #ffb5b2 !important; border-radius: 9px !important; background: #fff4f3 !important; }

/* Avoid blue link text on coral action buttons in catalog and property headers. */
:is(.refarm-property-catalog,.refarm-group-catalog) header :is(.button,button,a[class*="button"],a[class*="action"]) { color: #fff !important; }

@media (max-width: 700px) {
    .refarm-farm-profile { margin: 22px auto 48px !important; padding: 20px !important; }
    .refarm-farm-profile .rfp-form { padding: 16px !important; }
    .refarm-activity .ra-items li { padding: 16px !important; }
}
