.bpep-enquiry-button {
    margin: 1rem 0;
}

.bpep-form-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.bpep-enquiry-form {
    display: grid;
    gap: 16px;
    padding: 28px;
    border: 1px solid #eceff3;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.bpep-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.bpep-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
    font-size: 14px;
    line-height: 1.4;
}

.bpep-field input,
.bpep-field select,
.bpep-field textarea {
    width: 100%;
    border: 1px solid #d8dee8;
    border-radius: 14px;
    background: #ffffff;
    color: #111827;
    padding: 13px 15px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.bpep-field input::placeholder,
.bpep-field textarea::placeholder {
    color: #9ca3af;
}

.bpep-field input:hover,
.bpep-field select:hover,
.bpep-field textarea:hover {
    border-color: #cbd5e1;
}

.bpep-field input:focus,
.bpep-field select:focus,
.bpep-field textarea:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.14);
}

.bpep-field textarea {
    min-height: 120px;
    resize: vertical;
}

.bpep-field .required {
    color: #b91c1c;
}

.bpep-quote-review-list {
    padding: 14px;
    border: 1px solid #eceff3;
    border-radius: 18px;
    background: #f9fafb;
}

.bpep-form-wrapper .bpep-quote-review-list .bpep-quote-list-items {
    gap: 10px;
}

.bpep-form-wrapper .bpep-quote-review-list .bpep-quote-list-item {
    padding: 12px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: none;
    gap: 10px;
}

.bpep-form-wrapper .bpep-quote-review-list .bpep-quote-item-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
}

.bpep-form-wrapper .bpep-quote-review-list .bpep-quote-item-copy strong {
    font-size: 14px;
}

.bpep-form-wrapper .bpep-quote-review-list .bpep-quote-item-copy span {
    font-size: 13px;
}

#bpep-enquiry-submit {
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid #111827;
    border-radius: 14px;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#bpep-enquiry-submit:hover,
#bpep-enquiry-submit:focus {
    background: #1f2937;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(17, 24, 39, 0.2);
}

.bpep-message {
    padding: 12px 14px;
    border-radius: 6px;
}

.bpep-success {
    background: #e7f7ed;
    color: #17663b;
}

.bpep-error {
    background: #fbeaea;
    color: #912020;
}

.bpep-variant-enquiry-wrapper {
    margin-top: 1rem;
}

.bpep-variant-enquiry-btn-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.bpep-enquiry-btn,
.bpep-variant-enquiry-btn,
.bpep-quote-submit-link {
    cursor: pointer;
}

.bpep-enquiry-btn.is-loading,
.bpep-variant-enquiry-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.bpep-quote-floating-trigger {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99997;
}

.bpep-quote-floating-trigger.bpep-trigger-mode-header,
.bpep-quote-portal .bpep-quote-floating-trigger.bpep-trigger-mode-header {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bpep-quote-floating-trigger.bpep-trigger-mode-header.bpep-trigger-mounted {
    position: static;
    right: auto;
    bottom: auto;
    z-index: auto;
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

.bpep-quote-floating-trigger.bpep-trigger-mode-header.bpep-trigger-mounted .bpep-quote-trigger {
    position: relative;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
}

.bpep-quote-floating-trigger.bpep-trigger-mode-header.bpep-trigger-mounted .bpep-quote-trigger:hover,
.bpep-quote-floating-trigger.bpep-trigger-mode-header.bpep-trigger-mounted .bpep-quote-trigger:focus {
    background: transparent;
    border-color: transparent;
    color: inherit;
    transform: none;
    box-shadow: none;
}

.bpep-quote-floating-trigger.bpep-trigger-mode-header.bpep-trigger-mounted .bpep-quote-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bpep-quote-floating-trigger.bpep-trigger-mode-header.bpep-trigger-mounted .bpep-quote-trigger-label {
    display: none;
}

.bpep-quote-floating-trigger.bpep-trigger-mode-header.bpep-trigger-mounted .bpep-quote-badge {
    position: absolute;
    top: -8px;
    right: -5px;
}

.bpep-quote-floating-trigger.bpep-trigger-mode-header.bpep-trigger-fallback {
    position: fixed;
}

.bpep-quote-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bpep-quote-trigger:hover,
.bpep-quote-trigger:focus {
    background: #f3f4f6;
    border-color: #cbd5e1;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.bpep-quote-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bpep-quote-trigger-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.bpep-quote-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 15px;
    padding: 3px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.bpep-quote-list-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    background: rgba(15, 23, 42, 0.45);
    z-index: 99998;
}

body.admin-bar .bpep-quote-list-overlay {
    top: 32px;
    height: calc(100vh - 32px);
}

.bpep-quote-drawer {
    display: flex;
    flex-direction: column;
    width: min(420px, 100%);
    height: 100%;
    background: #ffffff;
    box-shadow: -18px 0 48px rgba(15, 23, 42, 0.18);
}

.bpep-quote-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid #eceff3;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.bpep-quote-drawer-title {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.1;
    color: #111827;
}

.bpep-quote-drawer-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    max-width: 260px;
}

