/* Temel Konfigüratör Kabuğu */
.po-configurator-wrapper {
    margin: 30px 0;
    font-family: inherit; /* WoodMart temasına ayak uydur */
}

/* Adım (Step) Tasarımı */
.po-step {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f1f1;
}

.po-step-header { margin-bottom: 15px; }

/* Adım Başlığı Esnek Düzen (Modal Linki İçin) */
.po-flex-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}
.po-step-titles-wrap { flex-grow: 1; }
.po-step-more-info a {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}
.po-step-more-info a:hover { color: #111; }

.po-step-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    background: #f7f7f7;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.po-step-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: #222;
}
.po-step-title abbr.required {
    color: #e2401c;
    text-decoration: none;
    font-weight: bold;
}

.po-step-desc {
    font-size: 13px;
    color: #666;
    margin: 5px 0 0 0;
}

/* Seçenekler Grid'i */
.po-step-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.po-type-text .po-step-content, 
.po-type-textarea .po-step-content, 
.po-type-dropdown .po-step-content {
    display: block;
}

/* Genel Label/Kart Stilleri */
.po-label-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    background: #fff;
    min-height: 50px;
    position: relative;
    user-select: none;
}
/* Rado ve Checkbox asıllarını kartın tıkla yetisine gizle */
.po-label-item input[type="radio"],
.po-label-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Aktif Kart Durumu */
.po-label-item:hover { border-color: #cbd5e1; }
.po-label-item:has(input:checked) {
    border-color: #334155;
    background: #f8fafc;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.po-lbl-text {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

.po-price-lbl {
    font-size: 11px;
    color: #64748b;
    margin-top: 5px;
}

/* Resimli Swatch (Image Swatch) */
.po-image-swatch .po-lbl-text { margin-top: 8px; }
.po-swatch-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    mix-blend-mode: multiply; /* Koala tarzı yumuşaklık */
    padding: 2px;
}

/* Renkli Swatch (Color Swatch) */
.po-color-swatch { flex-direction: row; gap: 10px; justify-content: flex-start;}
.po-swatch-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    display: inline-block;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.1);
}

/* Standart Inputlar */
.po-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #f9f9f9;
}
.po-input:focus {
    background-color: #fff;
    border-color: #334155;
    box-shadow: 0 0 0 1px #334155;
    outline: none;
}

/* -------------------------------------------
   Özel Bildirim (Toast) ve Hata Durumu (Error)
   ------------------------------------------- */

/* Adım bazlı hata çerçevesi */
.po-step.po-step-error {
    background-color: #fffbfa;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: inset 2px 0 0 #ef4444;
    transition: all 0.3s ease;
}
.po-step.po-step-error .po-step-title {
    color: #ef4444;
}

/* Dikkat Çekme Başlangıç Efekti */
@keyframes poShake {
    0%, 100% {transform: translateX(0);}
    20%, 60% {transform: translateX(-4px);}
    40%, 80% {transform: translateX(4px);}
}
.po-shake {
    animation: poShake 0.4s ease-in-out;
}

/* Toast Bildirim Kutusu */
.po-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.po-toast {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 320px;
    max-width: 450px;
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15); /* Gelişmiş sıçrama efekti */
    border-left: 4px solid #333;
    font-family: inherit;
}

.po-toast.po-toast-show {
    transform: translateX(0);
    opacity: 1;
}

.po-toast.po-toast-error {
    border-left-color: #ef4444;
}

.po-toast.po-toast-success {
    border-left-color: #10b981;
}

.po-toast-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.po-toast-content {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
    flex-grow: 1;
}

/* -------------------------------------------
   Bilgi İkonu Kapsayıcısı (Özel Seçenekler İçin)
   ------------------------------------------- */
.po-opt-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    font-family: inherit;
    margin-left: 8px;
    vertical-align: middle;
    transition: all 0.2s ease;
    cursor: pointer;
}
.po-opt-info-icon:hover {
    background: #475569;
    color: #fff;
    transform: scale(1.05);
}

/* -------------------------------------------
   Daha Fazla Bilgi Modalı (Pop-up)
   ------------------------------------------- */
.po-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999999;
    display: none; /* JS will toggle */
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.po-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}
.po-modal-content-wrap {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: poModalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes poModalFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.po-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}
.po-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.po-modal-header {
    padding: 30px 40px 10px 40px;
}
.po-modal-title {
    margin: 0 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
}
.po-modal-body {
    padding: 20px 40px 40px 40px;
    overflow-y: auto;
    /* Gutenberg Block Resetleri */
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
}
.po-modal-body h1, .po-modal-body h2, .po-modal-body h3 {
    margin-top: 0;
    color: #0f172a;
    font-weight: 600;
}
.po-modal-body p { margin-bottom: 20px; }
.po-modal-body img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 8px; 
}
.po-modal-body iframe, .po-modal-body .wp-block-embed {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}
