/* Base */
body {
    font: 14px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Layout */
#page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Inputs */
input:not([type="radio"]):not([type="checkbox"]),
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

input:hover,
select:hover {
    border-color: #bbb;
}

input:focus,
select:focus {
    border-color: #2188ff;
    box-shadow: 0 0 0 3px rgba(33, 136, 255, 0.2);
    outline: none;
}

/* Form structure */
.core-form-field {
    margin-bottom: 1rem;
    width: 100%;
}

.core-form-field-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: 500;
}

/* Two-column layout */
.core-form-field-area-left,
.core-form-field-area-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

.core-form-field-area-left {
    float: left;
}

.core-form-field-area-right {
    margin-left: 0;
    float: right;
}

/* Sections */
.core-section {
    margin-bottom: 2rem;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
}

.core-section-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e1e4e8;
    font-weight: 600;
    background: #f6f8fa;
}

.core-form-field-body {
    width: 100%;
}

.core-section-body {
    padding: 1.5rem;
}

/* Clear floats */
.core-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive */
@media (min-width: 768px) {
    .core-form-field-area-left {
        float: left;
        width: 48%;
    }

    .core-form-field-area-right {
        float: right;
        width: 48%;
        padding-right: 0;
    }
}

.store-product-option-group {
    margin-bottom: 2rem;
}

/* Fix header background */
.core-section-header {
    margin: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e1e4e8;
    background: #f6f8fa;
    border-radius: 6px 6px 0 0;
}

/* Fix right column spacing */
.core-form-field-area-right {
    width: 48%;
    float: right;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    box-sizing: border-box;
}

#head-security {
	text-align: right;
	padding-right: 1em;
	background: url(fs_secure-ordering.png) no-repeat left;
	background-position: 400px 20px;
}
/* Inline action fields (Update Quantity / Update Coupon):
   link and input on one row, input does not overflow the section */
.store-action-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.store-action-list li {
    margin-bottom: 0.75rem;
}

.store-action-list .store-action:has(.store-action-input) {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.store-action-list .store-action-command {
    flex: 0 0 auto;
    white-space: nowrap;
}

.store-action-list input.store-action-input {
    flex: 0 1 220px;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0.5rem 0.75rem;
    box-sizing: border-box;
}
