.codlp {
    --codlp-primary: var(--codlt-landing-primary);
    --codlp-primary-strong: var(--codlt-landing-primary-strong);
    --codlp-primary-light: var(--codlt-landing-primary-light);
    --codlp-primary-soft: var(--codlt-landing-primary-soft);
    --codlp-primary-soft-alt: var(--codlt-landing-primary-soft-alt);
    --codlp-primary-tint: var(--codlt-landing-primary-tint);
    --codlp-primary-border: var(--codlt-landing-primary-border);
    --codlp-primary-rgb: var(--codlt-landing-primary-rgb);
    --codlp-accent: var(--codlt-landing-accent);
    --codlp-accent-rgb: var(--codlt-landing-accent-rgb);
    --codlp-red: var(--codlp-accent);
    --codlp-soft: var(--codlp-primary-soft);
    --codlp-on-primary: var(--codlt-on-primary);
    --codlp-text: #1a1a1a;
    --codlp-muted: #777;
    --codlp-border: #e8e8e8;
    color: var(--codlp-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
}

.codlp *,
.codlp *::before,
.codlp *::after {
    box-sizing: border-box;
}

.codlp button,
.codlp input,
.codlp select,
.codlp textarea {
    font: inherit;
}

.codlp-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.codlp-product-wrapper {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.codlp-product-images {
    position: sticky;
    top: 0;
    flex: 0 0 45%;
    max-width: 500px;
    min-width: 300px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.codlp-main-image {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #fafafa;
}

.codlp-main-media,
.codlp-media-panel {
    width: 100%;
}

.codlp-media-panel[hidden] {
    display: none;
}

.codlp-product-video {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: #111;
    object-fit: contain;
}

.codlp-media-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.codlp-media-switch {
    min-height: 40px;
    padding: 8px 12px;
    cursor: pointer;
    border: 1px solid var(--codlp-border);
    border-radius: 8px;
    background: #fff;
    color: var(--codlp-muted);
    font-size: 14px;
    font-weight: 700;
}

.codlp-media-switch:hover,
.codlp-media-switch:focus-visible {
    border-color: var(--codlp-primary);
    outline: none;
    color: var(--codlp-primary-strong);
}

.codlp-media-switch.is-active {
    border-color: var(--codlp-primary);
    background: var(--codlp-primary-soft-alt);
    color: var(--codlp-primary-strong);
    box-shadow: inset 0 0 0 1px var(--codlp-primary);
}

.codlp-product-image,
.codlp-main-image img {
    display: block;
    width: 100%;
    height: auto;
}

.codlp-image-placeholder {
    display: flex;
    min-height: 360px;
    align-items: center;
    justify-content: center;
    color: var(--codlp-muted);
    background: #f7f7f7;
}

.codlp-product-info-wrap {
    flex: 1;
    min-width: 280px;
    max-width: 600px;
}

.codlp-product-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.codlp-product-title {
    margin: 0 0 15px;
    color: var(--codlp-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
}

.codlp-sales-rank {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 8px;
    margin: -2px 0 16px;
    padding: 8px 12px;
    border: 1px solid rgba(var(--codlp-primary-rgb), 0.38);
    border-radius: 9px;
    background: var(--codlp-primary-soft-alt);
    color: var(--codlp-primary-strong);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.codlp-sales-rank-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: currentColor;
}

.codlp-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 20px;
}

.codlp-current-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    color: var(--codlp-primary);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.codlp-current-price del {
    color: #999;
    font-size: 0.58em;
    font-weight: 600;
    text-decoration-thickness: 2px;
}

.codlp-current-price ins {
    color: var(--codlp-primary);
    text-decoration: none;
}

.codlp-price-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.codlp-price-tag.is-promo {
    background: var(--codlp-primary);
    box-shadow: 0 5px 14px rgba(var(--codlp-primary-rgb), 0.22);
    color: var(--codlp-on-primary);
}

.codlp-price-tag.is-standard {
    border: 1px solid var(--codlp-primary-border);
    background: var(--codlp-primary-soft-alt);
    color: var(--codlp-primary-strong);
}

.codlp-short-description {
    margin: -4px 0 20px;
    padding: 14px 16px;
    border: 1px solid var(--codlp-primary-border);
    border-radius: 10px;
    background: var(--codlp-primary-tint);
}

.codlp-short-description-title {
    margin: 0 0 7px;
    color: var(--codlp-text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.codlp-short-description-content {
    color: #545a63;
    font-size: 14px;
    line-height: 1.65;
}

.codlp-short-description-content > :first-child {
    margin-top: 0;
}

.codlp-short-description-content > :last-child {
    margin-bottom: 0;
}

.codlp-short-description-content p {
    margin: 0 0 6px;
}

.codlp-short-description-content ul,
.codlp-short-description-content ol {
    margin: 0;
    padding-left: 1.35em;
}

.codlp-short-description-content li + li {
    margin-top: 3px;
}

.codlp-service-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f9f9f9;
}

.codlp-service-item {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    line-height: 1.35;
    white-space: nowrap;
}

.codlp-service-icon {
    display: inline-flex;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--codlp-primary);
    color: var(--codlp-on-primary);
}

.codlp-service-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.codlp-spec-section {
    margin-bottom: 20px;
}

.codlp-spec-title {
    position: relative;
    margin-bottom: 12px;
    padding-left: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 700;
}

.codlp-spec-title::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 14px;
    border-radius: 2px;
    transform: translateY(-50%);
    background: linear-gradient(180deg, var(--codlp-primary), var(--codlp-primary-light));
}

.codlp-attribute-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.codlp-attribute-group {
    padding: 14px;
    border: 1px solid var(--codlp-border);
    border-radius: 10px;
    background: #fafafa;
}

.codlp-attribute-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
    font-weight: 700;
}

.codlp-step-number {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--codlp-primary);
    color: var(--codlp-on-primary);
    font-size: 12px;
}

