/* MAIN PLUGIN FILE */

.blayney-elements-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}
.elements-title {
    display: inline-flex;
    align-items: center;
    gap:10px;
}
.blayney-elements-table thead {
    background-color: #f7f7f7;
}

.blayney-elements-table th, .blayney-elements-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
    font-size:15px;
}
.blayney-elements-table thead th {
    color: #fff !important;
}
.show-key-button {
    flex: 1;
}

.blayney-element-card:hover {
    transition: all 0.3s ease;
    z-index: 99999 !important;
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.3);
}
.blayney-elements-table thead tr:hover {
    background-color: #5731c9;
}
.blayney-elements-table thead tr {
    background-color: #5731c9;
}
.blayney-elements-table tr:hover {
    background-color: #f1f1f1;
}

.blayney-elements-table th {
    font-weight: bold;
    color: #333;
}
.alternate, .blayney-elements-table.striped>tbody>:nth-child(odd):hover, .blayney-elements-table ul.striped>:nth-child(odd):hover{
    background-color: #ececec;
}
.button {
    border-radius: 5px;
    padding: 8px 12px;
    text-decoration: none;
}
a.blayney-button{
    background: transparent !important;
    border-color: #5730c9 !important;
    color: #5730c9 !important;
}
a.blayney-button:hover{
    background: transparent !important;
    border-color: #4111a6 !important;
    color: #4111a6 !important;
    box-shadow: 0px 0px 4px 3px #4111a64d;
}
input.button.blayney-button{
    background: transparent !important;
    border-color: #5730c9 !important;
    color: #5730c9 !important;
}
input.button.blayney-button:hover{
    background: transparent !important;
    border-color: #4111a6 !important;
    color: #4111a6 !important;
    box-shadow: 0px 0px 4px 3px #4111a64d;
}

.elements-title {
    display: inline-flex;
    align-items: center;
    width:100%;
    gap:10px;
}

.notice.notice-success {
    background-color: #e0f7e0;
    border-left-color: #4caf50;
    color: #333;
}
.hide-all-salient{
    margin-bottom: 14px;
}
input.button.button-primary.blayney-button {
    background: #5730c9 !important;
    border-color: #5730c9 !important;
    color: #fff !important;
}
input.button.button-primary.blayney-button:hover {
    background: #4111a6 !important;
    border-color: #4111a6 !important;
    color: #fff !important;
    box-shadow: 0px 0px 4px 3px #4111a64d;
}
.toggle-icon {
    font-size: 18px;
}

.accordion.active .toggle-icon {
    transform: rotate(45deg);
}
input#plugin_renamer_hide_salient[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: green;
}
input#plugin_renamer_hide_salient[type=checkbox]:checked::before {
    width: 25px;
    height: auto;
    fill:#f00 !important;
}
input#plugin_renamer_hide_themes[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: green;
}
input#plugin_renamer_hide_themes[type=checkbox]:checked::before {
    width: 25px;
    height: auto;
    fill:#f00 !important;
}
label.hide-all-text {
    font-family: inherit;
    font-size: 15px;
    vertical-align: baseline;
}


.envato-urls{
    text-decoration: none !important;
}
.blayney-elements-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
img.previewImg {
    width: 100%;
    min-height: 225px;
    max-height: 225px;
    object-fit: cover;
}
.blayney-element-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    padding: 0px;
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: all 0.3s ease;
}
.blayney-no-items {
    text-align: center;
    grid-column: span 4;
}



/* Add some basic styles for the tabs */
.tabs {
    overflow: hidden;
    background-color: #f1f1f1;
}

.tablinks {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
}

.tablinks:hover {
    background-color: #ddd;
}

.tabcontent {
    display: none;
    padding: 20px;
    border: 1px solid #ccc;
}

/* Make the first tab visible by default */
#Plugins {
    display: block;
}

