.audioseal-product-audio.form-field {
    max-width: 840px;
    padding: 14px 16px 16px !important;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.audioseal-downloadable-files {
    max-width: 680px;
    border: 1px solid #c3c4c7;
    background: #fff;
}

.audioseal-downloadable-files__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #c3c4c7;
    color: #2c3338;
    font-size: 12px;
    font-weight: 600;
}

.audioseal-library-picker__toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #dcdcde;
}

.audioseal-library-picker__toolbar input {
    flex: 1;
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
}

.audioseal-library-picker__count {
    color: #646970;
    font-size: 12px !important;
    white-space: nowrap;
}

.audioseal-downloadable-files__table {
    max-height: 235px;
    overflow-y: auto;
}

.audioseal-downloadable-file {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    padding: 5px 12px;
    border-bottom: 1px solid #f0f0f1;
    cursor: pointer;
}

.audioseal-downloadable-file:last-child {
    border-bottom: 0;
}

.audioseal-downloadable-file:hover,
.audioseal-downloadable-file.is-selected {
    background: #f6f7f7;
}

.audioseal-downloadable-file span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.audioseal-downloadable-file input {
    margin: 0;
}

.audioseal-downloadable-file strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
}

.audioseal-downloadable-file code {
    overflow: hidden;
    color: #646970;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.audioseal-downloadable-files__empty {
    margin: 0;
    padding: 12px;
    color: #646970;
}

/* Keep MDB styling contained to this product field and avoid WooCommerce's global form rules. */
.audioseal-product-audio.card {
    max-width: 840px;
    padding: 0 !important;
    border: 1px solid #dcdcde;
    border-radius: .5rem;
    background: #fff;
}

.audioseal-product-audio .card-body {
    padding: 1rem !important;
}

.audioseal-product-audio .card-title {
    margin: 0 0 .25rem;
    font-size: 1rem !important;
}

.audioseal-product-audio .card-text,
.audioseal-product-audio .description {
    font-size: .8125rem !important;
}

.audioseal-downloadable-files.card {
    max-width: none;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
}

.audioseal-downloadable-files .input-group {
    margin: 0 !important;
}

.audioseal-downloadable-files .form-control,
.audioseal-product-audio__upload .form-control {
    min-height: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    border: 1px solid #bdbdbd;
    box-shadow: none;
}

.audioseal-downloadable-files__table {
    max-height: 250px;
    overflow-y: auto;
}

.audioseal-downloadable-files__header,
.audioseal-downloadable-file {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
    gap: 1rem;
    align-items: center;
    padding: .625rem .75rem;
}

.audioseal-downloadable-files__header {
    border-bottom: 1px solid #dee2e6;
    color: #495057;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.audioseal-downloadable-file {
    min-height: 42px;
    border-bottom: 1px solid #edf0f2;
    cursor: pointer;
}

.audioseal-downloadable-file:hover,
.audioseal-downloadable-file.is-selected {
    background-color: #f1f5ff;
}

.audioseal-downloadable-file .form-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    margin: 0;
}

.audioseal-downloadable-file .form-check-input {
    float: none;
    flex: 0 0 auto;
    margin: 0;
}

