/* Styles for Publishing Pages */

/* Shared section styles */
.landing-page-hero-section,
.landing-page-songwriter-section {
    padding: 2.5rem 1.25rem;
    text-align: center;
}

/* Page Header */
.publishing-page-header {
    margin-top: 1.75rem;
    border-bottom: 1px solid var(--gray-200);
    margin: 0 1rem;
}

.publishing-page-header h1 {
    color: var(--gray-900);
}

.publishing-welcome-container {
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 400;
    padding: 0 1rem;
}

/* Hero Section */
.landing-page-hero-section {
    border-bottom: 1px solid var(--blue-200);
}

.landing-page-hero-section h1 {
    margin-bottom: 1.5rem;
    font-size: 2.75rem;
    color: var(--gray-900);
}

.landing-page-hero-section p {
    color: var(--gray-600);
    font-weight: 500;
    line-height: 2;
    font-size: 1rem;
}

.publishing-hero-description {
    margin-bottom: 3rem;
}

/* Button */
.landing-page-button,
.publishing-registration-button {
    display: inline-block;
    padding: 1rem 3.5rem;
    background: var(--blue-500);
    border: none;
    border-radius: 0.375rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: "Lato", sans-serif;
}

.landing-page-button:hover,
.publishing-registration-button:hover {
    background: var(--blue-600);
    color: #ffffff;
    text-decoration: none;
}

.publishing-notify-confirmation {
    color: var(--gray-700);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.publishing-registration-button {
    display: block;
    margin: 0 auto;
}

.publishing-registration-button:visited {
    color: #ffffff;
    text-decoration: none;
}

.publishing-registration-button:disabled {
    background: var(--gray-200);
    color: var(--gray-500);
    cursor: not-allowed;
}

.publishing-pricing-text {
    margin-top: 1.125rem;
}

.landing-page-hero-section .publishing-pricing-text {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--blue-500);
    line-height: 1.25rem;
}

/* Songwriter Card */
.songwriter-card {
    display: inline-block;
    background: var(--blue-100);
    border: 2px solid var(--blue-200);
    border-radius: .5rem;
    padding: 1.5rem 3rem;
}

.songwriter-label {
    font-weight: 600;
    color: var(--gray-500);
}

.songwriter-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.songwriter-divider {
    margin: 0.75rem 0;
    border: 1px solid #A3D8FF;
}

.songwriter-edit-message {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-600);
    font-weight: 400;
}

.songwriter-edit-message a {
    color: var(--blue-500);
    text-decoration: none;
}

.songwriter-edit-message a:hover {
    text-decoration: underline;
}

/* Songwriter Dropdown */
.songwriter-dropdown-container {
    display: inline-block;
    background: var(--blue-100);
    border: 2px solid var(--blue-200);
    border-radius: .5rem;
    padding: 1.5rem 3rem;
    text-align: center;
}

.songwriter-dropdown {
    width: 100%;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem 2rem 0.25rem 0.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    text-align: center;
    text-align-last: center;
}

.songwriter-dropdown.adaptive-width {
    width: auto;
    transition: width 0.15s ease;
}

.songwriter-dropdown.adaptive-width.collapsed-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.songwriter-dropdown:focus {
    outline: 2px solid var(--blue-500);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.songwriter-dropdown:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 0.25rem;
}

.songwriter-dropdown option {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem;
    background-color: white;
    color: var(--gray-900);
}

/* Loading state for songs container */
.songs-table-wrapper.loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.songs-table-wrapper.loading .songs-table-container::after {
    content: '';
    display: block;
    text-align: center;
    padding: 1rem;
    color: var(--gray-600);
}

/* Error state */
.songs-error-state {
    text-align: center;
    padding: 2rem;
    color: var(--gray-600);
}

.songs-error-state p {
    margin-bottom: 1rem;
}

.songs-error-state .retry-button {
    padding: 0.5rem 1.5rem;
    background: var(--blue-500);
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 600;
}

.songs-error-state .retry-button:hover {
    background: var(--blue-600);
}

/* How It Works Section */
.how-it-works-section {
    align-items: center;
    padding: 0 1.25rem 3rem 1.25rem;
    margin-top: 3rem;
    gap: 2rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.how-it-works-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.how-it-works-content-inner {
    width: 100%;
    text-align: center;
}

.how-it-works-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 2.25rem;
    margin-bottom: 1.5rem;
}