.codlp-attribute-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    gap: 8px;
}

.codlp-attribute-option {
    position: relative;
    min-width: 0;
    min-height: 44px;
    padding: 9px 12px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #444;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    overflow-wrap: anywhere;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.codlp-attribute-option-label {
    display: block;
}

.codlp-attribute-option.has-popular-tag {
    padding-top: 15px;
}

.codlp-popular-tag {
    position: absolute;
    top: -10px;
    right: 8px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--codlp-primary), var(--codlp-primary-strong));
    box-shadow: 0 3px 8px rgba(var(--codlp-primary-rgb), 0.22);
    color: var(--codlp-on-primary);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
}

.codlp-attribute-option:hover:not(:disabled),
.codlp-attribute-option:focus-visible {
    border-color: var(--codlp-primary);
    box-shadow: 0 0 0 3px rgba(var(--codlp-primary-rgb), 0.12);
    outline: 0;
}

.codlp-attribute-option.is-active {
    border-color: var(--codlp-primary);
    background: var(--codlp-soft);
    color: var(--codlp-primary-strong);
    box-shadow: inset 0 0 0 1px var(--codlp-primary);
}

.codlp-attribute-option:disabled {
    cursor: not-allowed;
    border-color: #eee;
    background: #f3f3f3;
    color: #aaa;
    text-decoration: line-through;
    opacity: 0.7;
}

.codlp-mini-card {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.codlp-mini-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f7f7f7;
}

.codlp-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.codlp-mini-info {
    min-width: 0;
    flex: 1;
}

.codlp-selection-status {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    color: #238636;
    font-size: 12px;
    font-weight: 700;
}

.codlp-selection-status span {
    display: inline-flex;
    width: 17px;
    height: 17px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #238636;
    color: #fff;
    font-size: 11px;
}

.codlp-mini-info h3 {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.codlp-mini-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.codlp-mini-bottom > span[data-role="package-units"] {
    padding: 4px 10px;
    border-radius: 4px;
    background: #f5f5f5;
    color: #999;
    font-size: 12px;
}

.codlp-mini-bottom strong {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 6px;
    color: var(--codlp-primary);
    font-size: 18px;
}

.codlp-mini-bottom strong del {
    color: #999;
    font-size: 13px;
    font-weight: 500;
    text-decoration-thickness: 1.5px;
}

.codlp-mini-bottom strong ins {
    color: var(--codlp-primary);
    text-decoration: none;
}

.codlp-mini-bottom strong del .woocommerce-Price-amount {
    color: #999;
}

.codlp-mini-bottom strong ins .woocommerce-Price-amount {
    color: var(--codlp-primary);
}

.codlp-form {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.codlp-form-title {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: var(--codlp-text);
    font-size: 16px;
    font-weight: 700;
}

.codlp-form-section,
.codlp-form-group {
    margin-bottom: 15px;
}

.codlp-form-label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.codlp-required {
    color: var(--codlp-primary);
}

.codlp-form-row {
    display: flex;
    gap: 15px;
}

.codlp-form-row .codlp-form-group {
    flex: 1;
}

.codlp-input,
.codlp-select,
.codlp-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.codlp-input:focus,
.codlp-select:focus,
.codlp-textarea:focus {
    outline: 0;
    border-color: var(--codlp-primary);
    box-shadow: 0 0 0 3px rgba(var(--codlp-primary-rgb), 0.12);
}

.codlp-input[aria-invalid="true"],
.codlp-select[aria-invalid="true"],
.codlp-textarea[aria-invalid="true"] {
    border-color: #c62828;
    background: #fffafa;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.codlp-textarea {
    min-height: 80px;
    resize: vertical;
}

.codlp-select:disabled {
    cursor: not-allowed;
    background: #f7f7f7;
    color: #777;
}

.codlp-field-status {
    min-height: 20px;
    margin: 6px 0 0;
    color: #777;
    font-size: 12px;
}

.codlp-field-status.is-error {
    color: #b42318;
}

.codlp-field-error {
    margin: 7px 0 0;
    color: #b42318;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.codlp-delivery-options {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #ddd;
    border-radius: 12px;
}

.codlp-delivery-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    background: #fff;
    transition: background 0.2s ease;
}

.codlp-delivery-option:last-child {
    border-bottom: 0;
}

.codlp-delivery-option:hover,
.codlp-delivery-option.is-active {
    background: #fff9f7;
}

.codlp-delivery-option.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.codlp-delivery-option.is-disabled:hover {
    background: #fff;
}

.codlp-delivery-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.codlp-radio {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    border-radius: 50%;
}

.codlp-radio span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transform: scale(0);
    transition: transform 0.2s ease, background 0.2s ease;
}

