/* Physical corners stay consistent in RTL: languages left, students right. */
#page .py-card-cover-badges{position:absolute;inset:8px 8px auto;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:6px;direction:ltr;pointer-events:none;min-width:0}
#page .py-subtitle-badge{display:inline-flex;flex:none;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;padding:5px 7px;border:1px solid #ffffff59;border-radius:var(--py-radius-sm,4px);background:#082039ed;color:#fff;font:650 11px/1.5 var(--py-font);box-shadow:0 2px 8px #001a2b30;white-space:nowrap;text-shadow:none}
#page .py-subtitle-badge>.py-icon{width:16px;height:16px;flex:none;color:#d7eeff}
#page .py-subtitle-badge>bdi{font-size:inherit;letter-spacing:.2px;unicode-bidi:isolate}
#page .py-card-cover-badges>.py-hc-students{position:static;inset:auto;margin-left:auto;flex:0 1 auto;min-width:0;max-width:100%;padding:5px 7px;gap:4px;direction:rtl;border-radius:var(--py-radius-sm,4px);font-size:11px;line-height:1.5;background:#082039ed}
#page .py-card-cover-badges>.py-hc-students svg{width:16px;height:16px;padding:0;border:0;border-radius:0;background:transparent}
.py-catalog-page .astra-shop-thumbnail-wrap>a.woocommerce-loop-product__link{position:relative}
/* Narrow list covers reserve their upper edge for languages; sale stays lower-right. */
html[data-py-theme] .py-catalog-page #page .astra-shop-thumbnail-wrap .py-course-badge{top:auto;bottom:6px;right:6px;left:auto}
@media(max-width:600px){#page .py-card-cover-badges{inset:6px 6px auto;gap:4px}#page .py-subtitle-badge{font-size:10px;padding:4px 5px;gap:3px}#page .py-subtitle-badge>.py-icon{width:14px;height:14px}#page .py-card-cover-badges>.py-hc-students{font-size:10px;padding:4px 5px;gap:3px}#page .py-card-cover-badges>.py-hc-students svg{width:14px;height:14px}}