.how-it-works-list {
    margin: 0 0 2.5rem 0;
    padding-left: 1.5rem;
    list-style-position: outside;
    text-align: left;
    display: inline-block;
}

.how-it-works-list li {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    font-weight: 400;
}


.how-it-works-content-image {
    margin-top: 1rem;
    width: 100%;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.globe-illustration {
    width: 100%;
    height: auto;
    display: block;
}

/* Desktop layout - side by side */
@media (min-width: 768px) {
    .how-it-works-section {
        padding: 0 0 3rem 0;
        max-width: 690px;
    }

    .how-it-works-content-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .how-it-works-content-inner {
        flex: 1;
        max-width: none;
        text-align: left;
    }

    .how-it-works-list {
        display: block;
    }

    .how-it-works-content-image {
        flex: 0 0 auto;
        max-width: 206.53px;
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Center button after how-it-works section */
.how-it-works-section .landing-page-button {
    display: block;
    margin: 2rem auto 0 auto;
}

.publishing-small-text {
    font-size: 13px;
    line-height: 1.6em;
    color: var(--gray-500);
}

/* Songs Found Text */
.landing-page-songs-found-text {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--gray-900);
}

/* Album Showcase */
.landing-page-album-showcase img {
    max-width: 100%;
}

/* Publishing Page Styles */
.publishing-page-content {
    max-width: 1054px;
    margin: 0 auto;
    padding: 2rem 1rem 0;
}

.publishing-instructions p {
    line-height: 1.5;
    font-weight: 400;
}

/* Songs Section */
.songs-found-section,
.songs-table-wrapper {
    margin-bottom: 2rem;
}

.songs-found-title {
    font-weight: 700;
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: var(--gray-900);
}

.publishing-ban-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid var(--red-50);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.publishing-ban-banner-icon {
    color: var(--red-600);
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.publishing-ban-banner-text strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.publishing-ban-banner-text p {
    margin: 0;
    color: var(--gray-700);
}

/* Active Songs Collapsible Header */
.active-songs-header {
    background: var(--gray-50);
    border-radius: 0.375rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.songs-found-icon {
    color: #f59e0b;
    font-size: 1.25rem;
    margin-right: 0.25rem;
}

.caught-up-icon {
    color: #10b981;
    font-size: 1.25rem;
    margin-right: 0.25rem;
}

.active-songs-icon {
    color: #10b981;
    font-size: 1rem;
    margin-right: 0.25rem;
}

.songs-count {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1rem;
}

.active-songs-chevron {
    color: var(--gray-600);
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.active-songs-header.collapsed .active-songs-chevron {
    transform: rotate(-90deg);
}

.songs-table-collapsible {
    display: block;
}

.songs-table-collapsible.collapsed {
    display: none;
}

.removed-songs-icon {
    color: var(--red-600);
    font-size: 1rem;
    margin-right: 0.25rem;
}

.publishing-deregistered-message {
    margin: 2rem 0;
}

.publishing-deregistered-heading {
    font-weight: 700;
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: var(--gray-900);
}

.publishing-deregistered-copy {
    line-height: 1.5;
    font-weight: 400;
    color: var(--gray-900);
}

.songs-table-header,
.song-row {
    padding: 1rem;
}

.songs-table-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.songs-table-wrapper .songs-table-header {
    background: var(--gray-50);
}

.song-row {
    border-bottom: 1px solid var(--gray-200);
}

.submitted-song-row {
    position: relative;
}

.submitted-song-action-header {
    flex-shrink: 0;
    margin-left: 1rem;
    width: 2rem;
}

.submitted-song-row-actions {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    margin-left: 1rem;
    width: 2rem;
}

.submitted-song-actions {
    flex-shrink: 0;
    position: relative;
    width: 2rem;
}

.submitted-song-menu-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0.375rem;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    height: 2rem;
    justify-content: center;
    padding: 0.25rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 2rem;
}

.submitted-song-menu-button:hover,
.submitted-song-menu-button:focus,
[data-submitted-song-actions][data-open] .submitted-song-menu-button {
    background-color: var(--gray-100);
    color: var(--gray-800);
}

.submitted-song-menu-button:focus {
    outline: 2px solid var(--blue-500);
    outline-offset: 2px;
}

.submitted-song-menu {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    min-width: 11.5rem;
    padding: 0.375rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.25rem);
    z-index: 5;
}

.submitted-song-menu-item {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0.375rem;
    color: var(--gray-800);
    cursor: pointer;
    display: flex;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.5rem;
    line-height: 1.25;
    padding: 0.625rem 0.75rem;
    text-align: left;
    width: 100%;
}

.submitted-song-menu-item i {
    width: 1rem;
}

.submitted-song-menu-item:hover,
.submitted-song-menu-item:focus {
    background-color: var(--gray-100);
}

.submitted-song-menu-item-danger {
    color: var(--red-600);
}

.submitted-song-menu-item-danger:hover,
.submitted-song-menu-item-danger:focus {
    background-color: var(--red-50);
}

.song-row.song-row-hidden {
    display: none;
}

.show-all-songs-link {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background-color: rgb(242, 248, 252);
    border-radius: 0rem 0rem 0.375rem 0.375rem;
    color: var(--blue-500);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.show-all-songs-link:hover {
    text-decoration: none;
}

.show-all-songs-link i {
    margin-left: 0.375rem;
    font-size: 0.875rem;
}

.show-all-songs-link .show-all-songs-expanded {
    display: none;
}

.show-all-songs-link.expanded .show-all-songs-collapsed {
    display: none;
}

.show-all-songs-link.expanded .show-all-songs-expanded {
    display: inline;
}

.songs-table-wrapper.landing-page-songs-table-wrapper .song-row:last-child {
    border-bottom: none;
}

.song-row.gradient-fade {
    position: relative;
}

.song-row.gradient-fade::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, #ffffff 100%);
    pointer-events: none;
}

.songs-table-wrapper.landing-page-songs-table-wrapper {
    border-top: 2px dashed var(--blue-200);
    margin: 0px auto;
    max-width: 690px;
}

.song-checkbox {
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #0073c7;
    margin-right: 1rem;
    align-self: flex-start;
    margin-top: 0.125rem;
}

.song-track-header,
.song-performer-header {
    font-weight: 700;
    color: var(--gray-900);
    text-align: left;
}

.song-track-header {
    flex: 1;
}

.song-performer-header,
.song-performer {
    max-width: 300px;
}

.song-track-name {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    padding-right: 1.5rem;
}

.track-title {
    font-weight: 700;
    color: var(--gray-900);
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
}

.album-name {
    color: var(--gray-500);
    font-weight: 400;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
}

.song-performer {
    font-weight: 600;
    overflow-wrap: break-word;
}

.song-share-header,
.song-share {
    width: 70px;
    text-align: right;
    flex-shrink: 0;
}

.song-share-header {
    font-weight: 700;
    color: var(--gray-900);
}

.song-share {
    font-weight: 600;
}

.submit-button-top {
    margin-bottom: 2rem;
}

.submit-button-bottom {
    margin: 2rem 0;
}

/* Publishing Deregistration Modal */
.publishing-deregistration-modal-content {
    display: block;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 1rem;
}

.publishing-deregistration-song-summary {
    align-items: center;
    background: var(--gray-50);
    border-radius: 0.375rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
}

.publishing-deregistration-song-title {
    color: var(--gray-900);
    font-size: 1rem;
    min-width: 0;
}

.publishing-deregistration-song-title span {
    color: var(--gray-500);
    font-weight: 400;
}

.publishing-deregistration-song-share {
    color: var(--gray-500);
    flex-shrink: 0;
    font-size: 0.9375rem;
    font-weight: 600;
}

.publishing-deregistration-copy {
    color: var(--gray-900);
    display: block;
    line-height: 1.5;
}

.publishing-deregistration-copy-heading {
    display: block;
    margin-bottom: 0.5rem;
}

.publishing-deregister-all-wrapper {
    margin-top: 0.75rem;
    text-align: right;
}

.publishing-deregister-all-link {
    color: var(--blue-500);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
}

.publishing-deregister-all-link:hover,
.publishing-deregister-all-link:focus {
    color: var(--blue-600);
    text-decoration: underline;
}

/* Publishing Modal (SweetAlert) Styles */
.swal2-popup.publishing-modal-popup {
    width: 500px;
    max-width: 95vw;
    border-radius: 10px;
    padding: 0;
}

.swal2-html-container.publishing-modal-html-container {
    margin: 0;
    padding: 0;
}

.swal2-title.publishing-modal-title {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1.375rem;
    line-height: 2rem;
    text-align: center;
    padding: 28px 32px 0;
    margin-top: 0;
    margin-bottom: 0;
}

button.swal2-close.publishing-modal-close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    padding: 0;
    top: 14px;
    right: 14px;
    background: #f9fafb;
    color: #6b7280;
    transition: background 0.2s ease;
}

button.swal2-close.publishing-modal-close-button:hover {
    background: #f3f4f6;
}

button.swal2-close.publishing-modal-close-button svg {
    display: block;
    flex-shrink: 0;
}

.publishing-modal-content-wrapper {
    text-align: left;
}

.publishing-modal-copy {
    padding: 20px 32px 0;
}

.publishing-modal-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 1rem;
}

.publishing-modal-songwriter-copy {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--gray-800);
    font-size: 1rem;
    line-height: 1.5rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.publishing-modal-songwriter-copy strong {
    font-weight: 700;
    color: var(--gray-900);
}

.publishing-modal-price-section {
    text-align: right;
    flex-shrink: 0;
    min-width: 80px;
}

.publishing-modal-price {
    color: var(--gray-900);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5rem;
}

.publishing-modal-tax {
    color: var(--gray-500);
    font-size: 0.75rem;
    line-height: 1rem;
}

.publishing-modal-benefits {
    margin: 6px 0 16px 22px;
    padding: 0;
    color: var(--gray-800);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.publishing-modal-benefits li + li {
    margin-top: 2px;
}

.publishing-modal-description {
    margin: 14px 0 18px;
    color: var(--gray-700);
    font-size: 0.875rem;
    line-height: 1.55;
}

.publishing-modal-description a,
.publishing-modal-checkbox-row a,
.publishing-modal-error-message a {
    color: var(--dk-blue);
    text-decoration: underline;
}

.publishing-modal-description a:hover,
.publishing-modal-checkbox-row a:hover,
.publishing-modal-error-message a:hover {
    color: var(--dk-blue-hover);
}

.publishing-modal-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding-bottom: 16px;
    /* border-bottom: 1px solid var(--gray-200); */
    color: var(--gray-800);
    font-size: 0.875rem;
    line-height: 1.5;
    cursor: pointer;
}

.publishing-modal-checkbox-row input[type="checkbox"] {
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--dk-blue);
    margin: 3px 0 0;
    width: 16px;
    height: 16px;
}

