/* Mobile reading density for the existing Cosmetic Decoder layouts. */
@media (max-width: 699px) {
  html body.cc-green .cc-main.cc-main {
    padding-top: 16px !important;
  }

  html body.cc-green .cc-main .entry-content > h1.wp-block-heading:not(#type-reference-guard) {
    font-size: 22px !important;
    line-height: 1.23 !important;
    margin-block-end: 6px !important;
  }

  html:is([lang^="ko"], [lang^="zh"], [lang^="ja"]) body.cc-green .cc-main .entry-content > h1.wp-block-heading:not(#type-reference-guard) {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }

  html body.cc-green .cc-main .entry-content > h2.wp-block-heading:not(#type-reference-guard) {
    font-size: 17px !important;
    line-height: 1.4 !important;
  }

  html body.cc-green .cc-main .entry-content h3.wp-block-heading:not(#type-reference-guard) {
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin-block: 16px 6px !important;
  }

  html body.cc-green .cc-main article.cc-guide p {
    font-size: 15px;
    line-height: 1.6;
  }

  html body.cc-green .cc-main article.cc-guide > p:not(.cc-lede):not(.cc-content-dates) {
    margin-block: 10px;
  }

  html body.cc-green .cc-main article.cc-guide > h2:not(#type-reference-guard):not(#cd-un-a) {
    font-size: 17px !important;
    line-height: 1.4 !important;
    margin-block: 18px 8px !important;
    padding-block-start: 0 !important;
  }

  html body.cc-green .cc-main article.cc-guide > h3 {
    font-size: 16px;
    line-height: 1.4;
    margin-block: 14px 6px;
  }

  html body.cc-green .cc-main .cc-popular-brands > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
  }

  html body.cc-green .cc-main .cc-popular-brands > ul > li > a {
    display: inline-block;
    align-content: center;
    min-height: 44px;
    overflow-wrap: anywhere;
  }

  html body.cc-green .cc-main .entry-content > p.cc-lede:not(#type-reference-guard) {
    margin-block: 5px 0 !important;
    line-height: 1.45 !important;
  }

  html body.cc-green.cc-green-page-home .cc-main .entry-content > section.cc-live.cd-ht {
    margin-block: 8px 7px !important;
  }

  html body.cc-green.cc-green-page-home .cc-main section.cc-live.cd-ht .cc-live-stats .cc-stat-n {
    font-size: 19px !important;
  }

  html body.cc-green.cc-green-page-home .cc-main section.cc-live.cd-ht .cc-live-stats {
    padding-block: 6px !important;
  }

  html body.cc-green.cc-green-page-home .cc-main section.cc-live.cd-ht :is(.cc-live-feed, .cc-live-head) {
    padding-block: 6px !important;
    min-height: 44px !important;
  }

  html body.cc-green .cc-main .entry-content > .cc-hub {
    margin-block-start: 8px !important;
  }

  html body.cc-green.cc-green-page-home .cc-main .entry-content > .cc-hub {
    margin-block-end: 16px !important;
  }

  html body.cc-green .cc-hub .cc-hub-tab {
    min-height: 46px !important;
    padding-block: 6px !important;
  }

  html body.cc-green .cc-hub .cc-hub-panel {
    padding: 10px 14px 10px !important;
  }

  html body.cc-green .cc-hub .cc-tool-hint {
    margin-block-start: 5px !important;
    line-height: 1.5 !important;
  }

  html body.cc-green .cc-hub .cc-checker .cc-sourced-codes {
    margin-block-start: 4px !important;
  }

  html body.cc-green .cc-hub .cc-checker .cc-sourced-codes > summary {
    box-sizing: border-box;
    align-content: center;
    min-height: 44px;
    padding-block: 4px;
  }

  html body.cc-green .cc-hub .cc-checker form.cc-form {
    gap: 7px !important;
  }

  html body.cc-green .cc-hub .cc-checker .cc-field {
    gap: 4px !important;
  }

  html body.cc-green .cc-hub .cc-checker .cc-field :is(input:not([type="hidden"]), select:not(.cc-bx-native)) {
    height: 46px !important;
    min-height: 46px !important;
    font-size: 16px !important;
    padding-block: 8px !important;
  }

  html body.cc-green .cc-hub .cc-checker form.cc-form > button.cc-btn {
    min-height: 44px !important;
    padding-block: 8px !important;
  }

  html body.cc-green .cc-main .cc-tool.cc-pao {
    margin-block: 12px !important;
    padding: 12px !important;
  }

  html body.cc-green .cc-tool.cc-pao form.cc-form {
    gap: 9px;
  }

  html body.cc-green.cc-green-page-pao .cc-main .cc-tool.cc-pao > form.cc-form > .cc-field > :is(input[type="date"], select) {
    height: 46px !important;
    min-height: 46px !important;
    padding-block: 6px !important;
  }

  html body.cc-green.cc-green-page-home .cc-main .entry-content > section.cd-hl-products {
    margin-block-start: 16px !important;
  }

  html body.cc-green.cc-green-page-home .cc-main section.cd-hl-products .cc-green-section-head {
    align-items: center !important;
    margin-block-end: 8px !important;
  }

  html body.cc-green.cc-green-page-home .cc-main section.cd-hl-products .cd-hl-chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-block-end: 6px;
    overflow: visible;
  }

  html body.cc-green.cc-green-page-home .cc-main section.cd-hl-products .cd-hl-chips a {
    display: block;
    align-content: center;
    min-height: 44px;
    padding: 3px 2px;
    text-align: center;
    font-size: 11.5px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    border-radius: 8px;
  }

  html body.cc-green.cc-green-page-home .cc-main section.cd-hl-products .cd-hl-chips a span {
    display: block;
    color: #5f7069;
    font-variant-numeric: tabular-nums;
  }

  html body.cc-green.cc-green-page-home .cc-main section.cd-hl-products .cd-hl-chips a.is-on span {
    color: #e5efeb;
  }

  html body.cc-green.cc-green-page-home .cc-main section.cd-hl-products p.cd-hl-cap {
    margin-block: 0 7px !important;
  }

  html body.cc-green.cc-green-page-home .cc-main section.cd-hl-six .cc-green-popular-grid {
    row-gap: 10px !important;
  }

  html body.cc-green.cc-green-page-home .cc-main section.cd-hl-products .cc-green-popular-grid > a.cc-ptile {
    padding-block-end: 8px !important;
  }

  html body.cc-green.cc-green-page-home .cc-main section.cd-hl-products.cc-green-popular .cc-green-popular-grid > a.cc-ptile span.cc-ptile-brand:not(#cd-hl-a):not(#cd-hl-b) {
    margin-block-start: 7px !important;
  }

  html body.cc-green .cc-product-index .cc-demand-search {
    margin-block: 4px 8px !important;
  }

  html body.cc-green .cc-product-index .cc-pindex-bar {
    gap: 6px !important;
    margin-block-end: 10px !important;
  }

  html body.cc-green .cc-main .cc-ptiles.cd-hl-list:not(#cd-hl-a):not(#cd-hl-b) {
    row-gap: 10px !important;
  }

  html body.cc-green .cc-main .cc-ptiles.cd-hl-list > a.cc-ptile:not(#cd-hl-a):not(#cd-hl-b) {
    padding-block-end: 8px !important;
  }

  html body.cc-green .cc-main .cc-ptiles.cd-hl-list > a.cc-ptile span.cc-ptile-brand:not(#cd-hl-a):not(#cd-hl-b) {
    margin-block-start: 7px !important;
  }

  html body.cc-green .cc-main .cc-brand-index .cc-brand-card {
    min-height: 44px;
    gap: 3px;
    padding: 9px 11px;
  }

  html body.cc-green .cc-main .entry-content > p.cc-lede.cd-pd-lede:not(#cd-pd-a):not(#cd-pd-b) {
    margin-top: 9px !important;
    line-height: 1.45 !important;
  }

  html body.cc-green .cc-product-report.cd-pd .cd-pd-main {
    margin-top: 9px;
  }

  html body.cc-green .cc-product-report.cd-pd .cd-pd-local-batch {
    margin-block-start: 10px;
  }

  html body.cc-green .cc-product-report.cd-pd .cd-pd-local-batch > a.cc-btn-ghost {
    min-height: 44px;
    white-space: normal;
  }

  html body.cc-green .cc-product-report.cd-pd .bpa-decoder .fx18-note {
    margin-block-start: 4px;
  }
}

@media (max-width: 359px) {
  html body.cc-green .cc-main .cc-ptiles.cd-hl-list > a.cc-ptile :is(span.cc-ptile-brand, span.cc-ptile-name, span.cd-hl-meta):not(#cd-hl-a):not(#cd-hl-b),
  html body.cc-green.cc-green-page-home .cc-main section.cd-hl-products.cc-green-popular .cc-green-popular-grid > a.cc-ptile :is(span.cc-ptile-brand, span.cc-ptile-name, span.cd-hl-meta):not(#cd-hl-a):not(#cd-hl-b) {
    margin-inline: 7px !important;
  }
}