.audioseal-downloadable-file strong,
.audioseal-downloadable-file code {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audioseal-downloadable-file strong {
    font-weight: 500;
}

.audioseal-downloadable-file code {
    color: #6c757d;
    font-size: .75rem;
}

.audioseal-product-audio__upload {
    margin: 1rem 0 0 !important;
}

.audioseal-product-audio__upload .btn {
    min-height: 38px;
    white-space: nowrap;
}

.audioseal-product-audio {
    max-width: 840px;
    padding: 14px 16px 16px !important;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.audioseal-product-audio .form-control {
    min-height: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: .375rem .75rem !important;
    border: 1px solid #ced4da !important;
    border-radius: .375rem !important;
    background: #fff;
    box-shadow: none !important;
}

.audioseal-alternate-name {
    margin: 14px 0 14px;
}

.audioseal-alternate-name label {
    display: block;
    position: static !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    margin: 0 0 5px;
    color: #1d2327;
    font-size: 13px;
    font-weight: 600;
}

.audioseal-alternate-name input.regular-text {
    width: min(100%, 420px);
    min-height: 32px;
    margin: 0;
    padding: 4px 8px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 7%);
    box-sizing: border-box;
}

.audioseal-alternate-name input.regular-text:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.audioseal-alternate-name .description {
    margin: 4px 0 0 !important;
    font-size: 12px !important;
}

.audioseal-product-audio .audioseal-field-row,
.audioseal-product-audio .audioseal-downloadable-files > .mb-3 {
    display: block !important;
    clear: both;
    overflow: visible;
}

.audioseal-product-audio .audioseal-field-row input,
.audioseal-product-audio .audioseal-downloadable-files > .mb-3 input {
    display: block;
    float: none;
    clear: both;
}

.audioseal-package-priority {
    margin: 0 0 14px;
}

.audioseal-search-label {
    display: block;
    position: static !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    color: #1d2327;
    font-size: 13px;
    font-weight: 600;
}

.audioseal-downloadable-files .form-text {
    margin-top: 5px;
}

.audioseal-package-priority label {
    display: block;
    position: static !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    margin: 0 0 5px;
    color: #1d2327;
    font-size: 13px;
    font-weight: 600;
}

.audioseal-package-priority input.small-text {
    width: 70px;
    min-height: 32px;
    margin: 0;
}

.audioseal-package-priority .description {
    margin: 4px 0 0 !important;
    font-size: 12px !important;
}

.audioseal-product-audio .form-label {
    display: block;
    margin-bottom: .5rem;
    color: #212529;
    font-size: .875rem;
    font-weight: 400;
}

.audioseal-product-audio .form-text {
    margin-top: .25rem;
    color: #6c757d;
    font-size: .75rem;
}

.audioseal-downloadable-files {
    padding: 14px;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
}

.audioseal-selected-files {
    min-height: 0;
    margin-bottom: 10px;
}

.audioseal-selected-files__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0 6px;
}

.audioseal-selected-file.is-dragging {
    opacity: .55;
}

.audioseal-selected-file__drag-handle {
    flex: 0 0 24px;
    width: 24px;
    min-width: 24px;
    height: 28px;
    padding: 0;
    border: 0;
    color: #646970;
    background: transparent;
    cursor: grab;
    font-size: 16px;
    line-height: 28px;
}

.audioseal-selected-file__drag-handle:active {
    cursor: grabbing;
}

.audioseal-selected-files:empty {
    display: none;
}

.audioseal-selected-file {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    padding: 7px 8px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
}

.audioseal-selected-file__position {
    display: grid;
    flex: 0 0 24px;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #fff;
    background: #2271b1;
    font-size: 12px;
    font-weight: 600;
}

.audioseal-selected-file__details {
    flex: 1 1 520px;
    min-width: 0;
    overflow: hidden;
}

.audioseal-selected-file__details strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 4px;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    font-size: 12px;
}