.publishing-modal-checkbox-row span {
    flex: 1;
}

.publishing-modal-footer {
    padding: 0 32px 24px;
}

.publishing-modal-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #fef2f2;
    border: none;
    border-radius: 6px;
    box-shadow: none;
}

.publishing-modal-error[hidden] {
    display: none;
}

.publishing-modal-error-icon {
    margin-top: 2px;
    color: #ef4444;
    font-size: 0.875rem;
    line-height: 1;
}

.publishing-modal-error-icon::before {
    color: #ef4444;
}

.publishing-modal-error-message {
    color: var(--gray-800);
    font-size: 0.84375rem;
    line-height: 1.45;
}

.publishing-modal-error-message strong {
    color: var(--gray-900, #111827);
}

.publishing-modal-payment-button {
    width: 100%;
    min-height: 51px;
    padding: 14px 20px;
    border-radius: 6px;
}

.publishing-modal-payment-button:disabled {
    background: rgba(0, 115, 199, 0.35);
    color: #ffffff;
}

.pro-membership-cards {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
}

.pro-membership-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--blue-200);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.pro-membership-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-align: center;
}

.pro-membership-card p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 2rem 0;
    flex: 1;
    text-align: center;
}

.or-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1px;
    background-color: var(--gray-200);
}

.or-separator span {
    background-color: white;
    padding: 8px;
    font-weight: 400;
}



