.submission-button__wrapper {
    display: inline-flex;
}

.submission-button__toggle,
.submission-button__link {
    background-color: var(--wp--preset--color--denary);
    color: var(--wp--preset--color--base);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    min-width: 28px;
    height: 28px;
    font-size: 14px;
    text-decoration: none;
}

.add-resource-text .submission-button__toggle,
.add-resource-text .submission-button__link {
    width: auto;
    padding: 10px 15px;
    height: unset;
}

.submission-button__toggle:hover,
.submission-button__link:hover {
    background-color: var(--wp--preset--color--tertiary);
}

.submission-button__toggle svg,
.submission-button__link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.submission-button__toggle span,
.submission-button__link span {
    margin-right: 5px;
    white-space: nowrap;
    font-size: 16px;
    letter-spacing: 0;
}

.submission-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -49%);
    background-color: #fff;
    padding: var(--wp--custom--spacing--gap);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    display: none;
}

.submission-popup.is-active {
    display: block;
}

.submission-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.submission-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: none;
    z-index: 999;
}

.submission-overlay.is-active {
    display: block;
}

.submission-popup-active {
    overflow: hidden;
}

.submission-popup h2, 
.submission-popup h3 {
    margin: 0 0 20px !important;
    font-weight: 700;
    font-size:15px;
    color: var(--wp--preset--color--primary);
}

.submission-button {
    font-size: 0;
}