.codlp-delivery-option.is-active .codlp-radio {
    border-color: var(--codlp-primary);
}

.codlp-delivery-option.is-active .codlp-radio span {
    background: var(--codlp-primary);
    transform: scale(1);
}

.codlp-delivery-icon {
    display: inline-flex;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--codlp-soft);
    color: var(--codlp-primary);
    font-weight: 800;
}

.codlp-delivery-text {
    flex: 1;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.codlp-delivery-tag {
    padding: 4px 12px;
    border-radius: 20px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 12px;
    font-weight: 700;
}

.codlp-price-hint {
    margin: 4px 0 10px;
    color: #999;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.codlp-checkout-assurances {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px;
}

.codlp-checkout-assurance {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 8px;
    border: 1px solid var(--codlp-primary-border);
    border-radius: 9px;
    background: var(--codlp-primary-soft-alt);
    color: var(--codlp-text);
    text-align: center;
}

.codlp-checkout-assurance span {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--codlp-primary);
    color: var(--codlp-on-primary);
    font-size: 12px;
    font-weight: 800;
}

.codlp-checkout-assurance strong {
    min-width: 0;
    color: #333;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.codlp-buy-button,
.codlp-go-order {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 25px;
    overflow: hidden;
    cursor: pointer;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--codlp-primary) 0%, var(--codlp-red) 50%, var(--codlp-primary) 100%);
    background-size: 200% 200%;
    box-shadow: 0 8px 25px rgba(var(--codlp-primary-rgb), 0.4), 0 4px 10px rgba(var(--codlp-accent-rgb), 0.3);
    color: var(--codlp-on-primary);
    font-size: 17px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    animation: codlpGradient 3s ease infinite, codlpPulse 2s ease-in-out infinite;
}

.codlp-buy-button:hover,
.codlp-go-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(var(--codlp-primary-rgb), 0.48), 0 6px 16px rgba(var(--codlp-accent-rgb), 0.36);
}

.codlp-buy-button[disabled] {
    cursor: wait;
    opacity: 0.65;
}

.codlp-buy-button {
    justify-content: center;
}

.codlp-buy-button span {
    min-width: 0;
    text-align: center;
}

.codlp-submit-spinner {
    display: none;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.48);
    border-top-color: #fff;
    border-radius: 50%;
}

.codlp-buy-button.is-loading .codlp-submit-spinner {
    display: inline-block;
    animation: codlpSubmitSpinner 0.72s linear infinite;
}

.codlp-message {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.codlp-message.is-visible {
    display: block;
}

.codlp-message.is-error {
    background: #fff0f0;
    color: #c62828;
}

.codlp-message.is-success {
    background: #edf8ef;
    color: #226b31;
}

.codlp-active-order-overlay[hidden] {
    display: none;
}

.codlp-active-order-overlay {
    position: fixed;
    z-index: 100001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.codlp-active-order-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25, 18, 16, 0.62);
    backdrop-filter: blur(4px);
}

.codlp-active-order-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    padding: 34px 30px 28px;
    border: 1px solid rgba(var(--codlp-primary-rgb), 0.25);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(31, 15, 10, 0.32);
    text-align: center;
    animation: codlp-active-order-dialog-in 0.24s ease-out both;
}

.codlp-active-order-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    border: 0;
    border-radius: 50%;
    background: var(--codlp-primary-soft);
    color: var(--codlp-primary-strong);
    font-size: 28px;
    line-height: 1;
}

.codlp-active-order-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--codlp-primary), var(--codlp-red));
    box-shadow: 0 10px 24px rgba(var(--codlp-primary-rgb), 0.3);
    color: var(--codlp-on-primary);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.codlp-active-order-kicker {
    margin: 0;
    color: var(--codlp-primary-strong);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.codlp-active-order-dialog h2 {
    margin: 7px 0 12px;
    color: var(--codlp-text);
    font-size: 25px;
    line-height: 1.3;
}

.codlp-active-order-copy {
    margin: 0;
    color: #3d302c;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.7;
}

.codlp-active-order-note {
    margin: 15px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--codlp-primary-soft);
    color: var(--codlp-primary-strong);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.codlp-active-order-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 23px;
}

.codlp-active-order-actions a,
.codlp-active-order-actions button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 11px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.codlp-active-order-actions a {
    background: linear-gradient(135deg, var(--codlp-primary), var(--codlp-red));
    box-shadow: 0 8px 18px rgba(var(--codlp-primary-rgb), 0.27);
    color: var(--codlp-on-primary);
}

