﻿/* Native App Center blocks: shared frontend and editor defaults.
   Portal compositions load afterward and can refine these base surfaces. */
.ac-app-card:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.ac-ranking:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.ac-recommendation:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.wp-block-app-center-app-list:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.ac-app-info:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.wp-block-app-center-app-icon:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.wp-block-app-center-app-screenshots:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.wp-block-app-center-app-links:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.wp-block-app-center-app-faq:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.ac-ad-slot:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){min-width:0;max-width:100%;font-family:Arial,"Microsoft YaHei",sans-serif;color:var(--dvx-text)}
.ac-app-card:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){border:0;border-radius:0;padding:16px;grid-template-columns:80px minmax(0,1fr);box-shadow:none;gap:6px 14px}
.ac-app-card:hover:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){box-shadow:none;background:var(--dvx-panel)}
.ac-app-card__field--icon img:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){border:1px solid var(--dvx-border);border-radius:14px;width:80px;height:80px}
.ac-app-card>.ac-app-card__field--name:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){font-size:16px;font-weight:400;line-height:22px}
.ac-app-card__field:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){overflow-wrap:anywhere}
.ac-app-card__field--rating_label:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){color:#fa8616}
.ac-app-card__field--rating_label .ac-app-card__value:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){font-weight:400}
.ac-ranking:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.ac-recommendation:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.wp-block-app-center-app-list:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){padding:16px;background:var(--dvx-panel);border:0;border-radius:0}
.ac-ranking__title:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.ac-recommendation__title:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.ac-app-detail__heading:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){font-size:18px;font-weight:600;line-height:26px;letter-spacing:0;margin:0 0 16px}
.ac-ranking__description:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.ac-recommendation__description:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){font-size:14px;line-height:22px;margin:0 0 16px;color:var(--dvx-muted)}
.ac-ranking__items:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.ac-recommendation__items:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.ac-app-list__items:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr));gap:16px;margin:0;list-style:none}
:is(.ac-ranking__items,.ac-recommendation__items,.ac-app-list__items) .ac-app-card:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){display:flex;flex-direction:column;padding:0;gap:6px;background:transparent}
:is(.ac-ranking__items,.ac-recommendation__items,.ac-app-list__items) .ac-app-card__field--icon img:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){width:92px;height:92px;max-width:100%;object-fit:cover;border-radius:16px}
:is(.ac-ranking__items,.ac-recommendation__items,.ac-app-list__items) .ac-app-card__field--name:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){font-size:14px;font-weight:400;line-height:20px}
.ac-ranking__rank:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){top:0;left:0;right:auto;min-width:18px;padding:1px 4px;line-height:18px;text-align:center;background:var(--dvx-muted);color:white;font-size:12px}
.ac-ranking__item:first-child>.ac-ranking__rank:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){background:#fc4137}
.ac-ranking__item:nth-child(2)>.ac-ranking__rank:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){background:#ff8d12}
.ac-ranking__item:nth-child(3)>.ac-ranking__rank:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){background:#fbaa14}
.ac-ranking__comment:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.ac-recommendation__comment:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){border-top:1px solid var(--dvx-border);padding-top:8px;font-size:12px;line-height:20px}
.ac-app-info:not(.store-product-facts):not(.store-product-header *,.store-product-content *):not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;background:var(--dvx-panel);padding:16px}
.ac-app-info .ac-app-detail__heading:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){grid-column:1/-1}
.ac-app-info:not(.store-product-facts):not(.store-product-header *,.store-product-content *) .ac-app-card__field:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--dvx-border);margin:-1px 0 0 -1px;font-size:14px;line-height:22px}
.ac-app-info:not(.store-product-facts):not(.store-product-header *,.store-product-content *) .ac-app-card__label:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){font-size:12px;color:var(--dvx-muted);position:static;width:auto;height:auto;clip-path:none;overflow:visible;white-space:normal}
.ac-app-info>.ac-app-card__field--summary:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){grid-column:1/-1}
.wp-block-app-center-app-icon:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){width:fit-content}
.wp-block-app-center-app-screenshots:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.wp-block-app-center-app-faq:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){background:var(--dvx-panel);padding:16px}
.ac-app-card__field--screenshots:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){gap:12px;padding-bottom:12px;scroll-snap-type:x proximity}
.ac-app-card__field--screenshots img:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){scroll-snap-align:start;border-radius:8px;max-height:320px}
.ac-app-card__field--links:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){gap:8px;margin:0}
.ac-app-card__field--links a:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){background:#1acb70;color:#fff;border:0;border-radius:4px;min-height:38px;font-size:13px;padding:9px 14px;white-space:normal;overflow-wrap:anywhere}
.ac-app-card__field--links a:hover:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){background:#119d56;color:#fff}
.wp-block-app-center-app-links .ac-app-card__field--links li:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){flex:0 1 auto;min-width:min(100%,160px)}
.ac-app-card__field--faqs:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){font-size:14px;line-height:24px}
.ac-app-card__field--faqs details:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){border:0;border-bottom:1px solid var(--dvx-border);border-radius:0;padding:14px 0;margin:0}
.ac-app-card__field--faqs details:first-child:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){border-top:1px solid var(--dvx-border)}
.ac-app-card__field--faqs summary:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){line-height:24px;font-weight:600}
.ac-app-card__field--faqs details[open] summary:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){margin-bottom:10px;color:#159e5a}
.ac-ad-slot:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){padding:12px 16px;background:var(--dvx-panel);border:0;border-radius:0}
.ac-ad-slot__link:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){display:block;width:fit-content;max-width:100%}
.ac-ad-slot img:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){border-radius:0;max-width:100%;height:auto;object-fit:contain}
.ac-ad-slot__caption:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){font-size:12px;line-height:20px;color:var(--dvx-muted);margin:8px 0 0}
.ac-ad-slot__close:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){border:0;border-radius:3px;padding:6px 10px;background:var(--dvx-background);color:var(--dvx-muted)}
.ac-ad-slot__close:hover:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){background:var(--dvx-border)}
.ac-app-list__empty:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){border:0;border-radius:0;padding:24px;font-size:14px;background:var(--dvx-background)}
/* Do not introduce nested panels into intentionally composed portal shelves. */
.store-portal :is(.ac-ranking,.ac-recommendation,.wp-block-app-center-app-list):not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){padding:0;background:transparent}
.store-portal .ac-recommendation__items:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){grid-template-columns:repeat(auto-fit,minmax(min(100%,90px),1fr));gap:14px}
@media(max-width:700px){.ac-app-info:not(.store-product-facts):not(.store-product-header *,.store-product-content *):not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){grid-template-columns:minmax(0,1fr)}.ac-ranking__items:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.ac-recommendation__items:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)),.ac-app-list__items:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.ac-app-card__field--screenshots img:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){height:220px}.ac-app-card .ac-app-card__field--screenshots img:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){height:120px}.wp-block-app-center-app-links .ac-app-card__field--links li:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){flex:1 1 160px}}

.editor-styles-wrapper .ac-app-info>div:has(>.ac-app-card__field):not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){display:contents}
.store-main .wp-block-post-content .ac-app-card__field--name:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){font-weight:400}
.ac-app-card>.ac-app-card__field--summary:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){order:10}
.ac-app-card>.ac-app-card__field--links:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){order:20}
.ac-app-card>.ac-app-card__field--details_link:not(:where([data-ac-presentation="2"],[data-ac-presentation="2"] *)){order:30}
