.form-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
}
@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .form-grid .full-width {
        grid-column: span 2 !important;
    }
}
div[h3] {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
}
label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}
.bubble-group label {
    font-size: 0.7rem;
}
.bubble-group label[for="bubbleTime"] {
    white-space: nowrap;
}
input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.5);
}
.bubble-group input[type="number"] {
    width: 100px;
    padding: 0.5rem;
    font-size: 0.8rem;
}
input[type="color"] {
    width: 40px;
    height: 30px;
    padding: 0.125rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: transform 0.2s;
}
input[type="color"]:hover {
    transform: scale(1.1);
}
input[type="checkbox"] {
    width: 14px;
    height: 14px;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    appearance: none;
    cursor: pointer;
    position: relative;
}
input[type="checkbox"]:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}
input[type="checkbox"]:checked::after {
    content: '✔';
    color: white;
    font-size: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
textarea {
    height: 16rem;
    resize: none;
    background-color: #f9fafb;
}
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.radio-group label {
    font-weight: normal;
    margin: 0;
    display: flex;
    align-items: center;
}
.radio-group input {
    margin-right: 0.5rem;
    width: auto;
}
.bubble-group {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 0.75rem;
    background: #f9fafb;
    padding: 0.5rem;
    border-radius: 0.5rem;
}
.bubble-group .label-container {
    display: flex;
    flex-direction: column;
}
.bubble-group .checkbox-container {
    min-width: 40px;
}
@media (max-width: 768px) {
    .bubble-group {
        gap: 1rem;
        padding: 0.25rem;
    }
}
@media (max-width: 360px) {
    .bubble-group {
        flex-direction: column;
        gap: 0.2rem;
    }
}
button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}
button[type="submit"] {
    width: 100%;
    background-color: #2563eb;
    color: white;
    margin-top: 1.5rem;
}
button[type="submit"]:hover {
    background-color: #1d4ed8;
}
#copy-btn {
    background-color: #16a34a;
    color: white;
    display: none;
}
#copy-btn:hover {
    background-color: #15803d;
}
#preview-container {
    position: fixed !important;
    bottom: 0 !important;
    right: 0 !important;
    border: none !important;
    z-index: 9998 !important;
}
#preview-container a {
    width: 58px;
    height: 58px;
}
#preview-contact-bubble {
    background-color: #2563eb !important;
    color: white !important;
    padding: 0.75rem !important;
    border-radius: 0.5rem !important;
    min-width: 180px !important;
    max-width: 250px !important;
    position: absolute !important;
    right: 0 !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    font-size: 0.875rem !important;
    z-index: 10000 !important;
    animation: viurl-slideIn 0.5s !important;
    display: none !important;
}
#preview-contact-bubble span {
    position: absolute;
    top: 0.25rem;
    right: 0.5rem;
    cursor: pointer;
    font-weight: bold;
}
#toast {
    background-color: #16a34a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    margin-bottom: 10px;
    display: none;
}
#toast.show {
    opacity: 1;
    display: block;
}
@keyframes viurl-slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes viurl-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
@keyframes viurl-gentleShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}
.viurl-effect-gentle-shake {
    animation: viurl-gentleShake 0.4s ease infinite !important;
}
.viurl-effect-hover-shake:hover { animation: viurl-shake 0.5s !important; }
.viurl-effect-hover-scale:hover { transform: scale(1.2) !important; transition: transform 0.3s !important; }
.viurl-effect-hover-rotate:hover { transform: rotate(15deg) !important; transition: transform 0.3s !important; }
.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
#contact-icons {
    display: flex;
}
#contact-icons img {
    margin: 5px;
}
.contact-button img {
    margin: 5px;
}
.custom-button-container {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}
.custom-remove {
    width: 20px;
    height: 20px;
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: transform 0.2s;
}
.custom-remove:hover {
    transform: scale(1.1);
}
.error-message {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}
.error-message.show {
    display: block;
}