/* Responsive adjustments */
@media only screen and (max-width: 992px) {

    .publishing-register-container {
        flex-direction: column;
    }

    .publishing-register-information {
        font-size: 16px;
    }

    .publishing-register-information p,
    .publishing-register-information ul,
    .publishing-register-information a {
        margin: 1rem 0;
    }

    .pro-membership-cards {
        flex-direction: column;
        gap: 1.5rem;
    }

    .or-separator {
        width: unset;
        height: 1px;
    }

}

@media (max-width: 768px) {

    /* Songwriter dropdown responsive styles */
    .songwriter-dropdown-container {
        box-sizing: border-box;
        display: block;
        padding: 1.25rem 1.5rem;
        width: calc(100% - 2rem);
        max-width: 400px;
        margin: 0 auto;
    }

    .songwriter-dropdown {
        font-size: 1.1rem;
        padding: 0.5rem 2rem 0.5rem 0.5rem;
    }

    .songwriter-dropdown.adaptive-width {
        max-width: 100%;
    }

    .songs-table-header,
    .song-row {
        flex-wrap: wrap;
        align-items: flex-start !important;
        padding: 0.75rem 1rem;
    }

    .song-track-header {
        text-align: left !important;
        flex: 1;
        min-width: 0;
    }

    .song-performer-header {
        display: none;
        max-width: 0px;
    }

    .song-performer {
        max-width: unset;
    }

    .song-track-name {
        flex: 1;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .song-performer {
        flex-basis: 100%;
        width: 100%;
        margin: 0.5rem 0 0 calc(1rem + 18px);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }


    .songs-table-wrapper .songs-table-header,
    .songs-table-wrapper .song-row {
        position: relative;
    }

    .songs-table-wrapper .song-row {
        flex-direction: column;
    }

    .songs-table-wrapper .song-performer {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .song-share-header {
        position: absolute;
        right: 3rem;
    }

    .submitted-song-action-header {
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

    .songs-table-wrapper .song-share {
        position: absolute;
        top: 0.75rem;
        right: 3rem;
        width: auto;
        margin-top: 0;
    }

    .submitted-song-row-actions {
        opacity: 1;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
        visibility: visible;
        width: auto;
    }

    .submitted-song-actions {
        margin-left: 0;
        opacity: 1;
        position: relative;
        right: auto;
        top: auto;
        visibility: visible;
        width: auto;
    }

    .song-checkbox {
        flex-shrink: 0;
        align-self: flex-start;
        margin-top: 0.125rem;
    }


}

/* Song Rejection Icon and Tooltip */
.song-rejection-icon {
    color: var(--red-600);
    font-size: 1rem;
    cursor: pointer;
    margin-right: 2px;
    font-weight: 400;
}

.song-rejection-tooltip-container {
    position: fixed;
    background: #FFFFFF;
    border-radius: 0.5rem;
    padding: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    pointer-events: auto;
    min-width: 280px;
    max-width: 420px;
    border: 1px solid #E5E7EB;
    z-index: 10000;
}

.song-rejection-tooltip-icon {
    color: var(--red-600);
    font-size: 1rem;
    margin-right: 0.25rem;
}

.song-rejection-tooltip-close {
    position: absolute;
    right: 0.75rem;
    color: #6B7280;
    font-size: 1.25rem;
    font-weight: 400;
    cursor: pointer;
}

.song-rejection-tooltip-close:hover {
    color: #374151;
}

.song-rejection-tooltip-body {
    padding: 1rem;
}

.song-rejection-tooltip-message {
    margin: 0 0 0.5rem 0;
    color: #111827;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 600;
}

.song-rejection-tooltip-link {
    margin: 0;
    padding-left: 1.5rem;
    font-weight: 400;
    font-size: 0.875rem;
}

.song-rejection-tooltip-link a {
    color: var(--blue-500);
    text-decoration: none;
}

.song-rejection-tooltip-link a:hover {
    text-decoration: underline;
}

.song-rejection-tooltip-pointer {
    position: absolute;
    bottom: -9px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #E5E7EB;
    z-index: 0;
}

.song-rejection-tooltip-pointer::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #FFFFFF;
}

@media (max-width: 400px) {
    .song-rejection-tooltip-container {
        max-width: 300px;
    }

    .song-rejection-tooltip-link {
        padding-left: 0;
    }
}

/* Publishing Pre-Payment Modal Responsive Styles */
@media (max-width: 768px) {

    .swal2-popup.publishing-modal-popup {
        width: 95vw;
    }

    .swal2-title.publishing-modal-title {
        font-size: 1.25rem;
        line-height: 1.5rem;
        padding: 24px 16px 0;
    }

    .publishing-modal-content-wrapper {
        padding: 0;
    }

    .publishing-modal-copy {
        padding: 16px 16px 0;
    }

    .publishing-modal-price-row {
        gap: 0.75rem;
        align-items: flex-start;
    }

    .publishing-modal-songwriter-copy {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .publishing-modal-price-section {
        flex-shrink: 0;
        min-width: 70px;
    }

    .publishing-modal-footer {
        padding: 0 16px 20px;
    }
}

/* Extra small screens - add hyphenation for very tight spaces */
@media (max-width: 375px) {
    .publishing-modal-songwriter-copy {
        font-size: 0.9375rem;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }

    .publishing-modal-price {
        font-size: 0.9375rem;
    }

    .publishing-modal-price-section {
        min-width: 65px;
    }
}

@media (max-width: 300px) {
    .song-rejection-tooltip-container {
        min-width: 150px;
        max-width: 200px;
    }
}

/* Songwriter Allocation Modal */
.songwriter-allocation-container {
    text-align: left;
    padding-bottom: 12px;
}

.songwriter-allocation-header-block {
    text-align: center;
    margin-bottom: 1rem;
}

.songwriter-allocation-subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-600);
    line-height: normal;
}

.songwriter-allocation-step-current {
    font-weight: 700;
    color: var(--gray-900);
}

.songwriter-allocation-song-info {
    background: var(--gray-100);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.songwriter-allocation-song-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.songwriter-allocation-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.4;
}

.songwriter-allocation-album-title {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-500);
    line-height: 1.4;
}

