.tp-license-page-wrapper {
    position: relative;
}

.tp-generate-license-button {
    border: 1px solid #2563eb;
    background-color: #2563eb;
    padding: 10px 30px;
    border-radius: 4px;
    color: #fff;
}

.tp-license-form-wrapper {
    position: absolute;
    z-index: 10;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    width: 500px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.tp-license-form-wrapper .tp-cross-icon {
    color: #2563eb;
    border: 1px solid #ddd;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 14px;
}

.tp-license-form-wrapper h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

#tp-license-form label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #3a3a3a;
    font-weight: bold;
    display: inline-block;
}

#tp-license-form input[type='url'],
#tp-license-form select {
    width: 100%;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

#tp_generate_license_submit_button {
    padding: 10px 30px;
    background-color: #2563eb;
    color: #fff;
    border-radius: 4px;
    margin-top: 20px;
}

#tp_license_message {
    margin-top: 10px;
}


/* Simple license table */
.tp-lic-simple-wrap {
    margin-top: 16px;
    position: relative;
}

.tp-lic-search-form {
    position: absolute;
    display: flex;
    justify-content: flex-end;
    right: 0;
    top: -60px;
    z-index: 9;
}

.tp-lic-search-form .tp-lic-search {
    display: flex;
    margin-bottom: 10px;
    gap: 5px;
}

.tp-lic-search-form input[type="text"] {
    padding: 6px 8px;
    min-width: 220px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tp-lic-search-form button {
    padding: 6px 10px;
    border: 1px solid #2563eb;
    border-radius: 4px;
    color: #fff;
    background-color: #2563eb;
    cursor: pointer;
}

.tp-lic-table-simple {
    width: 100%;
    border-collapse: collapse;
}

.tp-lic-table-simple th,
.tp-lic-table-simple td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.tp-lic-table-simple thead th {
    background: #f6f6f6;
}

.tp-lic-table-simple tbody tr:nth-child(even) {
    background: #fafafa;
}

.tp-lic-btn {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    text-decoration: none;
    color: #222;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1;
}

.tp-lic-btn:hover {
    background: #eee;
}

.tp-lic-btn.danger {
    border-color: #e0b4b4;
    background: #f9e6e6;
}

.tp-lic-btn.disabled {
    opacity: .5;
    pointer-events: none;
}

.tp-lic-inline-form {
    display: inline;
    margin-left: 6px;
}

.tp-lic-pager {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tp-lic-pager a,
.tp-lic-pager span {
    padding: 6px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #222;
    border-radius: 4px;
    font-size: 13px;
}

.tp-lic-pager .current {
    background: #e6f3ff;
    border-color: #bcdcff;
}

/* keep it minimal */
.tp-lic-table-simple .cell-key {
    white-space: nowrap;
}

.tp-lic-key {
    display: inline-block;
    margin-right: 6px;
    border: 1px solid #ddd;
    background-color: #ddd;
    font-size: 12px;
    border-radius: 4px;
    padding: 2px 6px;
    color: #333;
}

.tp-lic-btn.copy[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

/** ============================================= **/
.tp-delete-license-popup-wrapper {
    display: none;
    position: absolute;
    z-index: 10;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    width: 500px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.tp-delete-license-popup-wrapper h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
}

.tp-delete-license-popup-wrapper .tp-delete {
    margin-top: 20px;
    padding: 10px 30px;
    border-radius: 4px;
    border: none;
    color: #fff;
    cursor: pointer;
    background-color: crimson;
}

.tp-delete-license-popup-wrapper .tp-cancel {
    margin-top: 20px;
    padding: 10px 30px;
    border-radius: 4px;
    border: none;
    color: #fff;
    background-color: #2563eb;
    cursor: pointer;
}

.tp-license-field code {
    border: 1px solid #ddd;
    padding: 10px 30px;
    border-radius: 4px;
    display: inline-block;
    border-radius: 4px;
    padding: 2px 6px;
    color: green;
    font-size: 13px;
}

.tp-license-field button {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    text-decoration: none;
    color: #222;
    border-radius: 4px;
    line-height: 1;
    font-size: 13px;
}

.tp-license-field label {
    display: block !important;
    margin-bottom: 6px;
}