.audioseal-selected-file__details input {
    width: 100%;
    height: 30px;
    min-width: 0;
    padding: 4px 8px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audioseal-selected-file__actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.audioseal-selected-file__actions .button {
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0 6px;
    line-height: 26px;
}

.audioseal-selected-file__actions .button:disabled {
    opacity: .45;
    cursor: default;
}

.audioseal-remove-button {
    display: grid;
    flex: 0 0 26px;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-left: 4px;
    padding: 0;
    border: 1px solid #b32d2e;
    border-radius: 50%;
    color: #b32d2e;
    background: #fff;
    font-size: 19px;
    line-height: 22px;
    cursor: pointer;
}

.audioseal-remove-button:hover {
    color: #fff;
    background: #b32d2e;
}

.audioseal-available-files {
    max-height: 220px;
    margin: 0 0 12px;
    overflow-y: auto;
}

.audioseal-available-files:empty {
    display: none;
}

.audioseal-available-files .list-group-item {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: .5rem .75rem;
    border-color: #dee2e6;
    font-size: .8125rem;
    text-align: left;
}

.audioseal-available-files .list-group-item > span,
.audioseal-available-files .list-group-item > small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audioseal-available-files .list-group-item > span {
    flex: 1 1 50%;
}

.audioseal-available-files .list-group-item small {
    flex: 1 1 50%;
    overflow: hidden;
    color: #6c757d;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audioseal-available-files .list-group-item.active small {
    color: inherit;
}

.audioseal-selected-files .badge {
    display: inline-flex;
    align-items: center;
    padding: .45em .65em;
    font-size: .75rem;
    font-weight: 500;
}

.audioseal-selected-files .btn-close {
    width: .65em;
    height: .65em;
    padding: .1em;
    opacity: .85;
}

.audioseal-product-audio__upload {
    margin-top: 14px !important;
}

.audioseal-guest-library,
.audioseal-library {
    margin: 24px 0;
}

.audioseal-library [hidden] {
    display: none !important;
}

.audioseal-guest-access {
    max-width: 560px;
    margin: 40px auto;
    padding: 34px;
    border: 1px solid #eadfce;
    border-radius: 16px;
    background: linear-gradient(145deg, #fffdf9, #f8f3eb);
    box-shadow: 0 18px 45px rgb(80 58 35 / 12%);
}

.audioseal-guest-access h2 {
    margin: 0 0 10px;
    color: #3d3024;
    font-size: 1.8rem;
    line-height: 1.15;
}

.audioseal-guest-access > p:not(.audioseal-guest-access__message) {
    margin: 0 0 24px;
    color: #776b5d;
    line-height: 1.6;
}

/* The theme's own p:not(.has-background):last-of-type reset only zeroes
   padding-bottom -- it can't touch the margin-bottom our own rules above
   and the message box below set, which is what actually leaves visible
   space under whichever paragraph ends up last (the intro text, or the
   message box once it's shown). Override both, on whichever one it is. */
.audioseal-guest-access p:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
}

.audioseal-guest-access form {
    display: grid;
    gap: 9px;
}

.audioseal-guest-access label {
    margin-top: 4px;
    color: #594a39;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.audioseal-guest-access input {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #d8cdbd;
    border-radius: 8px;
    color: #3d3024;
    background: #fff;
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.audioseal-guest-access input[type="email"] {
    padding-left: 16px;
}

.audioseal-guest-access input:focus {
    border-color: #b28a2d;
    outline: 0;
    box-shadow: 0 0 0 3px rgb(178 138 45 / 18%);
}

.audioseal-otp-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.audioseal-otp-group input.audioseal-otp-digit {
    box-sizing: border-box;
    width: 44px;
    min-height: 46px;
    padding: 0;
    border: 1px solid #d8cdbd;
    border-radius: 8px;
    color: #3d3024;
    background: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.audioseal-otp-group input.audioseal-otp-digit:focus {
    border-color: #b28a2d;
    outline: 0;
    box-shadow: 0 0 0 3px rgb(178 138 45 / 18%);
}

@media (max-width: 600px) {
    .audioseal-otp-group input.audioseal-otp-digit {
        width: 38px;
        min-height: 42px;
        font-size: 1.1rem;
    }
}

.audioseal-guest-access button,
.audioseal-library__access-header button {
    width: fit-content;
    min-height: 44px;
    margin-top: 10px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #c09a3c, #9b7625);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 14px rgb(142 112 65 / 22%);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.audioseal-guest-access button:hover,
.audioseal-library__access-header button:hover {
    background: linear-gradient(135deg, #b28a2d, #8e7041);
    box-shadow: 0 8px 18px rgb(142 112 65 / 30%);
    transform: translateY(-1px);
}

.audioseal-guest-access button:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
}

.audioseal-guest-access__message,
.audioseal-library__access-header p {
    margin: 0 0 16px;
    padding: 11px 13px;
    border: 1px solid #e5d5b5;
    border-radius: 8px;
    color: #776b5d;
    background: #fffaf0;
    font-size: .9rem;
    line-height: 1.45;
}

.audioseal-guest-access__message[hidden] {
    display: none;
}

.audioseal-library__access-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 8px;
}

.audioseal-library__access-header p {
    margin: 0;
}

.audioseal-library__access-header form {
    margin: 0;
}

@media (max-width: 600px) {
    .audioseal-guest-access {
        margin: 24px 0;
        padding: 24px 20px;
    }

    .audioseal-guest-access h2 {
        font-size: 1.5rem;
    }

    .audioseal-library__track {
        flex-direction: column;
        min-height: 0;
    }

    .audioseal-library__cover {
        flex-basis: auto;
        width: 100%;
        height: 160px;
    }
}

.audioseal-library__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.audioseal-library__header h2 {
    margin: 0;
    color: #3d3024;
    font-size: 1.75rem;
    line-height: 1.15;
}

.audioseal-library__eyebrow,
.audioseal-library__package-name {
    display: block;
    color: #a98227;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.audioseal-library__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}

.audioseal-library__filters button {
    padding: 7px 13px;
    border: 1px solid #d1ae5a;
    border-radius: 999px;
    color: #8c6a1f;
    background: #fff;
    font-size: .8rem;
    cursor: pointer;
}

.audioseal-library__filters button:hover,
.audioseal-library__filters button.is-active {
    color: #fff;
    background: #b28a2d;
}

.audioseal-library__package {
    margin-bottom: 44px;
}

.audioseal-library__package:last-child {
    margin-bottom: 0;
}

.audioseal-library__package + .audioseal-library__package {
    padding-top: 8px;
}

.audioseal-library__package-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.audioseal-library__package-header h3 {
    margin: 0;
    color: #3d3024;
    font-size: 1.2rem;
}

.audioseal-library__download-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid #d1ae5a;
    border-radius: 999px;
    color: #8c6a1f;
    background: #fff;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

.audioseal-library__download-all:hover {
    color: #fff;
    background: #b28a2d;
}

.audioseal-library__download-all.is-loading .audioseal-spinner {
    display: inline-block;
}

.audioseal-library__tracks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.audioseal-library__track {
    display: flex;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid #eadfce;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(80 58 35 / 10%);
}

.audioseal-library__cover {
    display: grid;
    flex: 0 0 200px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #c9ae68, #8e7041);
    font-size: 4rem;
    font-weight: 300;
}

.audioseal-library__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audioseal-library__pending {
    position: relative;
    overflow: hidden;
    margin: 22px 0 0;
    padding: 16px 18px;
    border-radius: 8px;
    color: #5d5143;
    background: #f7f4ef;
    font-size: 1.1rem;
    line-height: 1.45;
}

.audioseal-library__pending::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent, rgb(255 255 255 / 55%), transparent);
    content: "";
    transform: translateX(-100%);
    animation: audioseal-pending-shimmer 1.8s infinite;
}

.audioseal-library__processing-notice {
    margin: 22px 0 0;
    padding: 16px 18px;
    border: 1px solid rgb(142 112 65 / 22%);
    border-radius: 8px;
    color: #5d5143;
    background: #fbf8f2;
    font-size: 1.05rem;
    line-height: 1.45;
}

.audioseal-library__error-notice {
    margin: 22px 0 0;
    padding: 16px 18px;
    border: 1px solid rgb(153 27 27 / 25%);
    border-radius: 8px;
    color: #991b1b;
    background: #fef2f2;
    font-size: 1.05rem;
    line-height: 1.45;
}

@keyframes audioseal-pending-shimmer {
    to { transform: translateX(100%); }
}

.audioseal-library__download-all:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.audioseal-metadata-check {
    max-width: 760px;
    padding: 18px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
}

.audioseal-metadata-check.audioseal-product-audio {
    max-width: 840px;
    padding: 14px 16px 16px !important;
}

.audioseal-metadata-check__upload {
    max-width: 680px;
    margin-top: 12px;
}

.audioseal-metadata-check__upload .form-control {
    min-height: 38px;
    height: 38px;
    margin: 0;
    border: 1px solid #bdbdbd;
    box-shadow: none;
}

.audioseal-metadata-check__upload [data-audioseal-metadata-submit] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.audioseal-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: audioseal-spin .7s linear infinite;
}

.audioseal-metadata-check.is-loading .audioseal-spinner {
    display: inline-block;
}

.audioseal-metadata-result {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    line-height: 1.5;
}

.audioseal-metadata-result:empty {
    display: none;
}

.audioseal-metadata-result.is-success {
    color: #14532d;
    background: #ecfdf3;
}

.audioseal-metadata-result.is-error {
    color: #991b1b;
    background: #fef2f2;
}

@keyframes audioseal-spin {
    to { transform: rotate(360deg); }
}

.audioseal-library__content {
    flex: 1;
    min-width: 0;
    padding: 24px;
}

.audioseal-library__track h4 {
    margin: 5px 0 14px;
    color: #3d3024;
    font-size: 1.45rem;
    line-height: 1.25;
}

.audioseal-library__track audio {
    display: none;
}

.audioseal-player {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 68px;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 5px;
    background: #f7f4ef;
}

.audioseal-player__play {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #b28a2d;
    font-size: 16px;
    cursor: pointer;
}

.audioseal-player__play:hover,
.audioseal-player.is-playing .audioseal-player__play {
    background: #8e7041;
}

.audioseal-player__main {
    min-width: 0;
}

.audioseal-player__session-error {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid rgb(153 27 27 / 25%);
    border-radius: 6px;
    color: #991b1b;
    background: #fef2f2;
    font-size: .9rem;
}

.audioseal-player__session-error button {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 1px solid rgb(153 27 27 / 35%);
    border-radius: 999px;
    color: #991b1b;
    background: #fff;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

.audioseal-player__session-error button:hover {
    color: #fff;
    background: #991b1b;
}

.audioseal-player input[type="range"] {
    width: 100%;
    accent-color: #b28a2d;
}

.audioseal-player__meta {
    display: flex;
    justify-content: space-between;
    color: #776b5d;
    font-size: 11px;
}

.audioseal-player__speed {
    width: 68px;
    min-height: 34px;
    padding: 5px;
    border: 1px solid #d8cdbd;
    border-radius: 3px;
    color: #594a39;
    background: #fff;
    font-size: 11px;
}

.audioseal-player__volume {
    display: none !important;
}

.audioseal-library__actions {
    margin-top: 9px;
}

.audioseal-library__download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9b7625;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
}

.audioseal-library__download:hover {
    text-decoration: underline;
}

.audioseal-library__download.is-loading .audioseal-spinner {
    display: inline-block;
}

.audioseal-product-audio__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 10px;
}