.bpep-quote-close {
    width: 38px;
    height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #111827;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bpep-quote-close:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: rotate(90deg);
}

.bpep-quote-drawer-body {
    padding: 18px 22px 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bpep-quote-drawer-body-inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 100%;
}

.bpep-quote-list-meta {
    margin-bottom: 14px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.bpep-quote-list-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.bpep-quote-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border: 1px solid #eceff3;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.bpep-quote-item-image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bpep-quote-item-thumbnail-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border: none;
    outline: none;
}

.bpep-quote-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bpep-quote-item-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.bpep-quote-item-copy strong {
    color: #111827;
    font-size: 14px;
    line-height: 1.4;
}

.bpep-quote-item-copy span {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.bpep-remove-quote-item {
    width: 38px;
    height: 38px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bpep-remove-quote-item:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: rotate(90deg);
}

.bpep-quote-list-actions {
    margin-top: auto;
    padding-top: 18px;
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 22px);
}

.bpep-quote-submit-link {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.bpep-quote-submit-link:hover,
.bpep-quote-submit-link:focus {
    background: #111827;
    border-color: #cbd5e1;
    color: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.bpep-quote-empty-state {
    padding: 28px 0;
    color: #6b7280;
    text-align: center;
    border: 1px dashed #d1d5db;
    border-radius: 16px;
    background: #f9fafb;
}

.bpep-drawer-hidden {
    display: none;
}

.bpep-drawer-slide-in {
    animation: bpepDrawerFadeIn 0.25s ease-out forwards;
}

.bpep-drawer-slide-in .bpep-quote-drawer {
    animation: bpepDrawerEnter 0.25s ease-out forwards;
}

.bpep-drawer-slide-out {
    animation: bpepDrawerFadeOut 0.25s ease-in forwards;
}

.bpep-drawer-slide-out .bpep-quote-drawer {
    animation: bpepDrawerLeave 0.25s ease-in forwards;
}

.button.button.alt.bpep-variant-enquiry-btn {
    flex: none;
}

@keyframes bpepDrawerFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bpepDrawerFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes bpepDrawerEnter {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes bpepDrawerLeave {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

@media (max-width: 767px) {
    body.admin-bar .bpep-quote-list-overlay {
        top: 46px;
        height: calc(100vh - 46px);
    }

    .bpep-enquiry-form {
        padding: 20px;
        border-radius: 18px;
    }

    .bpep-grid {
        grid-template-columns: 1fr;
    }

    .bpep-quote-floating-trigger {
        right: 16px;
        bottom: 16px;
    }

    .bpep-quote-trigger-label {
        display: none;
    }

    .bpep-quote-drawer {
        width: 100%;
    }
}


@media (min-width: 767px) {
    /* Devon themes custom css */
    .main-nav ul#menu-right-menu li.bpep-quote-floating-trigger.bpep-trigger-mode-header.bpep-trigger-mounted {
        margin: 0 0 0 10px !important;
    }

    .bpep-form-wrapper {
        min-width: 760px;
    }
}
