/*
 * Styles for WhatsApp Link Generator shortcode form.
 */

/* Container for the entire generator card */
.wlg-wrapper {
    max-width: 520px;
    margin: 1.5rem auto;
    padding: 1.25rem 1.5rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.4;
    color: #333;
}

/* Labels for the form fields */
.wlg-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
}

/* Inputs and textarea styling */
.wlg-form input[type="tel"],
.wlg-form textarea {
    width: 100%;
    padding: 0.75rem 0.8rem;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    border: 1px solid #d0d7de;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    background-color: #f9f9f9;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wlg-form input[type="tel"]:focus,
.wlg-form textarea:focus {
    border-color: #25d366;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
    background-color: #fff;
}

/* Primary submit button */
.wlg-button {
    display: inline-block;
    width: 100%;
    padding: 0.75rem;
    background-color: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.wlg-button:hover,
.wlg-button:focus {
    background-color: #1ebd58;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Container for the generated link */
.wlg-output {
    margin-top: 1.5rem;
    text-align: center;
}

/* Link container with input and copy button */
.wlg-link-container {
    display: flex;
    align-items: stretch;
    max-width: 100%;
    margin: 0 auto 1rem auto;
    border: 1px solid #d0d7de;
    border-radius: 5px;
    overflow: hidden;
    background-color: #f9f9f9;
}

/* Heading above the generated link */
.wlg-heading {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Readonly input that displays the generated link */
.wlg-link-input {
    flex-grow: 1;
    border: none;
    padding: 0.75rem;
    font-size: 0.95rem;
    color: #333;
    background-color: transparent;
    overflow-x: auto;
}
.wlg-link-input:focus {
    outline: none;
}

/* Copy button next to the link */
.wlg-copy-btn {
    background-color: #e1e4e8;
    border: none;
    padding: 0 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: 600;
}
.wlg-copy-btn:hover,
.wlg-copy-btn:focus {
    background-color: #d0d7de;
}

/* Anchor link to open the chat directly */
/* Button-style link to open the generated chat in WhatsApp */
.wlg-open-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.65rem 1.25rem;
    background-color: #25d366;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.wlg-open-link:hover,
.wlg-open-link:focus {
    background-color: #1ebd58;
    color: #fff;
    text-decoration: none;
}

/* Container for the QR code image */
.wlg-qr-container {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* QR code image styling */
.wlg-qr {
    width: 200px;
    height: 200px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    background-color: #fff;
}