/* Floating Button */
.pws-float-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    bottom: 20px;
    /* Default Fallback */
    right: 20px;
    /* Default Fallback */
}

.pws-float-btn i {
    font-size: 30px;
}

.pws-btn-text {
    display: none;
    margin-left: 10px;
    font-weight: bold;
    font-size: 14px;
}

.pws-float-btn:hover {
    width: auto;
    padding: 0 20px;
    border-radius: 30px;
}

.pws-float-btn:hover .pws-btn-text {
    display: inline-block;
}

.pws-bottom-right {
    bottom: 20px;
    right: 20px;
}

.pws-bottom-left {
    bottom: 20px;
    left: 20px;
}

/* Pulse Animation */
.pws-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(37, 211, 102, 0.4);
    border-radius: 50%;
    z-index: -1;
    animation: pws-pulse-anim 2s infinite;
}

@keyframes pws-pulse-anim {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Modal */
.pws-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pws-modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.pws-modal-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pws-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.pws-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.pws-modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* Forms */
.pws-form-group {
    margin-bottom: 15px;
}

.pws-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.pws-form-group input[type="text"],
.pws-form-group input[type="tel"],
.pws-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    /* Fix for 100% width blowing out */
}

.pws-form-group input:focus,
.pws-form-group textarea:focus {
    border-color: #25D366;
}

/* Radio Group */
.pws-radio-group {
    display: flex;
    gap: 15px;
}

.pws-radio-group label {
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Buttons */
.pws-btn-primary,
.pws-btn-success,
.pws-btn-secondary {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.pws-btn-primary {
    background: #007bff;
    color: white;
}

.pws-btn-primary:hover {
    background: #0056b3;
}

.pws-btn-success {
    background: #25D366;
    color: white;
}

.pws-btn-success:hover {
    background: #1da851;
}

.pws-btn-secondary {
    background: #6c757d;
    color: white;
}

.pws-btn-secondary:hover {
    background: #565e64;
}

.full-width {
    width: 100%;
}

.pws-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Search Box */
.pws-search-box {
    position: relative;
    margin-bottom: 20px;
}

.pws-input-wrapper {
    position: relative;
}

.pws-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.pws-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pws-dropdown li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.pws-dropdown li:hover {
    background: #f8f9fa;
}

/* Selected Items */
.pws-item-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f1f8ff;
    border-radius: 6px;
    margin-bottom: 5px;
    font-size: 14px;
    align-items: center;
}

.pws-remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
}