/* ============================================================
   DP Wedding Ad Widget — v1.1.0
   Injected after 1st paragraph of DirectoryPress description
   ============================================================ */

.dpwa-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #ffffff;
    border: 1.5px solid #f3d9ee;
    border-radius: 16px;
    overflow: hidden;
    margin: 24px 0 28px;
    box-shadow: 0 4px 24px rgba(180, 0, 90, 0.08);
    max-width: 100%;
    font-size: 14px;
    line-height: 1.4;
    color: #1a1a2e;
    /* Reset any theme interference */
    text-align: left;
}

/* ── Header ──────────────────────────────────────────────── */
.dpwa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fff5fb 0%, #ffffff 100%);
    border-bottom: 1px solid #f3d9ee;
}
.dpwa-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dpwa-logo {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #e91e8c, #c2185b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(233,30,140,.22);
}
.dpwa-vendor-name {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a2e;
    margin: 0;
    padding: 0;
}
.dpwa-vendor-meta {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.dpwa-count  { color: #e91e8c; font-weight: 600; }
.dpwa-sep    { margin: 0 4px; }
.dpwa-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.dpwa-special-tag {
    background: #fff0f8;
    border: 1px solid #f5bde0;
    color: #c2185b;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.dpwa-rating-pill {
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.dpwa-reviews { font-weight: 400; color: #999; font-size: 11px; }

/* ── Services bar ────────────────────────────────────────── */
.dpwa-services-bar {
    padding: 9px 18px 11px;
    background: #fdf5fd;
    border-bottom: 1px solid #f3d9ee;
}
.dpwa-services-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #777;
    margin-bottom: 6px;
    padding: 0;
}
.dpwa-service-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.dpwa-service-chips span {
    background: #fff;
    border: 1px solid #ead5e8;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 11.5px;
    color: #555;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ── Package cards ───────────────────────────────────────── */
.dpwa-packages {
    display: flex;
    flex-direction: column;
}
.dpwa-card {
    display: flex;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid #f8eef8;
    align-items: flex-start;
    transition: background 0.15s;
}
.dpwa-card:last-child { border-bottom: none; }
.dpwa-card:hover      { background: #fdf5fd; }

/* ── Thumbnail ───────────────────────────────────────────── */
.dpwa-thumb-wrap {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #fce4ec;
}
.dpwa-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Override any theme img styles */
    max-width: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}
.dpwa-off-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #e91e8c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: .3px;
    line-height: 1.4;
}
.dpwa-bestseller {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    background: #f59e0b;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 5px;
    text-align: center;
}
.dpwa-card-rating {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,.55);
    color: #ffd600;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
    line-height: 1.4;
}

/* ── Card body ───────────────────────────────────────────── */
.dpwa-card-body { flex: 1; min-width: 0; }

.dpwa-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 7px;
}
.dpwa-pkg-name {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a2e;
    line-height: 1.3;
    margin: 0;
}
.dpwa-pkg-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: #888;
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
}
.dpwa-included-label {
    font-size: 11px;
    color: #aaa;
    margin-bottom: 5px;
}
.dpwa-svc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 11px;
}
.dpwa-svc-chip {
    background: #f5f0ff;
    border: 1px solid #ddd0f8;
    border-radius: 20px;
    padding: 2px 9px;
    font-size: 10.5px;
    color: #6b46c1;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ── Card footer ─────────────────────────────────────────── */
.dpwa-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.dpwa-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.dpwa-original {
    font-size: 12px;
    color: #bbb;
    text-decoration: line-through;
    font-style: normal;
}
.dpwa-price {
    font-size: 17px;
    font-weight: 800;
    color: #1a1a2e;
}
.dpwa-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #e91e8c, #c2185b) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 24px;
    transition: opacity .15s, transform .15s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(233,30,140,.28);
    border: none !important;
    cursor: pointer;
}
.dpwa-cta-btn:hover {
    opacity: .88 !important;
    transform: translateY(-1px);
    color: #fff !important;
}

/* ── Widget footer ───────────────────────────────────────── */
.dpwa-widget-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 18px;
    background: #fdf5fd;
    border-top: 1px solid #f3d9ee;
    font-size: 11.5px;
    color: #aaa;
}
.dpwa-widget-footer strong { color: #e91e8c; }
.dpwa-view-all {
    color: #e91e8c !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 12px;
}
.dpwa-view-all:hover { text-decoration: underline !important; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 560px) {
    .dpwa-card        { flex-direction: column; gap: 10px; }
    .dpwa-thumb-wrap  { width: 100%; height: 160px; border-radius: 10px; }
    .dpwa-thumb-img   { width: 100%; height: 100%; }
    .dpwa-pkg-meta    { flex-direction: row; text-align: left; gap: 8px; }
    .dpwa-card-header { flex-direction: column; }
    .dpwa-header      { flex-direction: column; align-items: flex-start; }
    .dpwa-badge-row   { flex-wrap: wrap; }
}

/* SVG card illustrations */
.dpwa-thumb-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
}
