/* PvPsunucusu Product Option Explainer - Frontend */
.pvps-oe-enhanced {
    position: relative;
}

.pvps-oe-widget {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 6px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.pvps-oe-widget * {
    box-sizing: border-box;
}

.pvps-oe-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
    white-space: nowrap;
}

.pvps-oe-button,
.pvps-oe-help {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    font-family: inherit;
}

.pvps-oe-button:focus,
.pvps-oe-help:focus {
    outline: 2px solid rgba(37, 99, 235, .25);
    outline-offset: 2px;
}

.pvps-oe-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    background: #fff;
}

.pvps-oe-button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.pvps-oe-help {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.pvps-oe-desc {
    width: 100%;
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: #55657a;
}

.pvps-oe-desc p {
    margin: 0 0 6px;
}

.pvps-oe-desc p:last-child {
    margin-bottom: 0;
}

.pvps-oe-style-blue .pvps-oe-badge { background:#eaf5ff; border-color:#bae6fd; color:#075985; }
.pvps-oe-style-blue .pvps-oe-button { background:#ffffff; border-color:#93c5fd; color:#075985; }
.pvps-oe-style-blue .pvps-oe-help { background:#0f4c81; color:#ffffff; }

.pvps-oe-style-green .pvps-oe-badge { background:#ecfdf5; border-color:#bbf7d0; color:#166534; }
.pvps-oe-style-green .pvps-oe-button { background:#ffffff; border-color:#86efac; color:#166534; }
.pvps-oe-style-green .pvps-oe-help { background:#16a34a; color:#ffffff; }

.pvps-oe-style-purple .pvps-oe-badge { background:#f5f3ff; border-color:#ddd6fe; color:#5b21b6; }
.pvps-oe-style-purple .pvps-oe-button { background:#ffffff; border-color:#c4b5fd; color:#5b21b6; }
.pvps-oe-style-purple .pvps-oe-help { background:#6d28d9; color:#ffffff; }

.pvps-oe-style-amber .pvps-oe-badge { background:#fffbeb; border-color:#fde68a; color:#92400e; }
.pvps-oe-style-amber .pvps-oe-button { background:#ffffff; border-color:#fbbf24; color:#92400e; }
.pvps-oe-style-amber .pvps-oe-help { background:#f59e0b; color:#111827; }

.pvps-oe-style-red .pvps-oe-badge { background:#fef2f2; border-color:#fecaca; color:#991b1b; }
.pvps-oe-style-red .pvps-oe-button { background:#ffffff; border-color:#fca5a5; color:#991b1b; }
.pvps-oe-style-red .pvps-oe-help { background:#dc2626; color:#ffffff; }

.pvps-oe-style-slate .pvps-oe-badge { background:#f8fafc; border-color:#cbd5e1; color:#334155; }
.pvps-oe-style-slate .pvps-oe-button { background:#ffffff; border-color:#cbd5e1; color:#334155; }
.pvps-oe-style-slate .pvps-oe-help { background:#475569; color:#ffffff; }

.pvps-oe-modal-open {
    overflow: hidden;
}

.pvps-oe-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(4px);
}

.pvps-oe-modal.is-active {
    display: flex;
}

.pvps-oe-modal-card {
    width: min(620px, 96vw);
    max-height: 88vh;
    overflow: auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .32);
    border: 1px solid rgba(226, 232, 240, .9);
}

.pvps-oe-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 14px;
    border-bottom: 1px solid #edf2f7;
}

.pvps-oe-modal-title {
    margin: 0;
    color: #172033;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.pvps-oe-modal-close {
    appearance: none;
    -webkit-appearance: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #d9e3ee;
    background: #f8fafc;
    color: #334155;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.pvps-oe-modal-body {
    padding: 18px 22px 22px;
    color: #475569;
    font-size: 14px;
    line-height: 1.72;
}

.pvps-oe-modal-body p {
    margin: 0 0 12px;
}

.pvps-oe-modal-body ul,
.pvps-oe-modal-body ol {
    padding-left: 20px;
    margin: 8px 0 14px;
}

.pvps-oe-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 22px 22px;
}

.pvps-oe-modal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 10px;
    padding: 9px 16px;
    background: #0f4c81;
    color: #fff !important;
    font-weight: 800;
    text-decoration: none !important;
}

@media (max-width: 576px) {
    .pvps-oe-widget {
        gap: 6px;
    }

    .pvps-oe-badge,
    .pvps-oe-button {
        font-size: 11px;
        min-height: 28px;
        padding-left: 9px;
        padding-right: 9px;
    }

    .pvps-oe-modal {
        padding: 14px;
    }
}


/* v1.2 - WHMCS özel sepet kartlarında hizalama ve SVG ikon düzeltmeleri */
.pvps-oe-enhanced {
    position: relative;
}

.pvps-oe-widget {
    width: 100%;
    clear: both;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 12px !important;
    padding: 0 !important;
    line-height: 1.2;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.pvps-oe-widget::after {
    content: "";
    display: block;
    clear: both;
}

.pvps-oe-widget * {
    box-sizing: border-box;
}

.pvps-oe-badge,
.pvps-oe-button,
.pvps-oe-help {
    margin: 0 !important;
    float: none !important;
    vertical-align: middle !important;
}

.pvps-oe-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 7px;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    border-radius: 9px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: .01em;
    white-space: nowrap;
}

.pvps-oe-icon {
    width: 15px;
    height: 15px;
    min-width: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pvps-oe-icon svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: currentColor;
}

.pvps-oe-icon-fallback {
    font-size: 14px;
    font-weight: 800;
}

.pvps-oe-badge-label {
    display: inline-block;
    line-height: 1;
}

.pvps-oe-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 32px;
    min-height: 32px;
    border-radius: 8px;
    padding: 0 13px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: none;
}

.pvps-oe-help {
    display: inline-flex !important;
    width: 32px;
    height: 32px;
    min-width: 32px;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
    box-shadow: 0 7px 16px rgba(15, 76, 129, .18);
}

.pvps-oe-desc {
    flex: 0 0 100%;
    width: 100%;
    margin: -2px 0 2px !important;
    padding: 0;
    font-size: 12px;
    line-height: 1.65;
    color: #53657b;
}

.pvps-oe-enhanced select,
.pvps-oe-enhanced .form-control,
.pvps-oe-enhanced .custom-select {
    position: relative;
    z-index: 1;
}

.pvps-oe-widget + select,
.pvps-oe-widget + .form-control,
.pvps-oe-widget + .custom-select {
    margin-top: 8px !important;
}

@media (max-width: 576px) {
    .pvps-oe-widget {
        gap: 8px;
        margin-top: 9px !important;
        margin-bottom: 10px !important;
    }
    .pvps-oe-badge,
    .pvps-oe-button {
        height: 30px;
        min-height: 30px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 11px;
    }
    .pvps-oe-help {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }
}


/* v1.4 - renkli SVG ikon eşitliği ve yuvarlak detay butonu düzeltmesi */
.pvps-oe-icon svg {
    fill: none;
    overflow: visible;
}
.pvps-oe-help {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    flex: 0 0 32px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    aspect-ratio: 1 / 1;
    box-sizing: border-box !important;
    overflow: hidden;
    text-align: center !important;
}
.pvps-oe-help::before,
.pvps-oe-help::after {
    display: none !important;
    content: none !important;
}
@media (max-width: 576px) {
    .pvps-oe-help {
        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        flex-basis: 30px !important;
    }
}
