/* PlanetLink Tutor Quick Enroll front-end UI.
 * Scoped to this plugin so it can complement WooCommerce without changing
 * unrelated WooCommerce forms or theme buttons.
 */
.pl-tqe,
.pl-tqe-account-courses {
    --pl-tqe-accent: #9275a9;
    --pl-tqe-accent-hover: #7e6397;
    --pl-tqe-border: #d8d8d8;
    --pl-tqe-text: #606060;
    --pl-tqe-surface: #ffffff;
}

.pl-tqe {
    width: 100%;
    max-width: 620px;
    margin: 20px auto;
}

.pl-tqe,
.pl-tqe * {
    box-sizing: border-box;
}

.pl-tqe h3 {
    margin: 0 0 20px;
}

.pl-tqe .pl-tqe-mode-switch {
    margin: 0 0 20px !important;
    text-align: right;
    line-height: 1.4;
}

.pl-tqe .pl-tqe-mode-switch a.pl-tqe-switch {
    color: var(--pl-tqe-accent) !important;
    font-weight: 600;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.pl-tqe .pl-tqe-mode-switch a.pl-tqe-switch:hover,
.pl-tqe .pl-tqe-mode-switch a.pl-tqe-switch:focus {
    color: var(--pl-tqe-accent-hover) !important;
}

.pl-tqe .pl-tqe-button,
.pl-tqe a.pl-tqe-primary-action,
.pl-tqe-account-courses a.pl-tqe-course-button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px !important;
    border: 2px solid var(--pl-tqe-accent) !important;
    border-radius: 4px !important;
    background: var(--pl-tqe-accent) !important;
    color: #fff !important;
    font: inherit;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-align: center;
    text-decoration: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
    cursor: pointer;
    box-shadow: none !important;
}

.pl-tqe .pl-tqe-button:hover,
.pl-tqe .pl-tqe-button:focus,
.pl-tqe a.pl-tqe-primary-action:hover,
.pl-tqe a.pl-tqe-primary-action:focus,
.pl-tqe-account-courses a.pl-tqe-course-button:hover,
.pl-tqe-account-courses a.pl-tqe-course-button:focus {
    border-color: var(--pl-tqe-accent-hover) !important;
    background: var(--pl-tqe-accent-hover) !important;
    color: #fff !important;
}

/* Some themes add an arrow/chevron to generic .button links on hover.
 * Suppress those generated pseudo-elements inside this plugin so the course
 * action text remains clean and centered.
 */
.pl-tqe .pl-tqe-button::before,
.pl-tqe .pl-tqe-button::after,
.pl-tqe a.pl-tqe-primary-action::before,
.pl-tqe a.pl-tqe-primary-action::after,
.pl-tqe-account-courses a.pl-tqe-course-button::before,
.pl-tqe-account-courses a.pl-tqe-course-button::after {
    content: none !important;
    display: none !important;
}

.pl-tqe .pl-tqe-panel {
    display: none;
}

.pl-tqe .pl-tqe-panel.is-active {
    display: block;
}

.pl-tqe .pl-tqe-form {
    width: 100%;
    margin: 0 !important;
}

.pl-tqe .pl-tqe-form .form-row,
.pl-tqe .pl-tqe-field {
    float: none !important;
    clear: both !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
}

.pl-tqe .pl-tqe-form .form-row label,
.pl-tqe .pl-tqe-field label {
    display: block !important;
    width: 100% !important;
    margin: 0 0 7px !important;
    font-weight: 500;
    line-height: 1.3;
}

.pl-tqe .pl-tqe-form input.input-text,
.pl-tqe .pl-tqe-form input[type="text"],
.pl-tqe .pl-tqe-form input[type="email"],
.pl-tqe .pl-tqe-form input[type="password"] {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 50px;
    margin: 0 !important;
    padding: 10px 14px !important;
    border: 1px solid var(--pl-tqe-border) !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: var(--pl-tqe-text) !important;
    font: inherit;
    line-height: 1.4;
    box-shadow: none !important;
}

.pl-tqe .pl-tqe-form input.input-text:focus,
.pl-tqe .pl-tqe-form input[type="text"]:focus,
.pl-tqe .pl-tqe-form input[type="email"]:focus,
.pl-tqe .pl-tqe-form input[type="password"]:focus {
    border-color: var(--pl-tqe-accent) !important;
    outline: 2px solid rgba(146, 117, 169, .18);
    outline-offset: 1px;
}

.pl-tqe .pl-tqe-consent {
    display: flex !important;
    align-items: flex-start;
    gap: 9px;
    width: 100%;
    margin: 4px 0 18px !important;
}

.pl-tqe .pl-tqe-consent input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 4px 0 0 !important;
}

.pl-tqe .pl-tqe-full,
.pl-tqe a.pl-tqe-primary-action {
    width: 100% !important;
}

.pl-tqe .pl-tqe-enrolled-action {
    margin: 16px 0 0;
}

.pl-tqe-error {
    color: #b32d2e;
}

.pl-tqe-account-courses .pl-tqe-account-course {
    padding: 18px 0;
    border-bottom: 1px solid #e5e5e5;
}

.pl-tqe-account-courses .pl-tqe-account-course:first-child {
    padding-top: 0;
}

.pl-tqe-account-courses .pl-tqe-account-course h3 {
    margin: 0 0 12px;
}

.pl-tqe-account-courses a.pl-tqe-course-button {
    width: 100%;
}

@media (max-width: 560px) {
    .pl-tqe .pl-tqe-mode-switch {
        text-align: left;
    }
}
