@media (min-width: 830px) {
    body.account .main {
        padding-left: 0;
        padding-right: 0;
    }
}

.fwpl-account-info {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #f5f5f5;
    border-radius: 4px;
}

.fwpl-account-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.fwpl-invoice-details {
    white-space: pre-wrap;
}

.fwpl-account-detail label {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #666;
    min-width: 120px;
}

.fwpl-editable {
    cursor: pointer;
    padding-bottom: 1px;
}

.fwpl-editable::after {
    content: '';
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-left: 6px;
    vertical-align: middle;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.85 2.85 0 114 4L7.5 20.5 2 22l1.5-5.5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.85 2.85 0 114 4L7.5 20.5 2 22l1.5-5.5Z'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.fwpl-editable:has(.fwpl-btn-cancel)::after {
    content: none;
}

.fwpl-editable:hover {
    color: #2271b1;
}

.fwpl-editable:hover::after {
    opacity: 1;
}

.fwpl-inline-input {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 6px;
    margin-bottom: 6px;
}

.fwpl-inline-textarea {
    display: block;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 24rem;
    margin-bottom: 6px;
    font-family: inherit;
    resize: vertical;
}

.fwpl-btn-cancel {
    background-color: #ddd;
    color: #333;
    margin-left: 4px;
}

.fwpl-btn-cancel:hover {
    background-color: #ccc;
    color: #333;
}

.fwpl-account-status {
    margin-top: 6px;
    font-size: 13px;
}

.fwpl-account-status:empty {
    display: none;
}

.fwpl-card-info {
    color: #666;
}

.fwpl-account h2 {
    margin-top: 32px;
    margin-bottom: 12px;
}

.fwpl-account h2:first-child {
    margin-top: 0;
}

.fwpl-account-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 4px;
}

.fwpl-account-switcher select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.fwpl-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.fwpl-table th,
.fwpl-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.fwpl-account .fwpl-table th:first-child,
.fwpl-account .fwpl-table td:first-child {
    width: 1%;
    white-space: nowrap;
}

.fwpl-table th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #666;
}

.fwpl-table.downloads td:last-child,
.fwpl-table.downloads th:last-child {
    max-width: 320px;
}

/* fix border and padding for last row of licenses */
.fwpl-table tr:not([data-license]):has(~ tr[data-license]) td {
    padding-bottom: 15px;
    border-bottom: none;
}

.fwpl-table code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

.fwpl-license-key {
    display: inline-block;
    max-width: 5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.fwpl-copy-key {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 2px;
    vertical-align: middle;
    margin-left: 4px;
}

.fwpl-copy-key:hover {
    color: #2271b1;
}

.fwpl-quota-toggle,
.fwpl-detected-toggle {
    cursor: pointer;
    color: #2271b1;
    border-bottom: 1px dashed #2271b1;
    padding-bottom: 1px;
}

.fwpl-quota-toggle::after,
.fwpl-detected-toggle::after {
    content: '';
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-left: 6px;
    vertical-align: middle;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.85 2.85 0 114 4L7.5 20.5 2 22l1.5-5.5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.85 2.85 0 114 4L7.5 20.5 2 22l1.5-5.5Z'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.fwpl-quota-toggle:hover,
.fwpl-detected-toggle:hover {
    color: #135e96;
}

.fwpl-quota-toggle:hover::after,
.fwpl-detected-toggle:hover::after {
    opacity: 1;
}

.fwpl-whitelist-entry,
.fwpl-detected-site {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.fwpl-whitelist-entry:last-child,
.fwpl-detected-site:last-child {
    border-bottom: none;
}

.fwpl-detected-sites {
    max-height: 12rem;
    overflow-y: auto;
}

.fwpl-detected-empty {
    margin: 4px 0;
    color: #666;
    font-size: 13px;
}

.fwpl-detected-toggle.fwpl-detected-loading {
    opacity: 0.5;
    pointer-events: none;
}

.fwpl-whitelist-status {
    margin-top: 6px;
    font-size: 13px;
}

.fwpl-status-active { color: #00a32a; font-weight: 600; }
.fwpl-status-expired { color: #d63638; font-weight: 600; }
.fwpl-status-cancelled { color: #996800; font-weight: 600; }
.fwpl-status-failing { color: #d63638; font-weight: 600; }

/* reset button/select browser styles */
button.fwpl-btn,
select.fwpl-btn,
.fwpl-login-submit {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
    font-family: inherit;
}

.fwpl-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4em !important;
}

td .fwpl-btn {
    float: left;
    margin: 2px 4px 2px 0;
}

a.fwpl-btn,
a.fwpl-btn:visited,
a.fwpl-btn:hover,
a.fwpl-btn:active {
    color: #fff;
    text-decoration: none;
}

.fwpl-btn:hover {
    background-color: #135e96;
    color: #fff;
}

.fwpl-btn-sm {
    padding: 4px 10px;
    font-size: 13px;
}

.fwpl-btn-danger {
    background-color: #d63638;
}

.fwpl-btn-danger:hover {
    background-color: #a02022;
}

.fwpl-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

select.fwpl-btn {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

select.fwpl-btn {
    height: calc(1.4em + 16px);
}

select.fwpl-btn-sm {
    height: calc(1.4em + 8px);
}

select.fwpl-btn option {
    font-size: 14px;
}

select.fwpl-btn-sm option {
    font-size: 13px;
}

.fwpl-managers {
    margin-top: 8px;
}

.fwpl-manager-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.fwpl-add-manager {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.fwpl-add-manager input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    flex: 1;
    max-width: 300px;
    line-height: 1;
}

.fwpl-manager-status {
    margin-top: 6px;
    font-size: 13px;
}

.fwpl-error { color: #d63638; }
.fwpl-success { color: #42b845 !important }

/* Login form */

.fwpl-login {
    min-height: 260px;
}

.fwpl-login-form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 12px;
}

.fwpl-login-form input[type="email"] {
    padding: 10px 14px;
    border: 1px solid #dad7e4;
    border-radius: 4px;
    font-family: inherit;
    font-size: 17px;
    line-height: 1;
    width: 400px;
    min-width: 0;
    flex-shrink: 1;
}

.fwpl-login-submit {
    padding: 10px 18px;
    background-color: #4c22ad;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 17px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.fwpl-login-submit:hover {
    background-color: #42b845;
}

.fwpl-login-submit:disabled {
    opacity: 0.6;
}

.fwpl-login-status {
    flex-basis: 100%;
    font-size: 16px;
    color: #e5424c;
    margin-top: 6px;
}