.ypp-locked {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 8px;
    background: #fff3cd;
    border: 1px dashed #b8860b;
    border-radius: 4px;
    color: #6b4f00;
}
.ypp-locked-label { font-weight: 600; }
.ypp-locked-btn, .ypp-buy-btn {
    cursor: pointer;
    background: #b8860b;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.9em;
}
.ypp-locked-btn:hover, .ypp-buy-btn:hover { background: #8a6608; }

.ypp-business-card {
    margin: 1.5em 0;
    padding: 1.4em 1.6em;
    background: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    box-shadow: 4px 4px 0 #1a1a1a;
}
.ypp-card-title {
    margin: 0 0 0.8em;
    padding-bottom: 0.6em;
    font-size: 1.15em;
    font-weight: 700;
    border-bottom: 2px solid #1a1a1a;
}
.ypp-row { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px dashed #ddd; align-items: baseline; }
.ypp-row:last-child { border-bottom: 0; }
.ypp-key { flex: 0 0 90px; color: #666; font-weight: 600; }
.ypp-val { flex: 1; color: #1a1a1a; word-break: break-all; }
.ypp-call-btn {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    background: #1a7f37;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 3px;
    font-size: 0.85em;
    line-height: 1.6;
    vertical-align: baseline;
}
.ypp-call-btn:hover, .ypp-call-btn:focus { background: #176c2e; color: #fff; }
.ypp-card-hint { margin: 0.8em 0 0; color: #b8860b; font-size: 0.9em; }
.ypp-contact-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1em;
    padding: 10px 14px;
    background: #fffbe6;
    border: 1px dashed #b8860b;
    border-radius: 4px;
    color: #6b4f00;
    font-size: 0.92em;
    line-height: 1.45;
}
.ypp-contact-hint-tag {
    flex: 0 0 auto;
    padding: 2px 8px;
    background: #b8860b;
    color: #fff;
    border-radius: 3px;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.ypp-contact-hint-text { font-weight: 500; }
@media (max-width: 600px) {
    .ypp-contact-hint { gap: 8px; padding: 8px 10px; font-size: 0.88em; }
}
@media (max-width: 600px) {
    .ypp-business-card { padding: 1em 1.1em; box-shadow: 3px 3px 0 #1a1a1a; }
    .ypp-row { flex-direction: column; gap: 4px; padding: 10px 0; align-items: stretch; }
    .ypp-key { flex: none; font-size: 0.85em; }
}
.ypp-cta {
    margin: 1.2em -1.6em -1.4em;
    padding: 1.4em 1.6em;
    background: #ffd500;
    border-top: 2px solid #1a1a1a;
    border-radius: 0 0 2px 2px;
    text-align: center;
}
.ypp-cta-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.ypp-cta-price {
    font-size: 1.8em;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 14px;
    line-height: 1.1;
}
.ypp-cta-currency { font-size: 0.55em; color: #555; font-weight: 600; margin-left: 4px; }
.ypp-cta-btn {
    display: inline-block;
    padding: 12px 36px;
    background: #1a1a1a;
    color: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.08s ease, background 0.08s ease, color 0.08s ease;
}
.ypp-cta-btn:hover { background: #fff; color: #1a1a1a; }
.ypp-cta-btn:active { transform: translateY(1px); }
@media (max-width: 600px) {
    .ypp-cta { margin: 1em -1.1em -1em; padding: 1.1em; }
    .ypp-cta-price { font-size: 1.5em; }
    .ypp-cta-btn { padding: 10px 28px; }
}
.ypp-wechat-card {
    max-width: 140px;
    max-height: 140px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
}
.ypp-wechat-thumb {
    position: relative;
    display: inline-block;
    isolation: isolate;
}
.ypp-wechat-thumb .ypp-wechat-card {
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ypp-wechat-thumb:hover .ypp-wechat-card,
.ypp-wechat-thumb:focus-within .ypp-wechat-card {
    transform: scale(1.08);
    border-color: #1a1a1a;
    box-shadow: 2px 2px 0 #1a1a1a;
}
.ypp-wechat-zoom {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 8px;
    z-index: 1000;
    padding: 6px;
    background: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 6px;
    box-shadow: 4px 4px 0 #1a1a1a, 0 8px 24px rgba(0,0,0,.18);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.92);
    transform-origin: top left;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1), visibility 0s linear 0.15s;
}
.ypp-wechat-zoom img {
    display: block;
    width: 320px;
    max-width: 50vw;
    height: auto;
    max-height: 60vh;
    min-width: 200px;
    min-height: 200px;
    background: #f4f4f4;
}
.ypp-wechat-thumb:hover .ypp-wechat-zoom,
.ypp-wechat-thumb:focus-within .ypp-wechat-zoom,
.ypp-wechat-zoom.is-open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity 0.15s ease, transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1), visibility 0s linear 0s;
}
.ypp-wechat-zoom.is-open {
    transform-origin: top left;
}
@media (max-width: 600px) {
    .ypp-wechat-zoom {
        left: 0;
        top: 100%;
        margin-left: 0;
        margin-top: 8px;
        transform-origin: top left;
    }
    .ypp-wechat-zoom img { width: 240px; max-width: 70vw; }
}
@media (hover: none) {
    .ypp-wechat-zoom { display: none !important; }
    .ypp-wechat-thumb:hover .ypp-wechat-card { transform: none; }
}

.ypp-modal-mask {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999;
}
.ypp-modal {
    position: relative;
    background: #fff; padding: 1.5em; border-radius: 10px;
    max-width: 92vw; min-width: 280px; max-height: 92vh; overflow: auto;
    box-shadow: 0 6px 30px rgba(0,0,0,.2);
}
.ypp-modal h3 { margin: 0 0 0.8em; }
.ypp-modal-close {
    position: absolute; right: 10px; top: 6px;
    background: transparent; border: none; font-size: 1.6em; line-height: 1;
    cursor: pointer; color: #999;
}
.ypp-modal-actions { display: flex; gap: 10px; margin-top: 1em; flex-wrap: wrap; }
.ypp-btn {
    display: inline-block;
    padding: 8px 18px; border-radius: 6px;
    border: 1px solid #ccc; background: #fafafa; cursor: pointer;
    text-decoration: none; color: #1a1a1a;
}
.ypp-btn-primary { background: #b8860b; color: #fff; border-color: #b8860b; }
.ypp-price { font-size: 1.4em; font-weight: 600; color: #b8860b; }
.ypp-qr { margin: 1em 0; text-align: center; }
.ypp-qr img { max-width: 220px; }
.ypp-trade { color: #999; }

.ypp-submit-form { max-width: 720px; }
.ypp-submit-form p { margin: 0 0 1em; }
.ypp-submit-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.ypp-input {
    width: 100%; box-sizing: border-box;
    padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px;
    font: inherit;
}
.ypp-business-fieldset {
    border: 1px solid #e6dfb8; border-radius: 8px;
    padding: 12px 16px; margin: 1em 0;
    background: #fffcef;
}
.ypp-business-fieldset legend { padding: 0 8px; font-weight: 600; }
.ypp-fee-line {
    padding: 10px 12px; background: #fff3cd;
    border: 1px dashed #b8860b; border-radius: 4px;
}
.ypp-fee-amount { color: #b8860b; font-size: 1.2em; }
.ypp-category-fieldset {
    border: 1px solid #e6dfb8; border-radius: 8px;
    padding: 8px 16px 12px; margin: 1em 0;
    background: #fffcef;
}
.ypp-category-fieldset legend { padding: 0 8px; font-weight: 600; }
.ypp-category-item {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 8px; border-radius: 4px;
    cursor: pointer; font-weight: normal;
}
.ypp-category-item:hover { background: #fff8dc; }
.ypp-category-item input { margin: 0; }
.ypp-category-item .ypp-category-name { flex: 1; }

.ypp-cat-tree { list-style: none; padding-left: 0; margin: 0; }
.ypp-cat-tree .ypp-cat-tree { padding-left: 24px; }
.ypp-category-fieldset > .ypp-cat-tree {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 6px;
    scroll-behavior: smooth;
}
.ypp-cat-node { margin: 2px 0; }
.ypp-cat-row { display: flex; align-items: center; gap: 4px; }
.ypp-cat-toggle {
    background: none; border: 0; cursor: pointer;
    width: 32px; height: 32px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: #1a1a1a; font-size: 24px; line-height: 1; font-weight: 700;
}
.ypp-cat-toggle:hover { color: #b8860b; }
.ypp-cat-toggle::before { content: "▸"; display: inline-block; transition: transform 0.12s ease; }
.ypp-cat-node.is-expanded > .ypp-cat-row > .ypp-cat-toggle::before { transform: rotate(90deg); }
.ypp-cat-node.is-collapsed > .ypp-cat-tree { display: none; }
.ypp-cat-spacer { display: inline-block; width: 32px; }
.ypp-cat-group {
    font-weight: 600;
    color: #555;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}
.ypp-cat-group:hover { background: #fff8dc; color: #1a1a1a; }
.ypp-fee-note { margin: 0 0 1em; color: #555; font-size: 0.9em; }
.ypp-char-count { float: right; color: #888; }
.ypp-body-hint { display: block; color: #b8860b; margin-bottom: 6px; }
.ypp-phone-group { display: flex; gap: 8px; align-items: stretch; }
.ypp-phone-country {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid #ccc; border-radius: 4px;
    font: inherit; background: #fff;
}
.ypp-phone-input { flex: 1; width: auto; }
.ypp-notice { padding: 10px 14px; border-radius: 4px; margin-bottom: 1em; }
.ypp-notice.ypp-error { background: #fdecea; border: 1px solid #f5c2c0; color: #c0392b; }

.ypp-orders { width: 100%; border-collapse: collapse; }
.ypp-orders th, .ypp-orders td { padding: 12px 18px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.ypp-orders th + th, .ypp-orders td + td { padding-left: 24px; }
.ypp-orders thead th { background: #f8f4dc; }
.ypp-status { padding: 2px 8px; border-radius: 3px; font-size: 0.85em; }
.ypp-view-link {
    margin-left: 8px;
    padding: 2px 8px;
    background: #b8860b;
    color: #fff;
    border-radius: 3px;
    font-size: 0.85em;
    text-decoration: none;
    white-space: nowrap;
}
.ypp-view-link:hover { background: #8a6608; color: #fff; text-decoration: none; }
.ypp-status-paid                 { background: #d4edda; color: #155724; }
.ypp-status-published            { background: #d4edda; color: #155724; }
.ypp-status-pending              { background: #fff3cd; color: #856404; }
.ypp-status-awaiting_payment     { background: #fff3cd; color: #856404; }
.ypp-status-awaiting_review      { background: #d1ecf1; color: #0c5460; }
.ypp-status-rejected             { background: #f8d7da; color: #721c24; }
.ypp-status-failed               { background: #f8d7da; color: #721c24; }
.ypp-status-canceled             { background: #e2e3e5; color: #383d41; }
