.pause-button, .resume-button {
    height: 34px;
    padding: 7px !important;
    display: none;
    float: left;
    margin-right: 2px;
    margin-top: 0;
    margin-left: 0;
}

.file-list-container {
    padding-left: 10px;
}

.bar-container {
    list-style: none;
}

.progress-bar-text {
    color: black;
    margin-top: 3px;
    margin-left: 10px;
}

.progress-bar-container {
    margin-left: -20px;
    align-items: center;
    display: flex;
    /*border: 1px solid slategray;*/
    /*border-radius: .25rem;*/
    /*height: 39px;*/
}

.progress-bar {
    text-align: left !important;
    height: 100%;
    background-color: #c5530f38;
    display: inline-block;
}


.product-download-button {
    height: 40px;
    margin-left: 0;
}

.product-verify-button {
    height: 40px;
}

.product-download-start-button {
    height: 40px;
    /*display: none;*/
}

.product-download-dir-select {
    height: 40px;
}

.product-download-stop-button {
    height: 40px;
    display: none;
}

.product-download-resume-button {
    height: 40px;
}

/*.file-list-container {*/
/*    margin: 15px;*/
/*}*/

/*.product-download-container {*/

/*}*/

.align-center {
    align-items: center;
    display: flex;
}

.progress-margin {
    margin: 10px 0;
}

.btn {

}


.product-download-container .dropdown.bootstrap-select .btn.dropdown-toggle {
    display: flex;
    flex-direction: column; /* stack top-to-bottom */
    align-items: flex-start; /* or center, if you want them centered horizontally */
    height: auto; /* remove or override your fixed 50px */
    row-gap: 0.5rem; /* optional gap between items */
    margin-top: -2px;
}