.codlp-active-order-actions button {
    border: 1px solid var(--codlp-primary-border);
    background: #fff;
    color: var(--codlp-primary-strong);
}

.codlp-active-order-close:hover,
.codlp-active-order-actions a:hover,
.codlp-active-order-actions button:hover {
    transform: translateY(-1px);
}

.codlp-active-order-actions a:hover {
    box-shadow: 0 11px 22px rgba(var(--codlp-primary-rgb), 0.34);
}

.codlp-active-order-close:focus-visible,
.codlp-active-order-actions a:focus-visible,
.codlp-active-order-actions button:focus-visible {
    outline: 3px solid #242424;
    outline-offset: 3px;
}

body.codlp-active-order-modal-open {
    overflow: hidden;
}

@keyframes codlp-active-order-dialog-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .codlp-active-order-overlay {
        padding: 16px;
    }

    .codlp-active-order-dialog {
        padding: 30px 20px 20px;
        border-radius: 18px;
    }

    .codlp-active-order-dialog h2 {
        font-size: 23px;
    }

    .codlp-active-order-copy {
        font-size: 16px;
    }

    .codlp-active-order-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .codlp-active-order-dialog,
    .codlp-active-order-close,
    .codlp-active-order-actions a,
    .codlp-active-order-actions button {
        animation: none;
        transition: none;
    }
}

.codlp-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.codlp-details {
    margin-top: 20px;
    padding: 25px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.codlp-details > h2 {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: var(--codlp-text);
    font-size: 18px;
    font-weight: 700;
}

.codlp-details-content {
    color: #666;
    font-size: 14px;
    line-height: 2;
}

.codlp-details-content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

.codlp-go-order {
    position: sticky;
    bottom: 0;
    z-index: 90;
    display: none;
    justify-content: center;
    margin-top: 20px;
}

.codlp-go-order.is-visible {
    display: flex;
}

.codlp-mobile-order-actions {
    display: none;
}

.codlp-back-top {
    position: fixed;
    right: 25px;
    bottom: 150px;
    z-index: 998;
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 0;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    background: linear-gradient(135deg, var(--codlp-red), var(--codlp-primary));
    box-shadow: 0 4px 15px rgba(var(--codlp-primary-rgb), 0.4);
    color: var(--codlp-on-primary);
    font-size: 24px;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.codlp-back-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.codlp-notice {
    max-width: 760px;
    margin: 24px auto;
    padding: 14px 16px;
    border-left: 4px solid var(--codlp-primary);
    background: var(--codlp-primary-soft-alt);
    color: #333;
}

@keyframes codlpGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes codlpPulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(var(--codlp-primary-rgb), 0.4), 0 4px 10px rgba(var(--codlp-accent-rgb), 0.3); }
    50% { box-shadow: 0 12px 35px rgba(var(--codlp-primary-rgb), 0.58), 0 6px 15px rgba(var(--codlp-accent-rgb), 0.45); }
}

