@use 'theme'; .code-snippets-upsell-banner { display: flex; flex-direction: row; align-items: center; padding: 12px; gap: 10px; background: var(--cs-color-surface); border: 1px solid var(--cs-color-border); border-radius: 5px; p { margin: 0; } .components-external-link__contents { text-decoration: none; } .button-primary { background-color: var(--cs-color-secondary); border: 0; font-weight: bold; margin-inline-start: auto; &:hover, &:focus { background-color: var(--cs-color-primary-hover); } } .button-link.button-small { text-decoration: none; font-weight: normal; padding: 0; color: var(--cs-color-text-muted); line-height: 1; border: none; } } .code-snippets-upsell-dialog, .wrap .code-snippets-upsell-page { h1 { font-size: 32px; margin: 0; span { color: var(--cs-color-secondary); } } p { margin-block: 0; margin-inline: 2em; font-size: 16px; max-inline-size: 750px; } img { inline-size: 82px; } ul { display: grid; inline-size: 100%; grid-auto-flow: column; grid-template-rows: 1fr 1fr 1fr 1fr 1fr; max-inline-size: 750px; } li { display: flex; flex-flow: row; gap: 11px; font-size: 14px; } li::before { content: '✓'; color: #fff; inline-size: 24px; block-size: 24px; border-radius: 50%; background-color: var(--cs-color-primary-hover); display: flex; justify-content: center; align-items: center; } .button.button-large { background-color: var(--cs-color-secondary); padding-block: 15px; padding-inline: 20px; font-size: 16px; line-height: inherit; margin-block: 16px 24px; margin-inline: auto; border-color: currentcolor; // Matches the specificity of the native-control override in _wp-admin.scss // (.wrap .button-primary:not(.button-link):hover:not(:disabled)) so this // upsell-specific hover styling isn't overridden by the shared button rule. &:is(:hover, :focus):not(.button-link, :disabled) { background-color: var(--cs-color-primary-hover); border-color: var(--cs-color-primary-hover); } } } .code-snippets-upsell-page, .code-snippets-upsell-dialog .components-modal__content { margin: 0; padding-block: 48px; padding-inline: 80px; } .code-snippets-upsell-page, .code-snippets-upsell-dialog { color: #1c3f41; line-height: 1.5; background: linear-gradient(116.04deg, #edfcff -0.75%, #fcdfd4 93.04%); box-shadow: 0 4px 80px rgb(0 0 0 / 10%); border-radius: 5px; } // Bleed the upsell to the full width of the admin content area and fill the // remaining viewport height, so it reads as a full page rather than a small // boxed card floating in the subpage. 168px accounts for the WP admin bar // (32px) plus the plugin toolbar (136px). .code-snippets-upsell-page { box-sizing: border-box; margin-inline-start: -22px; inline-size: calc(100% + 42px); min-block-size: calc(100vh - 168px); border-radius: 0; justify-content: center; } .code-snippets-upsell-page, .code-snippets-upsell-dialog .components-modal__content > div:last-child { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; } .code-snippets-upsell-dialog { max-block-size: unset; font-family: 'SF Pro', sans-serif; inline-size: 794px; overflow: auto; }