/**
* Header CSS for demo user details plugin.
*
* @package wordpress-demo-user-details
*/
body {
    margin: 0;
}
.wk-demo-top-bar-wrapper {
    overflow: visible !important;
    position: relative;
    z-index: 999999;
    position: sticky;
    top: 0;
}

.wk-demo-top-bar {
    font-family: Arial, sans-serif;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f3f3f3;
    padding: 8px 20px;
    transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.4s ease;
    max-height: 80px;
    opacity: 1;
    transform: translateY(0);
    overflow: visible;
    box-sizing: border-box;
}

.wk-demo-top-bar.hide {
    max-height: 0;
    opacity: 0;
    transform: translateY(-20px);
}

.wk-demo-left-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wk-demo-left-content .wk-demo-logo {
    background-image: url('../images/wc-sprite.png');
    background-repeat: no-repeat;
    width: 160px;
    height: 32px;
    display: inline-block;
    background-position: -160px 0;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.wk-demo-author-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.wk-demo-author-badge img {
    height: 28px;
}

.wk-demo-author-badge span {
    color: #000;
}

.wk-demo-right-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wk-demo-right-content .wk-demo-right-one-time-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wk-demo-purchase-note {
    color: #000;
    font-size: 14px;
    font-weight: 600;
}

.wk-demo-btn-demo {
    width: 170px;
    height: 44px;
    border-radius: 7px;
    background: #34a4ff;
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
}

.wk-demo-demo-dropdown {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 99999 !important;
}

.wk-demo-dropdown-toggle {
    width: 170px;
    height: 44px;
    border-radius: 7px;
    background: #34a4ff;
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
}

.wk-demo-dropdown-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 48px;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-width: 170px;
    z-index: 99999 !important;
}

.wk-demo-dropdown-menu a {
    height: 100%;
    padding: 10px 20px;
    color: #333;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
}

.wk-demo-dropdown-menu a:last-child {
    border-bottom: none;
}

.wk-demo-dropdown-menu a:hover {
    background: #f3f3f3;
}

.wk-demo-demo-dropdown.show .wk-demo-dropdown-menu {
    display: flex;
}

.wk-demo-btn-buy {
    width: 116px;
    height: 44px;
    border-radius: 7px;
    background: #27c53c;
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    white-space: nowrap !important;
    padding: 0 8px;
}

.wk-demo-btn-admin {
    width: 116px;
    height: 44px;
    border-radius: 7px;
    background: #34A4FF;
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
}

.wk-demo-close-icon {
    font-size: 20px;
    cursor: pointer;
    margin-left: 8px;
    color: #000;
}

.wk-demo-top-show-wrapper {
    width: 100%;
    display: flex;
    justify-content: end;
}

.wk-demo-float-btn {
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0px;
    right: 10px;
    width: 80px;
    height: 26px;
    border-radius: 0 0 12px 12px;
    background: #fc8019;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.wk-demo-user-details-wrapper {
    border: 1px solid #BEDBFF;
    border-radius: 12px;
    background-color: #F9FBFF;
    box-shadow: 2px 4px 16px 0px #00000014;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: fixed;
    bottom: 8px;
    right: 8px;
    max-width: 336px;
    width: 336px;
    z-index: 999999 !important;
    transition: bottom 0.35s ease, right 0.35s ease;
}

.wk-demo-user-details-wrapper.wk-demo-open {
    gap: 8px;
}

.wk-demo-user-details-wrapper {
    transition: bottom 0.35s ease, right 0.35s ease;
}

.wk-demo-user-details-title-wrapper {
    display: grid;
    grid-template-columns: auto 18px;
    gap: 8px;
    align-items: center;
}

.wk-demo-user-details-title {
    font-size: 16px;
    font-weight: 600;
    color: #4d4d4d;
}

.wk-demo-user-details-title strong {
    color: #1447E6;
    font-weight: 600;
    text-transform: capitalize;
}

.wk-demo-user-details-toggle-wrapper {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

/* Hover effect like YITH */
.wk-demo-user-details-toggle-wrapper:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Button (icon only) */
.wk-demo-user-details-toggle-button {
    width: 18px;
    height: 16px;
    background-image: url('../images/wc-sprite.png');
    background-repeat: no-repeat;
    background-position: -32px -48px;
    border: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
    outline: none;
}


.wk-demo-user-details-desc {
    font-size: 14px;
    font-weight: 400;
}

.wk-demo-user-details-desc span {
    font-weight: 600;
}


.wk-demo-radio-group {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* hide native radio */
.wk-demo-radio input {
    display: none;
}

.wk-demo-radio {
    cursor: pointer;
    text-transform: capitalize;
}

.wk-demo-radio span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #4d4d4d;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.25s ease;
    background-color: transparent;
    border: 1px solid #E5E7EB;
}

.wk-demo-radio input:checked+span {
    border-color: #1447E6;
    color: #1447E6;
}

.wk-demo-radio input:checked+span::before {
    content: '';
    background-image: url('../images/wc-sprite.png');
    background-repeat: no-repeat;
    width: 24px;
    height: 24px;
    display: inline-block;
    background-position: -109px -40px;
    transition: all 0.3s ease;
}

.wk-demo-radio:not(:has(input:checked)) span:hover {
    border-color: #1447E6;
    color: #1447E6;
}

/* Toggle */
.wk-demo-user-details-content {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.wk-demo-user-details-wrapper:not(.wk-demo-open) .wk-demo-user-details-content {
    opacity: 0;
}

/* Rotate toggle button */
.wk-demo-user-details-toggle-button {
    transition: transform 0.3s ease;
}

.wk-demo-user-details-wrapper.wk-demo-open .wk-demo-user-details-toggle-button {
    transform: rotate(180deg);
}

@media (max-width: 1024px) {
    .wk-demo-user-details-wrapper {
        bottom: 64px;
        right: 0px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .wk-demo-float-btn {
        height: 20px;
    }
}

@media (max-width: 968px) {
    .wk-demo-top-bar .wk-demo-author-badge {
        display: none !important;
    }

    .wk-demo-user-details-wrapper {
        bottom: 64px;
        right: 0px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

@media (max-width: 768px) {
    .wk-demo-top-bar .wk-demo-author-badge {
        display: none !important;
    }

    .wk-demo-right-content .wk-demo-right-one-time-wrapper {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .wk-demo-right-content .wk-demo-right-one-time-wrapper {
        display: none !important;
    }

    .wk-demo-left-content .wk-demo-logo {
        width: 48px !important;
    }
}

@media (max-width: 400px) {
    .wk-demo-btn-buy {
        width: 90px !important;
        font-size: 14px !important;
    }

    .wk-demo-dropdown-toggle {
        width: 140px !important;
        font-size: 14px !important;
    }

    .wk-demo-dropdown-menu {
        min-width: 140px !important;
    }

    .wk-demo-user-details-wrapper {
        width: 300px;
    }
}
