.hpo-panel,.hpo-guide{margin:1rem 0}.hpo-guide summary{cursor:pointer}.hpo-table{overflow:auto}.hpo-table table{width:100%}.hpo-actions{display:flex;flex-wrap:wrap;gap:.65rem}.hpo-info{display:grid;grid-template-columns:auto 1fr;gap:.3rem .8rem}.hpo-info dd{margin:0}.hpo-dialog{box-sizing:border-box;width:min(92vw,38rem);max-height:90vh;overflow:auto;padding:1.5rem;border:0;border-radius:.5rem;color:#222;background:#fff}.hpo-dialog::backdrop{background:#0008}.hpo-close{float:right;font-size:1.5rem}.hpo-form label{display:block;margin:.5rem 0}.hpo-form input:not([type=hidden]),.hpo-form select,.hpo-form textarea{display:block;width:100%;box-sizing:border-box}.hpo-form[hidden]{display:none}.hpo-qty-help{font-size:.9em}.hpo-status{margin:.75rem 0}
.hpo-guide-trigger{display:inline-flex;align-items:center;gap:.55rem;background:#fff;color:#28352d;border:1px solid #728277;border-radius:4px;padding:.6rem .9rem;font-weight:600;cursor:pointer}.hpo-guide-trigger:hover{background:#edf2ee}.hpo-guide-dialog{width:min(94vw,48rem);padding:0;border-radius:12px;box-shadow:0 16px 60px #15211744}.hpo-guide-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding:1.4rem 1.6rem;background:#f1f5f0;border-bottom:1px solid #dce5dc}.hpo-guide-header h2{margin:.2rem 0;font-size:1.75rem;color:#26382c}.hpo-guide-header p{margin:0}.hpo-guide-eyebrow{font-size:.75rem;letter-spacing:.12em;font-weight:700;color:#516657}.hpo-guide-header .hpo-close{float:none;cursor:pointer;background:#fff;color:#28352d;border:1px solid #dce5dc;border-radius:50%;width:38px;height:38px;line-height:1;padding:0;flex:none}.hpo-guide-content{padding:1.25rem 1.6rem 1.6rem}.hpo-guide-content h3{font-size:1.1rem;margin:.8rem 0}.hpo-guide-note{padding:.65rem .85rem;background:#f7f4e9;border-radius:5px}.hpo-guide-content .hpo-table{border:1px solid #dce5dc;border-radius:6px}.hpo-guide-content table{margin:0;border-collapse:collapse}.hpo-guide-content th,.hpo-guide-content td{padding:.7rem .85rem !important;border-bottom:1px solid #e5ebe5;text-align:center;white-space:nowrap}.hpo-guide-content th:first-child{text-align:left}.hpo-guide-content thead{background:#edf2ee}.hpo-guide-content tbody tr:nth-child(even){background:#f8faf8}.hpo-guide-trigger:focus-visible,.hpo-guide-dialog :focus-visible{outline:2px solid #345c40;outline-offset:2px}@media(max-width:480px){.hpo-guide-header,.hpo-guide-content{padding:1rem}.hpo-guide-content th,.hpo-guide-content td{padding:.55rem .65rem}}

.hpo-table-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.hpo-guide-dialog {
    width: min(94vw, 900px);
    position: fixed;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    
}
.hpo-guide-content .hpo-table{
    width: 100%;
}
.hpo-guide-content img.finish-width {
    width: 100%;
    max-width: 300px;
    -o-object-fit: contain;
    object-fit: contain;
}
/* Main Product Panel */
.hpo-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    font-family: inherit;
    color: #333333;
}

/* Made to Order */
.hpo-panel > p:first-child {
    margin: 0 0 18px;
}

.hpo-panel > p:first-child strong {
    display: inline-flex;
    align-items: center;
    background: #f0f5ed;
    color: #456b3c;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 30px;
    letter-spacing: 0.2px;
}

/* Price */
.hpo-panel > p:nth-child(2) {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    margin: 0 0 22px;
}

.hpo-panel .woocommerce-Price-amount {
    display: inline-block;
    color: #222222;
    font-size: 25px;
    font-weight: 700;
    margin-top: 3px;
}

/* Product Information */
.hpo-panel .hpo-info {
    display: grid;
    grid-template-columns: 105px 1fr;
    column-gap: 12px;
    row-gap: 14px;
    padding: 20px 0;
    margin: 0;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
}

.hpo-panel .hpo-info dt {
    font-size: 14px;
    font-weight: 500;
    color: #777777;
    margin: 0;
}

.hpo-panel .hpo-info dd {
    font-size: 14px;
    font-weight: 500;
    color: #292929;
    margin: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Action Buttons */
.hpo-panel .hpo-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}

.hpo-panel .hpo-actions .button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid #222222;
    border-radius: 6px;
    background: #222222;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hpo-panel .hpo-actions .button:hover {
    background: #ffffff;
    color: #222222 !important;
}