.product-download-container .product-download-button {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.product-download-container {
    display: flex;
    flex-wrap: wrap; /* allow items to wrap onto a new line */
    align-items: center; /* keep things aligned vertically */
    justify-content: space-between;
    width: 100%;
    gap: 0;
}

@media (min-width: 1200px) {
    .product-download-container {
        width: 65%;
    }
}

@media (min-width: 1400px) {
    .product-download-container {
        width: 50%;
    }
}

.product-download-container .bootstrap-select .dropdown-toggle {
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    color: #fff;
    background-color: #c5530f;
    border: none;
    border-radius: 4px 0 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.product-download-container .bootstrap-select .dropdown-toggle .filter-option {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.product-download-container .bootstrap-select .dropdown-menu {
    padding: 0;
    background-color: #c5530f;
    color: #fff;
    border: none;
    border-radius: 4px;
}

.product-download-container .product-download-button {
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-download-container .version-select.form-control + .dropdown-toggle {
    border-radius: 0;
}

.product-download-container .dropdown-item {
    padding: 10px 20px;
}

.product-download-container .filter-option-inner-inner {
    color: #fff;
    text-align: center;
    width: 100%;
}

.product-download-container .no-platform.form-control + .dropdown-toggle {
    border-radius: 4px 0 0 4px;
}

.product-download-container .bootstrap-select .dropdown-toggle .caret {
    display: none !important;
}

.product-download-container .bootstrap-select .dropdown-toggle::after {
    display: none !important;
}

.product-download-container li.disabled a {
    color: white !important;
}

.product-download-container .dropdown-menu li > a {
    color: white !important;
}

/* Status colours, all at least WCAG AA (4.5:1) on white:
   error #b00020 (7.3:1), checking / in progress #8a4b00 (6.8:1), done #1e7b34 (5.3:1).
   The script always shows the same state in text too, so colour is never the only cue. */
.dm-status--error {
    color: #b00020;
}

.dm-status--checking {
    color: #8a4b00;
}

.dm-status--done {
    color: #1e7b34;
}

/* Hidden on screen, still read by screen readers (live region for bar state changes). */
.dm-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* The widget container sits flush left (Bootstrap's .container centres itself). */
.container.dm-widget {
    margin-left: 0;
}

/* Overall progress bar and its text overlay. */
.progress.dm-progress {
    position: relative;
    width: 100%;
    height: 30px;
    border-radius: 3px;
}

.dm-percent-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    color: #000;
    pointer-events: none;
}

/* Start / Resume / Pause / Check files. */
.btn.dm-control-btn {
    margin-right: 5px;
}

/* Download button without platform / version selects in front of it. */
.product-download-button.dm-standalone-button,
.product-download-container .product-download-button.dm-standalone-button {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

/* Widget-level status / error message (showWidgetError in download_manager_dev.js).
   In the flex .product-download-container it takes a full row below the buttons. */
.dm-widget-message {
    flex-basis: 100%;
    width: 100%;
    order: 1;
    margin: 6px 0;
    color: #b00020;
}

/* Neutral variant for guidance that is not an error (e.g. "No folder chosen"). */
.dm-widget-message--info {
    color: #333;
}

/* "[try again](retry)" (a <button>) in a widget message and "[send yourself the link…](pageLink)"
   (an <a>) in the phone warning: they read as links inside the sentence. No .btn classes on
   purpose: the theme's material-dashboard.css makes .btn uppercase and turns .btn-link grey
   without underline on hover/focus. The <a> is display: inline, so its label wraps word by
   word with the text on narrow phones (a <button> always stays inline-block). */
a.dm-message-action,
button.dm-message-action {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    font: inherit;
    letter-spacing: inherit;
    text-transform: none;
    text-align: inherit;
    vertical-align: baseline;
    white-space: normal;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

a.dm-message-action:hover,
a.dm-message-action:focus,
a.dm-message-action:active,
button.dm-message-action:hover,
button.dm-message-action:focus,
button.dm-message-action:active {
    color: inherit;
}

a.dm-message-action:hover,
button.dm-message-action:hover {
    text-decoration: none;
}

a.dm-message-action:focus-visible,
button.dm-message-action:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* "Choose a platform and version first." under the selects (M05). */
.dm-widget-hint {
    flex-basis: 100%;
    width: 100%;
    order: 1;
    margin: 6px 0 0;
    color: #555;
    font-size: 13px;
}

/* Folder-choice instructions next to "Choose download folder" (M01, N24). */
.dm-folder-info {
    flex: 1 1 280px;
    margin-left: 10px;
}

.dm-folder-info-note {
    display: block;
    margin-top: 6px;
}

/* "You're on a phone…" warning for large products, above the folder instructions and at
   the top of the individual downloads dialog. #5c3200 on #fff4e5 is about 10:1. */
.dm-phone-warning {
    display: block;
    margin: 0 0 10px;
    padding: 8px 12px;
    border-left: 3px solid #8a4b00;
    background: #fff4e5;
    color: #5c3200;
}

.dm-phone-warning-feedback {
    display: block;
    font-weight: 600;
}

.dm-phone-warning-feedback:empty {
    display: none;
}

/* Status row above the progress bar (M03, N20, done summary, N23). */
.dm-status {
    margin: 6px 0;
}

.dm-status-note {
    display: block;
    margin-top: 4px;
    color: #555;
}

/* Details list (M09). */
.dm-stats {
    margin: 0;
}

.dm-stats dt,
.dm-stats dd {
    display: inline;
    margin: 0;
}

.dm-stats dt {
    font-weight: bold;
}

.dm-stats dd {
    margin-left: 4px;
}

/* File row states (M15, M16, M18). Same colours as the .dm-status--* classes. */
.dm-row-error {
    color: #b00020;
}

.dm-row-error-mark {
    font-weight: bold;
}

.dm-row-error a {
    color: inherit;
    text-decoration: underline;
}

.dm-row-repairing {
    color: #8a4b00;
}

.dm-check-icon {
    color: #1e7b34;
    font-size: 24px;
    margin-left: 6px;
}

.progress-bar-text .repair-btn {
    padding: 1px 6px;
    margin: 0 2px;
    line-height: 1.4;
}

.direct-links-anchor {
    display: block;
    order: -1;
    flex-basis: 100%;
    margin-top: 6px;
    margin-bottom: -6px;
    color: #c5530f;
    font-weight: 600;
    text-decoration: none;
}

/* Individual downloads dialog (Tier 3 and "Download files individually"; M04, M07, M08). */
.dm-individual-reason {
    padding: 8px 12px;
    border-left: 3px solid #c5530f;
    background: #f7f7f7;
    color: #333;
}

.dm-individual-list {
    margin: 0 0 12px;
    padding-left: 24px;
}

.dm-individual-list li {
    margin: 4px 0;
    word-break: break-word;
}

.dm-individual-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.dm-copy-feedback {
    margin-left: 10px;
    color: #1e7b34;
}

/* "Couldn't copy the links": error colour (more specific than the rule above). */
.dm-copy-feedback.dm-copy-feedback--error {
    color: #b00020;
}

.dm-individual-error {
    color: #b00020;
}

.dm-individual-error .dm-individual-retry {
    margin: 0 2px;
    padding: 1px 8px;
}

.dm-individual-error a {
    color: inherit;
    text-decoration: underline;
}

/* The dialog shown without Bootstrap's modal plugin (positioning is set inline by the script). */
.dm-modal-fallback .modal-dialog {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 16px;
}

.dm-modal-fallback .modal-content {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.dm-modal-fallback .modal-header,
.dm-modal-fallback .modal-body,
.dm-modal-fallback .modal-footer {
    padding: 12px 16px;
}
