/* Same half-second ease as Help Centre answers; the closed field keeps its dimensions. */
#affiliates-page .af-location-choice{position:relative;min-width:0}
#affiliates-page .af-field select[data-affiliate-choice]{display:none!important}
#affiliates-page .af-location-trigger{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:52px;border:1px solid var(--gold);border-radius:0;padding:13px 16px;background:var(--paper);color:var(--ink);font:inherit;font-size:14px;line-height:normal;letter-spacing:inherit;text-align:start;cursor:pointer}
#affiliates-page .af-location-trigger::after{content:"";width:7px;height:7px;flex:none;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(45deg);margin-inline:6px 2px;transition:transform .5s cubic-bezier(.65,0,.35,1)}
#affiliates-page .af-location-choice[data-open=true] .af-location-trigger::after{transform:rotate(225deg)}
#affiliates-page .af-location-panel{position:absolute;z-index:20;inset-inline:0;top:calc(100% + 8px);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-8px);transition:transform .5s cubic-bezier(.65,0,.35,1),opacity .35s ease,visibility .5s}
#affiliates-page .af-location-choice[data-open=true] .af-location-panel{opacity:1;visibility:visible;pointer-events:auto;transform:none}
#affiliates-page .af-location-options{min-height:0;overflow:hidden;background:var(--paper);border:1px solid var(--gold);box-sizing:border-box;box-shadow:0 10px 24px rgb(0 0 0 / .07)}
#affiliates-page .af-location-options button{display:block;width:100%;min-height:44px;border:0;border-radius:0;padding:12px 16px;background:transparent;color:var(--ink);font:inherit;font-size:14px;line-height:1.5;letter-spacing:inherit;text-align:start;cursor:pointer}
#affiliates-page .af-location-options button:is(:hover,.is-focused,[aria-selected=true]){background:var(--section)}
@media(max-width:767px){#affiliates-page .af-location-trigger{min-height:48px;padding:12px}}
@media(prefers-reduced-motion:reduce){#affiliates-page :is(.af-location-panel,.af-location-trigger::after){transition:none}}

/* Match the membership finish controls without changing the field's layout. */
#affiliates-page .cdn-code-box .code-box-row{position:relative;transform:none;box-shadow:2px 4px 12px #00000014;transition:transform .3s cubic-bezier(0,0,.5,1),box-shadow .3s cubic-bezier(0,0,.5,1)}
#affiliates-page .code-box-toggle{display:flex;align-items:center;justify-content:space-between;gap:24px}
#affiliates-page .code-box-arrow{flex:none;margin-inline-start:auto}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 #affiliates-page .cdn-code-box[data-state=idle] .code-box-row:is(:hover,:focus-within){transform:scale3d(1.01,1.01,1.01);box-shadow:2px 4px 16px #00000029;z-index:1}
}
@media(prefers-reduced-motion:reduce){#affiliates-page .cdn-code-box .code-box-row{transition:none}}

/* Device-specific tablet rules must not split a directory card into two columns. */
#affiliates-page .af-results .af-feature{grid-template-columns:minmax(0,1fr)}
#affiliates-page .af-results .af-photo{width:100%;max-width:none;margin:0}

/* Keep the native search clear action, coloured exactly like its input text. */
#affiliates-page .af-field input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;width:1em;height:1em;background-color:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 4 8 8m0-8-8 8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 4 8 8m0-8-8 8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;cursor:pointer}