/* Retail Button - Outline */
.hpo-panel .hpo-actions .button:first-child {
    background: #ffffff;
    color: #222222 !important;
}

.hpo-panel .hpo-actions .button:first-child:hover {
    background: #222222;
    color: #ffffff !important;
}

/* Dialog Popup */
.hpo-panel .hpo-dialog {
    width: min(520px, calc(100% - 30px));
    max-width: 520px;
    max-height: 85vh;
    padding: 30px;
    border: none;
    border-radius: 12px;
    background: #ffffff;
    color: #333333;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.hpo-panel .hpo-dialog[open] {
    animation: hpoPopup 0.25s ease;
}

@keyframes hpoPopup {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hpo-panel .hpo-dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

/* Dialog Heading */
.hpo-panel .hpo-dialog h2 {
    font-size: 24px;
    font-weight: 700;
    color: #222222;
    margin: 0 35px 25px 0;
}

/* Close Button */
.hpo-panel .hpo-close {
    position: absolute;
    top: 15px;
    right: 18px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f3f3f3;
    color: #333333;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.hpo-panel .hpo-close:hover {
    background: #222222;
    color: #ffffff;
}

/* Form */
.hpo-panel .hpo-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.hpo-panel .hpo-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
}

.hpo-panel .hpo-form input,
.hpo-panel .hpo-form select,
.hpo-panel .hpo-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.hpo-panel .hpo-form textarea {
    min-height: 100px;
    resize: vertical;
}

.hpo-panel .hpo-form input:focus,
.hpo-panel .hpo-form select:focus,
.hpo-panel .hpo-form textarea:focus {
    border-color: #333333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

/* Quantity Help */
.hpo-panel .hpo-qty-help {
    font-size: 12px;
    color: #777777;
    margin: -10px 0 0;
}

/* Submit Button */
.hpo-panel .hpo-form button[type="submit"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid #222222;
    border-radius: 6px;
    background: #222222;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hpo-panel .hpo-form button[type="submit"]:hover {
    background: #444444;
}

/* Form Status */
.hpo-panel .hpo-status {
    font-size: 13px;
    margin: 0;
}

/* Responsive */
@media (max-width: 767px) {
    .hpo-panel {
        padding: 18px;
        border-radius: 10px;
    }

    .hpo-panel .woocommerce-Price-amount {
        font-size: 23px;
    }

    .hpo-panel .hpo-info {
        grid-template-columns: 90px 1fr;
        column-gap: 8px;
        row-gap: 12px;
    }

    .hpo-panel .hpo-info dt,
    .hpo-panel .hpo-info dd {
        font-size: 13px;
    }

    .hpo-panel .hpo-dialog {
        padding: 24px 18px;
    }

    .hpo-panel .hpo-dialog h2 {
        font-size: 21px;
    }
}

.hpo-whatsapp a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: #25D366;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none !important;
    border: 2px solid #25D366;
    border-radius: 50px;
    transition: all 0.3s ease;
    line-height: 1.4;
    cursor: pointer;
}

.hpo-whatsapp a.button::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
}

.hpo-whatsapp a.button:hover {
    background: #128C7E;
    border-color: #128C7E;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

.hpo-whatsapp a.button:focus-visible {
    outline: 3px solid #128C7E;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .hpo-whatsapp a.button {
        width: 100%;
        padding: 13px 20px;
        font-size: 15px;
    }
}