.audioseal-product-audio__title {
    margin: 0;
    display: block;
    font-size: 13px !important;
    font-weight: 600;
    color: #1d2327;
}

.audioseal-product-audio__hint {
    color: #646970;
    font-size: 12px !important;
}

.audioseal-product-audio__hint::before {
    content: " · ";
}

.audioseal-product-audio__upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f1;
}

.audioseal-product-audio__upload input[type="file"] {
    flex: 0 1 360px;
    min-width: 0;
    height: 32px;
    padding: 4px 6px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    background: #f6f7f7;
    box-sizing: border-box;
}

.audioseal-product-audio__upload .button {
    height: 32px;
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
    line-height: 30px;
}

.audioseal-product-audio__upload .description {
    flex: 0 1 auto;
    font-size: 11px !important;
    line-height: 1.3 !important;
}

.audioseal-product-audio__upload-status {
    flex: 1 0 100%;
    margin: 0;
    color: #50575e;
    font-size: 12px;
}

.audioseal-library-picker {
    position: relative;
    padding: 10px 12px 12px;
}

.audioseal-library-picker__search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px !important;
    padding: 2px 8px !important;
    border: 1px solid #8c8f94;
    border-radius: 5px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 5%);
}

.audioseal-library-picker__search:focus-within {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.audioseal-library-picker__search .dashicons {
    color: #646970;
}

.audioseal-library-picker__search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    box-shadow: none;
    height: 28px !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 3px 0 !important;
    font-size: 13px !important;
    line-height: 22px !important;
}

