.plg-cod-order-form {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #d9e2df;
    border-radius: 8px;
    background: #f7fbf9;
}

.plg-cod-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.plg-cod-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.plg-cod-field input,
.plg-cod-field select,
.plg-cod-field textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5d1;
    border-radius: 6px;
    padding: 9px 10px;
    font: inherit;
    background: #fff;
}

.plg-cod-field textarea {
    resize: vertical;
}

.plg-cod-field-qty {
    max-width: 160px;
}

.plg-cod-whatsapp-button {
    width: 100%;
    min-height: 46px;
    border-radius: 6px;
    background: #128c7e !important;
    border-color: #128c7e !important;
    color: #fff !important;
    font-weight: 700;
}

.plg-cod-button-vibrate {
    animation: plg-cod-button-vibrate 1.8s ease-in-out infinite;
    transform-origin: center;
}

@keyframes plg-cod-button-vibrate {
    0%, 78%, 100% {
        transform: translateX(0);
    }
    80%, 84%, 88% {
        transform: translateX(-2px);
    }
    82%, 86%, 90% {
        transform: translateX(2px);
    }
}

.plg-cod-watermark-host {
    position: relative !important;
    max-width: 100%;
    overflow: hidden;
}

.plg-cod-watermark-gallery-host {
    overflow: visible !important;
}

.woocommerce ul.products li.product .plg-cod-watermark-source,
.woocommerce-page ul.products li.product .plg-cod-watermark-source,
.products .product .plg-cod-watermark-source,
.wc-block-grid__product .plg-cod-watermark-source,
.wp-block-post.product .plg-cod-watermark-source,
.wc-block-product .plg-cod-watermark-source,
.woocommerce-product-gallery .plg-cod-watermark-source {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.woocommerce-product-gallery .plg-cod-watermark-source {
    width: auto !important;
}

.plg-cod-watermark {
    position: absolute !important;
    z-index: 999 !important;
    pointer-events: none !important;
    user-select: none !important;
}

.plg-cod-watermark-text {
    max-width: calc(100% - 24px);
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.44);
    color: #fff;
    font-size: clamp(12px, 2vw, 22px);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
}

.plg-cod-watermark-image {
    display: block !important;
    aspect-ratio: 1 / 1;
    width: var(--plg-cod-watermark-image-size, 28%) !important;
    height: var(--plg-cod-watermark-image-size, 28%) !important;
    max-width: 80% !important;
    max-height: 80% !important;
    padding: 0 !important;
    border: 0 !important;
    background-color: transparent !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

.plg-cod-protect-images img,
.plg-cod-protect-images .plg-cod-watermark-host,
.plg-cod-protect-images .plg-cod-watermark {
    -webkit-user-drag: none;
    user-select: none;
}

.plg-cod-floating-whatsapp {
    position: fixed;
    z-index: 99999;
    min-width: 56px;
    height: 56px;
    padding: 0 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--plg-cod-floating-color, #128c7e);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.plg-cod-floating-whatsapp::before {
    content: "☎";
    font-size: 22px;
    line-height: 1;
}

.plg-cod-floating-bottom-right {
    right: 18px;
    bottom: 18px;
}

.plg-cod-floating-bottom-left {
    left: 18px;
    bottom: 18px;
}

.plg-cod-floating-top-right {
    right: 18px;
    top: 18px;
}

.plg-cod-floating-top-left {
    left: 18px;
    top: 18px;
}

@media (max-width: 640px) {
    .plg-cod-form-grid {
        grid-template-columns: 1fr;
    }

    .plg-cod-field-qty {
        max-width: none;
    }

    .plg-cod-floating-whatsapp {
        height: 52px;
        min-width: 52px;
        padding: 0 14px;
        font-size: 13px;
    }
}
