@import url('./widget.css');

.r4f__panel { width: min(100%, 960px); }
.r4f__panel:has(#r4f-result:not([hidden])) { width: min(100%, 1120px); }
.r4f__panel:has(#r4f-limit:not([hidden])) { width: min(100%, 820px); }
.r4f__hero { min-height: calc(88svh - 76px); }
.r4f__preset-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 20px; }
.r4f__preset-nav a { padding: 7px 12px; border: 1px solid #bed0e0; border-radius: 999px; color: #315574; text-decoration: none; font-size: 13px; }
.r4f__preset-nav a[aria-current="page"] { border-color: #0768bd; background: #eaf4ff; color: #075fba; font-weight: 700; }
.r4f__comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 22px 0; }
.r4f__comparison figure { min-width: 0; margin: 0; }
.r4f__comparison figcaption { margin-bottom: 8px; color: #526479; font-weight: 700; }
.r4f__comparison img { display: block; width: 100%; height: clamp(380px, 44vw, 560px); object-fit: contain; border-radius: 10px; background: #f0f3f6; }
.r4f__comparison img.r4f__transparent { background-color: #fff; background-image: linear-gradient(45deg,#e9eef3 25%,transparent 25%),linear-gradient(-45deg,#e9eef3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e9eef3 75%),linear-gradient(-45deg,transparent 75%,#e9eef3 75%); background-size: 22px 22px; background-position: 0 0,0 11px,11px -11px,-11px 0; }
.r4f__file-name { display: block; margin: 8px 0; color: #526479; font-size: 14px; }
.r4f__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.r4f__actions .r4f__primary { margin: 0; }
.r4f__upsell { margin: 20px 0 0; padding: 14px; border-radius: 8px; background: #eaf4ff; }
.r4f__quota { padding: 28px 24px; border-radius: 12px; background: #eaf4ff; }
.r4f__quota p { margin: 8px 0 22px; }
.r4f__quota-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; }
.r4f__quota-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; }
.r4f .r4f__quota-actions .r4f__primary { margin: 0; }
#r4f-limit { min-height: 0; }
.r4f__download-menu { bottom: calc(100% + 8px); }
.r4f__drop { min-height: 260px; }
body.r4f--embedded .r4f__preset-nav { display: none; }
@media (max-width: 640px) {
    .r4f__comparison { gap: 8px; }
    .r4f__comparison img { height: min(56vw, 300px); }
    .r4f__panel { padding: 16px; }
    .r4f__quota { padding: 22px 16px; }
}