.audioseal-library-picker__count {
    flex: 0 0 auto;
    color: #646970;
    font-size: 11px !important;
    white-space: nowrap;
}

.audioseal-library-picker__dropdown {
    display: grid;
    max-height: 190px;
    margin-top: 5px;
    overflow-y: auto;
    border: 1px solid #c3c4c7;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 3px 8px rgb(0 0 0 / 8%);
}

.audioseal-library-picker__dropdown:empty {
    display: none;
}

.audioseal-library-option {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 8px 10px;
    color: #1d2327;
    font: inherit;
    border: 0;
    border-bottom: 1px solid #f0f0f1;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.audioseal-library-option:last-child {
    border-bottom: 0;
}

.audioseal-library-option:hover,
.audioseal-library-option.is-selected {
    background: #f0f6fc;
}

.audioseal-library-option__check {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
}

.audioseal-library-option.is-selected .audioseal-library-option__check {
    border-color: #2271b1;
    background: #2271b1;
}

.audioseal-library-option small {
    display: block;
    margin-top: 2px;
    color: #646970;
    font-size: 11px;
}

.audioseal-library-option strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
}

.audioseal-library-picker__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.audioseal-library-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 3px 5px 3px 8px;
    border: 1px solid #b8d7ed;
    border-radius: 999px;
    color: #135e96;
    background: #e7f3fa;
    font-size: 11px !important;
}