.songwriter-allocation-performer {
    font-size: 0.875rem;
    color: black;
    margin-top: 0.125rem;
}

.songwriter-allocation-header {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 0.5rem;
}

.songwriter-allocation-header-name,
.songwriter-allocation-header-share {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-500);
}

.songwriter-allocation-header-share {
    text-align: right;
    min-width: 80px;
}

.songwriter-allocation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.songwriter-allocation-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    flex: 1;
    min-width: 0;
    padding-right: 1rem;
}

.songwriter-allocation-input {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    color: var(--gray-600);
}

.songwriter-allocation-controlled-input {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.songwriter-allocation-input input {
    width: 70px;
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    font-size: 1rem;
    text-align: right;
    color: var(--gray-900);
}

.songwriter-allocation-input-suffix {
    position: absolute;
    right: 0.5rem;
    color: var(--gray-500);
    pointer-events: none;
}

.songwriter-allocation-input input:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.songwriter-allocation-input input.invalid {
    border-color: var(--red-500);
    background-color: var(--red-50);
}

.songwriter-allocation-input input.invalid:focus {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Hide number input spinners */
.songwriter-allocation-input input::-webkit-outer-spin-button,
.songwriter-allocation-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.songwriter-allocation-input input[type=number] {
    -moz-appearance: textfield;
}

.songwriter-allocation-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.375rem;
    padding-top: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.songwriter-allocation-total-icon {
    display: none;
    color: var(--red-500);
}

.songwriter-allocation-total-icon.invalid {
    display: inline-flex;
}

.songwriter-allocation-total.valid {
    color: var(--green-600);
}

/* Skip link in wizard footer */
.songwriter-allocation-skip-link {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    flex-grow: 1;
    text-align: center;
    text-decoration: none;
    color: var(--blue-500);
}

.songwriter-allocation-skip-link:hover {
    text-decoration: none;
}

.publishing-agreement-link {
    text-decoration: none;
}

.publishing-agreement-link:hover {
    text-decoration: none;
}

/*
 * Stripe purchase modal (/publishing/ only — this file is not loaded on ~local/direct flows).
 * Publishing opens the modal after SweetAlert and uses the full Payment Element (Saved / Card / Google Pay),
 * which can read taller than card-only flows; combined with .purchaseProductModalContents padding this
 * can look like excess whitespace under the submit button. These selectors beat .purchaseProductModalContents
 * rules in purchase-product.css (higher specificity) without changing global stripe-checkout.css.
 */
.purchaseProductModalOuter .purchaseProductModalInner .purchaseProductModalContents #payment-form {
    padding-bottom: 0;
    margin-bottom: 0;
}

.purchaseProductModalOuter .purchaseProductModalInner .purchaseProductModalContents #payment-element {
    margin-bottom: 15px;
}

.purchaseProductModalOuter .purchaseProductModalInner .purchaseProductModalContents .payment-submit-button {
    margin-bottom: 0;
}

.faq-heading {
    margin-top: 8rem;
}

.faq-accordion {
    border-radius: 1rem;
}

@media (max-width: 767px) {
    .faq-accordion {
        border-radius: 0;
    }
}
