/* LearnPress 4.4.9–4.4.9.1. Presentation only; native learning controls are preserved. */
.medyany-theme .lp-single-course {
	--lp-primary-color:#c7353b; --lp-secondary-color:#a92930; --lp-border-color:#e5dfd8;
	--lp-font-size-base:16px; --lp-border-radius:14px;
	color:#252323; font-family:Gilroy,Arial,sans-serif; line-height:1.65;
}
.medyany-theme .lp-single-course :is(h1,h2,h3,h4,p,a,button,label) { font-family:inherit; }
.medyany-theme .lp-single-course :is(a,button):focus-visible { outline:3px solid #b82f35; outline-offset:4px; }
.medyany-theme .lp-single-course .lp-single-course__header {
	position:relative; isolation:isolate; overflow:hidden; border:1px solid #eadbd5; border-radius:24px;
	background:radial-gradient(ellipse at 100% 0%,#f5d9d2 0%,transparent 55%),linear-gradient(115deg,#fff9f5,#f8f4ee);
}
.medyany-theme .lp-single-course .lp-single-course__header::after {
	content:""; position:absolute; z-index:-1; width:360px; height:360px; right:-150px; bottom:-220px;
	border:44px solid #e04b4b12; border-radius:50%; pointer-events:none;
}
.medyany-theme .lp-single-course .lp-single-course__header__inner { max-width:none; padding:clamp(24px,4vw,48px); }
.medyany-theme .lp-single-course .lp-single-course__header__inner > * { width:auto; }
.medyany-theme .lp-single-course .learn-press-breadcrumb { margin:0 0 24px; gap:8px; color:#5f514b; font-size:14px; line-height:1.5; }
.medyany-theme .lp-single-course .learn-press-breadcrumb a { color:inherit; }
.medyany-theme .lp-single-course .course-title { max-width:24ch; margin:0 0 22px; color:#252323; font-size:clamp(32px,4.3vw,56px); line-height:1.08; letter-spacing:-.03em; }
.medyany-theme .lp-single-course .course-instructor-category { margin:0 0 14px; gap:12px; font-size:16px; }
.medyany-theme .lp-single-course .course-instructor-category a { color:#a92930; font-weight:600; }
.medyany-theme .lp-single-course .lp-single-course-info-one { color:#655b54; font-size:14px; }
body.single-lp_course .site-main { padding-top:32px; }
/* LP's dynamic --lp-container-max-width is applied with !important in its CSS.
   Match that priority only inside the course; otherwise its body ends before the header. */
.medyany-theme .lp-single-course .lp-content-area { width:100%; max-width:none !important; min-width:0; padding:0; margin-inline:0; }
.medyany-theme .lp-single-course .lp-single-course-main { display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:32px; padding:32px 0 56px; align-items:start; }
.medyany-theme .lp-single-course .lp-single-course-main__left,
.medyany-theme .lp-single-course .lp-single-course-main__right { width:auto; min-width:0; margin:0; }
.medyany-theme .lp-single-course .lp-single-course-main__left > div { margin-bottom:32px; }
.medyany-theme .lp-single-course .lp-course-description { padding:clamp(22px,3vw,32px); background:#fff; border:1px solid #e5dfd8; border-radius:18px; font-size:17px; line-height:1.8; }
.medyany-theme .lp-single-course .lp-course-description p { margin:0 0 16px; }
.medyany-theme .lp-single-course .lp-course-description p:last-child { margin-bottom:0; }
.medyany-theme .lp-single-course .lp-single-course-main__right__inner {
	position:static; height:auto; max-height:none; overflow:visible; padding:22px; border:1px solid #e4d7d0; border-radius:18px;
	background:#fff; box-shadow:0 12px 36px #432a2010;
}
.medyany-theme .lp-single-course .course-img { margin:-22px -22px 22px; border-radius:17px 17px 0 0; }
.medyany-theme .lp-single-course .course-img img { display:block; width:100%; height:auto; }
.medyany-theme .lp-single-course .course-price { margin-bottom:20px; }
.medyany-theme .lp-single-course .course-price .free { display:inline-block; padding:5px 12px; background:#eef7ef; border:1px solid #d0e4d1; border-radius:8px; color:#27593a; font-size:16px; font-weight:600; }
.medyany-theme .lp-single-course .info-metas .info-meta-item { display:flex; flex-wrap:wrap; gap:4px 12px; padding:12px 0; margin:0; border-bottom:1px solid #eee8e2; align-items:center; font-size:15px; line-height:1.5; }
.medyany-theme .lp-single-course .info-metas .info-meta-item:last-child { border-bottom:0; }
.medyany-theme .lp-single-course .info-metas .info-meta-left { display:flex; align-items:center; flex:1 1 172px; min-width:0; gap:9px; color:#61574f; overflow-wrap:anywhere; }
.medyany-theme .lp-single-course .info-metas i { width:18px; flex:0 0 18px; text-align:center; color:#b82f35; font-size:18px; }
.medyany-theme .lp-single-course .info-metas .info-meta-right { flex:0 1 auto; max-width:100%; margin-left:auto; color:#252323; font-weight:600; text-align:right; overflow-wrap:anywhere; }
.medyany-theme .lp-single-course .info-metas .info-meta-right > * { margin:0; font:inherit; }
.medyany-theme .lp-single-course .course-buttons { display:flex; flex-direction:column; gap:10px; margin-top:20px; }
.medyany-theme .lp-single-course .course-buttons > * { width:100%; margin:0; }
.medyany-theme .lp-single-course .social-share-toggle { display:none; }
.medyany-theme .lp-single-course .course-buttons .lp-button {
	display:flex; justify-content:center; align-items:center; width:100%; min-height:48px; height:auto; max-width:100%; padding:13px 18px;
	border:1px solid #c7353b; border-radius:10px; background:#c7353b; color:#fff; font-size:16px; font-weight:600; line-height:1.4; white-space:normal;
}
.medyany-theme .lp-single-course .course-buttons .lp-button:hover { background:#a92930; border-color:#a92930; color:#fff; }
.medyany-theme .lp-single-course .course-buttons .lp-button:disabled { cursor:not-allowed; opacity:.6; }
.medyany-theme .lp-single-course .info-learning { padding:20px; border:1px solid #ead6cf; border-radius:12px; background:#fff7f3; }
.medyany-theme .lp-single-course .info-learning .course-progress { margin-bottom:18px; }
.medyany-theme .lp-single-course .info-learning .course-progress__label { display:flex; align-items:center; flex-wrap:wrap; gap:5px 8px; margin:0; color:#574a43; font-size:15px; line-height:1.5; }
.medyany-theme .lp-single-course .info-learning .course-progress__number { margin-left:auto; }
.medyany-theme .lp-single-course .info-learning .course-progress__label .number { color:#252323; font-size:17px; font-weight:700; }
.medyany-theme .lp-single-course .info-learning .course-progress__line { height:8px; margin:12px 0 16px; overflow:hidden; border-radius:20px; background:#e5dcd6; }
.medyany-theme .lp-single-course .info-learning .course-progress__line__active { height:100%; background:#c7353b; border-radius:inherit; }
.medyany-theme .lp-single-course .info-learning :is(.start-date,.will-end-date,.end-date,.item-completed) { padding:8px 0; margin:0; color:#51473f; font-size:14px; line-height:1.55; }
.medyany-theme .lp-single-course .info-learning .item-completed { justify-content:space-between; gap:6px; border-top:1px solid #edddd5; }
.medyany-theme .lp-single-course .info-learning .item-completed span:last-child { color:#252323; font-weight:600; }
.medyany-theme .lp-single-course .lp-course-curriculum__title { margin:0 0 18px; font-size:28px; letter-spacing:-.02em; }
.medyany-theme .lp-single-course .course-curriculum-info { gap:14px; margin-bottom:22px; align-items:center; }
.medyany-theme .lp-single-course .course-curriculum-info__left { flex-wrap:wrap; gap:8px; }
.medyany-theme .lp-single-course .course-curriculum-info__left li { padding:6px 12px; background:#f8f5f1; border:1px solid #e5dfd8; border-radius:8px; color:#504740; font-size:14px; line-height:1.5; }
.medyany-theme .lp-single-course .course-curriculum-info__left li::after { content:none; }
.medyany-theme .lp-single-course .course-curriculum-info__right { margin:0; color:#a92930; font-size:14px; }
.medyany-theme .lp-single-course .course-toggle-all-sections { text-decoration:underline; text-underline-offset:3px; }
.medyany-theme .lp-single-course .lp-course-curriculum .course-section { overflow:hidden; padding:0; margin:0 0 16px; border:1px solid #dfd7d0; border-radius:14px; background:#fff; }
.medyany-theme .lp-single-course .lp-course-curriculum .course-section-header { min-height:64px; padding:18px 20px; gap:12px; background:#f8f4ef; border-bottom:1px solid #e5dfd8; }
.medyany-theme .lp-single-course .lp-course-curriculum .course-section-header:hover { background:#fff0ea; }
.medyany-theme .lp-single-course .lp-course-curriculum .course-section__title { color:#252323; font-size:18px; font-weight:600; line-height:1.4; }
.medyany-theme .lp-single-course .lp-course-curriculum .course-section-info { min-width:0; }
.medyany-theme .lp-single-course .lp-course-curriculum .section-toggle { color:#a92930; }
.medyany-theme .lp-single-course .lp-course-curriculum .section-count-items { display:grid; place-items:center; flex:0 0 auto; min-width:30px; min-height:30px; padding:3px 8px; border:1px solid #e1d3c8; border-radius:8px; background:#fff; color:#665247; font-size:13px; font-weight:600; }
.medyany-theme .lp-single-course .lp-course-curriculum .course-item { margin:0; padding:0; border-bottom:1px solid #eee8e2; }
.medyany-theme .lp-single-course .lp-course-curriculum .course-item:last-child { border-bottom:0; }
.medyany-theme .lp-single-course .lp-course-curriculum .course-item__link { min-height:64px; padding:16px 20px; gap:12px; color:#35302c; text-decoration:none; }
.medyany-theme .lp-single-course .lp-course-curriculum .course-item__link:hover { background:#fff8f3; color:#a92930; }
.medyany-theme .lp-single-course .lp-course-curriculum .course-item__content { min-width:0; flex-direction:column; align-items:flex-start; gap:6px; }
.medyany-theme .lp-single-course .lp-course-curriculum .course-item-title { font-size:16px; line-height:1.5; overflow-wrap:anywhere; }
.medyany-theme .lp-single-course .lp-course-curriculum .course-item__right { margin:0; justify-content:flex-start; color:#685a50; font-size:13px; line-height:1.5; }
.medyany-theme .lp-single-course .lp-course-curriculum .course-item__info { align-self:flex-start; padding-top:3px; flex:0 0 auto; }
.medyany-theme .lp-single-course .lp-course-curriculum .course-item__info .course-item-ico { color:#a92930; }
.medyany-theme .lp-single-course .lp-course-curriculum .course-item__status { flex:0 0 auto; }
.medyany-theme .lp-single-course .lp-course-curriculum .course-item__status .course-item-ico.locked { color:#81746a; }
.medyany-theme .lp-single-course .lp-course-curriculum .course-item.current > .course-item__link { box-shadow:inset 3px 0 #c7353b; background:#fff1ed; }
.medyany-theme .lp-single-course .lp-course-author { padding:24px; border:1px solid #e5dfd8; border-radius:16px; background:#f8f5f1; }
.medyany-theme .pm-course-completed.learn-press-message.success {
	position:relative; display:flex; align-items:center; gap:14px; min-height:76px; padding:20px 24px;
	border:1px solid #b8d7c2; border-radius:14px; background:linear-gradient(120deg,#eff8f0,#f8fcf8);
	color:#23523a; font-family:Gilroy,Arial,sans-serif; font-size:18px; font-weight:600; line-height:1.5; text-transform:none;
}
.medyany-theme .pm-course-completed.learn-press-message.success::before {
	content:""; display:block; flex:0 0 36px; width:36px; height:36px; margin:0; border-radius:50%;
	background:#2f704c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/22px no-repeat;
}
@media(max-width:1099px) {
	.medyany-theme .lp-single-course .lp-single-course-main { grid-template-columns:minmax(0,1fr) 340px; gap:24px; }
}
@media(max-width:900px) {
	.medyany-theme .lp-single-course .lp-single-course-main { display:flex; flex-direction:column-reverse; gap:28px; }
	.medyany-theme .lp-single-course .lp-single-course-main__left,
	.medyany-theme .lp-single-course .lp-single-course-main__right { width:100%; }
	.medyany-theme .lp-single-course .lp-single-course-main__right__inner { position:static; max-height:none; overflow:visible; }
	.medyany-theme .lp-single-course .course-img { margin:0 0 20px; border-radius:10px; }
	.medyany-theme .lp-single-course .course-img img { max-height:260px; object-fit:contain; background:#f8f5f1; }
}
@media(max-width:520px) {
	body.single-lp_course .site-main { padding-top:24px; }
	.medyany-theme .lp-single-course .lp-single-course__header { border-radius:16px; }
	.medyany-theme .lp-single-course .lp-single-course__header__inner { padding:24px 20px; }
	.medyany-theme .lp-single-course .lp-single-course-main { padding:24px 0 40px; }
	.medyany-theme .lp-single-course .lp-single-course-main__right__inner { padding:20px; }
	.medyany-theme .lp-single-course .info-learning { padding:16px; }
	.medyany-theme .lp-single-course .lp-course-curriculum .course-item__link { padding:14px; gap:10px; }
	.medyany-theme .lp-single-course .lp-course-curriculum .course-section-header { padding:16px 14px; }
	.medyany-theme .pm-course-completed.learn-press-message.success { padding:18px; gap:12px; font-size:16px; }
}

/* The in-progress lesson / quiz player, not the course catalogue. */
body.medyany-theme #popup-course {
	--pm-player-sidebar:320px; --pm-player-header:76px; --pm-player-footer:76px; --pm-admin-offset:0px;
	--lp-primary-color:#c7353b; --lp-secondary-color:#a92930; --lp-color-base:#292624;
	--lp-color-accent:#a92930; --lp-border-color:#e5dfd8; --lp-font-size-base:16px;
	background:#f8f6f2; color:#292624; font-family:Gilroy,Arial,sans-serif; font-size:16px; line-height:1.65;
}
body.medyany-theme.admin-bar #popup-course { --pm-admin-offset:32px; }
.medyany-theme #popup-course :is(h1,h2,h3,h4,p,a,button,label,input) { font-family:inherit; text-transform:none; }
.medyany-theme #popup-course :is(a,button,input,[tabindex]):focus-visible { outline:3px solid #9c252b !important; outline-offset:3px; }
.medyany-theme #popup-course #popup-header {
	top:var(--pm-admin-offset); left:var(--pm-player-sidebar); height:var(--pm-player-header); padding:0 20px; gap:16px;
	border-bottom:1px solid #e5dfd8; background:#fff; box-shadow:0 3px 14px #35221b05;
}
.medyany-theme #popup-course .popup-header__inner { width:100%; max-width:1120px; min-width:0; padding:0; gap:20px; }
.medyany-theme #popup-course #popup-header .course-title { margin:0; color:#292624; font-size:18px; font-weight:600; line-height:1.35; }
.medyany-theme #popup-course #popup-header .course-title a { color:inherit; }
.medyany-theme #popup-course #popup-header .items-progress { display:flex; flex-direction:column; align-items:stretch; gap:0; flex:0 0 190px; margin:0; max-width:240px; color:#61574f; }
.medyany-theme #popup-course #popup-header .items-progress .number { color:#61574f; font-size:13px; line-height:1.4; }
.medyany-theme #popup-course #popup-header .learn-press-progress { width:100%; height:6px; margin-top:7px; background:#ece4de; border-radius:12px; }
.medyany-theme #popup-course #popup-header .learn-press-progress__active { background:#c7353b; border-radius:inherit; }
.medyany-theme #popup-course #popup-header .learn-press-progress::before { background:#ece4de; }
.medyany-theme #popup-course:has(.popup-header__inner.can-finish-course .form-button-finish-course) { --pm-player-header:96px; }
.medyany-theme #popup-course .popup-header__inner.can-finish-course { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 14px; }
.medyany-theme #popup-course .popup-header__inner.can-finish-course .items-progress { grid-column:1; width:100%; max-width:190px; }
.medyany-theme #popup-course .popup-header__inner.can-finish-course .form-button-finish-course { grid-column:2; grid-row:1 / span 2; margin:0; }
.medyany-theme #popup-course .popup-header__inner.can-finish-course .lp-button { min-height:40px; padding:9px 12px; border-radius:9px; font-size:14px; white-space:normal; }
.medyany-theme #popup-course #sidebar-toggle {
	appearance:none; -webkit-appearance:none; flex:0 0 44px; width:44px; min-width:44px; height:44px; margin:0;
	border:1px solid #e5d8d1; border-radius:10px; color:#a92930; background:#fff5f0; cursor:pointer; padding:13px 0; line-height:16px;
}
.medyany-theme #popup-course #sidebar-toggle::before {
	content:""; display:block; width:20px; height:16px; margin:0 auto; border:0; transform:none;
	background:linear-gradient(#a92930,#a92930) top/100% 2px no-repeat,linear-gradient(#a92930,#a92930) center/100% 2px no-repeat,linear-gradient(#a92930,#a92930) bottom/100% 2px no-repeat;
}
.medyany-theme #popup-course #sidebar-toggle::after { display:none; }
.medyany-theme #popup-course #sidebar-toggle:hover { background:#fde7dd; }
.medyany-theme #popup-course .back-course { display:grid; place-items:center; flex:0 0 44px; height:44px; margin:0; padding:0; border:1px solid #e5dfd8; border-radius:10px; background:#fff; color:#685b52; opacity:1; font-size:18px; line-height:1; }
.medyany-theme #popup-course .back-course:hover { background:#fff1ea; color:#a92930; }
.medyany-theme #popup-course #popup-sidebar { flex:0 0 var(--pm-player-sidebar); overflow:hidden; background:#fff; border-right:1px solid #e5dfd8; box-shadow:none; }
.medyany-theme #popup-course #popup-sidebar .search-course { align-items:center; height:var(--pm-player-header); padding:14px; background:#fff; border-bottom:1px solid #e5dfd8; }
.medyany-theme #popup-course #popup-sidebar .search-course input[name=s] { padding:10px 48px 10px 14px; min-width:0; height:46px; border:1px solid #ded5cc; border-radius:10px; background:#f9f7f4; color:#292624; font-size:14px; }
.medyany-theme #popup-course #popup-sidebar .search-course input::placeholder { color:#76685e; }
.medyany-theme #popup-course #popup-sidebar .search-course button { right:18px; top:calc((var(--pm-player-header) - 40px) / 2); height:40px; padding:0 12px; color:#a92930; }
.medyany-theme #popup-course #popup-sidebar .course-curriculum { top:var(--pm-player-header); width:100%; padding:12px 0 28px; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#cdbeb4 transparent; }
.medyany-theme #popup-course #popup-sidebar .lp-course-curriculum { width:100%; }
.medyany-theme #popup-course #popup-sidebar .course-section { margin:0 0 8px; padding:0; border:0; background:#fff; }
.medyany-theme #popup-course #popup-sidebar .course-section-header { padding:16px; gap:10px; background:#f6f2ed; border-bottom:1px solid #e9e1db; }
.medyany-theme #popup-course #popup-sidebar .course-section-info { min-width:0; }
.medyany-theme #popup-course #popup-sidebar .course-section__title { color:#292624; font-size:15px; font-weight:700; line-height:1.45; }
.medyany-theme #popup-course #popup-sidebar .section-count-items { margin-left:auto; min-width:26px; padding:2px 6px; border-radius:6px; background:#fff; color:#6a594e; font-size:12px; }
.medyany-theme #popup-course #popup-sidebar .course-item { margin:0; padding:0; border-bottom:1px solid #f0eae5; }
.medyany-theme #popup-course #popup-sidebar .course-item__link { min-height:68px; padding:14px 16px; gap:10px; color:#3d3630; text-decoration:none; }
.medyany-theme #popup-course #popup-sidebar .course-item__content { flex:1; min-width:0; flex-direction:column; align-items:flex-start; gap:5px; }
.medyany-theme #popup-course #popup-sidebar .course-item-title { font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.medyany-theme #popup-course #popup-sidebar .course-item__right { margin:0; gap:8px; color:#746458; font-size:12px; line-height:1.4; }
.medyany-theme #popup-course #popup-sidebar .course-item__info { flex:0 0 auto; align-self:flex-start; padding-top:2px; color:#a92930; }
.medyany-theme #popup-course #popup-sidebar .course-item__status { flex:0 0 auto; }
.medyany-theme #popup-course #popup-sidebar .course-item__link:hover { background:#fdf6ef; }
.medyany-theme #popup-course #popup-sidebar .course-item.current > .course-item__link { background:#fff0e9; box-shadow:inset 3px 0 #c7353b; color:#8f252b; font-weight:600; }
.medyany-theme #popup-course #popup-content { min-width:0; margin:var(--pm-player-header) 0 var(--pm-player-footer); padding:28px clamp(16px,3vw,44px); background:#f8f6f2; overscroll-behavior:contain; scrollbar-width:thin; }
.medyany-theme #popup-course .content-item-wrap { width:100%; max-width:1000px; margin:0 auto; padding:clamp(24px,3vw,44px); border:1px solid #e6ddd5; border-radius:18px; background:#fff; box-shadow:0 8px 30px #38211a05; }
.medyany-theme #popup-course .content-item-summary { width:100%; max-width:none; padding:0; }
.medyany-theme #popup-course .learn-press-message:not(.fixed) { margin-block:20px 24px !important; }
.medyany-theme #popup-course :is(.content-item-wrap,.content-item-summary) > .learn-press-message:first-child:not(.fixed) { margin-top:0 !important; }
.medyany-theme #popup-course .content-item-summary > .course-item-title { margin:0 0 28px; color:#292624; font-size:clamp(25px,2.3vw,36px); font-weight:700; letter-spacing:-.025em; line-height:1.2; text-align:left; }
.medyany-theme #popup-course .content-item-description { color:#3b342f; font-size:17px; line-height:1.85; overflow-wrap:anywhere; }
.medyany-theme #popup-course .content-item-description :is(p,ul,ol) { margin-bottom:20px; }
.medyany-theme #popup-course .content-item-description :is(h2,h3,h4) { color:#292624; line-height:1.3; }
.medyany-theme #popup-course .content-item-description a { color:#a92930; text-decoration:underline; text-underline-offset:3px; }
.medyany-theme #popup-course .content-item-description img { max-width:100%; height:auto; border-radius:10px; }
.medyany-theme #popup-course .content-item-description :is(iframe,video) { max-width:100%; border:0; border-radius:12px; }
.medyany-theme #popup-course .content-item-description table { display:block; max-width:100%; overflow:auto; }
.medyany-theme #popup-course .lp-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; box-sizing:border-box; min-height:44px; height:auto; padding:11px 18px; border:1px solid #c7353b; border-radius:9px; background:#c7353b; color:#fff; font:600 15px/1.4 Gilroy,Arial,sans-serif; white-space:normal; text-align:center; }
.medyany-theme #popup-course .lp-button:hover:not(:disabled) { background:#a92930; border-color:#a92930; color:#fff; }
.medyany-theme #popup-course .lp-button:disabled { opacity:.55; cursor:not-allowed; }
.medyany-theme #popup-course #popup-footer { left:var(--pm-player-sidebar); right:0; bottom:0; width:auto; max-width:none; min-height:var(--pm-player-footer); padding:14px clamp(16px,3vw,44px); border-top:1px solid #e5dfd8; background:#fff; }
.medyany-theme #popup-course .course-item-nav { max-width:1000px; margin:0 auto; gap:16px; }
.medyany-theme #popup-course .course-item-nav :is(.prev,.next) { min-width:0; gap:10px; line-height:1.4; }
.medyany-theme #popup-course .course-item-nav :is(.prev,.next)::before { display:none; }
.medyany-theme #popup-course #popup-footer .course-item-nav :is(.prev,.next) { flex-direction:row; text-align:center; }
/* Native footer selectors can load later and otherwise restore display:block + text-align:right. */
.medyany-theme #popup-course #popup-footer .course-item-nav :is(.prev,.next) > a { display:flex; align-items:center; justify-content:center; box-sizing:border-box; width:110px; min-width:110px; min-height:46px; margin:0; padding:11px 18px; border:1px solid #dfd3c9; border-radius:9px; background:#fff; color:#6a4537; font-size:15px; font-weight:600; line-height:1.4; text-align:center; text-indent:0; text-decoration:none; }
.medyany-theme #popup-course #popup-footer .course-item-nav .next > a { border-color:#c7353b; background:#c7353b; color:#fff; }
.medyany-theme #popup-course .course-item-nav a:hover { filter:brightness(.94); }
.medyany-theme #popup-course .course-item-nav__name { display:none !important; }
body.medyany-theme.lp-sidebar-toggle__close #popup-course #popup-sidebar { flex-basis:0; border:0; }
body.medyany-theme.lp-sidebar-toggle__close #popup-course :is(#popup-header,#popup-footer) { left:0; }
.medyany-theme #popup-course .pm-course-veil { display:none; }

/* Quiz controls stay native (including radio/checkbox selection and result classes). */
.medyany-theme #popup-course #content-item-quiz .quiz-status { position:sticky; top:-12px; margin:0 0 24px; }
.medyany-theme #popup-course #content-item-quiz .quiz-status > div { width:100%; max-width:none; padding:12px 16px; margin:0; gap:14px; flex-wrap:wrap; justify-content:space-between; border:1px solid #e9d5c9; border-radius:12px; background:#fff4eb; }
.medyany-theme #popup-course #content-item-quiz .quiz-status > div > div { flex:0 1 auto; width:auto; gap:10px; flex-direction:row; }
.medyany-theme #popup-course #content-item-quiz .quiz-status .questions-index { color:#624f43; font-size:14px; }
.medyany-theme #popup-course #content-item-quiz .quiz-status .questions-index span { color:#292624; }
.medyany-theme #popup-course #content-item-quiz .quiz-status .countdown { padding:6px; color:#7d292e; font-size:16px; font-variant-numeric:tabular-nums; }
.medyany-theme #popup-course .quiz-intro { margin-bottom:24px; }
.medyany-theme #popup-course .quiz-questions .question { padding:24px 0; margin:0; border-bottom:1px solid #e5dfd8; }
.medyany-theme #popup-course .question-title { display:flex; align-items:flex-start; gap:10px; color:#292624; font-size:20px; font-weight:600; line-height:1.5; }
.medyany-theme #popup-course .question-index { flex:0 0 auto; color:#a92930; }
.medyany-theme #popup-course .answer-options .answer-option { padding:14px; margin:0 0 12px; gap:10px; align-items:flex-start; border:1px solid #ded6ce; border-radius:10px; background:#fff; }
.medyany-theme #popup-course .answer-options .answer-option:hover { border-color:#d2ada1; background:#fff8f3; }
.medyany-theme #popup-course .answer-options .answer-option:has(input:checked) { border-color:#bd6664; background:#fff1e9; }
.medyany-theme #popup-course .answer-options .option-title { min-width:0; padding:0; margin:0; border:0; background:transparent; color:#3b342f; font-size:16px; line-height:1.6; }
.medyany-theme #popup-course .answer-options .option-title:hover,
.medyany-theme #popup-course .answer-options .option-title-content { background:transparent; box-shadow:none; }
.medyany-theme #popup-course .answer-options .option-title::before { display:none; }
.medyany-theme #popup-course .answer-options input:is([type=radio],[type=checkbox]) { position:relative; top:auto; transform:none; width:24px; min-width:24px; height:24px; margin:2px 0 0; flex:0 0 24px; background:#fff; border-color:#9b8b7f; }
/* Replace the input ring only when the whole answer provides a visible keyboard ring. */
.medyany-theme #popup-course .answer-options .answer-option:has(input:focus-visible) { outline:3px solid #9c252b; outline-offset:3px; }
.medyany-theme #popup-course .answer-options .answer-option:has(input:focus-visible) input:focus-visible { outline:none !important; }
.medyany-theme #popup-course .answer-options input[type=radio]:checked::after { background:#a92930; }
.medyany-theme #popup-course .answer-option.answered-wrong,
.medyany-theme #popup-course .answer-options .answer-option.answered-wrong:has(input:checked) { border-color:#cc6c6c; background:#fff2f2; }
.medyany-theme #popup-course .answer-option.answer-correct,
.medyany-theme #popup-course .answer-options .answer-option.answer-correct:has(input:checked) { border-color:#62a775; background:#f1f8f2; }
.medyany-theme #popup-course #content-item-quiz .quiz-status .submit-quiz #button-submit-quiz { border-radius:9px; height:auto; white-space:normal; }
.medyany-theme #popup-course .answer-option.answered-wrong input[type=radio]:checked::after { background:#b72e2e; }
.medyany-theme #popup-course .quiz-buttons { display:flex; gap:14px; flex-wrap:wrap; justify-content:space-between; margin:24px 0 0; padding:0; }
.medyany-theme #popup-course .quiz-buttons :is(.button-left,.button-right) { display:flex; align-items:center; flex-wrap:wrap; gap:12px; min-width:0; }
.medyany-theme #popup-course .quiz-buttons .lp-button { margin:0; }
.medyany-theme #popup-course .quiz-buttons .button-left.fixed { position:static !important; width:auto !important; margin-left:0 !important; transform:none; padding:0; background:none; }
.medyany-theme #popup-course .questions-pagination { flex-wrap:wrap; gap:8px; }
.medyany-theme #popup-course .questions-pagination .nav-links { flex-wrap:wrap; gap:8px; }
.medyany-theme #popup-course .questions-pagination .nav-links { padding:0; list-style:none; }
.medyany-theme #popup-course .questions-pagination .page-numbers { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; min-width:44px; min-height:44px; height:auto; padding:10px 14px; border-radius:8px; color:#614b40; font-size:15px; line-height:1.4; text-align:center; }
.medyany-theme #popup-course .questions-pagination .page-numbers:is(.prev,.next) { min-width:96px; padding:10px 18px; }
.medyany-theme #popup-course .quiz-buttons:not(.infinity).is-first .prev,
.medyany-theme #popup-course .quiz-buttons:not(.infinity).is-last .next { display:none; }
.medyany-theme #popup-course .questions-pagination .page-numbers.current { border-color:#b82f35; background:#fff1e9; color:#a92930; font-weight:700; }
.medyany-theme #popup-course .quiz-result { width:100%; max-width:100%; padding:24px; margin:0 0 24px; border:1px solid #e5dfd8; border-radius:14px; background:#fbf8f4; }
.medyany-theme #popup-course .quiz-result .result-statistic { padding:0; margin:20px 0 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.medyany-theme #popup-course .quiz-result .result-statistic li { padding:12px; border:1px solid #e5dfd8; border-radius:8px; background:#fff; }
.medyany-theme #popup-course .quiz-result .result-statistic li + li { border-top:1px solid #e5dfd8; }
.medyany-theme #popup-course .quiz-result .result-heading { display:block; margin:0 0 22px; font-size:24px; line-height:1.3; color:#292624; }
.medyany-theme #popup-course .quiz-result .result-message { margin:0 0 24px; padding:12px 16px; border:1px solid #e9bcba; border-radius:10px; background:#fff0ef; color:#902a2d; font-weight:600; }
.medyany-theme #popup-course .quiz-result.passed .result-message { background:#edf7ef; border-color:#b9d8c2; color:#205b38; }
.medyany-theme #popup-course .quiz-result .result-statistic-field { gap:8px; align-items:center; min-width:0; font-size:15px; }
.medyany-theme #popup-course .quiz-result .result-statistic-field span { min-width:0; line-height:1.5; color:#61574f; }
.medyany-theme #popup-course .quiz-result .result-statistic-field p { flex:0 1 auto; min-width:0; font-size:16px; line-height:1.5; font-weight:600; }
.medyany-theme #popup-course .quiz-intro { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:12px; padding:0; margin:24px 0; }
.medyany-theme #popup-course .quiz-intro-item { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; margin:0; padding:14px; border:1px solid #e5dfd8; border-radius:10px; background:#faf8f5; font-size:15px; line-height:1.5; }
.medyany-theme #popup-course .quiz-intro-item::before { margin:0; }
.medyany-theme #popup-course .quiz-intro-item__title { flex:1 1 140px; padding:0; min-width:0; color:#61574f; font-weight:500; }
.medyany-theme #popup-course .quiz-intro-item__content { margin-left:auto; color:#292624; font-weight:600; }

/* A real issued certificate or a passed course only; checks are in learnpress-ui.php. */
.medyany-theme .pm-certificate-jump { display:inline-flex; gap:12px; align-items:center; padding:12px 18px; margin:0 0 22px; border-radius:10px; background:#a92930; color:#fff !important; font-size:16px; font-weight:600; text-decoration:none; }
.medyany-theme .pm-course-certificate { scroll-margin-top:100px; }
.medyany-theme .pm-course-certificate .pmcs-panel { max-width:none; margin:0 0 28px; padding:28px; border:1px solid #d8b39e; border-top:4px solid #c7353b; border-radius:16px; background:linear-gradient(120deg,#fff4e9,#fffdf8); font-family:Gilroy,Arial,sans-serif; box-shadow:0 10px 32px #8b423312; }
.medyany-theme .pm-course-certificate .pmcs-panel .pmcs-button { font-family:inherit; }
@media(max-width:900px) { .medyany-theme .lp-single-course:has(.pm-course-certificate) .lp-single-course-main { flex-direction:column; } }
@media(max-width:782px) { body.medyany-theme.admin-bar #popup-course { --pm-admin-offset:46px; } }
@media(max-width:768px) {
	body.medyany-theme #popup-course { --pm-player-header:88px; --pm-player-footer:76px; }
	.medyany-theme #popup-course #popup-header { left:0 !important; padding:0 12px; gap:10px; }
	.medyany-theme #popup-course .popup-header__inner { flex-direction:column; align-items:stretch; gap:6px; }
	.medyany-theme #popup-course #popup-header .course-title { font-size:14px; line-height:1.4; }
	.medyany-theme #popup-course #popup-header .items-progress { display:block; width:100%; max-width:none; flex:0 0 auto; }
	.medyany-theme #popup-course #popup-header .items-progress .number { font-size:12px; }
	.medyany-theme #popup-course #popup-header .learn-press-progress { margin-top:4px; height:4px; }
	.medyany-theme #popup-course:has(.popup-header__inner.can-finish-course .form-button-finish-course) { --pm-player-header:132px; }
	.medyany-theme #popup-course .popup-header__inner.can-finish-course { display:flex; }
	.medyany-theme #popup-course .popup-header__inner.can-finish-course .lp-button { width:100%; min-height:36px; padding:7px 10px; font-size:13px; }
	.medyany-theme #popup-course #popup-sidebar { position:fixed; z-index:105; top:calc(var(--pm-admin-offset) + var(--pm-player-header)); bottom:0; left:0; width:min(340px,calc(100vw - 56px)); flex:none !important; border:0; transform:translateX(-102%); transition:none; box-shadow:8px 0 30px #251d2520; }
	.medyany-theme #popup-course #popup-sidebar .search-course { height:76px; }
	.medyany-theme #popup-course #popup-sidebar .search-course button { top:18px; }
	.medyany-theme #popup-course #popup-sidebar .course-curriculum { top:76px; }
	body.medyany-theme.lp-sidebar-toggle__open #popup-course #popup-sidebar { transform:translateX(0); transition:transform .2s; }
	.medyany-theme #popup-course .pm-course-veil { position:fixed; z-index:104; top:calc(var(--pm-admin-offset) + var(--pm-player-header)); bottom:0; left:min(340px,calc(100vw - 56px)); right:0; width:auto; height:auto; padding:0; border:0; border-radius:0; background:#28201b66; }
	body.medyany-theme.lp-sidebar-toggle__open #popup-course .pm-course-veil { display:block; }
	.medyany-theme #popup-course #popup-content { min-width:0; width:100%; padding:16px 12px; }
	.medyany-theme #popup-course .content-item-wrap { padding:22px 18px; border-radius:14px; }
	.medyany-theme #popup-course .content-item-description { font-size:16px; line-height:1.8; }
	.medyany-theme #popup-course #popup-footer { left:0 !important; padding:14px 12px; }
	.medyany-theme #popup-course #content-item-quiz .quiz-status > div { padding:12px; }
	.medyany-theme #popup-course #content-item-quiz .quiz-status > div > div { flex-wrap:wrap; }
	.medyany-theme #popup-course .question-title { font-size:18px; }
	.medyany-theme #popup-course .quiz-result { padding:18px; }
	.medyany-theme #popup-course .quiz-result .result-statistic { grid-template-columns:1fr; }
	.medyany-theme .pm-course-certificate .pmcs-panel { padding:22px; }
}
@media(prefers-reduced-motion:reduce) { .medyany-theme #popup-course :is(#popup-sidebar,#popup-header,#popup-footer) { transition:none; } }
