.ims-product-layout div.product .summary p.price,
.ims-product-layout div.product .summary span.price {
    display: none !important;
}

.ims-product-layout div.product form.cart {
    margin-top: 0;
}

.ims-product-layout div.product form.cart {
    clear: both;
    width: 100%;
    max-width: none;
    margin: 30px 0 38px;
}

.ims-size-table-wrap {
    width: 100%;
    margin: 0;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}

.ims-package-order-wrap {
    width: 100%;
    margin: 0;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}

.ims-order-title {
    margin: 0 0 16px;
}

.ims-order-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 1fr);
    gap: 18px;
    align-items: stretch;
}

.ims-order-card {
    min-height: 100%;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
}

.ims-order-card h4 {
    margin: 0 0 12px;
    font-size: 18px;
}

.ims-top-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 12px;
}

.ims-top-summary-item {
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
}

.ims-top-summary-wide {
    grid-column: 1 / -1;
}

.ims-top-summary-item span {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #666;
}

.ims-top-summary-item strong {
    display: block;
    font-size: 20px;
    line-height: 1.2;
}

.ims-order-hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: #666;
}

.ims-size-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.ims-personalized-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.ims-size-table th,
.ims-size-table td,
.ims-personalized-table th,
.ims-personalized-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

.ims-size-table th,
.ims-personalized-table th {
    font-weight: 700;
    background: #f3f3f3;
}

.ims-size-table tr:last-child td,
.ims-personalized-table tr:last-child td {
    border-bottom: 0;
}

.ims-size-table .ims-size-qty {
    width: 78px;
}

.ims-personalized-table select {
    width: 100%;
}

.ims-address-select {
    width: 100%;
    max-width: 360px;
}

.ims-personalized-table .ims-package-qty {
    width: 96px;
}

.ims-price-tiers {
    margin: 14px 0 0;
}

.ims-price-tiers h4 {
    margin: 0 0 8px;
}

.ims-price-tiers-table {
    width: 100%;
    border-collapse: collapse;
}

.ims-price-tiers-table th,
.ims-price-tiers-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

.ims-price-tiers-table th {
    background: #f3f3f3;
    font-weight: 700;
}

.ims-size-table-wrap ~ .quantity {
    display: none !important;
}

.ims-hidden {
    display: none !important;
}

.ims-field-row {
    margin: 0 0 14px;
}

.ims-field-row label {
    display: block;
    margin: 0 0 6px;
    font-weight: 700;
}

.ims-field-row select,
.ims-field-row input {
    width: 100%;
    max-width: 320px;
}

.ims-small-note {
    margin: 6px 0 0;
    color: #666;
    font-size: 13px;
}

.ims-product-layout div.product div.images img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.ims-product-layout div.product .woocommerce-product-gallery__image {
    overflow: hidden;
}

.ims-product-layout div.product .flex-control-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ims-product-layout div.product .flex-control-thumbs li {
    float: none !important;
    width: 64px !important;
}

.ims-product-layout div.product .flex-control-thumbs img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .ims-order-grid {
        grid-template-columns: 1fr;
    }

    .ims-top-summary {
        grid-template-columns: 1fr;
    }

    .ims-size-table th,
    .ims-size-table td,
    .ims-personalized-table th,
    .ims-personalized-table td {
        padding: 8px;
    }

    .ims-personalized-table .ims-package-qty {
        width: 76px;
    }
}