@keyframes codlpCtaSheen {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes codlpSubmitSpinner {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .codlp-buy-button.is-loading .codlp-submit-spinner {
        animation-duration: 1.8s;
    }

    .codlp-mobile-order-primary {
        animation: none;
    }
}

@media (max-width: 768px) {
    .codlp-container {
        padding: 0;
    }

    .codlp-product-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .codlp-product-images,
    .codlp-product-info-wrap,
    .codlp-product-info {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .codlp-product-images {
        position: static;
        border-radius: 0;
    }

    .codlp-product-info {
        padding: 16px;
        border-radius: 0;
    }

    .codlp-product-title {
        font-size: 20px;
    }

    .codlp-current-price {
        font-size: 28px;
    }

    .codlp-short-description {
        margin-bottom: 16px;
        padding: 13px 14px;
    }

    .codlp-service-info {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 16px;
        padding: 12px;
    }

    .codlp-service-item {
        min-width: 0;
        gap: 6px;
        font-size: 13px;
    }

    .codlp-spec-title,
    .codlp-attribute-label,
    .codlp-form-title,
    .codlp-form-label,
    .codlp-delivery-text {
        font-size: 16px;
    }

    .codlp-attribute-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .codlp-attribute-option {
        min-height: 52px;
        padding: 13px 14px;
        font-size: 16px;
        line-height: 1.45;
    }

    .codlp-attribute-group {
        padding: 12px;
    }

    .codlp-form-row {
        flex-direction: column;
        gap: 0;
    }

    .codlp-form {
        padding: 15px;
    }

    .codlp-input,
    .codlp-select,
    .codlp-textarea {
        min-height: 50px;
        font-size: 16px;
    }

    .codlp-field-status,
    .codlp-price-hint,
    .codlp-field-error,
    .codlp-message {
        font-size: 15px;
    }

    .codlp-checkout-assurances {
        grid-template-columns: 1fr;
    }

    .codlp-checkout-assurance {
        justify-content: flex-start;
        padding: 12px 14px;
    }

    .codlp-checkout-assurance strong {
        font-size: 16px;
    }

    .codlp-buy-button {
        min-height: 62px;
        padding: 0 18px;
        font-size: 18px;
    }

    .codlp-mini-card {
        padding: 12px;
    }

    .codlp-mini-image {
        width: 80px;
        height: 80px;
    }

    .codlp-go-order.is-visible {
        display: none;
    }

    .codlp-mobile-order-actions.is-visible {
        position: fixed;
        right: 8px;
        bottom: max(8px, env(safe-area-inset-bottom));
        left: 8px;
        z-index: 997;
        display: grid;
        gap: 10px;
        padding: 0;
        border-radius: 14px;
        background: transparent;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.24);
    }

    .codlp-mobile-order-actions button {
        display: flex;
        width: 100%;
        min-height: 64px;
        align-items: center;
        justify-content: center;
        gap: 14px;
        cursor: pointer;
        border-radius: 14px;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.2;
    }

    .codlp-mobile-order-primary {
        order: 2;
        border: 1px solid var(--codlp-primary-strong);
        background: linear-gradient(105deg, var(--codlp-primary) 0%, var(--codlp-red) 50%, var(--codlp-primary) 100%);
        background-size: 240% 100%;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 -8px 20px rgba(var(--codlp-primary-rgb), 0.28);
        color: var(--codlp-on-primary);
        animation: codlpCtaSheen 4.5s ease-in-out infinite;
    }

    .codlp-mobile-order-secondary {
        order: 1;
        border: 2px solid var(--codlp-primary);
        background: #fff;
        color: var(--codlp-primary-strong);
    }

    .codlp-back-top {
        right: 20px;
        bottom: calc(160px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 580px) {
    .codlp-product-title {
        font-size: 20px;
    }

    .codlp-current-price {
        font-size: 24px;
    }

    .codlp-sales-rank {
        padding: 7px 10px;
        font-size: 14px;
    }

    .codlp-delivery-option {
        padding: 14px 12px;
        gap: 10px;
    }

    .codlp-delivery-text {
        font-size: 16px;
    }

    .codlp-delivery-tag {
        padding: 3px 8px;
        font-size: 14px;
    }

    .codlp-service-info {
        gap: 4px;
        padding: 10px 6px;
    }

    .codlp-service-item {
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        font-size: 12px;
        text-align: center;
        white-space: normal;
    }
}

/* Trust-building content */
.codlp-after-order,
.codlp-real-gallery {
    margin-top: 20px;
    padding: 25px;
    border: 1px solid var(--codlp-primary-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.codlp-trust-heading span {
    color: var(--codlp-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.codlp-trust-heading h2 {
    margin: 4px 0 18px;
    color: var(--codlp-text);
    font-size: 20px;
    line-height: 1.4;
}

.codlp-order-steps,
.codtl-thankyou-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.codlp-order-steps > div,
.codtl-thankyou-timeline > div {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    padding: 14px;
    border-radius: 10px;
    background: var(--codlp-primary-soft-alt);
}

.codlp-order-steps b,
.codtl-thankyou-timeline b {
    display: inline-flex;
    width: 27px;
    height: 27px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--codlp-primary);
    color: var(--codlp-on-primary);
    font-size: 12px;
}

.codlp-order-steps strong,
.codtl-thankyou-timeline strong { color: #292929; font-size: 14px; }
.codlp-order-steps span,
.codtl-thankyou-timeline span { color: #777; font-size: 12px; line-height: 1.55; }
.codlp-order-lookup-link { display: inline-flex; gap: 8px; margin-top: 16px; color: var(--codlp-primary-strong); font-size: 13px; font-weight: 700; }

.codlp-gallery-shell { position: relative; }
.codlp-gallery-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.codlp-gallery-track::-webkit-scrollbar { display: none; }
.codlp-gallery-slide {
    position: relative;
    min-width: min(78%, 350px);
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    cursor: zoom-in;
    border: 0;
    border-radius: 10px;
    background: #f4f4f4;
    scroll-snap-align: start;
}
.codlp-gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.codlp-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 38px;
    height: 38px;
    padding: 0;
    cursor: pointer;
    border: 1px solid #eee;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
    color: #333;
    font-size: 28px;
    line-height: 1;
    transform: translateY(-50%);
}
.codlp-gallery-arrow.is-prev { left: 8px; }
.codlp-gallery-arrow.is-next { right: 8px; }
.codlp-gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.codlp-gallery-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #ddd; }
.codlp-gallery-dots button.is-active { width: 20px; border-radius: 8px; background: var(--codlp-primary); }

.codlp-return-note { margin-top: 24px; padding: 16px; border-left: 4px solid var(--codlp-primary); border-radius: 6px; background: var(--codlp-primary-soft-alt); }
.codlp-return-note p { margin: 6px 0; color: #666; font-size: 13px; line-height: 1.7; }
.codlp-return-note a { color: var(--codlp-primary-strong); font-size: 13px; font-weight: 700; }

.codlp-reviews {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--codlp-primary-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.codlp-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.codlp-review-heading h2 { display: flex; align-items: baseline; gap: 7px; margin: 0; color: var(--codlp-text); font-size: 20px; line-height: 1.3; }
.codlp-review-heading h2 span { color: var(--codlp-primary); font-size: 14px; }
.codlp-review-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; color: #7b8190; font-size: 12px; }
.codlp-review-summary > strong { color: var(--codlp-primary); font-size: 26px; line-height: 1; }
.codlp-stars { color: #ffad1f; font-size: 16px; letter-spacing: .04em; white-space: nowrap; }
.codlp-review-list { display: grid; margin-top: 14px; }
.codlp-review-card { padding: 14px 0; border-bottom: 1px solid #e7e9ed; }
.codlp-review-card[hidden] { display: none; }
.codlp-review-card header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.codlp-review-card header > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.codlp-review-card header strong { color: var(--codlp-text); font-size: 15px; }
.codlp-review-card time { color: #999; font-size: 12px; }
.codlp-verified { padding: 3px 8px; border-radius: 12px; background: #e9f6ef; color: #16835f; font-size: 11px; }
.codlp-review-main.has-images { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px; }
.codlp-review-body { display: flex; min-width: 0; align-items: flex-start; gap: 10px; }
.codlp-review-body p { flex: 1; min-width: 0; margin: 0; color: #555b66; font-size: 13px; line-height: 1.6; }
.codlp-review-images { display: flex; width: fit-content; max-width: 170px; gap: 6px; margin: 0; padding: 0 0 3px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scroll-snap-type: x proximity; }
.codlp-review-images button { width: 72px; height: 72px; flex: 0 0 72px; padding: 0; overflow: hidden; cursor: zoom-in; border: 0; border-radius: 7px; background: #f4f4f4; scroll-snap-align: start; }
.codlp-review-images img { width: 100%; height: 100%; object-fit: cover; }
.codlp-review-more { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; cursor: pointer; border: 1px solid var(--codlp-primary-border); border-radius: 8px; background: #fff; color: var(--codlp-primary-strong); font-size: 14px; font-weight: 750; }
.codlp-review-more:hover,
.codlp-review-more:focus-visible { border-color: var(--codlp-primary); outline: none; background: var(--codlp-primary-soft-alt); }
.codlp-review-more:disabled { cursor: wait; opacity: .65; }
.codlp-review-more-icon { font-size: 18px; line-height: 1; transition: transform .2s ease; }
.codlp-review-more.is-expanded:not(.is-loading) .codlp-review-more-icon { transform: rotate(180deg); }
.codlp-review-status { margin: 10px 0 0; color: #777; font-size: 13px; text-align: center; }
.codlp-review-status.is-error { color: #b42318; }
.codlp-review-status[hidden] { display: none; }

.codlp-lightbox[hidden] { display: none; }
.codlp-lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 30px; background: rgba(0,0,0,.9); }
.codlp-lightbox img { max-width: min(100%, 1100px); max-height: 90vh; object-fit: contain; }
.codlp-lightbox button { position: absolute; top: 16px; right: 18px; width: 44px; height: 44px; padding: 0; cursor: pointer; border: 0; background: transparent; color: #fff; font-size: 38px; }
body.codlp-lightbox-open { overflow: hidden; }

/* WooCommerce order-received trust panel */
.codtl-thankyou-panel { max-width: 920px; margin: 30px auto; padding: 30px; border: 1px solid #e9e9e9; border-radius: 16px; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.07); text-align: center; }
.codtl-thankyou-check { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; border-radius: 50%; background: #16835f; color: #fff; font-size: 30px; }
.codtl-thankyou-kicker { margin: 12px 0 0; color: #16835f; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.codtl-thankyou-panel h2 { margin: 4px 0 16px; font-size: 28px; }
.codtl-thankyou-number { display: inline-flex; align-items: baseline; gap: 10px; margin-bottom: 24px; padding: 8px 16px; border-radius: 20px; background: #f6f6f6; }
.codtl-thankyou-number span { color: #777; font-size: 13px; }
.codtl-thankyou-number strong { font-size: 18px; }
.codtl-thankyou-timeline { text-align: left; }
.codtl-thankyou-alert { margin-top: 20px; padding: 12px 15px; border-radius: 8px; background: #fff8e6; color: #72530a; font-size: 13px; }
.codtl-thankyou-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.codtl-thankyou-actions .button { padding: 10px 20px; border-radius: 8px; background: var(--codlt-primary); color: var(--codlt-on-primary); font-weight: 700; text-decoration: none; }
.codtl-thankyou-actions .button.alt { background: #333; }

@media (max-width: 768px) {
    .codlp-after-order,
    .codlp-real-gallery,
    .codlp-reviews { padding: 18px 16px; border-radius: 0; }
    .codlp-order-steps,
    .codtl-thankyou-timeline { grid-template-columns: 1fr 1fr; }
    .codlp-gallery-arrow { display: none; }
    .codlp-review-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .codlp-review-summary { justify-content: flex-start; }
    .codlp-review-main.has-images { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
    .codlp-review-body { flex-direction: column; gap: 4px; }
    .codlp-review-images { max-width: 64px; }
    .codlp-review-images button { width: 64px; height: 64px; flex-basis: 64px; }
    .codtl-thankyou-panel { margin: 18px 12px; padding: 22px 16px; }
}

@media (max-width: 480px) {
    .codlp-order-steps,
    .codtl-thankyou-timeline { grid-template-columns: 1fr; }
    .codlp-gallery-slide { min-width: 86%; }
    .codtl-thankyou-panel h2 { font-size: 23px; }
    .codtl-thankyou-actions { flex-direction: column; }
}

/*
 * COD Gold Direct 2.0
 * A compact, image-first, single-product purchase flow. The layout borrows the
 * useful conversion pattern of a narrow direct-order page without reproducing
 * any third-party brand artwork, copy, or distinctive trade dress.
 */
.single-product {
    background: #f0ede8;
}

.single-product .codlt-announcement,
.single-product .codlt-site-header {
    display: none;
}

.single-product .codlt-product-main {
    padding: 22px 0 42px;
}

.single-product .codlt-site-footer {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto 32px;
    border-top: 1px solid #eadfca;
    background: #fbf7ee;
    color: #5b5143;
    box-shadow: 0 16px 48px rgba(54, 42, 20, .08);
}

.single-product .codlt-site-footer .codlt-brand,
.single-product .codlt-footer-links strong,
.single-product .codlt-footer-service strong,
.single-product .codlt-mobile-footer-section summary {
    color: #2d261c;
}

.single-product .codlt-footer-menu a,
.single-product .codlt-footer-service a,
.single-product .codlt-mobile-footer-content {
    color: #51483b;
}

.single-product .codlt-footer-menu a:hover,
.single-product .codlt-footer-service a:hover,
.single-product .codlt-mobile-footer-content a:hover {
    color: #76540d;
}

.single-product .codlt-footer-bottom,
.single-product .codlt-mobile-footer-section,
.single-product .codlt-mobile-footer-section:last-child {
    border-color: #e4d8c4;
}

.single-product .codlt-footer-bottom {
    color: #685e50;
}

.single-product .codlt-footer-inner,
.single-product .codlt-footer-bottom .codlt-shell {
    width: 100%;
}

.codlp {
    --codlp-text: #251f17;
    --codlp-muted: #756d61;
    --codlp-border: #e8dfd0;
    font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.codlp-container {
    max-width: 760px;
    padding: 0;
}

.codlp-product-wrapper {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(54, 42, 20, .12);
}

.codlp-product-images {
    position: static;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.codlp-main-image,
.codlp-product-video {
    border-radius: 0;
}

.codlp-product-info-wrap {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.codlp-product-info {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.codlp-product-eyebrow {
    display: inline-flex;
    align-self: flex-start;
    margin: 28px 28px 10px;
    padding: 5px 10px;
    border: 1px solid var(--codlp-primary-border);
    border-radius: 999px;
    background: var(--codlp-primary-soft-alt);
    color: var(--codlp-primary-strong);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
}

.codlp-product-title {
    margin: 0;
    padding: 0 28px;
    color: #241d13;
    font-family: "Noto Serif TC", "Songti TC", serif;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.02em;
}

.codlp-sales-rank {
    margin: 14px 28px 0;
}

.codlp-product-price {
    margin: 20px 28px 0;
    padding-top: 18px;
    border-top: 1px solid #eee5d7;
}

.codlp-current-price {
    color: #a4261d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
}

.codlp-current-price ins {
    color: #a4261d;
}

.codlp-price-tag.is-promo,
.codlp-price-tag.is-standard {
    border: 1px solid #dfc889;
    background: #f5e8c5;
    box-shadow: none;
    color: #6f4f0c;
}

.codlp-offer-note {
    margin: 12px 28px 0;
    color: #7a7063;
    font-size: 13px;
    line-height: 1.7;
}

.codlp-short-description,
.codlp-service-info,
.codlp-spec-section,
.codlp-mini-card,
.codlp-form,
.codlp-real-gallery,
.codlp-reviews,
.codlp-details {
    margin-right: 28px;
    margin-left: 28px;
}

.codlp-short-description {
    margin-top: 20px;
    margin-bottom: 0;
    border-radius: 8px;
    background: #fbf7ee;
}

.codlp-service-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
    margin-bottom: 0;
    padding: 14px 8px;
    border: 0;
    border-top: 1px solid #eee5d7;
    border-bottom: 1px solid #eee5d7;
    border-radius: 0;
    background: #fff;
}

.codlp-service-item {
    justify-content: center;
    min-width: 0;
    padding: 0 8px;
    border-right: 1px solid #eee5d7;
    color: #5d5345;
    font-size: 13px;
    text-align: center;
}

.codlp-service-item:last-child {
    border-right: 0;
}

.codlp-service-icon {
    color: var(--codlp-primary-strong);
}

.codlp-spec-section {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid #e9dfcd;
    border-radius: 12px;
    background: #fffdf8;
}

.codlp-spec-title,
.codlp-form-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #2f271d;
    font-family: "Noto Serif TC", "Songti TC", serif;
    font-size: 19px;
}

.codlp-spec-title::before,
.codlp-form-title::before {
    position: static;
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f2e3b9;
    color: #76540d;
    content: "◇";
    font-family: Arial, sans-serif;
    font-size: 15px;
}

.codlp-form-title::before {
    content: "◎";
}

.codlp-attribute-group {
    padding: 14px;
    border: 1px solid #ebe2d3;
    border-radius: 9px;
    background: #fff;
}

.codlp-step-number {
    background: var(--codlp-primary);
    color: #fff;
}

.codlp-attribute-options {
    gap: 9px;
}

.codlp-attribute-option {
    min-height: 48px;
    border-color: #e6ddcf;
    border-radius: 8px;
    background: #fff;
}

.codlp-attribute-option:hover:not(:disabled),
.codlp-attribute-option:focus-visible,
.codlp-attribute-option.is-active {
    border-color: var(--codlp-primary);
    background: #fffaf0;
    color: #694b0d;
    box-shadow: inset 0 0 0 1px var(--codlp-primary);
}

.codlp-popular-tag {
    background: #9f291f;
    color: #fff;
}

.codlp-mini-card {
    margin-top: 14px;
    border-color: #dcca99;
    border-radius: 10px;
    background: linear-gradient(135deg, #fffaf0, #fff);
}

.codlp-form {
    margin-top: 22px;
    margin-bottom: 0;
    padding: 22px;
    border: 1px solid #e8decd;
    border-radius: 12px;
    background: #fbfaf7;
}

.codlp-delivery-options {
    border-color: #e7dcc8;
    border-radius: 10px;
}

.codlp-delivery-option:hover,
.codlp-delivery-option.is-active {
    background: #fff8e7;
}

.codlp-input,
.codlp-select,
.codlp-textarea {
    border-color: #dfd5c3;
    border-radius: 8px;
    background: #fff;
}

.codlp-input:focus,
.codlp-select:focus,
.codlp-textarea:focus {
    border-color: var(--codlp-primary);
    box-shadow: 0 0 0 3px rgba(var(--codlp-primary-rgb), .14);
}

.codlp-checkout-assurances {
    gap: 8px;
}

.codlp-checkout-assurance {
    border: 1px solid #e7ddca;
    background: #fff;
}

.codlp-buy-button,
.codlp-go-order {
    border-color: #806019;
    background: linear-gradient(135deg, #c89e38 0%, #a97714 58%, #7b560d 100%);
    box-shadow: 0 10px 22px rgba(122, 88, 16, .22);
}

.codlp-buy-button:hover,
.codlp-go-order:hover {
    background: linear-gradient(135deg, #d5ad4a 0%, #ae7c17 58%, #684707 100%);
}

.codlp-real-gallery,
.codlp-reviews,
.codlp-details {
    border-color: #e8decd;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}

.codlp-details {
    margin-top: 22px;
    margin-bottom: 28px;
}

.codlp-details > h2 {
    border-bottom-color: #e8decd;
    color: #2f271d;
    font-family: "Noto Serif TC", "Songti TC", serif;
}

.codlp-details-content img {
    width: 100%;
    border-radius: 0;
}

.codlp-after-order {
    border-color: #e8decd;
    background: #fbf7ee;
}

.codlp-back-top {
    border-color: #b79036;
    background: #fffaf0;
    color: #76540d;
}

@media (max-width: 792px) {
    .single-product .codlt-product-main {
        padding: 0 0 18px;
    }

    .single-product .codlt-site-footer {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .codlp-product-wrapper {
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 580px) {
    .codlp-product-eyebrow {
        margin: 22px 16px 9px;
    }

    .codlp-product-title {
        padding: 0 16px;
        font-size: 22px;
    }

    .codlp-sales-rank,
    .codlp-product-price,
    .codlp-offer-note,
    .codlp-short-description,
    .codlp-service-info,
    .codlp-spec-section,
    .codlp-mini-card,
    .codlp-form,
    .codlp-real-gallery,
    .codlp-reviews,
    .codlp-details {
        margin-right: 16px;
        margin-left: 16px;
    }

    .codlp-product-price {
        margin-top: 16px;
        padding-top: 15px;
    }

    .codlp-current-price {
        font-size: 31px;
    }

    .codlp-service-info {
        padding: 12px 2px;
    }

    .codlp-service-item {
        padding: 0 4px;
        font-size: 11px;
    }

    .codlp-spec-section,
    .codlp-form {
        padding: 16px;
    }

    .codlp-attribute-option {
        min-height: 52px;
    }

    .codlp-mobile-order-actions.is-visible {
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 10px;
    }

    .codlp-mobile-order-primary {
        border-color: #806019;
        background: linear-gradient(135deg, #c89e38, #8b6210);
        animation: none;
    }

    .codlp-mobile-order-secondary {
        border-color: #a87a18;
        background: #fffaf0;
        color: #76540d;
    }
}