.card-title h3 {
    line-height: 1.3;
    margin: 0px !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.card-title, .blayney-card-details {
    padding: 0px 20px;
    padding-bottom: 20px;
}

.card-title {
    padding-bottom: 12px !important;
    padding-top: 20px !important;
}

.blayney-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.blayney-card-details p {
    margin: 0px !important;
    width: 100%;
}

.card-buttons {
    width: 100%;
    position: relative;
}

a.show-key-button {
    background-color: #1d2327;
    color: white !important;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    display: inline-flex;
    flex: 1;
    justify-content: center;
    margin: 0px !important;
}
button.show-key-button {
    background-color: #9d9d9d;
    color: white !important;
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    display: inline-flex;
    width: 48%;
    justify-content: center;
}

.show-key-button {
    background-color: #9d9d9d; /* Bootstrap primary color */
    color: white !important;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration:none;
}

.show-key-button:hover {
    background-color: #2170b1; /* Darker blue on hover */
}

/* Style for the purchase key container */
.purchase-key-container {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    display: none; /* Hidden by default */
    transition: max-height 0.4s ease, padding 0.4s ease;
    width: 100%;
}

/* Animated show/hide */
.purchase-key-container.show {
    display: block;
    max-height: 200px; /* Limit height to allow animation */
    padding: 10px; /* Padding when shown */
}



@media (max-width: 2200px) {
    .blayney-elements-cards {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1800px) {
    .blayney-elements-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1600px) {
    .blayney-elements-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .blayney-elements-cards {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
}



/* MEDIA 768px */
@media (max-width: 768px) {
    .accordion-grid {
        grid-template-columns: 1fr; /* Stack on small screens */
    }
}

/*** product-addons start ***/
h3.available-product-addons-label {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.product-addons {
    width: 100%;
    margin-bottom: 35px;
}

.addons-list,
.product-addons .addon-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7.5px;
}

.product-addons .addon-options .addon-option {
    margin-bottom: 0px;
    background: #fff;
    padding: 13px 15px;
    border: 1px solid var(--nectar-extra-color-2);
    list-style: none;
    transition: all 0.3s ease;
}

.product-addons .addon-options .addon-option label img.addon-image {
    width: 50px;
    border-radius: 1000px;
}

span.option-price {
    font-weight: 600;
    letter-spacing: 0em !important;
}

.product-addons .addon-options {
    grid-template-columns: 1fr;
    gap: 5px;
}

p.choose-product-addon-label {
    padding-bottom: 10px;
    font-size: 15px;
    letter-spacing: -0.01em;
}

span.option-price *,
span.option-price {
    color: var(--nectar-extra-color-1) !important;
}

.product-addons .addon-options {
    list-style-type: none;
    margin-left: 0;
    padding: 0;
}

.product-addons .addon-options .addon-option label,
span.option-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: -0.015em;
    font-size: 15px;
}

span.option-label {
    flex-direction: column;
    align-items: flex-start;
}

/* Base reset */
.addon-option input[type="checkbox"],
.addon-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    min-width: 20px;
    height: 20px;
    border: 1.5px solid #eaeaea;
    border-radius: 4px;
    /* use 50% for radios */
    display: inline-block;
    position: relative;
    cursor: pointer;
    background-color: #fff;
    transition: all 0.25s ease;
    margin-right: 5px;
    vertical-align: middle;
    margin-left: auto;
}

/* Radio buttons round */
.addon-option input[type="radio"] {
    border-radius: 50%;
}

/* Hover & focus */
.addon-option input[type="checkbox"]:hover,
.addon-option input[type="radio"]:hover {
    border-color: var(--nectar-accent-color);
}

.addon-item:hover .addon-option {
    z-index: 9999;
    box-shadow: 0px 10px 30px #00000014;
    transition: all 0.3s ease;
}

.addon-option input[type="checkbox"]:focus-visible,
.addon-option input[type="radio"]:focus-visible {
    outline: 2px solid #4CAF50;
    /* accessibility focus ring */
    outline-offset: 2px;
}

/* Checked states */
.addon-option input[type="checkbox"]:checked {
    background-color: var(--nectar-extra-color-1);
    border-color: var(--nectar-extra-color-1);
}

.addon-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    top: 0;
    bottom: 2px;
    width: 4px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.addon-option input[type="radio"]:checked {
    border-color: #1d9c5e;
    background-color: #fff;
}

.addon-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    width: 8px;
    height: 8px;
    background: #1d9c5e;
    border-radius: 50%;
}

/* Optional layout tweaks */
.option-label-price-outer {
    display: grid;
    align-items: center;
    gap: 2.5px;
    margin-right: auto;
}

.addon-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}


/* 1400 */

@media only screen and (max-width: 1400px) {
    span.option-label {
        font-size: 14px;
    }

    span.option-price {
        font-size: 13px;
    }
}

/* 690 */

@media only screen and (max-width: 690px) {
    h3.available-product-addons-label {
        font-size: 16px;
    }
}


/* 479 */

@media only screen and (max-width: 479px) {
    span.option-label {
        font-size: 13.5px;
    }

    span.option-price {
        font-size: 12.5px;
    }

    .product-addons .addon-options .addon-option label img.addon-image {
        width: 45px;
    }

    .product-addons .addon-options .addon-option {
        padding: 10px 12px;
    }
}
/*** product-addons end ***/

