/* Download views only. Ad markup and the existing download controller/scripts stay intact. */
.fr-download-main{flex:1;width:100%;background:radial-gradient(ellipse at 65% 12%,var(--fr-soft),transparent 62%)}
.fr-download .download-section{padding:36px 0 42px;background:transparent;color:var(--fr-ink)}
.fr-download .download-section>.container{width:100%;max-width:1120px;padding:0 24px}
.fr-download .custom-container{width:100%;max-width:none;margin:0}
.fr-download .section-inner,.fr-download .section-body,.fr-download .section-content{background:transparent}
.fr-download :is(h1,h2,h3,h4,h5,h6){color:var(--fr-ink);overflow-wrap:anywhere}
.fr-download :is(.text-primary,.text-secondary){color:var(--fr-button)!important}
.fr-download .text-muted{color:var(--fr-muted)!important}
.fr-download .filebox,.fr-download .file-card{background:var(--fr-surface);border:1px solid var(--fr-border);border-radius:18px;box-shadow:0 12px 40px #2d090910;color:var(--fr-ink)}
.fr-download .filebox{padding:26px}
.fr-download .filebox-info{display:flex;align-items:center;justify-content:space-between;gap:24px}
.fr-download .filebox-name-icon{display:flex;align-items:center;min-width:0;flex:1}
.fr-download .filebox-name-icon>.vi{flex-shrink:0}
.fr-download .filebox-desc{min-width:0}
.fr-download .filebox-title{font-size:clamp(19px,2vw,25px);font-weight:650;line-height:1.4;letter-spacing:-.025em;white-space:normal;overflow-wrap:anywhere}
.fr-download .filebox-actions{display:flex;gap:8px;margin-top:12px}
.fr-download .filebox-actions button{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--fr-border);border-radius:8px;background:transparent;color:var(--fr-muted);cursor:pointer}
.fr-download .filebox-actions button:hover{background:var(--fr-soft);color:var(--fr-button);border-color:var(--fr-primary)}
.fr-download .filebox-download{flex:none;margin:0}
.fr-download #down_1Btn{position:relative;width:270px;max-width:100%;padding:0!important;overflow:hidden;border-radius:10px}
.fr-download #down_1Btn>a{display:flex;align-items:center;justify-content:center;min-height:52px;padding:14px 18px;color:inherit!important;text-decoration:none;font-weight:600;font-size:14px}
.fr-download #down_1Btn .progress-layer{background:#ffffff26!important;border-radius:inherit!important;transition:width .8s linear;pointer-events:none}
.fr-download .fr-file-information{--bs-gutter-x:24px;--bs-gutter-y:24px;margin-top:0!important}
.fr-download .fr-file-information>.col-md-8>.px-3{padding:24px!important;border:1px solid var(--fr-border);border-radius:16px;background:var(--fr-surface);height:100%}
.fr-download .fr-file-information p{color:var(--fr-muted);line-height:1.8;overflow-wrap:anywhere}
.fr-download .text-ellipsis{white-space:normal;overflow-wrap:anywhere}
.fr-download :is(.card,.list-group-item){background:var(--fr-surface);color:var(--fr-ink);border-color:var(--fr-border)}
.fr-download .card{border-radius:12px;overflow:hidden}
.fr-download .list-group-item{padding:18px;font-size:13px}
.fr-download .file-card{padding:28px}
.fr-download .file-title{margin-bottom:12px!important}
.fr-download .file-title .h3{font-size:clamp(20px,2.2vw,30px);line-height:1.4}
.fr-download .file-request{color:var(--fr-muted);font-size:13px}
.fr-download .download-section-box{padding-top:20px;padding-bottom:20px}
.fr-download .download-section-box .btn{border-radius:10px;padding:14px 26px;white-space:normal}
.fr-download .download-file-timer{color:var(--fr-muted);font-variant-numeric:tabular-nums}
.fr-download .custom-nav-pills{gap:8px}
.fr-download .custom-nav-pills .nav-link{color:var(--fr-muted);border:1px solid var(--fr-border);border-radius:8px;background:var(--fr-bg)}
.fr-download .custom-nav-pills .nav-link.active{color:var(--fr-ink);background:var(--fr-soft);border-color:var(--fr-primary)}
.fr-download .modal-content{color:var(--fr-ink);background:var(--fr-surface);border:1px solid var(--fr-border);border-radius:16px}
.fr-download :is(.modal-header,.modal-footer){border-color:var(--fr-border)}
.fr-download .modal-dialog{max-width:calc(100% - 24px)}
.fr-download #share .modal-dialog{width:520px}
.fr-download #reportModal .modal-dialog{width:800px}
.fr-download .social-btn{color:#fff}
.fr-download .form-control,.fr-download .form-select{font-size:14px}
.fr-download .form-control::placeholder{color:var(--fr-muted);opacity:1}
/* Leave creative dimensions and delivery scripts to the existing ad component. */
.fr-download .ad{max-width:100%;margin-left:auto;margin-right:auto;text-align:center}
.fr-download .ad>div{max-width:100%;margin-left:auto;margin-right:auto}
.fr-download .ad img{max-width:100%;height:auto}
.fr-download .vr-adv-unit:has(>.ad){margin-top:18px}
@media(max-width:767px){
 .fr-download .download-section{padding:24px 0 30px}
 .fr-download .download-section>.container{padding:0 16px}
 .fr-download .filebox{padding:20px}
 .fr-download .filebox-info{flex-direction:column;align-items:stretch;gap:20px}
 .fr-download .filebox-name-icon{width:100%}
 .fr-download #down_1Btn{width:100%}
 .fr-download .file-card{padding:18px}
 .fr-download .fr-file-information>.col-md-8>.px-3{padding:20px!important}
 .fr-download .custom-nav-pills .nav-link{font-size:12px;padding:9px 12px}
}

.fr-download .filebox .filebox-info{padding:0}
.fr-download .filebox .filebox-info .filebox-download{margin-left:0}
.fr-download #share .btn-copy{position:static;transform:none;border-radius:0 8px 8px 0}
.fr-download .ad>div{min-width:0}

/* Download action: state follows the real countdown and link request. */
.fr-download .filebox .filebox-info .filebox-download{width:310px;max-width:100%;flex-shrink:0}
.fr-download #down_1Btn{width:100%;border-radius:15px;border:1px solid transparent;box-shadow:0 5px 16px #c600001c;transition:box-shadow .2s,transform .2s}
.fr-download #down_1Btn>a{min-height:68px;gap:13px;padding:14px 18px;justify-content:flex-start;font-size:14px;line-height:1.3;opacity:1!important;white-space:normal}
.fr-download #down_1Btn>a:focus-visible{outline-offset:-5px;outline:2px solid currentColor;border-radius:14px}
.fr-download #down_1Btn .fr-download-label{text-align:left;flex:1}
.fr-download .fr-download-symbol{position:relative;display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border:1px solid currentColor;border-radius:50%}
.fr-download .fr-download-symbol i{font-size:14px}
.fr-download .filebox-download[data-download-state="idle"] #down_1Btn:hover,.fr-download .filebox-download[data-download-state="ready"] #down_1Btn:hover{transform:translateY(-2px);box-shadow:0 8px 22px #c6000038}
.fr-download .filebox-download:is([data-download-state="waiting"],[data-download-state="generating"]) #down_1Btn{cursor:wait;box-shadow:none}
.fr-download .filebox-download:is([data-download-state="waiting"],[data-download-state="generating"]) .fr-download-symbol{border-color:#ffffff40}
.fr-download .filebox-download:is([data-download-state="waiting"],[data-download-state="generating"]) .fr-download-symbol::after{content:"";position:absolute;inset:-1px;border:2px solid transparent;border-top-color:currentColor;border-right-color:currentColor;border-radius:50%;animation:fr-download-spin 1.1s linear infinite}
.fr-download .fr-countdown-wrap{display:flex;align-items:baseline;justify-content:center;gap:2px;min-width:45px;padding:8px 9px;border-radius:9px;background:#ffffff26;color:inherit;font-variant-numeric:tabular-nums}
.fr-download #down_1Btn .fr-countdown{margin:0!important;color:inherit;font-size:18px;font-weight:700;line-height:1}
.fr-download .fr-countdown-unit{font-size:10px;font-weight:600}
.fr-download #down_1Btn .progress-layer{display:none}
.fr-download #down_1Btn::after{content:"";position:absolute;left:0;bottom:0;width:var(--fr-download-progress,0%);height:3px;background:currentColor;opacity:.55;transition:width 1s linear;pointer-events:none}
.fr-download .filebox-download[data-download-state="generating"] #down_1Btn::after{width:35%;animation:fr-download-slide 1.4s ease-in-out infinite}
.fr-download .fr-download-note{font-size:11px;line-height:1.55;color:var(--fr-muted);margin:10px 0 0;text-align:center;min-height:34px}
.fr-download .filebox-download[data-download-state="error"] #down_1Btn{background:var(--fr-surface)!important;border-color:var(--fr-error)!important;color:var(--fr-error)!important}
.fr-download .filebox-download[data-download-state="error"] #down_1Btn .alert{margin:0;padding:15px;background:transparent;color:var(--fr-error);border:0;font-size:13px}
html[data-fr-theme="dark"] .fr-download .fr-countdown-wrap{background:#2408081f}
html[data-fr-theme="dark"] .fr-download .filebox-download:is([data-download-state="waiting"],[data-download-state="generating"]) .fr-download-symbol{border-color:#24080840}
@keyframes fr-download-spin{to{transform:rotate(360deg)}}
@keyframes fr-download-slide{from{transform:translateX(-100%)}to{transform:translateX(390%)}}
@media(max-width:767px){.fr-download .filebox .filebox-info .filebox-download{width:100%}.fr-download .fr-download-note{min-height:0}}
@media(prefers-reduced-motion:reduce){.fr-download #down_1Btn,.fr-download #down_1Btn::after,.fr-download .fr-download-symbol::after{animation:none!important;transition:none!important}}

/* Labels belong to enabled, populated ad slots; center the creative itself. */
.fr-download .fr-download-ad{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;max-width:100%;margin:0 auto 24px}
.fr-download .fr-download-ad-label{display:block;font-size:10px;line-height:1.5;color:var(--fr-muted);letter-spacing:.12em;text-transform:uppercase;text-align:center}
.fr-download .fr-download-ad>div{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-width:0;max-width:100%;height:auto;max-height:none;margin:0!important}
.fr-download .fr-download-ad>div>*{max-width:100%;margin-inline:auto}
.fr-download .contain>.fr-download-ad{margin-top:24px}

/* Match the page panels to the 970px desktop banner, with fluid mobile gutters. */
.fr-download .download-section>.container{width:calc(100% - 32px);max-width:970px;padding-inline:0!important;margin-inline:auto}

/* Compact the desktop file page so the configured ad sizes fit above the fold. */
@media(min-width:992px){
 .fr-download .fr-download-details-section{padding-top:8px;padding-bottom:20px}
 .fr-download-details-section .section-content{padding-bottom:0!important}
 .fr-download-details-section .fr-download-ad{gap:3px;margin-bottom:10px}
 .fr-download-details-section .fr-download-ad-label{font-size:9px;line-height:12px}
 .fr-download .fr-download-details-section .contain>.fr-download-ad{margin-top:10px}
 .fr-download-details-section .contain>.row{--bs-gutter-y:0}
 .fr-download .fr-download-details-section .filebox{padding:12px 16px;border-radius:14px}
 .fr-download-details-section .filebox-title{font-size:22px;line-height:1.3}
 .fr-download-details-section .filebox-actions{gap:6px;margin-top:6px}
 .fr-download-details-section .filebox-actions button{width:28px;height:28px}
 .fr-download .fr-download-details-section #down_1Btn>a{min-height:48px;padding:8px 14px;gap:10px;font-size:13px}
 .fr-download-details-section .fr-download-symbol{width:30px;height:30px;flex-basis:30px}
 .fr-download .fr-download-details-section .fr-download-note{min-height:0;margin:4px 0 0;line-height:14px;font-size:10px}
 .fr-download .fr-download-details-section .fr-file-information{--bs-gutter-y:0;--bs-gutter-x:16px;margin-top:10px!important}
 .fr-download .fr-download-details-section .fr-file-information>.col-md-8>.px-3{padding:14px!important}
 .fr-download-details-section .fr-file-information .d-flex.mb-3{margin-bottom:8px!important}
 .fr-download-details-section .fr-file-information .small.mt-3{margin-top:10px!important}
 .fr-download-details-section .fr-file-information h5{font-size:17px;line-height:1.3;margin-bottom:8px!important}
 .fr-download-details-section .fr-file-information p{font-size:13px;line-height:1.55}
 .fr-download .fr-download-details-section .list-group-item{padding:7px 12px;font-size:12px;line-height:18px}
 .fr-download-details-section .fr-file-information .card.mb-3{margin-bottom:8px!important}
 .fr-download-details-section .fr-file-information .fr-download-ad{margin-bottom:0}
 .fr-download-details-section .vr-adv-unit:has(>.ad){margin-top:0}
}

/* Additional visual separation near download controls; not a policy certification. */
@media(min-width:992px){
 .fr-download-details-section .fr-download-ad{gap:6px;margin-bottom:24px}
 .fr-download-details-section .fr-download-ad-label{font-size:10px;line-height:14px}
 .fr-download .fr-download-details-section .contain>.fr-download-ad{margin-top:24px}
}

/* Consistent 5px corners on site-owned download panels and rectangular controls. */
.fr-download :is(.filebox,.file-card,.card,.modal-content,.fr-gate-card,.fr-gate-file,.filebox-actions button,.fr-gate-button,.fr-countdown-wrap,.download-section-box .btn,.custom-nav-pills .nav-link),
.fr-download .fr-file-information>.col-md-8>.px-3,
.fr-download #down_1Btn,
.fr-download #down_1Btn>a{border-radius:5px!important}

/* Match the lower map/content panels to the main download panel. */
.fr-download .fr-download-details-section{--fr-download-panel-padding:26px}
.fr-download .fr-download-details-section :is(.filebox,.file-card,.fr-upload-origin){padding:var(--fr-download-panel-padding);border-radius:5px}
.fr-download .fr-download-details-section .fr-upload-origin{margin:12px 0 0}
.fr-download .fr-download-details-section .fr-upload-origin-map{padding:0;border-radius:5px}
.fr-download .fr-download-details-section .fr-upload-origin-caption{margin-top:8px!important}
.fr-download .fr-download-details-section .fr-upload-origin-note{margin-top:2px!important}
.fr-download .fr-download-details-section .section-body>.file-card{margin-top:12px!important}
@media(min-width:992px){.fr-download .fr-download-details-section{--fr-download-panel-padding:12px 16px}}
@media(max-width:767px){.fr-download .fr-download-details-section{--fr-download-panel-padding:20px}}

/* Center the configured lower ad between the upload map and guide. */
.fr-download .fr-download-details-section .section-body>.fr-download-ad{margin-top:24px;margin-bottom:24px}