.audioseal-library-chip button {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #135e96 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 16px !important;
    line-height: 16px !important;
    cursor: pointer;
}

.audioseal-library-chip__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audioseal-library-picker__empty {
    padding: 9px 10px;
    color: #646970;
    font-size: 11px;
}

.audioseal-media-list {
    display: grid;
    gap: 7px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.audioseal-status-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
    max-width: 720px;
    margin: 0;
}

.audioseal-status-picker__option {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 5px 12px;
    align-items: center;
    padding: 13px 15px;
    border: 1px solid #c3c4c7;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.audioseal-status-picker__option:hover,
.audioseal-status-picker__option:has(input:checked) {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.audioseal-status-picker__option input {
    grid-row: span 2;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0 4px 3px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 8%);
    cursor: pointer;
}

.audioseal-status-picker__option input:checked {
    border-color: #2271b1;
    background: #2271b1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 13px 13px;
}

.audioseal-status-picker__label {
    font-weight: 600;
}

.audioseal-status-picker__option code {
    color: #646970;
    font-size: 11px;
    margin-top: 2px;
    margin-left: 5px;
}

.audioseal-audio-row {
    display: grid;
    grid-template-columns: 20px minmax(150px, 1fr) minmax(180px, 1fr) auto auto;
    gap: 6px 16px;
    align-items: center;
    max-width: 760px;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fdfdfd;
    box-sizing: border-box;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.audioseal-audio-row__select {
    margin: 0;
}

.audioseal-audio-row:hover {
    border-color: #a7aaad;
    box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
}

.audioseal-audio-row__name {
    font-weight: 600;
}

.audioseal-audio-row__filename,
.audioseal-audio-row__id {
    color: #646970;
    font-size: 12px;
}

.audioseal-audio-row__id {
    overflow-wrap: anywhere;
}

.audioseal-audio-row .button-link-delete {
    white-space: nowrap;
}

@media screen and (max-width: 782px) {
    .audioseal-product-audio.form-field {
        padding: 15px;
    }

    /* Keep the product control aligned with native WordPress admin form controls. */
    .audioseal-product-audio.form-field {
        max-width: 840px;
        padding: 14px 16px 16px !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .audioseal-product-audio-section[hidden] {
        display: none !important;
    }

    .audioseal-product-audio__title {
        display: block;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 13px !important;
        font-weight: 600;
    }

    .audioseal-product-audio__hint.description {
        margin: 3px 0 10px !important;
        font-size: 12px !important;
    }

    .audioseal-library-picker {
        max-width: 680px;
    }

    .audioseal-library-picker__toolbar {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 6px;
    }

    .audioseal-library-picker__toolbar input {
        flex: 1;
        height: 30px !important;
        min-height: 30px !important;
        margin: 0 !important;
        font-size: 13px !important;
    }

    .audioseal-library-picker__count {
        flex: 0 0 auto;
        color: #646970;
        font-size: 12px !important;
        white-space: nowrap;
    }

    .audioseal-library-picker__select {
        width: 100%;
        max-width: 680px;
        min-height: 112px;
        padding: 6px !important;
        border: 1px solid #c3c4c7;
        border-radius: 0;
        background: #fff;
        font-size: 12px !important;
        line-height: 1.8 !important;
    }

    .audioseal-library-picker__select option {
        padding: 5px 7px;
    }

    .audioseal-product-audio__upload {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #f0f0f1;
    }

    .audioseal-product-audio__upload input[type="file"] {
        flex: 0 1 360px;
        min-width: 0;
        height: 32px;
        padding: 4px 6px;
    }

    .audioseal-product-audio__upload .button {
        height: 32px;
        min-height: 32px;
        padding: 0 12px;
        font-size: 13px;
        line-height: 30px;
    }

    .audioseal-product-audio__upload .description {
        flex: 0 1 auto;
        font-size: 11px !important;
    }

    .audioseal-audio-row {
        grid-template-columns: 20px 1fr auto;
    }

    .audioseal-audio-row__filename,
    .audioseal-audio-row__id {
        grid-column: 2;
    }

    .audioseal-audio-row .button-link-delete {
        grid-column: 3;
        grid-row: 1 / span 4;
    }
}