/* Page styles: terms page typography and sections. */

/* ===== Terms Page ===== */

.section-header{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:12px 10px;
}

.section-header h1{
    margin:0;
    font-size:1.1rem;
    text-align:center;
}

.back-btn{
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    background:none;
    border:none;
    font-size:18px;
    cursor:pointer;
}

.terms-list{
    list-style:disc;
    padding-right:20px;
    line-height:1.9;
    font-size:0.9rem;
}

.terms-footer{
    text-align:center;
    margin-top:40px;
    padding:20px 10px;
    font-size:0.85rem;
    color:#888;
    line-height:1.8;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    flex: 0 0 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    display: inline-grid;
    place-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    vertical-align: middle;
}

.checkbox-label input[type="checkbox"]::before {
    content: "";
    width: 8px;
    height: 8px;
    transform: scale(0);
    transition: transform 0.15s ease-in-out;
    box-shadow: inset 1em 1em #2563eb;
    border-radius: 2px;
}

.checkbox-label input[type="checkbox"]:checked {
    border-color: #2563eb;
    background: #eff6ff;
}

.checkbox-label input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.checkbox-label input[type="checkbox"]:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.price-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.price-original-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.price-original {
    color: #ef4444;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #ef4444;
    font-size: 0.82rem;
    font-weight: 700;
}

.price-discounted,
.product-detail-price-current,
.price-normal {
    color: var(--secondary-color);
    font-weight: 700;
}

.inline-discount-badge {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    line-height: 1.3;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(220, 38, 38, 0.28);
}

.product-detail-price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-discount-badge {
    position: static;
}

.product-detail-price {
    margin: 0;
}

.owner-stores-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.owner-store-card {
    width: 100%;
    border: 1px solid #e7ecff;
    background: linear-gradient(135deg, #ffffff, #f6f8ff);
    border-radius: 16px;
    padding: 14px 14px 14px 94px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(59, 86, 201, 0.08);
    position: relative;
}

.owner-store-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(59, 86, 201, 0.12);
    color: #3b56c9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.owner-store-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.owner-store-icon-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3b56c9;
}

.owner-store-meta {
    flex: 1;
    min-width: 0;
}

.owner-store-meta h3 {
    margin: 0;
    font-size: 0.98rem;
    color: #1f2937;
}

.owner-store-meta p {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.owner-store-chevron {
    color: #94a3b8;
    flex-shrink: 0;
}

.owner-store-card-actions {
    position: absolute;
    left: 10px;
    top: 50%;
    display: flex;
    flex-direction: row;
    direction: ltr;
    gap: 6px;
    transform: translateY(-50%);
    z-index: 2;
}

.owner-store-copy-id-btn,
.owner-store-delete-icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #dc2626;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.owner-store-copy-id-btn {
    border-color: #dbeafe;
    background: #eff6ff;
    color: #2563eb;
}

.owner-store-copy-id-btn:hover {
    background: #dbeafe;
}

.owner-store-delete-icon-btn:hover {
    background: #fee2e2;
}

.owner-store-card.owner-store-card-pending {
    cursor: not-allowed;
    opacity: 0.55;
    filter: grayscale(0.15);
}

.owner-store-card.owner-store-card-pending .owner-store-chevron {
    opacity: 0.35;
}

.owner-store-actions {
    display: flex;
    gap: 10px;
    margin: 14px 0 18px;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.owner-save-btn {
    width: auto;
    background: transparent;
    color: #1d4ed8;
}

.owner-action-btn {
    flex: 1;
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
}

.owner-add-btn {
    background: #16a34a;
    color: #fff;
    position: relative;
    pointer-events: auto;
    touch-action: manipulation;
}

.owner-delete-btn {
    background: #231b1b;
    color: #fff;
}

.store-card-icon-actions {
    display: flex;
    flex-direction: row;
    direction: ltr;
    gap: 6px;
    margin-right: auto;
    margin-left: 2px;
    transform: translateX(-4px);
}

.store-copy-id-btn,
.store-delete-icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #dc2626;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.store-copy-id-btn {
    border-color: #dbeafe;
    background: #eff6ff;
    color: #2563eb;
}

.store-copy-id-btn:hover {
    background: #dbeafe;
}

.store-delete-icon-btn:hover {
    background: #fee2e2;
}

.owner-product-card {
    position: relative;
}

.owner-product-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9;
}

.owner-product-menu-trigger {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.owner-product-menu-trigger i {
    font-size: 0.95rem;
    line-height: 1;
}

.owner-product-menu-panel {
    position: absolute;
    top: 38px;
    right: 0;
    min-width: 178px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.owner-product-menu-item {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 10px;
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    text-align: right;
    direction: rtl;
}

.owner-product-menu-item:hover,
.owner-product-menu-item:focus-visible {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.owner-product-menu-item i {
    width: 18px;
    color: #dc2626;
    text-align: center;
}

.owner-product-status-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 4;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 9px;
    font-size: 0.72rem;
    color: #fff;
    background: rgba(75, 85, 99, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.owner-product-status-badge.archived {
    right: auto;
    left: 10px;
    background: rgba(220, 38, 38, 0.82);
}

.owner-product-card.is-archived .product-image {
    opacity: 0.58;
}

body.theme-dark .owner-product-menu-trigger,
body.theme-dark .owner-product-menu-panel {
    background: rgba(31, 41, 55, 0.88);
    border-color: rgba(148, 163, 184, 0.24);
    color: #f8fafc;
}

body.theme-dark .owner-product-menu-item {
    color: #f8fafc;
}

body.theme-dark .owner-product-menu-item:hover,
body.theme-dark .owner-product-menu-item:focus-visible {
    background: rgba(255, 59, 59, 0.14);
    color: #fecaca;
}
