/* ===== وضعیت هدیه ===== */
.pilasa-gift-status-full {
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    color: #166534;
    font-size: 14px;
    direction: rtl;
}

.pilasa-gift-status-full {
    width: 100% !important;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: flex-start;
}

.pilasa-gift-status-icon {
    font-size: 20px;
}

.pilasa-gift-status-title {
    font-weight: 600;
}

.pilasa-gift-status-message {
    font-size: 12px;
    color: #065f46;
    margin-top: 2px;
}

.pilasa-gift-status-no-card {
    font-size: 12px;
    color: #065f46;
    margin-top: 2px;
}

.pilasa-gift-status-badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.pilasa-gift-status-text {
    font-weight: 500;
    color: #166534;
}

/* ===== فرم اصلی ===== */
.pl-gift {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
}

.pl-gift__head {
    padding: 16px 20px;
    background: #fafafa;
    border-bottom: 1px solid #e5e5e5;
}

.pl-gift__title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pl-gift__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #2c3e50;
}

.pl-gift__icon svg {
    width: 24px;
    height: 24px;
}

.pl-gift__title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.pl-gift__panel {
    padding: 20px;
}

.pl-gift__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pl-gift__check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
    padding: 4px 0;
}

.pl-gift__checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.pl-gift__fake-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.pl-gift__checkbox:checked + .pl-gift__fake-check {
    background: #2c3e50;
    border-color: #2c3e50;
    position: relative;
}

.pl-gift__checkbox:checked + .pl-gift__fake-check::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pl-gift__label {
    font-size: 15px;
    color: #1f2937;
    line-height: 1.5;
}

.pl-gift__hint {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
    font-weight: 400;
}

.pl-gift__message-area.is-hidden {
    display: none;
}

.pl-gift__divider {
    height: 1px;
    background: #e5e5e5;
    margin: 8px 0 16px;
}

.pl-gift__editor {
    margin: 8px 0 12px 32px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.pl-gift__editor.is-hidden {
    display: none;
}

.pl-gift__textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.pl-gift__textarea:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.pl-gift__editor-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.pl-gift__counter {
    font-size: 13px;
    color: #6b7280;
}

.pl-gift__remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.pl-gift__remove:hover {
    background: #fef2f2;
}

.pl-gift__confirm {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: 8px;
    align-self: flex-start;
}

.pl-gift__confirm:hover {
    background: #1f2937;
}

.pl-gift__confirm:active {
    transform: scale(0.98);
}

.pl-gift__status {
    font-size: 14px;
    font-weight: 400;
}

.pl-gift__status-indicator {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f0fdf4;
    border-radius: 6px;
    color: #166534;
    font-size: 13px;
    border: 1px solid #86efac;
}

.pl-gift__status-message {
    font-size: 12px;
    color: #065f46;
}

/* ===== صفحه تشکر ===== */
.pilasa-gift-order-summary {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #e6e6e6;
    background: #fafafa;
}

.pilasa-gift-order-summary h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

/* RTL */
.pl-gift[dir="rtl"] .pl-gift__message-area {
    padding-left: 0;
    padding-right: 32px;
}

.pl-gift[dir="rtl"] .pl-gift__editor {
    margin-left: 0;
    margin-right: 32px;
}

@media (max-width: 768px) {
    .pl-gift__panel {
        padding: 16px;
    }
    .pl-gift__message-area {
        padding-left: 0 !important;
    }
    .pl-gift[dir="rtl"] .pl-gift__message-area {
        padding-right: 0 !important;
    }
    .pl-gift__editor {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .pl-gift__confirm {
        width: 100%;
        justify-content: center;
    }
}